mapfile of connection to postgis .........

Eduardo Arévalo earevaloch at GMAIL.COM
Thu May 11 10:45:17 PDT 2006


Hi list
I must mapserver v 4.8.3 and one bases postgres v 8 with postgis 1.0.6 on
Centos 4.3
mapfile of connection is:

MAP
  IMAGETYPE      PNG
  SIZE           400 300
  IMAGECOLOR     255 255 255

  LAYER
    NAME         Peru_dep
    CONNECTIONTYPE      postgis
    CONNECTION  "user=postgres dbname=sighco host=localhost password=123456
port=5432"
    DATA         "the_geom from departamentos_tp_perud2002"
    STATUS       ON
    TYPE         POLYGON
    END

     #CLASS
        NAME       "Departamentos del Perú"
      #STYLE
       # COLOR        232 232 232
        #OUTLINECOLOR 32 32 32
      END
    END
  END
END
in order to invoke it:
http://10.1.6.46/cgi-bin/mapserv?map=/home/earevalo/mapserver-4.8.3/tests/conect.map&layer=Peru_dep&mode=map

the errors are:
msDrawMap(): Image handling error. Unable to initialize image.
msCalculateScale(): General error message. Invalid image extent, minx=-
1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000.
msCalculateScale(): General error message. Invalid image extent, minx=-
1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000.
mapserv(): Web application error. No way to generate map extent.
aid please
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060511/af6c4591/attachment.htm>


More information about the MapServer-users mailing list