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

WFS Permalink not working #1781

Closed
marionb opened this issue Sep 1, 2016 · 2 comments · Fixed by #1808
Closed

WFS Permalink not working #1781

marionb opened this issue Sep 1, 2016 · 2 comments · Fixed by #1808
Assignees
Milestone

Comments

@marionb
Copy link
Member

marionb commented Sep 1, 2016

Accessing WFS Permalinks as described in the spec https://github.com/camptocamp/c2cgeoportal/wiki/Spec-%231670-WFS-Permalink does not work.

An example used for testing (cinema in Interlaken):
https://geomapfish-demo.camptocamp.net/2.1/theme/OSM?wfs_layer=cinema&wfs_osm_id=213230419

Tested link: http://camptocamp.github.io/ngeo/master/examples/contribs/gmf/apps/desktop?wfs_layer=fuel&wfs_osm_id=5702030

@sbrunner sbrunner added the Ready label Sep 1, 2016
@sbrunner sbrunner added this to the 2.1 milestone Sep 1, 2016
@sbrunner sbrunner assigned tsauerwein and adube and unassigned tsauerwein Sep 5, 2016
@adube
Copy link
Contributor

adube commented Sep 6, 2016

(Note to self) I tried it in the apps and I got errors like:

AssertionError: Assertion failed: url is not set. to use the wfs permalink service,
set the value ngeoWfsPermalinkOptions

This might be the culprit.

@adube
Copy link
Contributor

adube commented Sep 6, 2016

I was partially right. The missing url is one of the culprits. In reality, we're missing the whole configuration in the applications. If I look at the example, this is the configuration used:

app.module.value('ngeoWfsPermalinkOptions',
    /** @type {ngeox.WfsPermalinkOptions} */ ({
      url: 'https://geomapfish-demo.camptocamp.net/2.1/wsgi/mapserv_proxy',
      wfsTypes: [
        {featureType: 'fuel', label: 'display_name'},
        {featureType: 'osm_scale', label: 'display_name'}
      ],
      defaultFeatureNS: 'http://mapserver.gis.umn.edu/mapserver',
      defaultFeaturePrefix: 'feature'
    }));

I suppose the url, defaultFeatureNS and defaultFeaturePrefix are okay to use 'as-is' in the applications, but what about the wfsTypes?`

@sbrunner: I'll create a PR where the list of wfsTypes is the same as the example. If you want to have more defined, then please let me know what needs to be added.

adube added a commit to adube/ngeo that referenced this issue Sep 6, 2016
adube added a commit to adube/ngeo that referenced this issue Sep 7, 2016
adube added a commit to adube/ngeo that referenced this issue Sep 7, 2016
sbrunner added a commit that referenced this issue Sep 8, 2016
Fix #1781 - Configure WFS permalink in gmf apps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants