Active
Project:
WFS
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2010 at 14:52 UTC
Updated:
26 Aug 2010 at 17:20 UTC
Jump to comment: Most recent file
It'd be useful to have support for (OpenLayers?)WKT input format.
This would allow exposing as WFS the data which is edited using OpenLayers CCK.
Is there a plan for that ?
I've heard one plan is for spatial_tools to implement an OL-based widget for GEO, anything on the WFS side ?
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | gml2.patch | 11.07 KB | strk |
| #12 | gml2.patch | 11.11 KB | strk |
| #9 | wkt2gml.tgz | 3.89 KB | strk |
| #7 | logWKTParsingLimit.patch | 579 bytes | strk |
Comments
Comment #1
tmcw commentedThe WFS module already has support for a subset of the OpenLayers WKT input, although, because it parses WKT into GML, it doesn't support the entire spec (yet). Patches are certainly accepted in this area.
Comment #2
strk commentedHere's a snapshot of what I get with WFS head: http://strk.keybit.net/tmp/WFS_style.png
Comment #3
tmcw commentedSorry, development is actually happening in DRUPAL-6--1.
Comment #4
strk commentedAh! that explains, will try ASAP and let you know any limitations I find.
Great to know :)
Comment #5
strk commentedAm I right that the current wkt_to_gml only accepts POLYGON typed WKT ?
I belive the OpenLayers module forces you to have a GEOMETRYCOLLECTION, at least I tried manually setting things like POINT(0 0) and got an error from the OpenLayerCCK widget...
Comment #6
tmcw commentedCurrently, yes. The conversion will eventually be built out further, and patches are accepted in that area, but doing WKT->GML conversion is kind of a second priority of the module, behind actually implementing the very picky WFS protocol.
Comment #7
strk commentedAttached patch logs an error when an unsupported WKT is found by wkt_to_gml.
Comment #8
strk commentedI've found a nice GPL script doing WKT to GML2, working on it to make into a class for easier reuse
and allow specifying a GML version (2 or 3).
I see you're doing GML3, is that _required_ by WFS1.1 ?
Does Geoserver support WFS1.0 ?
My plan is to use mapserver, which supports 1.0, not sure about 1.1.
Comment #9
strk commentedAttached the WKTParser implementation in its current state.
It is able to produce GML2 for any kind of WKT.
Comes with testcase.
Comment #10
tmcw commentedHa, yes. The WFS standard
sucksis picky.GeoServer supports 1.0, and it might work to just transition the entire module over to it.
Comment #11
strk commented+1
GML3 also wants to swap lat/long values...
OpenLayers itself should also be fine with GML2.
Comment #12
strk commentedThe attached patch includes the WKTParser into gml.inc and keeps the currently exposed wkt_to_gml.
the tests/wfs.test file should be updated to check for GML2 rather than GML3.
Comment #13
strk commentedSorry, the previous contained a spurious include
Comment #14
tmcw commentedSo, the current status of this ticket is that WFS 1.0 should be the target of this module, but that I don't have time to transfer everything over to it right now (as I'm not currently developing/using this code).
Comment #15
strk commentedIf WFS-1.1 is already implemented, how about trying to keep support for both WFS-1.0 _and_ WFS-1.1 ?
That way if you have any working setup for WFS-1.1 (geoserver?) we can incrementally add WFS-1.0 w/out breaking
working systems. For example, the patch attached to this ticket add a class which is able to do both GML2 and GML3
which would be needed each for each WFS version, if I got it right.
Comment #16
tmcw commentedIt's certainly possible to have this module support both, but I simply don't have any time to invest on it or will to work on this bit for weekends, etc. Bummer indeed, but if there's anyone who is using WFS actively, then it's in a good place for anyone else to drop in patches, etc.