[Gfoss] R: Re: Errori Pmapper

Paolo Corti pcorti a gmail.com
Mer 2 Feb 2011 10:47:54 CET


> l'errore รจ questo.
> Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection in
> layer `GEO'. Failed to read GeoJSON data in C:
> \ms4w\apps\pmapper411\incphp\initgroups.php on line 312

Ciao

MapServer usa GDAL (in particolare OGR) per leggere alcuni formati tra
cui GeoRSS.
Come c'e' anche scritto sulla documentazione di GDAL per il driver GeoRSS [0]:
"OGR has support for GeoRSS reading and writing. Read support is only
available if GDAL is built with expat library support"

Prima di provare a leggerlo da MapServer prova a fare il seguente
test: usa l'utility ogrinfo per leggere il tuo file (o il tuo stream
http) e vedi se ti restituisce questo output:

$ ogrinfo input.xml
ERROR 6: OGR/GeoRSS driver has not been built with read support. Expat
library required
FAILURE:
Unable to open datasource `input.xml' with the following drivers.

In questo caso il tuo GDAL non e' stato compilato con la library Expat
sul sistema, e pertanto come dice il messaggio di errore, non e'
supportato in lettura. Installa la library e ricompila GDAL, a quel
punto ogrinfo dovrebbe funzionare e anche da MapServer non dovresti
avere piu problemi

ciao
P

[0] http://www.gdal.org/ogr/drv_georss.html

-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @paolo_corti


Maggiori informazioni sulla lista Gfoss