[postgis-users] Displaying map through a mapserver with data from postgis

Fernão Lopes fernao at gmail.com
Mon Mar 7 11:48:29 PST 2005


Well, if you converted your shape file using shp2pgsql, there is a
custom row, called "the_geom", with the spatial data.

On the layer, try with:

  DATA "the_geom FROM county"


good luck!

Fernão


On Mon, 07 Mar 2005 19:40:20 +0000, Shaq Gbadebo <s_gbadebo at hotmail.com> wrote:
> Hello guys,
> 
> I'd like to first thank you guys for helping with my last problem.
> 
> I am trying to display a map with maqpserver, here is a copy of the mapfile.
> 
> MAP
>   IMAGETYPE PNG
>   EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514
>   SIZE 400 300
>   SHAPEPATH "/home/MapData"
>   IMAGECOLOR 0 0 255
> 
> # PROJECTION
>   #  "proj=laea"
>   #  "ellps=clrk66"
>   #  "lat_0=45"
>   #  "lon_0=-100"
>   #
>   # Alternatively, you can specify an EPSG code.
>   # "init=epsg:2163"
>   #
>   #END
> 
>   LAYER
>    CONNECTIONTYPE postgis
>    NAME "county"
>    CONNECTION "user=postgres password=postgres dbname=fyp
> host=localhost.localdomain port=5432"
> 
>    DATA "name FROM county"
>    STATUS ON
>    TYPE POLYGON
>    CLASS
>     COLOR 255 0 0
> 
>    END
>   END
> END
> 
> When I point the browser to this file, it displays the background but not
> the actual map, I would apprciate any kind of contribution.
> 
> THanks
> 
> Shaq
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



More information about the postgis-users mailing list