Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto select geometry field from WFS Feature Description #24

Open
ismail44 opened this issue Feb 18, 2016 · 4 comments
Open

Auto select geometry field from WFS Feature Description #24

ismail44 opened this issue Feb 18, 2016 · 4 comments

Comments

@ismail44
Copy link

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.

@kuzkok
Copy link
Member

kuzkok commented Feb 19, 2016

This is invalid WFS url. Try to use demo data from geoserver or mapserver

@ismail44
Copy link
Author

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.

@kuzkok
Copy link
Member

kuzkok commented Feb 19, 2016

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.

@kuzkok kuzkok reopened this Feb 19, 2016
@kuzkok kuzkok changed the title Cannot seem to use this with ANY WFS Server Auto select geometry field from WFS Feature Description Feb 19, 2016
@ismail44
Copy link
Author

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
#24 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants