mapscript bug?

Paolo Cavallini cavallini at FAUNALIA.IT
Wed Jul 19 04:51:25 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.
We may have hit a bug in php-mapscript. 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.
Should we file a bug against this?
All the best.
pc
- --
Paolo Cavallini
email+jabber: cavallini at faunalia.it
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy   Tel: (+39)348-3801953
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEvfKM/NedwLUzIr4RArsXAJ9CRuKU9qyS990pCgnojMJH2Z3ysQCgikmC
5xod4LcsLsdWbdOGbnCljJE=
=pqXB
-----END PGP SIGNATURE-----



More information about the mapserver-users mailing list