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

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Tue Mar 2 07:25:54 PST 2021


Hi,

First thing that comes into my mind is that for some reason Mapserver may believe that the request is outside the area where you have data. I would double check the projections and extents.

-Jukka Rahkonen-

Lähettäjä: mapserver-users <mapserver-users-bounces at lists.osgeo.org> Puolesta Steve Lime
Lähetetty: tiistai 2. maaliskuuta 2021 17.06
Vastaanottaja: Nathan L <nathan.tyler.lowry at gmail.com>
Kopio: Mapserver <mapserver-users at lists.osgeo.org>
Aihe: Re: [mapserver-users] Fwd: MapServer PostGIS: WMS Layers Without Features

What are you using to view the WMS service? What do you get if you take WMS configuration out of the equation and just do a call like so:

  http://localhost/cgi-bin/mapserv.exe?map=[your<http://localhost/cgi-bin/mapserv.exe?map=%5byour> mapfile]&mode=map&layers=all

That should get you an image with all the features in all the layers for your default extent.

--Steve

On Mon, Mar 1, 2021 at 1:05 PM Nathan L <nathan.tyler.lowry at gmail.com<mailto:nathan.tyler.lowry at gmail.com>> wrote:

---------- Forwarded message --------- From: Nathan L nathan.tyler.lowry at gmail.com<mailto:nathan.tyler.lowry at gmail.com> Date: Tue, Feb 23, 2021 at 1:04 PM Subject: MapServer PostGIS: WMS Layers Without Features To: GISCO ListServ List at giscolorado.org<mailto:List at giscolorado.org>

Hi, ya'll! I'm in need of some help.

I've prepared an instance of PostGIS and MapServer on the same machine. I have loaded data into PostGIS and can view these features successfully in thick clients (ArcGIS Pro, QGIS).

My MapServer appears to be creating a successful WMS service with two layers. However, these two layers, called from PostGIS, are empty of any features. The same two layers were the features successfully confirmed to be in the PostGIS database, above. Nevertheless, my WMS layers from MapServer show up empty.

What am I missing?

My Mapfile: https://pastebin.com/tRTJKTxA

My ms_error.txt: https://pastebin.com/daJJMEkJ

My PostgreSQL log file: https://pastebin.com/EN2LzheE

My WMS Returns: https://pastebin.com/NR0W0Pg7

Nathan Tyler Lowry

Comprehensive GIS Solutions

(719) 208-7092 Desk

(719) 963-3571 Cell

(719) 960-2084 Fax

Nathan.Tyler.Lowry at gmail.com<mailto:Nathan.Tyler.Lowry at gmail.com>
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210302/d0d305e2/attachment.html>


More information about the mapserver-users mailing list