[mapserver-users] projection help please
Hankley, Chip
Chip.Hankley at GASAI.Com
Wed Jul 24 10:57:36 PDT 2002
Steve -
IF you're state plane data is in feet, then you may need to add a line to
your projection def that will do the feet to meter conversion. I had a
similar problem with some state plane data that was in feet. Here's the
projection def for the layer that I was using.
PROJECTION
"proj=lcc"
"lat_1=45.056389"
"lat_2=44.745278"
"lat_0=44.405556"
"lon_0=-89.770000"
"x_0=74676.149352"
"y_0=0"
"ellps=GRS80"
"datum=NAD83"
"to_meter=0.3048006096" <-- THIS LINE
"no_defs"
END
This has always been confusing to me... and I just monkey around w/ it 'til
it works. We end up w/ a lot of SP data in feet...parameters are in feet,
etc.
Anyway, this worked for me. HTH.
Chip
-----Original Message-----
From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com]
Sent: Wednesday, July 24, 2002 12:07 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [mapserver-users] projection help please
Arrrgh! This is my first attempt to work with layers in two different
projections. I can get parcels to display, but not the roads layers
below. The roads display just fine by themselves unprojected. The
parcels show up just fine, they are in FL North state plane
projection #903 and the roads are both latlong projection.
Any help would be greatly appreciated.
-Steve W.
MAP
NAME "gadsden"
STATUS ON
EXTENT 1850043.62398028 512249.445079203 2012425.97125672
626430.515528745
SIZE 400 400
IMAGECOLOR 255 255 255
UNITS FEET
IMAGETYPE GIF
WEB
IMAGEPATH "/home/httpd/html/web2/tmp/"
IMAGEURL "/web2/tmp/"
END
PROJECTION
"proj=lcc"
"datum=NAD83"
"lon_0=-84d30"
"lat_1=30d45"
"lat_2=29d35"
"lat_0=29"
"x_0=600000"
"y_0=0"
"no_defs"
END
LEGEND
STATUS ON
END
SCALEBAR
STATUS ON
UNITS MILES
SIZE 400 10
STYLE 1
COLOR 0 0 0
TRANSPARENT ON
END
LAYER
NAME "parcels"
STATUS DEFAULT
DATA "/data/maps/gadpar"
TYPE POLYGON
UNITS FEET
LABELITEM "shortparce"
LABELMAXSCALE 10000
PROJECTION
"proj=lcc"
"datum=NAD83"
"lon_0=-84d30"
"lat_1=30d45"
"lat_2=29d35"
"lat_0=29"
"x_0=600000"
"y_0=0"
"no_defs"
END
CLASS
COLOR 153 255 204
OUTLINECOLOR 0 0 0
LABEL
TYPE BITMAP
SIZE TINY
COLOR 0 0 0
OUTLINECOLOR 255 255 255
END
END
END
LAYER
NAME "major roads"
STATUS ON
DATA "/data/maps/majroads"
TYPE LINE
UNITS DD
PROJECTION
"proj=latlong"
END
CLASS
COLOR 255 0 0
END
END
LAYER
NAME "minroads"
STATUS ON
DATA "/data/maps/minroads"
TYPE LINE
UNITS DD
PROJECTION
"proj=latlong"
END
CLASS
COLOR 0 255 0
END
END
END
More information about the MapServer-users
mailing list