示例#1
0
 <G extends Geometry> G parse(IContentHandler<G> handler, Object input) throws IOException {
   return GeoJSONUtil.parse(handler, input, trace);
 }
示例#2
0
 void encode(Map<String, Object> obj, Object output) throws IOException {
   GeoJSONUtil.encode(obj, output);
 }
示例#3
0
 /**
  * Writes a Geometry instance as GeoJSON.
  *
  * <p>This method calls through to {@link #write(Geometry, Object)}
  *
  * @param geometry The geometry.
  * @param output The output stream.
  */
 public void write(Geometry geometry, OutputStream output) throws IOException {
   GeoJSONUtil.encode(create(geometry), output);
 }