Package org.openstreetmap.josm.plugins.jts

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


    }
   
    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

Related Classes of org.openstreetmap.josm.plugins.jts.JTSConverter

Copyright © 2018 www.massapicom. 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.