Closed nmtoken closed 3 months ago
Yes, it's because you should set the MAPSERVER_BASE_PATH
to oga_one
.
Is it solving your issue?
I improve the documentation here: #781
So my global map file (/etc/mapserver.conf) has:
MAPS
oga_one "/etc/mapserver/apps/BGS_Bedrock_and_Superficial_Geology/1g.map"
oga_hov "/etc/mapserver/apps/hover/hover.map"
END
and
OGCAPI_HTML_TEMPLATE_DIRECTORY "/usr/local/share/mapserver/ogcapi/templates/html-bootstrap4/"
How do I set MAPSERVER_BASE_PATH ?
If I set it to oga_one
I assume it means that oga_hov
ogcapi won't work.
My error (nothing to do with MAPSERVER_BASE_PATH
)
I forgot to set oga_onlineresource
in MAP > WEB > METADATA
Fixed with
"oga_onlineresource" "/oga_one/ogcapi"
On my camptocamp docker, I've configured ogcapi. Home is
This displays an html page as expected
Information about feature collections available from this server
HTML page is displayed, but links are incorrect
links like:
If you correct to
http://172.29.64.117:591/oga_one/ogcapi/collections/GBR_BGS_625k_BA?f=html
i.e. remove the extracollections/
you get an HTML page but in that page the links are incorrect, so theItems for this collection as HTML
link becomeshttp://172.29.64.117:591/oga_one/ogcapi/collections/GBR_BGS_625k_BA/collections/GBR_BGS_625k_BA/items?
i.e. repeatscollections/GBR_BGS_625k_BA/
It appears that
{{ template.api_root }}
and{{ response.collection.id }}
are not being set correctly somehow.As way of expected behaviour I have a gisinternals MapServer 8.0.1 service with OGC API configured for the same data.:
Home
Information about feature collections available from this server
GBR BGS 1:625k Bedrock Age (feature collection)
Items for this collection as HTML
Am I misconfigured somehow, or is this an issue with the image