[mapserver-users] C# connectiontype issue
Murty Maganti
MMaganti at oriongis.com
Mon Apr 27 13:50:00 PDT 2009
WMS layers also have type as 'Raster'. But I think I can still try
If(layer type == Raster && connection type != WMS), hoping only WMS and
true raster have type as 'Raster'.
Thanks
Murty
-----Original Message-----
From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us]
Sent: Monday, April 27, 2009 4:41 PM
To: mapserver-users at lists.osgeo.org; Murty Maganti
Subject: Re: [mapserver-users] C# connectiontype issue
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