[mapserver-users] C# connectiontype issue

Venkat Rao Tammineni vtammineni at roulacglobal.com
Mon Apr 27 21:21:36 PDT 2009


Hi,

 

  I am using below map file code for loading raster data. below is my code.
I think the problem with jpeg.convert into tiff or geo tiff etc.. it may
work.

 

###### Heat Maps #######

Layer # Layer starts here

  Name "Hyderabad"

  GROUP "Heat Maps"

  Data "..\Raster\hyderabad.tif"

  PROCESSING "SCALE=1,15399.12305" // these are optional you need not use 

  PROCESSING "SCALE_BUCKETS=10" // these are optional you need not use 

 

  CLASSITEM "[pixel]"

 

  TYPE RASTER

  Status On

   

 CLASS

       Name "Class One"

       EXPRESSION ([pixel] > 1  AND  [pixel] <  5133.041016)

    STYLE

      COLOR  255 255 0

    END

  END

 

   CLASS

      Name "Class Two"

      EXPRESSION ([pixel] > 5133.041017    AND  [pixel] < 10266.08203)

    STYLE

      COLOR  0 166 255

    END

  END

 

   CLASS

      Name "Class Three"

      EXPRESSION ([pixel] > 10266.08204   AND  [pixel] < 15399.12305 )

    STYLE

      COLOR  255 0 0

    END

  END

  

   

End # end of the State Layer

 

Thanks,

 

Venkat

 

From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Murty Maganti
Sent: Tuesday, April 28, 2009 1:11 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] C# connectiontype issue

 

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090428/57ed2d11/attachment.htm>


More information about the MapServer-users mailing list