Package com.iver.cit.gvsig.fmap.core

Examples of com.iver.cit.gvsig.fmap.core.GeneralPathX.moveTo()


    private String[] names = new String[]{"geom", "id"};
  
    public FakeSpatialObjectDriver() throws ParseException{
       
      GeneralPathX gp = new GeneralPathX();
      gp.moveTo(0, 0);
      gp.lineTo(10.5, 10.5);
      gp.lineTo(10.5, 2);
      gp.closePath();
     
        values[0][0] = GeometryFactory.createPolygon2D(gp);
View Full Code Here


    return false;
  }

  public void testIndexObject() throws Exception {
    GeneralPathX gpx = new GeneralPathX();
    gpx.moveTo(0, 0);
    gpx.lineTo(10, 10);
    gpx.lineTo(10, 15);
    testIndex("spatialobjectpersona", new Geometry[] { GeometryFactory
        .createPolyline2D(gpx) });
  }
View Full Code Here

        .createPoint2D(10, 30));
  }

  public void testManyDeleteIndexedEditionObject() throws Exception {
    GeneralPathX gpx = new GeneralPathX();
    gpx.moveTo(0, 0);
    gpx.lineTo(10, 10);
    gpx.lineTo(10, 15);
    testManyDeleteIndexedEdition("spatialobjectpersona", GeometryFactory
        .createPolyline2D(gpx));
  }
View Full Code Here

    testIndexedEdition("shppuntos", GeometryFactory.createPoint2D(10, 30));
  }

  public void testEditIndexedObject() throws Exception {
    GeneralPathX gpx = new GeneralPathX();
    gpx.moveTo(0, 0);
    gpx.lineTo(10, 10);
    gpx.lineTo(10, 15);
    testIndexedEdition("spatialobjectpersona", GeometryFactory
        .createPolyline2D(gpx));
  }
View Full Code Here

  public void testEditMultipolygonDBTable() throws Exception {
    SpatialDataSource d = (SpatialDataSource) ds
        .getDataSource("pgWithGDBMS");

    GeneralPathX gpx = new GeneralPathX();
    gpx.moveTo(2433.98567845422, 177.104836185899);
    gpx.lineTo(2448.71148490583, 176.999651854102);
    gpx.lineTo(2449.44777522841, 152.70207120894);
    gpx.lineTo(2434.9323374404, 152.807255540738);
    gpx.closePath();
    Geometry g = GeometryFactory.createPolygon2D(gpx);
View Full Code Here

    testAdd("shppuntos", GeometryFactory.createPoint2D(10, 30));
  }

  public void testAddLine() throws Exception {
    GeneralPathX gpx = new GeneralPathX();
    gpx.moveTo(0, 0);
    gpx.lineTo(10, 10);
    gpx.lineTo(10, 15);
    testAdd("shplineas", GeometryFactory.createPolyline2D(gpx));
  }
View Full Code Here

    testAdd("shplineas", GeometryFactory.createPolyline2D(gpx));
  }

  public void testAddPolygon() throws Exception {
    GeneralPathX gpx = new GeneralPathX();
    gpx.moveTo(0, 0);
    gpx.lineTo(10, 15);
    gpx.lineTo(10, 10);
    gpx.closePath();
    testAdd("shppoligonos", GeometryFactory.createPolygon2D(gpx));
  }
View Full Code Here

    testAdd("shppoligonos", GeometryFactory.createPolygon2D(gpx));
  }

  public void testAddPolygonToObject() throws Exception {
    GeneralPathX gpx = new GeneralPathX();
    gpx.moveTo(0, 0);
    gpx.lineTo(10, 10);
    gpx.lineTo(10, 15);
    testAdd("spatialobjectpersona", GeometryFactory.createPolyline2D(gpx));
  }
View Full Code Here

    DataSource d = ds.getDataSource("big");

    d.beginTrans();
    GeneralPathX gpx = new GeneralPathX();
    gpx.moveTo(0, 0);
    gpx.lineTo(10, 10);
    gpx.lineTo(10, 15);
    Geometry geom = GeometryFactory.createPolyline2D(gpx);
    Value nv2 = ValueFactory.createValue(3.0);
    int n = 10000;
View Full Code Here

        sds.beginTrans();
        if (indexed) {
            sds.buildIndex();
        }
        GeneralPathX cgp = new GeneralPathX();
        cgp.moveTo(0, 0);
        cgp.lineTo(10, 10);
        cgp.lineTo(0, 10);
        Value[] row = sds.getRow(0);
        Value g = GeometryFactory.createPolygon2D(cgp);
        row[sds.getSpatialFieldIndex()] = g;
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.