[Chameleon] RV: virtual spatial data

Julien-Samuel Lacroix jlacroix at mapgears.com
Wed Feb 18 09:18:53 EST 2009


Hi,

Did you try to run the Chameleon mapfile with shp2img? That will give 
you a more helpful error message.

Julien

Alejandro Narvaez wrote:
> 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
> 
> 

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Chameleon mailing list