public final class KmlWriter extends Object
ogr2ogr
can't
seem to read the attributes in KML files, even though it can write
those same attributes just fine. This issue limits the usefulness of this
class.Modifier and Type | Field and Description |
---|---|
(package private) static int |
sourceEpsgCode
The EPSG code of the CRS that the features provided are referred to.
|
(package private) PrintWriter |
writer
The output Shapefile (will be overwritten or created).
|
Modifier and Type | Method and Description |
---|---|
int |
epsgCode()
Gives the EPSG code of the projection to be used for the output files.
|
void |
writeGeometries(Iterable<? extends SpatialFeature> features,
WriterHelper attributeWriter)
Writes data to the Shapefile.
|
final PrintWriter writer
static final int sourceEpsgCode
public KmlWriter(File file)
file
- the output Shapefile (will be overwritten or created)public void writeGeometries(Iterable<? extends SpatialFeature> features, WriterHelper attributeWriter)
features
- the geometric features to write to the output fileattributeWriter
- an instance providing definitions of the type of
features and the attribute data to include with the geometrypublic int epsgCode()