测试

aaa

GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();
WKTReader reader = new WKTReader(geometryFactory);
Geometry geom = reader.read("Point(1 1)");

FeatureJSON featureJSON = new FeatureJSON();

GeometryJSON json = new GeometryJSON(6);
StringWriter writer = new StringWriter();
json.write(geom, writer);
        GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();
        WKTReader reader = new WKTReader(geometryFactory);
        Geometry geom = reader.read("Point(1 1)");

        FeatureJSON featureJSON = new FeatureJSON();
        
        GeometryJSON json = new GeometryJSON(6);
        StringWriter writer = new StringWriter();
        json.write(geom, writer);
        System.out.println(writer.toString());

 


System.out.println(writer.toString());

上一篇:Convert Geometry data into a Geography data in MS SQL Server


下一篇:R-一些小问题