Package com.vividsolutions.jts.generator

Examples of com.vividsolutions.jts.generator.LineStringGenerator


   * @throws ParserConfigurationException
   * @throws IOException
   * @throws SAXException
   */
  public void testSingleMultiLineStringRoundTrip() throws SAXException, IOException, ParserConfigurationException{
    LineStringGenerator pgc = new LineStringGenerator();
    pgc.setGeometryFactory(geometryFactory);
    pgc.setNumberPoints(10);
    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 SAXException
   */
  public void testSingleMultiLineStringManyPointRoundTrip() throws IOException, SAXException, ParserConfigurationException{

    LineStringGenerator pgc = new LineStringGenerator();
    pgc.setGeometryFactory(geometryFactory);
    pgc.setNumberPoints(1000);
    pgc.setGenerationAlgorithm(LineStringGenerator.HORZ);
    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 testSingleMultiLineStringRoundTrip() throws SAXException, IOException, ParserConfigurationException{
    LineStringGenerator pgc = new LineStringGenerator();
    pgc.setGeometryFactory(geometryFactory);
    pgc.setNumberPoints(10);
    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 SAXException
   */
  public void testSingleMultiLineStringManyPointRoundTrip() throws IOException, SAXException, ParserConfigurationException{

    LineStringGenerator pgc = new LineStringGenerator();
    pgc.setGeometryFactory(geometryFactory);
    pgc.setNumberPoints(1000);
    pgc.setGenerationAlgorithm(LineStringGenerator.HORZ);
    MultiGenerator pg = new MultiGenerator(pgc);
    pg.setBoundingBox(new Envelope(0,10,0,10));
    pg.setNumberGeometries(3);
    pg.setGeometryFactory(geometryFactory);
   
View Full Code Here

TOP

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

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.