Package org.opengis.geometry.coordinate

Examples of org.opengis.geometry.coordinate.GeometryFactory.createDirectPosition()


    ComplexFactory complf = builder.getComplexFactory();
    PrimitiveFactoryImpl pf = (PrimitiveFactoryImpl) builder.getPrimitiveFactory();
    GeometryFactory cf = builder.getGeometryFactory();

    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(cf.createDirectPosition(new double[] {20, 10}));
    directPositionList.add(cf.createDirectPosition(new double[] {40, 10}));
    directPositionList.add(cf.createDirectPosition(new double[] {50, 40}));
    directPositionList.add(cf.createDirectPosition(new double[] {30, 50}));
    directPositionList.add(cf.createDirectPosition(new double[] {10, 30}));
    directPositionList.add(cf.createDirectPosition(new double[] {20, 10}));
View Full Code Here


    PrimitiveFactoryImpl pf = (PrimitiveFactoryImpl) builder.getPrimitiveFactory();
    GeometryFactory cf = builder.getGeometryFactory();

    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(cf.createDirectPosition(new double[] {20, 10}));
    directPositionList.add(cf.createDirectPosition(new double[] {40, 10}));
    directPositionList.add(cf.createDirectPosition(new double[] {50, 40}));
    directPositionList.add(cf.createDirectPosition(new double[] {30, 50}));
    directPositionList.add(cf.createDirectPosition(new double[] {10, 30}));
    directPositionList.add(cf.createDirectPosition(new double[] {20, 10}));
View Full Code Here

    GeometryFactory cf = builder.getGeometryFactory();

    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(cf.createDirectPosition(new double[] {20, 10}));
    directPositionList.add(cf.createDirectPosition(new double[] {40, 10}));
    directPositionList.add(cf.createDirectPosition(new double[] {50, 40}));
    directPositionList.add(cf.createDirectPosition(new double[] {30, 50}));
    directPositionList.add(cf.createDirectPosition(new double[] {10, 30}));
    directPositionList.add(cf.createDirectPosition(new double[] {20, 10}));

   
View Full Code Here

    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(cf.createDirectPosition(new double[] {20, 10}));
    directPositionList.add(cf.createDirectPosition(new double[] {40, 10}));
    directPositionList.add(cf.createDirectPosition(new double[] {50, 40}));
    directPositionList.add(cf.createDirectPosition(new double[] {30, 50}));
    directPositionList.add(cf.createDirectPosition(new double[] {10, 30}));
    directPositionList.add(cf.createDirectPosition(new double[] {20, 10}));

   
    Surface s1 = pf.createSurfaceByDirectPositions(directPositionList);
View Full Code Here

    List<DirectPosition> directPositionList = new ArrayList<DirectPosition>();
    directPositionList.add(cf.createDirectPosition(new double[] {20, 10}));
    directPositionList.add(cf.createDirectPosition(new double[] {40, 10}));
    directPositionList.add(cf.createDirectPosition(new double[] {50, 40}));
    directPositionList.add(cf.createDirectPosition(new double[] {30, 50}));
    directPositionList.add(cf.createDirectPosition(new double[] {10, 30}));
    directPositionList.add(cf.createDirectPosition(new double[] {20, 10}));

   
    Surface s1 = pf.createSurfaceByDirectPositions(directPositionList);
   
View Full Code Here

    directPositionList.add(cf.createDirectPosition(new double[] {20, 10}));
    directPositionList.add(cf.createDirectPosition(new double[] {40, 10}));
    directPositionList.add(cf.createDirectPosition(new double[] {50, 40}));
    directPositionList.add(cf.createDirectPosition(new double[] {30, 50}));
    directPositionList.add(cf.createDirectPosition(new double[] {10, 30}));
    directPositionList.add(cf.createDirectPosition(new double[] {20, 10}));

   
    Surface s1 = pf.createSurfaceByDirectPositions(directPositionList);
   
    List<OrientableSurface> surfaceList = new ArrayList<OrientableSurface>();
View Full Code Here

        double [] vertices;
        if (crs == null)
            vertices = new double[3];
        else
            vertices = new double[crs.getCoordinateSystem().getDimension()];
        DirectPosition result = gf.createDirectPosition(vertices);
        coordinateToDirectPosition(c, result);
        return result;
    }

    /**
 
View Full Code Here

            }
           
            final BasicFactories commonFactory = BasicFactories.getDefault();
            final GeometryFactory geometryFactory = commonFactory.getGeometryFactory(crs);
           
            final DirectPosition lowerCorner = geometryFactory.createDirectPosition(new double[] { -90, -180 });
            final DirectPosition upperCorner = geometryFactory.createDirectPosition(new double[] { 90, 180 });
           
            WHOLE_WORLD = geometryFactory.createEnvelope(lowerCorner, upperCorner);
        }
        return WHOLE_WORLD;
View Full Code Here

           
            final BasicFactories commonFactory = BasicFactories.getDefault();
            final GeometryFactory geometryFactory = commonFactory.getGeometryFactory(crs);
           
            final DirectPosition lowerCorner = geometryFactory.createDirectPosition(new double[] { -90, -180 });
            final DirectPosition upperCorner = geometryFactory.createDirectPosition(new double[] { 90, 180 });
           
            WHOLE_WORLD = geometryFactory.createEnvelope(lowerCorner, upperCorner);
        }
        return WHOLE_WORLD;
    }
View Full Code Here

            final double maxx,
            final double maxy) {
        final BasicFactories commonFactory = BasicFactories.getDefault();
        final GeometryFactory geometryFactory = commonFactory.getGeometryFactory(crs);
       
        final DirectPosition lowerCorner = geometryFactory.createDirectPosition();
        lowerCorner.setOrdinate(0, minx);
        lowerCorner.setOrdinate(1, miny);
       
        final DirectPosition upperCorner = geometryFactory.createDirectPosition();
        upperCorner.setOrdinate(0, maxx);
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.