[Mapserver-users] Reprojection of shape file.
Jason M. Nielsen
jnielsen at aero-graphics.com
Thu Feb 5 13:34:16 PST 2004
I have been assured the provided shape file is in WGS84 Lat Long. I want to keep
the original data in this and display it in NAD83 Stateplane Utah Central (US
Foot). Below are what I think the relevant map file chunks are. Basically when
displaying that layer I just get a blank image as if its way out of the
coordinates. Anyone see whats wrong?
NAME SLC
STATUS ON
SIZE 600 400
#EXTENT 1400000.0 7000000.0 1900000.0 7500000.0
EXTENT 1468185.000 7329845.000 1563785.000 7473605.000
UNITS FEET
SHAPEPATH "data"
IMAGECOLOR 0 0 0
IMAGETYPE PNG24
PROJECTION
"init=epsg:2281"
END
LAYER
NAME slc2002photos
TYPE POLYGON
STATUS OFF
DATA slc2002photos
PROJECTION
"init=epsg:4326"
END
CLASS
NAME "SLC 2002 Photos"
SYMBOL "circle"
SIZE 2
COLOR 255 255 0
TEMPLATE slc2002photos.html
END
HEADER header.html
FOOTER footer.html
END
I thought perhaps Id try to convert the file manually and see what it looked
like. Im apparently doing something wrong here too.
[root at vad3rZIM data]# ogr2ogr -f "ESRI Shapefile" -s_srs epsg:4326 -t_srs
epsg:2281 trans slc2002photos.shp
ERROR 1: latitude or longitude exceeded limits
Failed to transform feature 0.
ERROR 1: Terminating translation prematurely after failed
translation of layer slc2002photos
Was I given bogus data?
Thanks, Jason.
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
More information about the MapServer-users
mailing list