Package org.geotools.geojson.feature

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


    /* Test feature flipping with Multi-Line String geometry*/
    public void testFeatureFlippingWithMultiLineStringGeom() throws IOException {
        FeatureJSON fjson = new FeatureJSON();

        SimpleFeature sf = fjson.readFeature(reader(strip(getFeatureWithMultiLineGeometry())));

        Geometry fnG = (Geometry) sf.getDefaultGeometry();

        SFSDataStoreUtil.flipFeatureYX(fnG);

View Full Code Here


    /* Test feature flipping with Multi-Polygongeometry*/
    public void testFeatureFlippingWithMultiPolygonGeom() throws IOException {
        FeatureJSON fjson = new FeatureJSON();

        SimpleFeature sf = fjson.readFeature(reader(strip(getFeatureWithMultiPolygonGeometry())));

        Geometry fnG = (Geometry) sf.getDefaultGeometry();

        SFSDataStoreUtil.flipFeatureYX(fnG);

View Full Code Here

     * @throws IOException
     */
    public void testForBBoxFlipping() throws IOException {
        FeatureJSON fjson = new FeatureJSON();

        SimpleFeature sf = fjson.readFeature(reader(strip(getFeatureWithLineStringGeometry())));

        ArrayList al = (ArrayList) sf.getAttribute("boundedBy");

        SFSDataStoreUtil.flipYXInsideTheBoundingBox(al);

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.