public class VectorDataNodeReader extends Object
VectorDataNode
for a given CSV (character separated values) input.
Clients need to specify:
FeatureUtils.FeatureCrsProvider
)PlacemarkDescriptor
which is responsible for creating placemarks
from the vector data (given by an instance of VectorDataNodeReader.PlacemarkDescriptorProvider
)Modifier and Type | Class and Description |
---|---|
static interface |
VectorDataNodeReader.PlacemarkDescriptorProvider
A strategy for receiving an instance of
PlacemarkDescriptor . |
Modifier and Type | Method and Description |
---|---|
static VectorDataNode |
read(String sourceName,
Reader reader,
Product product,
FeatureUtils.FeatureCrsProvider crsProvider,
VectorDataNodeReader.PlacemarkDescriptorProvider placemarkDescriptorProvider,
org.opengis.referencing.crs.CoordinateReferenceSystem modelCrs,
char delimiterChar,
boolean convertToVertices,
ProgressMonitor pm)
Reads a
VectorDataNode from the given input. |
static VectorDataNode |
read(String sourceName,
Reader reader,
Product product,
FeatureUtils.FeatureCrsProvider crsProvider,
VectorDataNodeReader.PlacemarkDescriptorProvider placemarkDescriptorProvider,
org.opengis.referencing.crs.CoordinateReferenceSystem modelCrs,
char delimiterChar,
ProgressMonitor pm)
Reads a
VectorDataNode from the given input. |
public static VectorDataNode read(String sourceName, Reader reader, Product product, FeatureUtils.FeatureCrsProvider crsProvider, VectorDataNodeReader.PlacemarkDescriptorProvider placemarkDescriptorProvider, org.opengis.referencing.crs.CoordinateReferenceSystem modelCrs, char delimiterChar, ProgressMonitor pm) throws IOException
VectorDataNode
from the given input.sourceName
- The name of the data source; typically a file name.reader
- A reader for the CSV data.product
- The product the vector data will be added to.crsProvider
- A strategy for receiving the CRS of the vector data.placemarkDescriptorProvider
- A strategy for receiving the placemark descriptor.modelCrs
- The model CRS of the target product.delimiterChar
- The separation character of the CSV data.pm
- A progress monitor.VectorDataNode
containing features according to the input data, or null
if no
placemark descriptor can be found.IOException
- if the vector data could not be read.public static VectorDataNode read(String sourceName, Reader reader, Product product, FeatureUtils.FeatureCrsProvider crsProvider, VectorDataNodeReader.PlacemarkDescriptorProvider placemarkDescriptorProvider, org.opengis.referencing.crs.CoordinateReferenceSystem modelCrs, char delimiterChar, boolean convertToVertices, ProgressMonitor pm) throws IOException
VectorDataNode
from the given input.sourceName
- The name of the data source; typically a file name.reader
- A reader for the CSV data.product
- The product the vector data will be added to.crsProvider
- A strategy for receiving the CRS of the vector data.placemarkDescriptorProvider
- A strategy for receiving the placemark descriptor.modelCrs
- The model CRS of the target product.delimiterChar
- The separation character of the CSV data.pm
- A progress monitor.VectorDataNode
containing features according to the input data, or null
if no
placemark descriptor can be found.IOException
- if the vector data could not be read.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.