[mapserver-users] postgres layer not visible

Jeff McKenna jmckenna at gatewaygeomatics.com
Mon Jan 19 05:05:15 PST 2015


On 2015-01-19 5:26 AM, Maiorano Pasquale wrote:

>
> WITH (
>
> OIDS=FALSE
>

This is your mistake.  When creating tables in Postgres for use with 
MapServer/GDAL, I always always create with OIDS.  (this can be set as 
the default in your postgresql.conf file as well)

Please generate a new table with OIDS, and then use that generated ID 
field in your data statement for MapServer or GDAL.

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/







More information about the mapserver-users mailing list