Package com.vividsolutions.jts.generator

Examples of com.vividsolutions.jts.generator.PolygonGenerator


   * @throws ParserConfigurationException
   * @throws IOException
   * @throws SAXException
   */
  public void testSingleMultiPolygonNoHoleRoundTrip() throws SAXException, IOException, ParserConfigurationException{
    PolygonGenerator pgc = new PolygonGenerator();
    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 IOException
   * @throws SAXException
   */
  public void testSingleMultiPolygonManyPointsNoHoleRoundTrip() throws SAXException, IOException, ParserConfigurationException{

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

   * @throws IOException
   * @throws SAXException
   */
  public void testSingleMultiPolygonHolesRoundTrip() throws SAXException, IOException, ParserConfigurationException{

    PolygonGenerator pgc = new PolygonGenerator();
    pgc.setGeometryFactory(geometryFactory);
    pgc.setGenerationAlgorithm(PolygonGenerator.BOX);
    pgc.setNumberPoints(10);
    pgc.setNumberHoles(4);
    MultiGenerator pg = new MultiGenerator(pgc);
    pg.setBoundingBox(new Envelope(0,10,0,10));
    pg.setNumberGeometries(3);
    pg.setGeometryFactory(geometryFactory);
   
View Full Code Here

   * @throws IOException
   * @throws SAXException
   */
  public void testSingleMultiPolygonManyPointsHolesRoundTrip() throws SAXException, IOException, ParserConfigurationException{

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

   * @throws IOException
   * @throws SAXException
   */
  public void testSingleMultiPolygonManyPointsManyHolesRoundTrip() throws SAXException, IOException, ParserConfigurationException{

    PolygonGenerator pgc = new PolygonGenerator();
    pgc.setGeometryFactory(geometryFactory);
    pgc.setGenerationAlgorithm(PolygonGenerator.BOX);
    pgc.setNumberPoints(100);
    pgc.setNumberHoles(100);
    MultiGenerator pg = new MultiGenerator(pgc);
    pg.setBoundingBox(new Envelope(0,10,0,10));
    pg.setNumberGeometries(3);
    pg.setGeometryFactory(geometryFactory);
   
View Full Code Here

   * @throws IOException
   * @throws ParserConfigurationException
   * @throws SAXException
   */
  public void testSinglePolygonNoHoleRoundTrip() throws IOException, SAXException, ParserConfigurationException{
    PolygonGenerator pg = new PolygonGenerator();
    pg.setGeometryFactory(geometryFactory);
    pg.setBoundingBox(new Envelope(0,10,0,10));
    pg.setNumberPoints(10);
   
    Polygon pt = (Polygon) pg.create();
   
    GMLWriter out = new GMLWriter();
    out.setPrefix("");
    out.write(pt,getWriter());
   
View Full Code Here

   * @throws IOException
   * @throws ParserConfigurationException
   * @throws SAXException
   */
  public void testSinglePolygonManyPointsNoHoleRoundTrip() throws IOException, SAXException, ParserConfigurationException{
    PolygonGenerator pg = new PolygonGenerator();
    pg.setGeometryFactory(geometryFactory);
    pg.setBoundingBox(new Envelope(0,10,0,10));
    pg.setGenerationAlgorithm(PolygonGenerator.BOX);
    pg.setNumberPoints(1000);
   
    Polygon pt = (Polygon) pg.create();

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

   * @throws ParserConfigurationException
   * @throws IOException
   * @throws SAXException
   */
  public void testSinglePolygonHolesRoundTrip() throws SAXException, IOException, ParserConfigurationException{
    PolygonGenerator pg = new PolygonGenerator();
    pg.setGeometryFactory(geometryFactory);
    pg.setBoundingBox(new Envelope(0,10,0,10));
    pg.setNumberPoints(10);
    pg.setNumberHoles(4);
   
    Polygon pt = (Polygon) pg.create();

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

   * @throws ParserConfigurationException
   * @throws IOException
   * @throws SAXException
   */
  public void testSinglePolygonManyPointsHolesRoundTrip() throws SAXException, IOException, ParserConfigurationException{
    PolygonGenerator pg = new PolygonGenerator();
    pg.setGeometryFactory(geometryFactory);
    pg.setBoundingBox(new Envelope(0,10,0,10));
    pg.setGenerationAlgorithm(PolygonGenerator.BOX);
    pg.setNumberPoints(1000);
    pg.setNumberHoles(4);
   
    Polygon pt = (Polygon) pg.create();

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

   * @throws ParserConfigurationException
   * @throws IOException
   * @throws SAXException
   */
  public void testSinglePolygonManyPointsManyHolesRoundTrip() throws SAXException, IOException, ParserConfigurationException{
    PolygonGenerator pg = new PolygonGenerator();
    pg.setGeometryFactory(geometryFactory);
    pg.setBoundingBox(new Envelope(0,10,0,10));
    pg.setGenerationAlgorithm(PolygonGenerator.BOX);
    pg.setNumberPoints(100);
    pg.setNumberHoles(100);
   
    Polygon pt = (Polygon) pg.create();

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

TOP

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

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.