[Chameleon] RV: virtual spatial data

Alejandro Narvaez anarvaez at fcrecovery.com.ar
Wed Feb 18 08:13:26 EST 2009


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


More information about the Chameleon mailing list