Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guide to correctly configure WMS not too effective #104

Open
giorBol opened this issue Jul 18, 2024 · 0 comments
Open

Guide to correctly configure WMS not too effective #104

giorBol opened this issue Jul 18, 2024 · 0 comments

Comments

@giorBol
Copy link

giorBol commented Jul 18, 2024

Hi!
I've been trying unsuccessfully for the past 2 weeks to use this plugin to display some raster images via WMS request to our GeoServer instance.
Lets say i wish to show this single raster image (this request is for demo purposes of the layer):

https://geoserver.i-bec.org/geoserver/eiffel/wms?service=WMS&version=1.1.0&request=GetMap&layers=eiffel%3ABaresoil_2020&bbox=4998190.0%2C3501670.0%2C5387080.0%2C3802650.0&width=768&height=594&srs=EPSG%3A3035&styles=&format=application/openlayers

Based on the guide I've been trying to type the WMS request like so:
https://geoserver.i-bec.org/geoserver/wms#Baresoil_2020 or https://geoserver.i-bec.org/geoserver/wms#eiffel%3ABaresoil_2020
aswell as with the workspace in the request like: https://geoserver.i-bec.org/geoserver/eiffel/wms#Baresoil_2020
I have put wms on the format of the file and even if the default view is not set, i cannot select a view on the resource view list.

By viewing the network logs, the request is not even sent.

I do think that I'm being dumb, however it took me a while understand the flow of how the WMS request is even taken into account on the CKAN instance and I cannot understand the way the proxy 'cuts up' the request so I can input it in a correct format.

My configuration of the ckan.ini is like this:

ckan.plugins = activity resource_proxy spatial_metadata wmts_view spatial_query geo_view shp_view geojson_view
ckan.resource_proxy.timeout = 5
ckanext.geoview.ol_viewer.formats = wms kml wfs

ckanext.spatial.common_map.type = custom
ckanext.spatial.common_map.custom_url = https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
ckanext.spatial.common_map.attribution = &copy <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors
...
ckan.views.default_views = image_view datatables_view geojson_view shp_view geo_view

I believe the installation is successful as I have been able to visualize shp files in zip format with the default view, albeit VERY inefficiently to a not working degree if the file is of a larger size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant