Class GeometryJSON


  • public class GeometryJSON
    extends Object
    Reads and writes geometry objects to and from geojson.

     Point point = new Point(1,2);
    
     GeometryJSON g = new GeometryJSON();
     g.writePoint(point, "point.json"));
     Point point2 = g.readPoint("point.json");
    
     Geometry geometry = ...;
     g.write(geometry, new File("geometry.json"));
     geometry = g.read("geometry.json");
    
     
    Author:
    Justin Deoliveira, OpenGeo