Package com.vividsolutions.jts.generator

Examples of com.vividsolutions.jts.generator.PointGenerator


   * @throws ParserConfigurationException
   * @throws IOException
   * @throws SAXException
   */
  public void testSingleMultiPointRoundTrip() throws SAXException, IOException, ParserConfigurationException{
    PointGenerator pgc = new PointGenerator();
    pgc.setGeometryFactory(geometryFactory);
    MultiGenerator pg = new MultiGenerator(pgc);
    pg.setBoundingBox(new Envelope(0,10,0,10));
    pg.setNumberGeometries(3);
    pg.setGeometryFactory(geometryFactory);
   
View Full Code Here


  /**
   * Round Trip test for a single point
   * @throws SQLException
   */
  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

    grid.setNumberRows(10);
   
    Point[] pt = new Point[100];
    STRUCT[] st = new STRUCT[100];

    PointGenerator pg = new PointGenerator();
    pg.setGeometryFactory(geometryFactory);
    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

    grid.setNumberRows(2);
   
    Point[] pt = new Point[4];
    STRUCT[] st = new STRUCT[8];

    PointGenerator pg = new PointGenerator();
    pg.setGeometryFactory(geometryFactory);
    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

   * @throws ParserConfigurationException
   * @throws IOException
   * @throws SAXException
   */
  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

   * @throws ParserConfigurationException
   * @throws IOException
   * @throws SAXException
   */
  public void testSingleMultiPointRoundTrip() throws SAXException, IOException, ParserConfigurationException{
    PointGenerator pgc = new PointGenerator();
    pgc.setGeometryFactory(geometryFactory);
    MultiGenerator pg = new MultiGenerator(pgc);
    pg.setBoundingBox(new Envelope(0,10,0,10));
    pg.setNumberGeometries(3);
    pg.setGeometryFactory(geometryFactory);
   
View Full Code Here

   * @throws ParserConfigurationException
   * @throws IOException
   * @throws SAXException
   */
  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

Related Classes of com.vividsolutions.jts.generator.PointGenerator

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.