Package com.vividsolutions.jts.generator

Examples of com.vividsolutions.jts.generator.PointGenerator.create()


  public void testSinglePointRoundTrip() throws SQLException{
    PointGenerator pg = new PointGenerator();
    pg.setGeometryFactory(geometryFactory);
    pg.setBoundingBox(new Envelope(0,10,0,10));
   
    Point pt = (Point) pg.create();
   
    OraWriter ow = new OraWriter(getConnection());
    STRUCT st = ow.write(pt);
   
    OraReader or = new OraReader();
View Full Code Here


    OraWriter ow = new OraWriter(getConnection());
   
    int i=0;
    while(grid.canCreate() && i<100){
      pg.setBoundingBox(grid.createEnv());
      pt[i] = (Point) pg.create();
      st[i] = ow.write(pt[i]);
      i++;
    }
   
    OraReader or = new OraReader();
View Full Code Here

    OraWriter ow = new OraWriter(getConnection());
   
    int i=0;
    while(grid.canCreate() && i<8){
      pg.setBoundingBox(grid.createEnv());
      pt[i] = (Point) pg.create();
      st[i] = ow.write(pt[i]);
      i++;
    }
    for(int j=0;j<4;j++){
      if(pt[j]!=null)
View Full Code Here

  public void testSinglePointRoundTrip() throws SAXException, IOException, ParserConfigurationException{
    PointGenerator pg = new PointGenerator();
    pg.setGeometryFactory(geometryFactory);
    pg.setBoundingBox(new Envelope(0,10,0,10));
   
    Point pt = (Point) pg.create();

    GMLWriter out = new GMLWriter();
    out.setPrefix(null);
    out.write(pt,getWriter());
   
View Full Code Here

  public void testSinglePointRoundTrip() throws SAXException, IOException, ParserConfigurationException{
    PointGenerator pg = new PointGenerator();
    pg.setGeometryFactory(geometryFactory);
    pg.setBoundingBox(new Envelope(0,10,0,10));
   
    Point pt = (Point) pg.create();
    checkRoundTrip(pt);
  }
}
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.