[OpenLayers-Dev] reading WKT Format and GEOMETRYCOLLECTIONS

Tobias Sauerwein tobias.sauerwein at camptocamp.com
Thu Jul 29 03:07:54 EDT 2010


Hi Mark!

The patch for ticket 2240 also implements read, but is not backward
compatible. See:

It was suggested on IRC (pgiraud and crschmidt) that an additional optional
> arg could be added to .read, or a method on the WKT class itself (I'd prefer
> the latter).
>
http://trac.openlayers.org/ticket/2707

Tobias


On Thu, Jul 29, 2010 at 9:01 AM, Marc Jansen <jansen at terrestris.de> wrote:

> Hi all.
>
> Correction: the other write()-ticket is
> http://trac.openlayers.org/ticket/2240
>
> Regards,
> Marc
>
>
> On 29.07.2010 08:58, Marc Jansen wrote:
> > Hi Eric,
> >
> > thanks for the response. The only ticket I found would be
> > http://trac.openlayers.org/ticket/2707, which does not include a patch.
> > There are other tickets (http://trac.openlayers.org/ticket/2707 and
> > http://trac.openlayers.org/ticket/2706) which address the
> > write()-method, but AFAICT ignore the read()-method.
> >
> > If there is consensus about the suggestion in #2707 (add the
> > possibillity to control the return type for GCs), I'd give it a shot.
> >
> > Regards,
> > Marc
> >
> >
> >
> > On 29.07.2010 08:28, Eric Lemoine wrote:
> >
> >> On Monday, July 26, 2010, Marc Jansen<jansen at terrestris.de>   wrote:
> >>
> >>
> >>> Hi List,
> >>>
> >>> When using the WKT Format and feeding it -- via read() -- a
> >>> GEOMETRYCOLLECTION we return an array of single features having
> >>> geometries that represent the parts of the GEOMETRYCOLLECTION . It is
> >>> AFAIK not possible to return one feature with a geometry of type
> >>> OpenLayers.Geometry.Collection.
> >>>
> >>> Shouldn't we make it configurable how to handle GEOMETRYCOLLECTIONs?
> >>>
> >>>
> >> Hi Marc. I think there's an ticket with a patch for that issue. To
> >> help move forward with this issue you could possibly test the patch
> >> and report back in the ticket. Thanks,
> >>
> >>
> >>
> >>> And BTW, shouldn't read and write be APIMethods (at least for
> Format.WKT
> >>> they aren't)
> >>>
> >>>
> >> Yes they should. I'll go ahead and change that.
> >>
> >>
> >>
> >
> >
>
>
> --
>
>   .................................................................
>    Karten im (Inter|Intra)net?
>
>    OpenLayers - Webentwicklung mit dynamischen Karten und Geodaten
>    von M. Jansen und T. Adams, OpenSourcePress, München.
>
>    ISBN: 978-3-937514-92-5
>    URL:  http://openlayers-buch.de
>   .................................................................
>
>
>   Dipl.-Geogr. Marc Jansen
>   - Anwendungsentwickler -
>
>   terrestris GmbH&  Co. KG
>   Irmintrudisstraße 17
>   53111 Bonn
>
>   Tel:    ++49 (0)228 / 96 28 99 -53
>   Fax:    ++49 (0)228 / 96 28 99 -57
>
>   Email:  jansen at terrestris.de
>   Web:    http://www.terrestris.de
>
>   Amtsgericht Bonn, HRA 6835
>   Komplementärin:  terrestris Verwaltungsgesellschaft mbH
>   vertreten durch: Hinrich Paulsen, Till Adams
>
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20100729/14954b1c/attachment.html


More information about the Dev mailing list