New answers tagged getfeatureinfo
never mind. I was fooled by the function declaration used in the example. Actually, it should be: def formOpen(dialog,layer,feature): ...omissis... geometry = feature.geometry() wktString = geometry.exportToWkt() That is: the function is receiving the ACTUAL object, not it's id. So I can access the geometry by direct function call.
This is an interesting question, and I wanted to investigate the issue. Firstly, with some brief experimentation, I saw that Geoserver does not return any data from the non-rendered region when you use the GetFeatureInfo request on the WMS service. To see if this is expected behavior, I checked the documentation for the GetFeatureInfo request. You can ...
After looong reading tutorials, examples I've did it. The examples shown above did'n helped too much. Anyway, I've founded something else, that explained very clear the procedure to GeatFeatureInfo. If someone wants the script, please let me know. Now I'm looking to enable filter in my script. For now, it's not working. I will read more about CQL ...
Wouldn't be easier to follow these examples? http://openlayers.org/dev/examples/getfeature-wfs.html http://openlayers.org/dev/examples/wfs-states.html So, when you get this working using your shapefile, just adapt the google basemap layers. When both will be together, probably some projection problems will appear, so check some related posts in ...
Try to change file extension from kml to xml
Top 50 recent answers are included