AW: [OpenLayers-Users] Infoformat WMSGetFeatureInfo problem
withArcGIS Server WMS [solved]
Morper-Busch, Lucia
Lucia.Morper-Busch at sbg.ac.at
Wed Dec 7 06:48:38 EST 2011
ArcGIS server WMS visualizing and querying with Openlayers application:
For all that are interested in my solution:
- ArcGIS server WMS layer added as Openlayers.layer.WMS to the map (map.projection EPSG:3857).
- GetFeatureInfo control with infoformat= application/vdn.ogc.gml
There are returned features with attributes:
js syntax=features[0]['attributes'], not like features[0].attributes (works only for Geoserver WMS)
The layer name is not contained, there is no features[0].fid (e.g. "myLayer.1"), there is no features[0].geometry.
By the way: the reason why I don't like using infoformat=text/html:
There are style information from the WMS providing server, that override my own css style for tables. With GML I can filter the returned attributes, read the values, write my own field titles etc. independent from the remote server customizations.
Best regards
Lucia
Dipl.-Geogr. Lucia Morper-Busch | Researcher
University of Salzburg | Centre for Geoinformatics - Z_GIS
Schillerstr.30 | Techno-Z, Block 15, 3rd floor, Room 320 | 5020 Salzburg, Austria
Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260
> Z_GIS...experts for the spatial view
-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Morper-Busch, Lucia
Gesendet: Dienstag, 06. Dezember 2011 15:02
An: users at openlayers.org
Betreff: AW: [OpenLayers-Users] Infoformat WMSGetFeatureInfo problem withArcGISServer WMS
Hello,
now I was able to localize the problem. When I use InfoFormat='text/html', the WMSgetFeatureRequest gives me a nice html table back (style from ArcGIS). But I want to use InfoFormat='application/vnd.ogc.gml' to read the attributes from the response in order to compose my own output. In addition the text/html-Format is overriding my CSS styles.
Question: How can I use WMSgetFeatureInfo with InfoFormat='application/vnd.ogc.gml' querying ArcGIS Server WMS in a Openlayers application?
Thank you
Lucia
Dipl.-Geogr. Lucia Morper-Busch | Researcher
University of Salzburg | Centre for Geoinformatics - Z_GIS
Schillerstr.30 | Techno-Z, Block 15, 3rd floor, Room 320 | 5020 Salzburg, Austria
Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260
> Z_GIS...experts for the spatial view
-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Morper-Busch, Lucia
Gesendet: Montag, 05. Dezember 2011 10:43
An: users at openlayers.org
Betreff: [OpenLayers-Users] Openlayers WMSGetFeatureInfo problem with ArcGISServer WMS
Hello,
has anybody experiences with integrating WMS layers provided by an
ArcGIS Server MapServer into a Openlayers map application?
I managed it to visualize the layer but I get no response from the
WMSgetFeatureInfo request.
With GeoServer WMS from remote Servers there is no problem (using a
proxy).
Thank you
Lucia
Dipl.-Geogr. Lucia Morper-Busch | Researcher
University of Salzburg | Centre for Geoinformatics - Z_GIS
Schillerstr.30 | Techno-Z, Block 15, 3rd floor, Room 320 | 5020
Salzburg, Austria
Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260
> Z_GIS...experts for the spatial view
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
More information about the Users
mailing list