Package org.geotools.data.csv.parse
Class CSVLatLonStrategy
- Object
-
- CSVStrategy
-
- CSVLatLonStrategy
-
public class CSVLatLonStrategy extends CSVStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultGeographicCRS
_CRS
_CRS-
Fields inherited from class CSVStrategy
csvFileState, featureType
-
-
Constructor Summary
Constructors Constructor Description CSVLatLonStrategy(CSVFileState csvFileState)
CSVLatLonStrategy(CSVFileState csvFileState, String latField, String lngField)
CSVLatLonStrategy(CSVFileState csvFileState, String latField, String lngField, String pointField)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SimpleFeatureType
buildFeatureType()
void
createSchema(SimpleFeatureType featureType)
SimpleFeature
decode(String recordId, String[] csvRecord)
String[]
encode(SimpleFeature feature)
protected static boolean
isNumeric(Class<?> clazz)
-
Methods inherited from class CSVStrategy
createBuilder, createBuilder, findMostSpecificTypesFromData, getEscapechar, getFeatureType, getLineSeparator, getQuotechar, getSeparator, isQuoteAllFields, isWritePrj, iterator, setEscapechar, setLineSeparator, setQuoteAllFields, setQuotechar, setSeparator, setWritePrj
-
-
-
-
Field Detail
-
_CRS
public static final DefaultGeographicCRS _CRS
_CRS
-
-
Constructor Detail
-
CSVLatLonStrategy
public CSVLatLonStrategy(CSVFileState csvFileState)
-
CSVLatLonStrategy
public CSVLatLonStrategy(CSVFileState csvFileState, String latField, String lngField)
-
CSVLatLonStrategy
public CSVLatLonStrategy(CSVFileState csvFileState, String latField, String lngField, String pointField)
-
-
Method Detail
-
buildFeatureType
protected SimpleFeatureType buildFeatureType()
- Specified by:
buildFeatureType
in classCSVStrategy
-
isNumeric
protected static boolean isNumeric(Class<?> clazz)
-
createSchema
public void createSchema(SimpleFeatureType featureType) throws IOException
- Specified by:
createSchema
in classCSVStrategy
- Throws:
IOException
-
decode
public SimpleFeature decode(String recordId, String[] csvRecord)
- Specified by:
decode
in classCSVStrategy
-
encode
public String[] encode(SimpleFeature feature)
- Specified by:
encode
in classCSVStrategy
-
-