Package org.geotools.data.mongodb.MongoLayer

Examples of org.geotools.data.mongodb.MongoLayer.GeometryType


                {
                    continue;
                }

                // GeometryType of current record
                GeometryType recordGeoType = GeometryType.valueOf( (String) geo.get( "type" ) );
                // skip record if its geo type does not match layer geo type
                if (!layer.getGeometryType().equals( recordGeoType ))
                {
                    continue;
                }
View Full Code Here


            int i = 0;
            Geometry[] geometries = new Geometry[geometryList.size()];
            for (Object geoElement : geometryList)
            {
                String subType = (String) ((BasicDBList) geoElement).get( "type" );
                GeometryType geoType = GeometryType.valueOf( subType );
                geometries[i++] = createGeometry( geoType, (DBObject) geoElement );
            }
            geometryObj = geoFactory.createGeometryCollection( geometries );
        }
View Full Code Here

TOP

Related Classes of org.geotools.data.mongodb.MongoLayer.GeometryType

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.