[mapserver-users] setting zoomand map center by default

Geo-6 support at geo6.be
Thu Apr 9 01:13:02 PDT 2015


Hi Rishi,

 

I think your « EXTENT » parameter is wrong, the coordinates seems way off for « PROJECTION EPSG:4326 » (http://spatialreference.org/ref/epsg/4326/)

It must be between -180.0000, -90.0000 and 180.0000, 90.0000

 

Have a great day.

 

Jonathan Beliën

Geo-6

 

De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de rishi
Envoyé : jeudi 9 avril 2015 07:02
À : mapserver-users at lists.osgeo.org; Eichner, Andreas - SID; lars.schylberg at saabgroup.com; jmckenna at gatewaygeomatics.com; Fawcett, David (MNIT); thomas bonfort
Objet : Re: [mapserver-users] setting zoomand map center by default

 

Hi all

iam trying to display raster image

but it is not displaying anything, page is blank

my mapfile code is

 

 

MAP

  EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947

  TRANSPARENT on

  IMAGETYPE png

  size 400 400

  SHAPEPATH  "../webgis"

  

  LAYER

   LAYER

    NAME "Photos1967"

    DATA "mpgaps/094_056_d_26mar2012_516_12-mar-08.tif"

    STATUS ON

      TYPE RASTER

    

    PROJECTION

       "init=epsg:4326"

    END

   

  

END

 OUTPUTFORMAT

  NAME "png"

  DRIVER AGG/PNG

  MIMETYPE "image/png"

  IMAGEMODE RGB

  EXTENSION "png"

  FORMATOPTION "GAMMA=0.75"

END

 

 END  

 

 

data path is C:\ms4w\apps\webgis\mpgaps

 

plz correct my mapfile

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150409/6148cf3f/attachment.htm>


More information about the MapServer-users mailing list