Hi Mark!<br><br>The patch for ticket 2240 also implements read, but is not backward compatible. See:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
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).
<br></blockquote><div><a href="http://trac.openlayers.org/ticket/2707">http://trac.openlayers.org/ticket/2707</a><br><br>Tobias<br> <br></div><br><div class="gmail_quote">On Thu, Jul 29, 2010 at 9:01 AM, Marc Jansen <span dir="ltr"><<a href="mailto:jansen@terrestris.de">jansen@terrestris.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all.<br>
<br>
Correction: the other write()-ticket is<br>
<a href="http://trac.openlayers.org/ticket/2240" target="_blank">http://trac.openlayers.org/ticket/2240</a><br>
<br>
Regards,<br>
<font color="#888888">Marc<br>
</font><div><div></div><div class="h5"><br>
<br>
On 29.07.2010 08:58, Marc Jansen wrote:<br>
> Hi Eric,<br>
><br>
> thanks for the response. The only ticket I found would be<br>
> <a href="http://trac.openlayers.org/ticket/2707" target="_blank">http://trac.openlayers.org/ticket/2707</a>, which does not include a patch.<br>
> There are other tickets (<a href="http://trac.openlayers.org/ticket/2707" target="_blank">http://trac.openlayers.org/ticket/2707</a> and<br>
> <a href="http://trac.openlayers.org/ticket/2706" target="_blank">http://trac.openlayers.org/ticket/2706</a>) which address the<br>
> write()-method, but AFAICT ignore the read()-method.<br>
><br>
> If there is consensus about the suggestion in #2707 (add the<br>
> possibillity to control the return type for GCs), I'd give it a shot.<br>
><br>
> Regards,<br>
> Marc<br>
><br>
><br>
><br>
> On 29.07.2010 08:28, Eric Lemoine wrote:<br>
><br>
>> On Monday, July 26, 2010, Marc Jansen<<a href="mailto:jansen@terrestris.de">jansen@terrestris.de</a>> wrote:<br>
>><br>
>><br>
>>> Hi List,<br>
>>><br>
>>> When using the WKT Format and feeding it -- via read() -- a<br>
>>> GEOMETRYCOLLECTION we return an array of single features having<br>
>>> geometries that represent the parts of the GEOMETRYCOLLECTION . It is<br>
>>> AFAIK not possible to return one feature with a geometry of type<br>
>>> OpenLayers.Geometry.Collection.<br>
>>><br>
>>> Shouldn't we make it configurable how to handle GEOMETRYCOLLECTIONs?<br>
>>><br>
>>><br>
>> Hi Marc. I think there's an ticket with a patch for that issue. To<br>
>> help move forward with this issue you could possibly test the patch<br>
>> and report back in the ticket. Thanks,<br>
>><br>
>><br>
>><br>
>>> And BTW, shouldn't read and write be APIMethods (at least for Format.WKT<br>
>>> they aren't)<br>
>>><br>
>>><br>
>> Yes they should. I'll go ahead and change that.<br>
>><br>
>><br>
>><br>
><br>
><br>
<br>
<br>
--<br>
<br>
.................................................................<br>
Karten im (Inter|Intra)net?<br>
<br>
OpenLayers - Webentwicklung mit dynamischen Karten und Geodaten<br>
von M. Jansen und T. Adams, OpenSourcePress, München.<br>
<br>
ISBN: 978-3-937514-92-5<br>
URL: <a href="http://openlayers-buch.de" target="_blank">http://openlayers-buch.de</a><br>
.................................................................<br>
<br>
<br>
Dipl.-Geogr. Marc Jansen<br>
- Anwendungsentwickler -<br>
<br>
terrestris GmbH& Co. KG<br>
Irmintrudisstraße 17<br>
53111 Bonn<br>
<br>
Tel: ++49 (0)228 / 96 28 99 -53<br>
Fax: ++49 (0)228 / 96 28 99 -57<br>
<br>
Email: <a href="mailto:jansen@terrestris.de">jansen@terrestris.de</a><br>
Web: <a href="http://www.terrestris.de" target="_blank">http://www.terrestris.de</a><br>
<br>
Amtsgericht Bonn, HRA 6835<br>
Komplementärin: terrestris Verwaltungsgesellschaft mbH<br>
vertreten durch: Hinrich Paulsen, Till Adams<br>
<br>
<br>
_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
</div></div></blockquote></div><br>