[OpenLayers-Users] Format.WKT.write method
Simon Cantem
simon at citysafe.org
Thu May 17 05:32:30 EDT 2007
Hi Tim,
Yep that's exactly what I was thinking, and the patch works great.
Thanks,
Simon
-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]
On Behalf Of Tim Schaub
Sent: 17 May 2007 00:09
To: users at openlayers.org
Subject: Re: [OpenLayers-Users] Format.WKT.write method
Hey-
Simon Cantem wrote:
> ... I've noticed that unlike the other Format
> classes, it expects a either a geometry object or an array of geometry
> objects, the other Format classes (eg Format.GML and Format.WFS)
expect
> a features array.
I agree. This is weird.
Since WKT is about geometries (and doesn't have a place for feature
attributes), I made it read and write geometries (in the OpenLayers
sense).
However, I agree that the serializer/deserializer should deal in
features - since people should seldom be dealing with geometries
(especially collections of geometry) in OpenLayers.
I've created a ticket and patch that changes the behavior of the WKT
format. If approved, wkt.read() will return a feature or array of
features and wkt.write() will take a feature or array of features.
Let me know what you think,
Tim
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
More information about the Users
mailing list