Opened 18 years ago

Last modified 17 years ago

#1839 closed defect

php-mapscript, OGR, and GRASS — at Initial Version

Reported by: cavallini@… Owned by: mapserverbugs
Priority: high Milestone:
Component: MapScript-PHP Version: 4.8
Severity: normal Keywords:
Cc:

Description

When we try to use (via OGR) a grass vector, we get an error:

[Wed Jul 19 09:57:08 2006] [error] [client 192.168.0.110] PHP Warning:
[MapServer Error]: msDrawMap(): Failed to draw layer named
'grass_POSTGRES'.\n in /home/Documenti/pub/prove_w/visuo_map_file.php on
line 6
[Wed Jul 19 09:57:08 2006] [error] [client 192.168.0.110] PHP Warning:
[MapServer Error]: msOGRLayerInitItemInfo(): Invalid Field name:
atc_num\n in /home/Documenti/pub/prove_w/visuo_map_file.php on line 6
[Wed Jul 19 09:57:08 2006] [error] [client 192.168.0.110] PHP Fatal
error:  Call to a member function on a non-object in
/home/Documenti/pub/prove_w/visuo_map_file.php on line 8

Apparently mapscript adds a \n to the name of the database field, and
postgres does not accept it.
shp2img and mapserv can generate the map without problems.
This happens with php4-mapscript 4.8.3-2 and libgdal1-1.3.1-grass from
Debian etch.

Change History (0)

Note: See TracTickets for help on using tickets.