[mapserver-users] C# connectiontype issue

Steve Lime Steve.Lime at dnr.state.mn.us
Mon Apr 27 16:40:30 EDT 2009


Nothing wrong with the layer def. Why not just look at the layer type first in your application. Rasters will 
always have TYPE RASTER. Everything else, is vector I'm pretty sure.

Steve

>>> On 4/27/2009 at 2:41 PM, in message
<B7B039D0A59B9B42A821BB623FE47E1C01AF20B4 at VMEXC01.oriongis.com>, "Murty
Maganti" <MMaganti at oriongis.com> wrote:
> Hi
> 
>  
> 
> I have a raster layer in map file. When I load the map file using C# map
> script, at run time it shows layerObj.connectiontype as
> 'MS_CONNECTION_TYPE.MS_SHAPEFILE' though it is raster image. Is there
> any syntax error with my map file definition.  I need to know exactly
> whether it is a raster or vector layer in my application. Some logic in
> my application needs to handle them differently.
> 
>  
> 
> This is the entry in map file
> 
>  
> 
>   LAYER
> 
>     DATA "14m_jpg_24bit.jpg"
> 
>     NAME " 14m Jpg 24bit"
> 
>     STATUS ON
> 
>     TYPE RASTER
> 
>     UNITS METERS
> 
>   END
> 
>  
> 
> Thanks
> 
> Murty



More information about the mapserver-users mailing list