Skip to content

Guide to correctly configure WMS not too effective #104

Description

@giorBol

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions