Examples of JTSConverter


Examples of org.openstreetmap.josm.plugins.jts.JTSConverter

            setAttribute(key, keys.get(key));
        }
        if (jtsConverter != null)
            converter = jtsConverter;
        else
            converter = new JTSConverter(true);
        setGeometry(converter.convert(prim));
    }
View Full Code Here

Examples of org.openstreetmap.josm.plugins.jts.JTSConverter

    }
   
    private FeatureCollection createFeatureCollection(Collection<OsmPrimitive> prims) {
        FeatureDataset dataset = new FeatureDataset(createSchema(prims));
        //TODO: use factory instead of passing converter
        JTSConverter converter = new JTSConverter(true);
        for (OsmPrimitive prim : prims) {
            dataset.add(new OsmFeature(prim, converter));
        }
        return dataset;
    }
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.