[Mapserver-users] Reprojection of shape file.

Jason M. Nielsen jnielsen at aero-graphics.com
Fri Feb 6 10:31:00 EST 2004


Quoting Pericles Nacionales <nacional at cbs.umn.edu>:

> Jason,
> 
> It seems to me that the projection parameters you're passing are not quite
> right.  You need to also pass lat_0, lon_0, lon_1, and the x and y
> shifts--that should all be part of your stateplane coordinate system.
> Check the epsg file, for your particular cs.  Or google it for more info.
> 
> One other thing, be consistent with your datum--NAD83 isn't WGS84.  I
> realize there might not be that big of a difference but it might matter to
> you.
> 
> -Perry

Ok. I tried another approach here and I think it looks right with regard to the
parameters passed and the settings being used but my coordinates are still all
wacked. I checked the coordinates using a program called  "Corpscon" and the
extents indicate the correct coordinates output from it. Unfortunately I have no
clue what Corpscon is doing behind the scenes. Below is what I tried with cs2cs
and I suspect is what is happening with my .map file as well since
those are the espg systems I am using.

Am I still doing things incorrectly? lol

Thanks.

[root at vad3rZIM data]# cs2cs +init=epsg:4326 +to +init=epsg:2281 -r -v
# ---- From Coordinate System ----
#Lat/long (Geodetic)
#
# +init=epsg:4326 +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs
# +towgs84=0,0,0
#--- following specified but NOT used
# +ellps=WGS84
# ---- To Coordinate System ----
#Lambert Conformal Conic
#       Conic, Sph&Ell
#       lat_1= and lat_2= or lat_0
# +init=epsg:2281 +proj=lcc +lat_1=40.65 +lat_2=39.01666666666667
# +lat_0=38.33333333333334 +lon_0=-111.5 +x_0=500000.0001504
# +y_0=1999999.999992 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048 +no_defs
# +towgs84=0,0,0
#--- following specified but NOT used
# +ellps=GRS80
40.430850 111.779615
-23236890.32    31173897.64 0.00


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/



More information about the mapserver-users mailing list