AnsweredAssumed Answered

adding WFS server to javascript map & arcmap

Question asked by detroit on Feb 23, 2016
Latest reply on Nov 15, 2016 by mansimittal

Hello ladies and gents

I've created a test app where i try to add certain WFS services to the map.

From here:

https://www.gaia-gis.it/fossil/libspatialite/wiki?name=WFS

and Katalog | data.gv.at

 

the code is pretty straight forward

 

var opts = {

                //"url": "http://data.wien.gv.at/daten/geo",

                "url": "http://mrdata.usgs.gov/services/mrds",

                "version": "1.3.0",

                //"nsLayerName": "http://mrdata.usgs.gov/services/mrds|mrds-low",

                "wkid": 4326,

                "mode": "SNAPSHOT",

                "maxFeatures": 10000,

                "showDetails": true,

                "infoTemplate": new InfoTemplate()

            };

 

  var layer = new WFSLayer(opts);

            layer.getCapabilities(lang.hitch(this, function (WFSLayers) {

                debugger

            }));

this.map.addLayer(layer);

 

 

The layers are not rendered, and the only issue i see here is that the WKID's of the services are different than the one of the map.

Map has 3857 while the services have  31256 and 4326. Is this preventing the features from being rendered on the map?

 

Any information regarding these issues will be great. Big thanks

 

 

p.s. this works in arcmap via GIS servers connection

Outcomes