[mapserver-users] local shapefile not rendering

Andy Colson andy at squeakycode.net
Mon Aug 2 11:37:15 EDT 2010


On 8/2/2010 10:30 AM, geo3d wrote:
>
> Looking for some insight to further troubleshoot my problem;
>
> pulling my parcels shapefile locally does not render my shapefile:
>
> Mapfile
> DATA 'parcels'
> Projection
> init=epsg:2240
> END
>
> However, pulling the data directly from postgresql does render; with the
> same projection used
> NAME 'Parcels'
>      TYPE POLYGON
>      CONNECTIONTYPE postgis
>      CONNECTION "dbname='********' host=***** port=5432 user='***'
> password='***' sslmode=prefer"
>      DATA 'the_geom FROM "parcels" using unique gid using srid=2240'
>
> Can anyone suggest any ideas?
> Thanks
>

Your example is a little small, so its hard to tell.  My first guess is 
SHAPEPATH is not set.

The mapfile should be like:

MAP
   SHAPEPATH '/data/maps/...'
   LAYER
      NAME 'Parcels'
      TYPE POLYGON

-Andy




More information about the mapserver-users mailing list