[Mapserver-users] trouble using postgis layer

Paul Ramsey pramsey at refractions.net
Thu Dec 12 11:42:17 EST 2002


I quick grep of the mapserver source indicates that getNumeric is used 
to read parameters sent into the cgi program. So the problem is likely 
not your mapfile, but how you are calling mapserver... my 2 second guess.

P.

Alessandro Ceccotti wrote:
> Hello listers!
> I'd finally managed to configure and correctly install postgis and
> mapserver.
> I've inserted the following postgis layer in mt .map file:
> 
> 	LAYER
> 	    CONNECTIONTYPE postgis
> 	    NAME "demo"
> 	    # Connect to a remote spatial database
> 	    CONNECTION "user=user dbname=db host=localhost"
> 	    # Get the lines from the 'the_geom' column of the 'mappe1' table
> 	    DATA "the_geom from mappe1"
> 	    STATUS ON
> 	    TYPE line
> 	    END
> 	END
> 
> when i run mapserver, it returns me an error message:
> 
> 		getNumeric(): Incorrect data type.
> 
> I dont know on what it depends...
> I've tried to change the TYPE definition into polygon, but the error
> persists...
> Any tips?
> thanks
> 

-- 
       __
      /
      | Paul Ramsey
      | Refractions Research
      | Email: pramsey at refractions.net
      | Phone: (250) 885-0632
      \_




More information about the mapserver-users mailing list