1

I am using geoserver WMS service to visualize some geometry on the map (via Leaflet) which is working fine. Now I have a requirement to perform the spatial operation (say intersects) between two geometries:

  1. coming via WMS service of GeoServer
  2. some client data geometry

The result has to be shown on the map.

What methodology should i use? Note: I cannot use WFS service for geometry(1).

  • An adaptation of github.com/aparshin/leaflet-boundary-canvas , most probably. – IvanSanchez Jun 24 at 12:17
  • 2
    WMS does not normally deliver geometries, just an image of geometries in a format like jpeg or png. Generally speaking you can't do what you want without using some odd workarounds like polygonizing the image from WMS on the client side. However, GeoServer WMS does support GetMap as some vector formats as well, at least KML and SVG so perhaps this would be your route. I apologize your professor if this was your homework. – user30184 Jun 24 at 13:11
  • @user30184 I'm still learning GIS so I have a question. It looks like some WMS services can return features in GeoJSON format, see: tigerweb.geo.census.gov/arcgis/services/TIGERweb/… – TomazicM Jun 24 at 19:14
  • You must read the <GetMap><Format> part. The above service can return GeoJSON for GetFeatureInfo request. That might be used as a tricky workaround for one feature at a time, depending on the actual contents of the result. Or perhaps you could utilize this feature of GeoServer docs.geoserver.org/stable/en/user/tutorials/cql/…. – user30184 Jun 24 at 20:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.