[Chameleon] virtual spatial data
Jeff McKenna
jmckenna at gatewaygeomatics.com
Tue Feb 17 12:00:36 EST 2009
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/
More information about the Chameleon
mailing list