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

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


    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);

    d.beginTrans();
    int sfi = d.getSpatialFieldIndex();
View Full Code Here


  }

  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));
  }

  public void testAddPolygon() throws Exception {
View Full Code Here

  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));
  }

  public void testAddPolygon() throws Exception {
    GeneralPathX gpx = new GeneralPathX();
View Full Code Here

  }

  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

  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));
  }

  public void testAddPolygonToObject() throws Exception {
View Full Code Here

  }

  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));
  }

  public void testBigFileCreation() throws Exception {
View Full Code Here

  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));
  }

  public void testBigFileCreation() throws Exception {
    new File("src/test/resources/big.dbf").delete();
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;
    for (int i = 0; i < n; i++) {
View Full Code Here

    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;
    for (int i = 0; i < n; i++) {
      d.insertEmptyRow();
View Full Code Here

        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;
        sds.insertFilledRow(row);
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.