[mapserver-users] many raster projections
Andy Colson
andy at squeakycode.net
Mon Feb 8 08:11:22 PST 2010
Ok, I'm confused. Most of the problem is probably because I'm a
programmer, not a mapper.
I have arial imagery of Minnesota, multiple sets, each seeming to be in
a different projection.
At the top of my mapfile I have this:
MAP
EXTENT 1285920 1377857 1426390 1506589
PROJECTION
"+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333
+x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"
END
There are no other PROJECTION settings. Most of the images seem to
work. I got the projtext above from loading one of the shapefiles into
qgis and looking at its properties. I just kinda hoped they'd all be
the same. I did try adding a PROJECTION to the raster layer, but it
didnt seem to work. So I thought I'd "just" re-project the imagery.
Three sets of imagery seem to work (I didnt touch them, they always
worked), they have (again copied from qgis) proj text's of:
+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333
+x_0=500000.0000000001 +y_0=0 +ellps=GRS80 +datum=NAD83
+to_meter=0.3048006096012192 +no_defs
+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs
and
+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs
One set is displayed way off the map, way far away from where its
supposed to be. Its projtext is:
+proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs
I attempted to use gdal_translate and gdal_warp.
gdal_translate made a new image, with projtext:
+proj=tmerc +lat_0=35.83333333333334 +lon_0=-92.5 +k=0.999933333
+x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs
but its in the exact same spot, it didnt re-position to where images are
supposed to be.
A gdalwarp moved it, but not to the right place.
So I'm confused, and not sure what I'm doing. Hopefully there is some
info in here someone can use to set me on the right path. Any help
would be appreciated.
-Andy
More information about the MapServer-users
mailing list