[GRASS-user] ogr-grass

Paolo Cavallini cavallini at FAUNALIA.IT
Tue Jul 4 03:27:17 PDT 2006


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

Our conclusions:
- - ogr-grass (ogrinfo, ogr2ogr) works
- - mapserver cannot access grass data (either LABELITEM or EXPRESSION)
when stored in postgresql
We would appreciate any hint.
All the best.
pc

Paolo Cavallini wrote:

> 
> Maybe related to this, mapserver cannot connect to the DB; grass layers
> are loaded and shown, but if we try connecting to PostgreSQL (e.g.
> LABELITEM, EXPRESSION...) we get an errore:
> 
> [Mon Jul 03 18:15:45 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
> [Mon Jul 03 18:15:45 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
> [Mon Jul 03 18:15:45 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
> 
> The mapfile is like:
> 
> LAYER
>   NAME "grass_POSTGRES"
>   TYPE POLYGON
>   CONNECTIONTYPE OGR
> 
> CONNECTION
> "/home/Documenti/datigrass/Toscana/PERMANENT/vector/t_comuni_2003/head"
>   DATA "1"
>   STATUS ON
>   LABELITEM "atc_num"
> 
>   CLASS
>     NAME "Ne so veramente troppe"
> #     EXPRESSION ([atc_num]=13)
>     STYLE
>       COLOR 0 240 0
>       OUTLINECOLOR 0 100 0
>     END
>     LABEL
>         COLOR 200 0 0
>         BUFFER 2
>       END
>   END
> END
- --
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

iD8DBQFEqkKF/NedwLUzIr4RArs5AKCzKxZPD5LIBoAzF8Vz2tFWPiPA3gCfRVTf
l6+mDudIRf2bUPzrfHCq/FY=
=T3Y7
-----END PGP SIGNATURE-----



More information about the MapServer-users mailing list