Package org.geotools.geojson
Class GeoJSONUtil
Object
GeoJSONUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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_FORMAT
Date format (ISO 8601)- See Also:
-
TIME_ZONE
-
dateFormatter
public static final FastDateFormat dateFormatter
-
-
Constructor Details
-
GeoJSONUtil
public GeoJSONUtil()
-
-
Method Details
-
toReader
Converts 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
-
toWriter
Converts 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
-
parse
public static <T> T parse(IContentHandler<T> handler, Object input, boolean trace) throws IOException - Throws:
IOException
-
encode
- Throws:
IOException
-
encode
- Throws:
IOException
-
replaceGeometry
- Throws:
ParseExceptionIOException
-