Re: [mapserver-users] SUM: MapServer PostGIS: WMS Layers Without Features

2021-06-03 Thread Rahkonen Jukka (MML) via mapserver-users
Hi,

All Mapserver admins do that error every now and then.

There is a configuration option in the QGIS WMS Connection editor “Ignore 
GetMap/GetTile/GetLegendGraphic URI reported in capabilities” that helps to 
access many misconfigured WMS servers. If you check that box the same base URL 
that is used for GetCapabilities is used also for other requests. Other clients 
may have similar configuration option, at least OpenJUMP does.

-Jukka Rahkonen-

Lähettäjä: mapserver-users  Puolesta 
Nathan L via mapserver-users
Lähetetty: torstai 3. kesäkuuta 2021 19.15
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] SUM: MapServer PostGIS: WMS Layers Without Features

Earlier, I asked why my MapServer PostGIS implementation was producing a WMS 
service without any layers in it. The original question in detail is at the 
bottom of this summary.

The responses here and in other forums were quite helpful. It narrowed down the 
problem to about ten areas, which I dutifully examined as a checklist. Richard 
Greenwood's earliest suggestions happened to be the most helpful. He suggested 
to look at the Apache logs to see what requests QGIS or ArcGIS was sending to 
MapServer. I'm glad I did - they kept redirecting in the URL to a "wms.map" 
file at the root directory that didn't exist.

I then looked at my mapfile and lo and behold, I was the one redirecting it! I 
had taken example code from the Setup a Mapfile For Your 
WMS 
documentation and hadn't customized it to my implementation. The example code 
wasn't annotated so I didn't realize it included an example that required 
revision.

It was in the WMS Metadata of the mapfile, where:
"wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=wms.map&?;

I changed it to point to the actual mapfile location:
"wms_onlineresource" 
"http://localhost/cgi-bin/mapserv.exe?map=%2Fms4w%2Fapps%2Fsegis-demo%2Fmap-segis-demo.map&?;

Ironic as it was a line in the mapfile that redirected the run of the program 
away from itself. I'm so very grateful for the responses I received to help me 
solve my (self-inflicted, as many are...) problem.

Nathan Tyler Lowry
Comprehensive GIS Solutions
(719) 208-7092 Desk
(719) 963-3571 Cell
(719) 960-2084 Fax
nathan.tyler.lo...@gmail.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Styling a WFS ? or not ?

2021-05-31 Thread Rahkonen Jukka (MML) via mapserver-users
Hi,

Mapserver can serve a layers through different services. STYLE is not for WFS 
but it can be used in =map or in the WMS service.

Similarly Geoserver can deliver GML data 
http://demo.geo-solutions.it/geoserver/topp/ows?service=WFS=1.0.0=GetFeature=topp:states=50

or the same data as styled through WMS

http://demo.geo-solutions.it/geoserver/topp/wms?service=WMS=1.1.0=GetMap=topp:states==-124.7314220001,24.955967,-66.969849,49.371735=768=330=EPSG:4326=application/openlayers

-Jukka Rahkonen-


Lähettäjä: mapserver-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 Puolesta mathias cunault via mapserver-users
Lähetetty: maanantai 31. toukokuuta 2021 13.21
Vastaanottaja: 
mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] Styling a WFS ? or not ?

Hello,
It seems that styling a WFS is nonsense according to what I found on the net 
(?). And I couldn't do it until now. But in Mapserver doc there is an example 
with a WFS and a style https://www.mapserver.org/ogc/wfs_server.html.
So I am a bit confused : is there a way to stylize a WFS layer or I 
misunderstand the doc ?
Thanks

--
--
Mathias Cunault
référent SIG / Admin Caviar
Inrap Tours - 148 av. Maginot
37000 TOURS
06 32 05 98 96
mathias.cuna...@inrap.fr
www.inrap.fr
abonnez-vous à la lettre d'information de l'Inrap : 
http://www.inrap.fr/newsletter.php
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Basemap as merged and separate layers

2020-12-11 Thread Rahkonen Jukka (MML) via mapserver-users
Hi,

I believe (hope) that it is possible, perhaps by leaving the  names of the 
layers in the group empty, or with wms_enable_request metadata. Some links 
which seem relevant:

https://mapserver.gis.umn.edu/development/rfc/ms-rfc-67.html
https://github.com/mapserver/mapserver/issues/5404
https://github.com/MapServer/MapServer/pull/5533

-Jukka Rahkonen-

Lähettäjä: mapserver-users 
mailto:mapserver-users-boun...@lists.osgeo.org>>
 Puolesta Yves Jacolin via mapserver-users
Lähetetty: perjantai 11. joulukuuta 2020 17.07
Vastaanottaja: Jesper Kempe 
mailto:jesper.ke...@gmail.com>>
Kopio: Mapserver 
mailto:mapserver-users@lists.osgeo.org>>
Aihe: Re: [mapserver-users] Basemap as merged and separate layers

Hello,

I think some part of your need can be done in MapServer, look at the 
wms_layer_group layer metadata in 
https://www.mapserver.org/ogc/wms_server.html. but all LAYERs will be always 
shown in MapServer.

Y.

Le ven. 11 déc. 2020 à 15:55, Jesper Kempe via mapserver-users 
mailto:mapserver-users@lists.osgeo.org>> a 
écrit :
Hi

I have a basemap in Mapserver 7.4.3 presented as a WMS-layer.

As many maps it consists of landusage, roads, label and so on.
Each of these "layers" or parts of the map consist of many  in the 
mapfile for different scales.
For example land0, land1 and roads0, roads1 and so on. Much like 
https://mapserver.org/basemaps/index.html

Currently all layers are part of "GROUP default" and map renders correctly when 
asking for LAYERS=default.

Unfortunately all layers (land0,land1,roads0,road1...) are also show in the 
Capability.

What I would like have is instead a response in the capability where there are 
layers for "the main map" and also a grouped layer for all "zoom layers" i.e. 
roads0,roads1 combined to a roads layer.
For example the layers default, land and roads should be the only layers 
visible in the Capability and possible to render in a GetMap-request.
A GetMap request for LAYERS=roads should show all the separate roads* layers 
only.

Can this be done in Mapserver?

Thanks,
Jesper


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


--
Yves Jacolin
Training and support manager - Team Manager
Camptocamp

Tel (France) : +33 4 58 48 20 43
Tel (Switzerland) : +41 21 619 10 43
Mob. : +33 6 18 75 42 21

email : yves.jaco...@camptocamp.com
http://www.camptocamp.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users