[MAPSERVER-USERS] Display of polygon in map

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue Jul 29 03:08:35 EDT 2008


Hi,

Guessing will not help you, you need to know what is the unique field in your table that should be used in DATA. What is your table structure like? You can see it from Postgres by using a comman \d <your_table_name>, or with pgAdmin utility.
 
-Jukka Rahkonen-

> -----Alkuperäinen viesti-----
> Lähettäjä: mapserver-users-bounces at lists.osgeo.org 
> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta S.Reena
> Lähetetty: 29. heinäkuuta 2008 9:44
> Vastaanottaja: mapserver-users at lists.osgeo.org
> Aihe: Re: [MAPSERVER-USERS] Display of polygon in map
> 
> 
> here it is..I have tried using gid ,srid etc..n its still not 
> working :(
> 
> LAYER
>         NAME gps_polygon
>         STATUS on
>         TYPE polygon
>         CONNECTIONTYPE POSTGIS
>         CONNECTION "host=localhost dbname=gps_data  user=abc 
> password=xyz port=5432"
>         DATA "newgeom FROM gps_polygon USING UNIQUE gid"
> 
>         LABELCACHE on
>         #LABELITEM 'name'
>         HEADER       'templates/header.html'
>         FOOTER       'templates/footer.html'
>         TOLERANCE    3
>         STYLE
>         #COLOR 212 192 100
>         # OUTLINECOLOR 200 100 200 
>         OUTLINECOLOR 0 0 255 
>         END
>         LABEL
>         	COLOR 255 0 0
> 	POSITION ul
>         	SIZE large
> 	
>         END # label
>         END # class
> END # layer
> 
> 
> 
> 
> pag66 wrote:
> > 
> > Hi friend post the connection that you're using maybe it a problem 
> > with the select statement, try "the_geom from table using 
> unique gid" 
> > if you have and gid field
> > 
> > 
> 
> --
> View this message in context: 
> http://www.nabble.com/Display-of-polygon-in-map-tp18674352p187
06384.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 


More information about the mapserver-users mailing list