public class VertexLoaderShapefile extends Object implements Closeable
| Constructor and Description |
|---|
VertexLoaderShapefile(File file)
Construct an instance for the specified Shapefile
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
double |
getGeoOffsetX() |
double |
getGeoOffsetY() |
double |
getGeoScaleX() |
double |
getGeoScaleY() |
double |
getTimeForLoad()
Gets the total time to load a file (including the time required for
pre-sort if enabled).
|
double |
getXMax()
Gets the maximum x coordinate in the sample
|
double |
getXMin()
Gets the minimum x coordinate in the sample
|
double |
getYMax()
Gets the maximum y coordinate in the sample
|
double |
getYMin()
Gets the minimum y coordinate in the sample
|
double |
getZMax()
Gets the maximum z coordinate in the sample
|
double |
getZMin()
Gets the minimum z coordinate in the sample
|
boolean |
isSourceInGeographicCoordinates()
Indicates whether the source data was in geographic coordinates
|
List<Vertex> |
loadVertices(String dbfFieldForZ)
Read the records from the Shapefile and use them to populate vertices.
|
public VertexLoaderShapefile(File file) throws IOException
file - a Shapefile referenceIOException - in the event of an unrecoverable I/O conditionpublic double getXMin()
public double getXMax()
public double getYMin()
public double getYMax()
public double getZMin()
public double getZMax()
public double getTimeForLoad()
public boolean isSourceInGeographicCoordinates()
public double getGeoScaleX()
public double getGeoScaleY()
public double getGeoOffsetX()
public double getGeoOffsetY()
public List<Vertex> loadVertices(String dbfFieldForZ) throws IOException
The index of the vertex is set to be the Shapefile record number. Thus many vertices may be assigned with the same record number, particularly if the input is a polygon or line feature.
dbfFieldForZ - the name of the DBF field to use as a z value; use a
null or empty string to use the z coordinates form the Shapefile.IOException - in the event of an unrecoverable I/O conditionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019. All rights reserved.