Package org.geotools.geojson
Class GeoJSONUtil
Object
GeoJSONUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addOrdinate
(List<Object> ordinates, Object value) static StringBuilder
array
(String key, Object value, StringBuilder sb) static Coordinate
createCoordinate
(List ordinates) static Coordinate[]
createCoordinates
(List<Coordinate> coordinates) static void
static void
static StringBuilder
entry
(String key, Object value, StringBuilder sb) static StringBuilder
nul
(StringBuilder sb) static <T> T
parse
(IContentHandler<T> handler, Object input, boolean trace) static Object
replaceGeometry
(Object justAdded) static StringBuilder
string
(String string, StringBuilder sb) static Reader
Converts an object to aReader
instance.static Writer
Converts an object toWriter
instance.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 aReader
instance.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 toWriter
instance.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:
ParseException
IOException
-