I have a Geoserver which serves WMS layers. I have a requirement where I select a location which has latitude and longitude and corresponding to the latitude and longitude I have to fetch the value from WMS layer. I am not able to find a solution to this requirement. Any help is highly appreciated.
Get values from geospatial image
661 Views Asked by Yogendra At
1
There are 1 best solutions below
Related Questions in GEOSPATIAL
- Estimating distance between points and its relative elevation for multiple countries and geometries, using R sf
- Folium Timestampedgeojson - How to add dynamic html for the title of the map
- Convert lat,lon,data points to matrix (2D grid) at 0.5 degree resolution in Python
- Having trouble merging these two datasets for a Spatial Analysis
- How to extract vineyard land cover from CORINE in R?
- find point in inside polygon ..with mysql
- map distance in pixels to meters
- Efficiently Turn Matrix of Intersecting Routes Into Simplified Spatial Network (Graph)
- Oracle SDO_INTERSECTION returning null where an intersection exists in SRID 4326
- Plotting data on shapefile with the same CRS, but things are not lining up as I would expect
- get the band with the maximum value from a xarray stack
- Can spatial features be used as an input for a machine learning model?
- Make SpatRaster from sf point object
- Apache Sedona Version Issues
- MemoryError: Unable to allocate 19.1 GiB for an array with shape (52199, 49069) and data type int64
Related Questions in GEOSERVER
- How to remove piecemeal loading from WMS Geoserver and load the entire map using react-leaflet?
- MapStore "Layer has not been loaded correctly"
- Consume data from Geoserver preferably use WMS
- Geoserver OIDC Authentication Failure
- Geoserver Docker image GDAL library extension error
- graticule for wms layer in Geoserver 2.25 rc version
- Upgrading jetty for geoserver
- Geoserver: Images coming thourgh as White Transparent Tiles
- Dynamic SLD Name and Title using Geosever
- Geoserver : enable services for a specific workspace
- Understanding how Geoserver Plugin Zips are created
- API reference for geoserver
- How can I publish the layer in geoserver using swagger api?
- How to build working Geoserver docker image from source?
- Geoserver to PostGIS - line breaks working when inserting but not updating
Related Questions in WMS
- How to remove piecemeal loading from WMS Geoserver and load the entire map using react-leaflet?
- Consume data from Geoserver preferably use WMS
- GeoServer layers extent issue
- Can't add WMS layer to R Leaflet
- Geoserver : removeSchema never called when deleting featureType on a custom DataAccess class
- WMS with basic authentication
- Cannot display a geoserver WMS image using folium
- Can we add SLD parsers for WMS Capability?
- Geoserver WMS does not find a point with mixed geometry
- QGIS 3.22.16 URL does not want to open. Unable to Get Local Issuer Certificate
- GeoServer - Custom field for GetMap in WMS layer
- geotools gaussian projection data source for WMS
- Export properly a PNG from a WMS layer (BBOX issue). How does Openlayers recalculate the bbox?
- Open layers Export PDF function Issue, Printing Issue
- Geoserver - disable root layer for WMS service with multiple layers
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The WMS spec provides a
GetFeatureInforequest that allows you to query a point on the map, however it uses image coordinates rather than map coordinates (lat/lon). Provided that your image is reasonably small you should be able to get away with assuming a linear relationship between the two coordinate systems so by using the bounds of the map (which you know from the WMS request bbox param) and the size of the image (also part of the WMS request) you should be able to convert a lat/lon pair to an image coordinate (remember to flip the Y-axis though, as the image origin is top left).