Leaflet-WFST
Leaflet-WFST copied to clipboard
Auto select geometry field from WFS Feature Description
I am trying to test this plugin and it seems ALWAYS fail at the following line:
this.namespaceUri = featureInfo.attributes.targetNamespace.value;
I have tried SEVERAL WFS servers... here is the most recent:
https://mesonet.agron.iastate.edu/wfs/ww.php
I am trying it with all layers, and they all fail on that line.
Hi... yeah... I know what was wrong... I wasn't selecting the correct "geometryField". I do have a question, why do I need to provide the geometryField? Can it not be inferred when the DescribeFeatureType call is made? I am building an application that allows users to select layers from a WFS and add them to the map, I don't think they are going to know the name of the geometry field. Just a thought.
Hello. Oops you provided valid wfs url, but it responses with wrong headers and uDig not work with this. GML feature can contain many geometry fields for one record, but often it's is only one. May be we should add auto select geometry field option.
Thanks. I'm still on a bit of a learning curve when it comes to all this type of stuff. I appreciate your help.
On Fri, Feb 19, 2016 at 9:40 AM, kuzkok [email protected] wrote:
Hello. Oops you provided valid wfs url, but it responses with wrong headers and uDig not work with this. GML feature can contain many geometry fields for one record, but often it's is only one. May be we should add auto select geometry options.
— Reply to this email directly or view it on GitHub https://github.com/Flexberry/Leaflet-WFST/issues/24#issuecomment-186239762 .