[Mapserver-users] Projection issue...
Frank Warmerdam
warmerdam at pobox.com
Tue Mar 2 13:21:40 PST 2004
Jason M. Nielsen wrote:
> Anyone see anything wrong with the following?
>
> As far as I can tell the rest of the map file etc is ok. I pushed this all over
> into the itasca demo to try and debug what I have goofy. All I am getting is a
> black area as if I have an extents problem.
>
> TIA
>
> # SLC section in WGS 84 Lat Long Decimal Degrees
> NAME SLC
> STATUS ON
> SIZE 558 360
> #WGS84
> EXTENT 40.1 -112.8 40.6 -111.4
> UNITS DD
> SHAPEPATH "data"
> IMAGECOLOR 0 0 0
> IMAGETYPE PNG24
>
> ...
>
> [root at localhost data]# ogrinfo -al slc2002photos.shp | more
> INFO: Open of `slc2002photos.shp'
> using driver `ESRI Shapefile' successful.
>
> Layer name: slc2002photos
> Geometry: Point
> Feature Count: 392
> Extent: (-112.064000, 40.263300) - (-111.471300, 40.500400)
> Layer SRS WKT:
> PROJCS["WGS_1984_TM_36_SE",
> GEOGCS["GCS_WGS_1984",
> DATUM["WGS_1984",
> SPHEROID["WGS_1984",6378137.0,298.257223563]],
> PRIMEM["Greenwich",0.0],
> UNIT["Degree",0.0174532925199433]],
> PROJECTION["Transverse_Mercator"],
> PARAMETER["False_Easting",500000.0],
> PARAMETER["False_Northing",10000000.0],
> PARAMETER["Central_Meridian",36.0],
> PARAMETER["Scale_Factor",0.9996],
> PARAMETER["Latitude_Of_Origin",0.0],
> UNIT["Meter",1.0]]
Jason,
Well, this stuff from ogrinfo about it being transverse mercator is clearly
wrong. Perhaps someone dumped an improper .prj file with the dataset? But
I don't think this is related to your issues.
Your mapfile seems to have the X and Y values switched. Shouldn't
your extents be "xmin ymin xmax ymax"?
EXTENT -112.8 40.1 -111.4 40.6
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the MapServer-users
mailing list