Package org.geotools.geojson.feature

Examples of org.geotools.geojson.feature.FeatureJSON.writeFeature()


        fb.add(new WKTReader().read("POINT(10 20)"));
        SimpleFeature feature = fb.buildFeature("outbreak.1");
       
        FeatureJSON fj = new FeatureJSON();
        ByteArrayOutputStream os = new ByteArrayOutputStream();
        fj.writeFeature(feature, os);
       
        String json = os.toString();
       
        // here it would break because the written json was incorrect
        SimpleFeature feature2 = fj.readFeature(json);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.