Ticket #608 (closed feature: fixed)
add WKT support
| Reported by: | tschaub | Owned by: | tschaub |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.4 Release |
| Component: | Format | Version: | |
| Keywords: | Cc: | ||
| State: |
Description
Here's an example: http://dev.openlayers.org/sandbox/tschaub/wkt/examples/wkt.html
The following patch includes the new format, tests, and the above example. If this makes it in, I'll make a multi-purpose example that demonstrates all vector formats.
Also, I think I'll propose next that geometry.toString be changed simply to
return OpenLayers.Format.WKT.prototype.write(this);
This would mean that all geometries would require Format/WKT.js - but it seems like a pretty slick solution. I'll leave that for another patch.
Note that we already have one user who is using this to insert feaatues into an Oracle db with ArcSDE.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

