📄 fidtestcase.java
字号:
/*
* GeoTools - OpenSource mapping toolkit
* http://geotools.org
* (C) 2002-2006, GeoTools Project Managment Committee (PMC)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotools.data.shapefile.indexed;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.geotools.TestData;
import org.geotools.data.shapefile.ShpFiles;
import org.geotools.data.shapefile.TestCaseSupport;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
public abstract class FIDTestCase extends TestCaseSupport {
protected FIDTestCase( String name ) throws IOException {
super(name);
}
protected final String TYPE_NAME = "archsites";
protected File backshp;
protected File backdbf;
protected File backshx;
protected File backprj;
protected File backqix;
String filename;
protected File fixFile;
protected ShpFiles shpFiles;
protected void setUp() throws Exception {
super.setUp();
backshp = copyShapefiles("shapes/" + TYPE_NAME + ".shp");
backdbf = sibling(backshp, "dbf");
backshx = sibling(backshp, "shx");
backprj = sibling(backshp, "prj");
backqix = sibling(backshp, "qix");
fixFile = sibling(backshp, "fix");
shpFiles = new ShpFiles(backshx);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -