mapserver tif projections
Douglass Davis
douglass_davis at EARTHLINK.NET
Thu Jul 28 12:49:40 PDT 2005
Frank Warmerdam wrote:
>Douglass,
>
>In what way did it not work?
>
>Try adding "ellps=sphere" to your definition. Your current definition has
>no earthmodel definition and depending on your setup there may be no
>default.
>
>Note that most projections on a sphere don't map well to conventional
>ellpisoid coordinate systems. You may find you need to use "ellps=WGS84"
>instead to get good correspondence.
>
>Good luck,
>
>
Thanks.
Now I have:
LAYER
NAME elevation
DATA "elevation/05539624.tif"
TYPE RASTER
STATUS ON
PROJECTION
"proj=laea"
"lon_0=100w"
"lat_0=45n"
"ellps=sphere"
END
END
Before, it gave an error when trying to do the projection.
Warning: [MapServer Error]: msProcessProjection(): major axis or radius
= 0 or not given in c:\program files\apache
group\apache\htdocs\mapserver\nc.php on line 4
Now I get a map and that error went away (progress :-) . But, still, no
tif layer.
my (lat/lon) extent for the whole thing is:
EXTENT -85 32 -75 38
Should the extent be in meters? Isn't putting the projection in the
layer supposed to make that transformation? All of my other layers just
use lat/lon not LAEA and they work fine. So, I'm mixing two types of
coordinates here, and it's still a mystery to me as far as how this is
supposed to work.
Spatial_Domain:
Bounding_Coordinates:
West_Bounding_Coordinate:-84.84957627
East_Bounding_Coordinate:-74.99646893
North_Bounding_Coordinate:37.47563559
South_Bounding_Coordinate:33.16490113
<>
<>
<>
<>
Spatial_Reference_Information:
Horizontal_Coordinate_System_Definition:
Planar:
Map_Projection:
Map_Projection_Name: Lambert Azimuthal Equal Area
Lambert_Azimuthal_Equal_Area:
Longitude_of_Projection_Center: -100.00
Latitude_of_Projection_Center: 45.00
False_Easting: 0.0
False_Northing: 0.0
Planar_Coordinate_Information:
Planar_Coordinate_Encoding_Method: Row and column
Coordinate_Representation:
Abscissa_Resolution: 1000.0
Ordinate_Resolution: 1000.0
Planar_Distance_Units: Meters
Geodetic_Model:
Horizontal_Datum_Name: None
Ellipsoid_Name: Sphere
Semi-major_Axis: 6370997.0
Denominator_of_Flattening_Ratio: 1.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050728/4d595765/attachment.htm>
More information about the MapServer-users
mailing list