problem with postgis layer

Paul Spencer pagameba at MAGMA.CA
Thu Sep 2 09:36:52 EDT 2004


try

DATA "the_geom from h887_c"

Cheers,

Paul

Alberto Cavalli wrote:

> Hi dear I've a problem, I'm using mapserver but, when I try to see my page,
> I can't see anithyng. I've putted all my shape in postgresql through
> postgis.
> This is the layer definition in my map file
>
> LAYER
>     NAME "Confine"
>     STATUS DEFAULT
>     DATA "the_geom FROM h887_c"
>     TYPE POLYGON
>     CONNECTIONTYPE POSTGIS
>     CONNECTION "user=postgres PASSWORD=admin dbname=template1 host=localhost
> port=5432"
>     UNITS METERS
>     SIZEUNITS PIXELS
>     TOLERANCE 0
>     TOLERANCEUNITS PIXELS
>     TRANSPARENCY 25
>     CLASS
>       NAME "confini"
>       #TEMPLATE "false_query.html"
>       STYLE
>         COLOR 255 204 153
>       END
>     END
>   END
>
> I'm working on
> apache 2.0.46
> php 4.3.3
> mapserver 4.0
> win 2000 professional
>  bye
> alberto
>

--
  -----------------------------------------------------------------
|Paul Spencer                           pspencer at dmsolutions.ca   |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------



More information about the mapserver-users mailing list