Package org.geotools.geojson
Class GeoJSONUtil
Object
GeoJSONUtil
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanaddOrdinate(List<Object> ordinates, Object value) static StringBuilderarray(String key, Object value, StringBuilder sb) static CoordinatecreateCoordinate(List ordinates) static Coordinate[]createCoordinates(List<Coordinate> coordinates) static voidstatic voidstatic StringBuilderentry(String key, Object value, StringBuilder sb) static StringBuildernul(StringBuilder sb) static <T> Tparse(IContentHandler<T> handler, Object input, boolean trace) static ObjectreplaceGeometry(Object justAdded) static StringBuilderstring(String string, StringBuilder sb) static ReaderConverts an object to aReaderinstance.static WriterConverts an object toWriterinstance.static <T> T
- 
Field Details- 
DATE_FORMATDate format (ISO 8601)- See Also:
 
- 
TIME_ZONE
- 
dateFormatterpublic static final FastDateFormat dateFormatter
 
- 
- 
Constructor Details- 
GeoJSONUtilpublic GeoJSONUtil()
 
- 
- 
Method Details- 
toReaderConverts an object to aReaderinstance.The input parameter may be one of the following types: * A string parameter is considered a file path.- Parameters:
- input- The input object.
- Returns:
- A reader.
- Throws:
- IOException
 
- 
toWriterConverts an object toWriterinstance.The output parameter may be one of the following types: * A string parameter is considered a file path.- Parameters:
- output- The output object.
- Returns:
- A writer.
- Throws:
- IOException
 
- 
string
- 
entry
- 
array
- 
nul
- 
trace
- 
addOrdinate
- 
createCoordinate- Throws:
- ParseException
 
- 
createCoordinates
- 
parsepublic static <T> T parse(IContentHandler<T> handler, Object input, boolean trace) throws IOException - Throws:
- IOException
 
- 
encode- Throws:
- IOException
 
- 
encode- Throws:
- IOException
 
- 
replaceGeometry- Throws:
- ParseException
- IOException
 
 
-