[ka-Map-users] MapServer Reprojection

Delfos, Jacob Jacob.Delfos at maunsell.com
Mon Jul 17 19:26:31 EDT 2006


Hi Ryan,

The layer projection should be what the layer dataset is in. In the end,
everything gets reprojected to what projection the mapfile is in. But if
your data is in a projection other than the mapfile projection, then
MapServer needs to know where to project it FROM.

Hope that helps.

Jacob

 

> -----Original Message-----
> From: Ryan Ollerenshaw [mailto:ollerery at engr.orst.edu] 
> Sent: 17 July 2006 23:13
> To: Delfos, Jacob
> Cc: ka-map-users at lists.maptools.org
> Subject: RE: [ka-Map-users] MapServer Reprojection
> 
> So is the projection that i define in the mapfile and layer 
> the projection that
> the data is in or what it is getting reprojected to?  I was 
> never sure if the
> projection that data is in should be the mapfile projection 
> or the layer
> projection or the wms_projection.
> 
> Quoting "Delfos, Jacob" <Jacob.Delfos at maunsell.com>:
> 
> > Ryan,
> >
> > I don't think MapServer will reproject unless the layer and 
> the mapfile
> > have a projection defined, like:
> >
> > #####################
> > PROJECTION
> > "init=epsg:4326"
> > END
> > #####################
> >
> > You would have to put that in your layer, and your mapfile 
> (the global
> > projection). This is separate to projection parameters 
> specified in the
> > metadata, for WMS, WCS, or other web-services. Those 
> parameters are used
> > by the remote system to find out what projection the layer you are
> > serving out is in.
> >
> 
> 
> 
> >
> > > -----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 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
> > > _______________________________________________
> > > ka-Map-users mailing list
> > > ka-Map-users at lists.maptools.org
> > > http://lists.maptools.org/mailman/listinfo/ka-map-users
> > >
> >
> 
> 
> 



More information about the ka-Map-users mailing list