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ä: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Puolesta S.Reena
> Lähetetty: 29. heinäkuuta 2008 9:44
> Vastaanottaja: [email protected]
> 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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to