[GEOS] #876: rgeos::writeWKT() pass polygon direction as parameter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[GEOS] #876: rgeos::writeWKT() pass polygon direction as parameter

geos-2
#876: rgeos::writeWKT() pass polygon direction as parameter
-----------------------------+--------------------------
 Reporter:  dennisguse       |      Owner:  geos-devel@…
     Type:  enhancement      |     Status:  new
 Priority:  minor            |  Milestone:  3.6.3
Component:  Default          |    Version:  3.6.2
 Severity:  Feature Request  |   Keywords:  WKT
-----------------------------+--------------------------
 I am using rgeos::writeWKT() to export geo data for import into Microsoft
 SQLServer.
 Sadly, the server is picky about the polygon orientation (ie., clockwise,
 counter-clockwise).

 However, rgeos::writeWKT() does not support to to define the orientation.
 It would be awesome to add this option.

 Workaround for me:
 So far, I convert the (wrongly inverted) polygons in SQLServer by checking
 the actual size and if too large invert them.

--
Ticket URL: <https://trac.osgeo.org/geos/ticket/876>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

_______________________________________________
geos-devel mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geos-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GEOS] #876: rgeos::writeWKT() pass polygon direction as parameter

geos-2
#876: rgeos::writeWKT() pass polygon direction as parameter
-----------------------------+---------------------------
 Reporter:  dennisguse       |       Owner:  geos-devel@…
     Type:  enhancement      |      Status:  new
 Priority:  minor            |   Milestone:  3.6.3
Component:  Default          |     Version:  3.6.2
 Severity:  Feature Request  |  Resolution:
 Keywords:  WKT              |
-----------------------------+---------------------------

Comment (by strk):

 WKT is a standard, which I don't think prescribes a specific orientation

--
Ticket URL: <https://trac.osgeo.org/geos/ticket/876#comment:1>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

_______________________________________________
geos-devel mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geos-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GEOS] #876: rgeos::writeWKT() pass polygon direction as parameter

geos-2
In reply to this post by geos-2
#876: rgeos::writeWKT() pass polygon direction as parameter
-----------------------------+---------------------------
 Reporter:  dennisguse       |       Owner:  geos-devel@…
     Type:  enhancement      |      Status:  new
 Priority:  minor            |   Milestone:  3.6.3
Component:  Default          |     Version:  3.6.2
 Severity:  Feature Request  |  Resolution:
 Keywords:  WKT              |
-----------------------------+---------------------------

Comment (by dennisguse):

 Until now I was thinking the same, but the spec says something different:

 Page 26 of current spec:
 http://portal.opengeospatial.org/files/?artifact_id=25355
 Highlighting mine.

   <<The exterior boundary LinearRing defines the “top” of the surface
 which is the side of the surface from which the exterior boundary appears
 to traverse the boundary in a **counter clockwise direction**. The
 interior LinearRings will have the opposite orientation, and appear as
 **clockwise** when viewed from the “top”,>>

 In addition, I tested the interpretation of Openlayers (v4.6.5) for WKT:
 they seem to ignore the direction of the polygon and always use the
 smaller area as inner part.

--
Ticket URL: <https://trac.osgeo.org/geos/ticket/876#comment:2>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

_______________________________________________
geos-devel mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geos-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GEOS] #876: rgeos::writeWKT() pass polygon direction as parameter

geos-2
In reply to this post by geos-2
#876: rgeos::writeWKT() pass polygon direction as parameter
-----------------------------+---------------------------
 Reporter:  dennisguse       |       Owner:  geos-devel@…
     Type:  enhancement      |      Status:  new
 Priority:  minor            |   Milestone:  3.8.0
Component:  Default          |     Version:  3.6.2
 Severity:  Feature Request  |  Resolution:
 Keywords:  WKT              |
-----------------------------+---------------------------
Changes (by robe):

 * milestone:  3.6.3 => 3.8.0


--
Ticket URL: <https://trac.osgeo.org/geos/ticket/876#comment:3>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

_______________________________________________
geos-devel mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geos-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GEOS] #876: rgeos::writeWKT() pass polygon direction as parameter

geos-2
In reply to this post by geos-2
#876: rgeos::writeWKT() pass polygon direction as parameter
-----------------------------+---------------------------
 Reporter:  dennisguse       |       Owner:  geos-devel@…
     Type:  enhancement      |      Status:  new
 Priority:  minor            |   Milestone:  3.9.0
Component:  Default          |     Version:  3.6.2
 Severity:  Feature Request  |  Resolution:
 Keywords:  WKT              |
-----------------------------+---------------------------
Changes (by pramsey):

 * milestone:  3.8.0 => 3.9.0


Comment:

 Forcing rgeos::writeWKT() to output CCW exterior rings, etc, means it
 becomes impossible to output CW rings in other applications, which will be
 Bad for them. Only reasonable way forward I see it to pull the isCCW()
 method up to Geometry and then leave it to the user to GEOSReverse() the
 ones they want to reverse.

--
Ticket URL: <https://trac.osgeo.org/geos/ticket/876#comment:4>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

_______________________________________________
geos-devel mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geos-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GEOS] #876: rgeos::writeWKT() pass polygon direction as parameter

geos-2
In reply to this post by geos-2
#876: rgeos::writeWKT() pass polygon direction as parameter
-----------------------------+---------------------------
 Reporter:  dennisguse       |       Owner:  geos-devel@…
     Type:  enhancement      |      Status:  new
 Priority:  minor            |   Milestone:  3.9.0
Component:  Default          |     Version:  3.6.2
 Severity:  Feature Request  |  Resolution:
 Keywords:  WKT              |
-----------------------------+---------------------------

Comment (by pramsey):

 I'm going to close this out, since GEOSNormalize() already exists, and
 forces CCW orientation onto rings.

--
Ticket URL: <https://trac.osgeo.org/geos/ticket/876#comment:5>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

_______________________________________________
geos-devel mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geos-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GEOS] #876: rgeos::writeWKT() pass polygon direction as parameter

geos-2
In reply to this post by geos-2
#876: rgeos::writeWKT() pass polygon direction as parameter
-----------------------------+---------------------------
 Reporter:  dennisguse       |       Owner:  geos-devel@…
     Type:  enhancement      |      Status:  closed
 Priority:  minor            |   Milestone:  3.9.0
Component:  Default          |     Version:  3.6.2
 Severity:  Feature Request  |  Resolution:  wontfix
 Keywords:  WKT              |
-----------------------------+---------------------------
Changes (by pramsey):

 * status:  new => closed
 * resolution:   => wontfix


--
Ticket URL: <https://trac.osgeo.org/geos/ticket/876#comment:6>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

_______________________________________________
geos-devel mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geos-devel