MapServer Reprojection

Ryan Ollerenshaw ollerery at ENGR.ORST.EDU
Fri Jul 14 11:23:04 EDT 2006


Quoting "Fawcett, David" <David.Fawcett at STATE.MN.US>:

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

Sorry forgot to post that.  Yes I have a projection block for the map.  I have
also tried setting one for the layer as well, but no luck with any combination.

PROJECTION
  "init=epsg:4326"
END



> -----Original Message-----
>
> 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