MapServer Reprojection

Fawcett, David David.Fawcett at STATE.MN.US
Fri Jul 14 11:19:51 EDT 2006


Ryan, 

Do you have projection blocks for the MAP and LAYER.  I don't see one in
the layer.

David.

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Ryan Ollerenshaw
Sent: Friday, July 14, 2006 10:10 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] MapServer Reprojection


My problem is that no matter what I have my SRS numbers set to my data
will always be displayed the same what.  What could I be missing that
would cause MapServer's re-projection capabilities not to work.

I have several tiled .tiff images that I georeference by lat/long values
using: gdal_translate -a_ullr 180 0 210 -30  thm_dir_N-30_180.png
thm_dir_N-30_180.tiff

I am then displaying them in MapServer using:

LAYER
  NAME "themis"
  STATUS ON
  TILEINDEX "thm_dir.shp"
  TILEITEM "location"
  TYPE RASTER
  DUMP TRUE
  METADATA
    wcs_name "THEMIS_Data"
    wcs_description "THEMIS dataset"
    wcs_label "THEMIS dataset"
    ows_srs "EPSG:4326"
    ows_extent "0 -90 360 90"
    wcs_resolution "150 150"
    wcs_size "2700 3197"
    wcs_formats "GEOTIFF"
  END
END

Here is what gdalinfo reports, but isn't it MapServer that does all the
re-projection?  So that fact that the Coordinate System here is blank is
ok right?

gdalinfo thm_dir_-30_000.tiff
Driver: GTiff/GeoTIFF
Size is 7680, 7680
Coordinate System is `'
Origin = (0.000000,0.000000)
Pixel Size = (0.00390625,-0.00390625)
Corner Coordinates:
Upper Left  (   0.0000000,   0.0000000)
Lower Left  (   0.0000000, -30.0000000)
Upper Right (  30.0000000,   0.0000000)
Lower Right (  30.0000000, -30.0000000)
Center      (  15.0000000, -15.0000000)
Band 1 Block=7680x1 Type=Byte, ColorInterp=Gray
  Overviews: 3840x3840, 1920x1920, 960x960, 480x480, 240x240



More information about the mapserver-users mailing list