[Mapserver-users] trouble using postgis layer

Steve Lime steve.lime at dnr.state.mn.us
Thu Dec 12 08:57:03 PST 2002


Paul is right. MapServer applies a regular expression pattern for a
number to
all numeric input and gives this error if the test fails. Use get
instead of post
and look at the submitted values closely to see where the error might
be.

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Paul Ramsey <pramsey at refractions.net> 12/12/02 10:42AM >>>
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
      \_

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu 
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list