Package org.geotools.data.shapefile

Examples of org.geotools.data.shapefile.ShpFiles


 
  //file.dbf
  public ShapeFileReader(File file)throws Exception{
    super(file);
    this.fileName = file.getName();
    this.shpFile = new ShpFiles(file);
    this.geoFactory = new GeometryFactory();
  }
View Full Code Here


    boolean strict = false;
    boolean shpMemoryMapped = true;
   
    long startTime = System.currentTimeMillis();
   
    ShpFiles shpFiles = null;
    try {
      shpFiles = new ShpFiles(new File(dataset));
    } catch (Exception e) {
      try {
        shpFiles = new ShpFiles(new File(dataset + ".shp"));
      } catch (Exception e2) {
        throw new IllegalArgumentException("Failed to access the shapefile at either '" + dataset + "' or '" + dataset + ".shp'", e);
      }
    }
   
View Full Code Here

TOP

Related Classes of org.geotools.data.shapefile.ShpFiles

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.