Package com.vividsolutions.jts.geom

Examples of com.vividsolutions.jts.geom.LineString


    @Test
    public void testcatalog_02a() throws Exception {
  Polygon polygon = (Polygon) SplitTestUtil
    .read("POLYGON ((70 270, 190 270, 190 170, 70 170, 70 270),  (90 250, 170 250, 170 190, 90 190, 90 250, 90 250, 90 250))"); //$NON-NLS-1$

  LineString splitLine = (LineString) SplitTestUtil
    .read("LINESTRING (140 220, 140 180, 170 180, 170 190)"); //$NON-NLS-1$

  Geometry partA = SplitTestUtil
    .read("POLYGON ((70 270, 190 270, 190 170, 70 170, 70 270), (170 250, 170 180, 140 180, 140 190, 90 190, 90 250, 170 250))"); //$NON-NLS-1$
  Geometry partB = SplitTestUtil
View Full Code Here


    @Test
    public void testcatalog_03() throws Exception {
  Polygon polygon = (Polygon) SplitTestUtil
    .read("POLYGON ((70 270, 190 270, 190 170, 70 170, 70 270),  (90 250, 170 250, 170 190, 90 190, 90 250, 90 250, 90 250))"); //$NON-NLS-1$

  LineString splitLine = (LineString) SplitTestUtil
    .read("LINESTRING (90 190, 90 180, 120 180, 120 220)"); //$NON-NLS-1$

  Geometry partA = SplitTestUtil
    .read("POLYGON ((70 270, 70 170, 190 170, 190 270, 70 270), (90 250, 90 180, 120 180, 120 190, 170 190, 170 250, 90 250))"); //$NON-NLS-1$
  Geometry partB = SplitTestUtil
View Full Code Here

    @Test
    public void testcatalog_03a() throws Exception {
  Polygon polygon = (Polygon) SplitTestUtil
    .read("POLYGON ((70 270, 190 270, 190 170, 70 170, 70 270),  (90 250, 170 250, 170 190, 90 190, 90 250, 90 250, 90 250))"); //$NON-NLS-1$

  LineString splitLine = (LineString) SplitTestUtil
    .read("LINESTRING (170 190, 170 180, 140 180, 140 220)"); //$NON-NLS-1$

  Geometry partA = SplitTestUtil
    .read("POLYGON ((70 270, 190 270, 190 170, 70 170, 70 270), (170 250, 170 180, 140 180, 140 190, 90 190, 90 250, 170 250))"); //$NON-NLS-1$
  Geometry partB = SplitTestUtil
View Full Code Here

    @Test
    public void testcatalog_04() throws Exception {
  Polygon polygon = (Polygon) SplitTestUtil
    .read("POLYGON ((70 230, 70 170, 190 170, 190 230, 170 230, 170 190, 160 190, 160 210, 100 210, 100 190, 90 190, 90 230, 70 230))"); //$NON-NLS-1$

  LineString splitLine = (LineString) SplitTestUtil
    .read("LINESTRING (100 190, 160 190, 160 190)"); //$NON-NLS-1$

  Geometry partA = SplitTestUtil
    .read("POLYGON ((70 170, 70 230, 90 230, 90 190, 100 190, 160 190, 170 190, 170 230, 190 230, 190 170, 70 170))"); //$NON-NLS-1$
  Geometry partB = SplitTestUtil
View Full Code Here

    @Test
    public void testcatalog_05() throws Exception {
  Polygon polygon = (Polygon) SplitTestUtil
    .read("POLYGON ((60 270, 90 270, 90 230, 110 230, 110 250, 150 250, 150 230, 170 230, 170 270, 200 270, 200 170, 60 170, 60 170, 60 270))"); //$NON-NLS-1$

  LineString splitLine = (LineString) SplitTestUtil
    .read("LINESTRING (150 230, 150 210, 170 210, 170 190, 90 190, 90 210, 110 210, 110 230, 110 230, 110 230)"); //$NON-NLS-1$

  Geometry partA = SplitTestUtil
    .read("POLYGON ((60 270, 90 270, 90 230, 110 230, 110 210, 90 210, 90 190, 170 190, 170 210, 150 210, 150 230, 170 230, 170 270, 200 270, 200 170, 60 170, 60 270))"); //$NON-NLS-1$
  Geometry partB = SplitTestUtil
View Full Code Here

    @Test
    public void testcatalog_06() throws Exception {
  Polygon polygon = (Polygon) SplitTestUtil
    .read("POLYGON ((60 270, 90 270, 90 230, 110 230, 110 250, 150 250, 150 230, 170 230, 170 270, 200 270, 200 170, 60 170, 60 170, 60 270))"); //$NON-NLS-1$

  LineString splitLine = (LineString) SplitTestUtil
    .read("LINESTRING (150 230, 130 190, 110 230)"); //$NON-NLS-1$

  Geometry partA = SplitTestUtil
    .read("POLYGON ((60 270, 90 270, 90 230, 110 230, 130 190, 150 230, 170 230, 170 270, 200 270, 200 170, 60 170, 60 270))"); //$NON-NLS-1$
  Geometry partB = SplitTestUtil
View Full Code Here

    @Test
    public void testcatalog_07() throws Exception {
  Polygon polygon = (Polygon) SplitTestUtil
    .read("POLYGON ((60 270, 90 270, 90 230, 110 230, 110 250, 150 250, 150 230, 170 230, 170 270, 200 270, 200 170, 60 170, 60 170, 60 270),  (90 210, 110 210, 110 190, 90 190, 90 210),  (150 210, 170 210, 170 190, 150 190, 150 210))"); //$NON-NLS-1$

  LineString splitLine = (LineString) SplitTestUtil
    .read("LINESTRING (100 220, 110 230, 110 210, 150 210, 150 230, 160 220, 160 220)"); //$NON-NLS-1$

  Geometry partA = SplitTestUtil
    .read("POLYGON ((60 270, 90 270, 90 230, 110 230, 110 210, 150 210, 150 230, 170 230, 170 270, 200 270, 200 170, 60 170, 60 170, 60 270), (90 210, 110 210, 110 190, 90 190, 90 210), (150 190, 150 210, 170 210, 170 190, 150 190))"); //$NON-NLS-1$
  Geometry partB = SplitTestUtil
View Full Code Here

    @Test
    public void testcatalog_08() throws Exception {
  Polygon polygon = (Polygon) SplitTestUtil
    .read("POLYGON ((60 270, 90 270, 90 230, 110 230, 110 250, 150 250, 150 230, 170 230, 170 270, 200 270, 200 170, 60 170, 60 170, 60 270),  (90 210, 110 210, 110 190, 90 190, 90 210),  (150 210, 170 210, 170 190, 150 190, 150 210))"); //$NON-NLS-1$

  LineString splitLine = (LineString) SplitTestUtil
    .read("LINESTRING (100 240, 110 230, 110 210, 150 210, 150 230, 160 240, 160 240)"); //$NON-NLS-1$

  assertFalse(SplitUtil.isClosedLine(splitLine));

  Geometry partA = SplitTestUtil
View Full Code Here

    @Test
    public void testcatalog_09() throws Exception {
  Polygon polygon = (Polygon) SplitTestUtil
    .read("POLYGON ((60 270, 90 270, 90 230, 110 230, 110 250, 150 250, 150 230, 170 230, 170 270, 200 270, 200 170, 60 170, 60 170, 60 270),  (90 210, 110 210, 110 190, 90 190, 90 210),  (150 210, 170 210, 170 190, 150 190, 150 210))"); //$NON-NLS-1$

  LineString splitLine = (LineString) SplitTestUtil
    .read("LINESTRING (110 210, 110 230, 150 230, 150 210, 110 210, 110 210, 110 210)"); //$NON-NLS-1$

  assertTrue(polygon.isValid());

  assertTrue(SplitUtil.isClosedLine(splitLine));
View Full Code Here

     */
    @Test
    public void testcatalog_10a1() throws Exception {

  // input
  LineString splitLine = (LineString) SplitTestUtil
    .read("LINESTRING (120 230, 160 230, 170 220, 160 210, 120 210)"); //$NON-NLS-1$
  assertFalse(SplitUtil.isClosedLine(splitLine));

  Polygon polygon = (Polygon) SplitTestUtil
    .read("POLYGON ((70 260, 210 260, 210 180, 70 180, 70 180, 70 260), (90 230, 120 230, 120 210, 90 210, 90 230), (160 230, 190 230, 190 210, 160 210, 160 230))"); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.geom.LineString

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.