[OpenLayers-Trac] Re: [OpenLayers] #2670: wkt multipoint from JTS

OpenLayers trac-20090302 at openlayers.org
Thu Oct 7 17:40:35 EDT 2010

#2670: wkt multipoint from JTS
  Reporter:  halset      |       Owner:  tschaub 
      Type:  bug         |      Status:  reopened
  Priority:  minor       |   Milestone:          
 Component:  Format.WKT  |     Version:  SVN     
Resolution:              |    Keywords:          
     State:  Review      |  
Changes (by ronan):

  * status:  closed => reopened
  * state:  Complete => Review
  * version:  2.9 => SVN
  * resolution:  fixed =>
  * milestone:  2.10 Release =>


 This breaks parsing of the previous MULTIPOINT formatting MULTIPOINT(3.5
 5.6,4.8 10.5). The MULTIPOINT((3.5 5.6),(4.8 10.5)) format does appear to
 be correct according to the document cited but the non-parens formatting
 seems to also be in use. It is how QGIS outputs multipoints and is back
 (as of 10/7/10) on the Wikipedia article http://en.wikipedia.org/wiki
 /Well-known_text as the format for multipoint (the article has gone back
 and forth between the two formats a number of times).

 The attached patch allows either the format with the parentheses or
 without the parentheses for reading but keeps the format with parentheses
 for writing. It also updates the test to test for both formats on parsing.

Ticket URL: <http://trac.openlayers.org/ticket/2670#comment:8>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer

More information about the Trac mailing list