[Chameleon] RV: virtual spatial data
Alejandro Narvaez
anarvaez at fcrecovery.com.ar
Wed Feb 18 09:02:24 EST 2009
More information about this
I test ovf file with ogrinfo and it is OK like with shp2img, but when I insert this url into Internet Explorer: http://127.0.0.1/fcgi-bin/mapserv.exe/?mode=map&map=map.map&LAYERS=Compress
I receive this message:
writeLog(): Unable to access file. /tmp/gmap.log msDrawMap(): Image handling error. Failed to draw layer named 'Compress'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `Compress'. Unable to initialize ODBC connection to DSN for @access.
Any idea,
Thanks
Alejandro
-----Mensaje original-----
De: chameleon-bounces at lists.maptools.org [mailto:chameleon-bounces at lists.maptools.org] En nombre de Alejandro Narvaez
Enviado el: Miércoles, 18 de Febrero de 2009 11:13
Para: chameleon at lists.maptools.org
Asunto: [Chameleon] RV: virtual spatial data
When I introduce this layer into the mapfile the Chameleon application
send this message:
Error rendering map image:
A fatal error occurred drawing the map
-----Mensaje original-----
De: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] En nombre de Jeff McKenna
Enviado el: Martes, 17 de Febrero de 2009 15:01
Para: chameleon at lists.maptools.org
Asunto: Re: [Chameleon] virtual spatial data
Alejandro Narvaez wrote:
> Hello list
>
>
>
> I need some help with de Virtual Spatial Data
>
>
>
> I have this ovf and mapfile definition:
>
>
>
>
>
> <OGRVRTDataSource>
>
> <OGRVRTLayer name=xy>
>
> <SrcDataSource>ODBC:@access</SrcDataSource>
>
> <SrcSQL>SELECT * FROM XY</SrcSQL>
>
> <GeometryField encoding='PointFromColumns' x='Long' y='Lat'/>
>
> <GeometryType>wkbPoint</GeometryType>
>
> <LayerSRS>WGS84</LayerSRS>
>
> </OGRVRTLayer>
>
> </OGRVRTDataSource>
>
>
>
> LAYER
>
> CONNECTIONTYPE OGR
>
> CONNECTION "compress.ovf"
>
> DATA xy
>
> METADATA
>
> "wms_srs" "4326"
>
> "wms_title" "Compress"
>
> END
>
> NAME "Compress"
>
> PROJECTION
>
> "init=epsg:4326"
>
> END
>
> SIZEUNITS PIXELS
>
> STATUS ON
>
> TOLERANCE 0
>
> TOLERANCEUNITS PIXELS
>
> TYPE POINT
>
> DUMP FALSE
>
> UNITS METERS
>
> CLASS
>
> NAME "Compress"
>
> STYLE
>
> COLOR 255 0 0
>
> MAXSIZE 100
>
> MINSIZE 1
>
> SIZE 6
>
> SYMBOL "star"
>
> END
>
> END
>
> END
>
>
>
> With this configuration the ogr test work, and is generated the image
> with shp2img . But it doesn't work when I call it from my chameleon
> application.
>
Since your mapfile works with shp2img, your map should load in whatever
MapServer-application environment you use. Maybe you should explain in
detail what "doesn't work when I call it from my chameleon application"
means.
-jeff
--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/
_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon
_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon
More information about the Chameleon
mailing list