Problem with MapServer-WFS and MapStore

192 views
Skip to first unread message
Assigned to surendhar.d...@geosolutionsgroup.com by lorenzo...@geosolutionsgroup.com

Markus Vennebusch

unread,
Jan 10, 2023, 9:09:03 AM1/10/23
to mapstore-users
Dear mapstore-users,

I just started to become familiar with MapStore. One of my goals is to present data (single values and timeseries) from a WFS (provided by a self-hosted MapServer) in MapStore widgets.

As a first try, I set up a MapServer WFS service that provides some dummy data (originally from a GeoJSON file, see attachments). With QGIS I am able the get these dummy values in the "attribute table". To my understanding, this is the basis for visualisation with MapStore?

You can get more information using these links:
http://h2901511.stratoserver.net/cgi-bin/mapserv?map=/var/www/html/transfer/mapfile.map&service=WMS&version=1.0&request=
GetCapabilities

http://h2901511.stratoserver.net/cgi-bin/mapserv?map=/var/www/html/transfer/mapfile.map&service=WFS&version=1.0.0&request=DescribeFeatureType

http://h2901511.stratoserver.net/cgi-bin/mapserv?map=/var/www/html/transfer/mapfile.map&service=WFS&version=1.0.0&request=GetFeature&typename=temperature,waterlevel

(Version 2.0.0 is also possible)

"GetCapabilities" yields some warnings, especially on "Mandatory mapfile parameter ... MAP.PROJECTION ...". I tried to adjust the mapfile, but it didn't succeed. And when I try to add a new WFS service in MapStore (which shows the message "Service added correctly.") and press "Search", no content is found. I assume this is caused by wrong/bad MapServer settings?! Or is it related to MapStore?

Could you please give me some hints to find my mistakes? And: Is this the right approach to display data in widgets, at all?

Thanks a lot!!!
Markus
Question1.PNG
Question3.PNG
mapfile.map
test.geojson
Question2.PNG

Stefan Overkamp

unread,
Jan 10, 2023, 9:32:15 AM1/10/23
to mapstor...@googlegroups.com
Hi Markus,

using http://h2901511.stratoserver.net/cgi-bin/mapserv?map=/var/www/html/transfer/mapfile.map&service=WMS&version=1.0&request= GetCapabilities
as catalog URL I get the warning:

Dieser Katalog kann nicht zu den verfügbaren hinzugefügt werden, da er ein http-Protokoll verwendet. Bitte geben Sie eine Katalog-URL an, die das https-Protokoll verwendet.

I think you must use https and should add "https://h2901511.stratoserver.net"
in localConfig.js at proxyUrl - useCors

good luck

Stefan
--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapstore-users/8b2e803b-8647-4160-acb0-be790e92f898n%40googlegroups.com.


-- 
Dipl. Ing. Stefan Overkamp
over...@posteo.de
https://mapstore.geodaten-velbert.de

Markus Vennebusch

unread,
Jan 11, 2023, 2:20:31 PM1/11/23
to mapstore-users
Hallo Stefan,

thank you for the hint. Where can you get these detailed informations from?

So far, I don't have an SSL-certificate for my server, so "https://..." does not really make sense. Anyway, I added my server (with "http://...") to the "useCors" settings in "localConfig.js" and restarted mapstore. After adding a new WFS service, the message is "The service is not available. Please check the URL.".

Strangely, when I add "https://..." to "useCors" it says "Success", but still no search results from the new WFS server.

Do you have another idea? Tomorrow I will also try to obtain an SSL certificate from my provider...

Thanks,
Markus

Oleysys Socarras Sosa

unread,
Jan 13, 2023, 10:08:53 AM1/13/23
to mapstor...@googlegroups.com
How i can personalise mapstore2 like this. The menu, logo and info.



--
Regards,
Oleysys Socarras Sosa
Paramaribo - Suriname
M:(+597) 7202114

Capture.JPG

Lorenzo Natali

unread,
Jan 26, 2023, 4:48:35 AM1/26/23
to mapstore-users
Hi Oleysys,
can you please create a separated thread for your question?
We should keep separated discussions in different topics as much as possible.
Thank you. 
Lorenzo.

Lorenzo Natali

unread,
Jan 27, 2023, 1:07:00 PM1/27/23
to mapstore-users
Hi Markus,
During my investigation for opening an issue for the bug of WFS with your MapServer,
I noticed several issues that makes me think that the compatibility is not possible for WFS and mapserver at the moment (in particular the support of JSON format for some requests like describeFeatureType and getFeature).
We will investigate on the issue, but anyway I can suggest to use GeoServer if you want to work with WFS and MapStore, that for sure provide that formats. 

Markus Vennebusch

unread,
Jan 27, 2023, 3:13:28 PM1/27/23
to mapstor...@googlegroups.com
Hi Lorenzo,

I managed to configure my MapServer to work with an URL without ?map=...". 

But, as you already found out, there are new problems related to the output format. 

I try to find a solution, but I am also looking for yours...

Regards, 
Markus


You received this message because you are subscribed to a topic in the Google Groups "mapstore-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mapstore-users/QHHX3cB_6eU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mapstore-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapstore-users/98ce1724-d3e8-4f00-9db9-442f756bb2d5n%40googlegroups.com.

Surendhar Dharmalingam

unread,
Dec 13, 2023, 3:19:16 AM12/13/23
to mapstore-users
Hi Markus,

Do you still require any assistance on this ticket? Kindly let us know. Thanks!

Regards,
Suren

Reply all
Reply to author
Forward
0 new messages