[Mapserver-users] GPS data Projection
Pericles S. Nacionales
nacional at cbs.umn.edu
Sun Apr 25 22:26:15 PDT 2004
Changqing,
Add this under your MAP object (replace the projection info that's in
there now:
PROJECTION
# This is the projection definition for UTM Zone 15N, datum is NAD83,
# and ellipsoid/spheroid is GRS80.
"init=epsg:26915"
END
This is your output projection.
Next, add your gps layer and add a PROJECTION object under it, like
this:
LAYER # GPS Data
NAME gps_pts
DATA gps
STATUS DEFAULT
TYPE POINT
PROJECTION
# This is the projection definition for the GPS data in lat/long,
# datum is NAD83, ellipse/spheroid is GRS80
"init=epsg:4269"
END
... <CLASS defs follow> ...
END
This is your input projection.
Good luck!
-Perry
On Sun, 2004-04-25 at 23:19, Changqing Zhou wrote:
> HI, I would greatly appreaciate your help on a projection question:
>
> How do I display gps data in lat-long point format on top of the following
> MNDOT base road shapefile? How to project the GPS data to the road map system?
>
> (http://www.dot.state.mn.us/tda/basemap/metadata/Roads.htm)
>
> Horizontal Coordinate Scheme UTM
> Ellipsoid GRS80
> Horizontal Datum NAD83
> Horizontal Units Meters
>
> Below is my simplified maplefile. Note I do not use any projections:
>
> MAP
> NAME Hennepin County
> IMAGETYPE png
> #EXTENT 201621.496941 -294488.285333 1425518.020722
> 498254.511514 # LAEA
> EXTENT 439000 4960000 487000 5010000 #from arcview
> #EXTENT -97.5 41.619778 -82.122902 49.38562 # Geographic
> SIZE 800 600
> SHAPEPATH "data"
> SYMBOLSET "symbols/symbols35.sym"
> FONTSET "fonts/fonts.list"
>
> WEB
> TEMPLATE 'hennepinRoads.html'
> IMAGEPATH '/ApacheGroup/Apache2/htdocs/tmp/'
> IMAGEURL '/tmp/'
> END
>
> PROJECTION
> # This is Lambert Azimuthal Equal-Area projection for the
> # Continental U.S.
> # "proj=laea"
> # "ellps=clrk66"
> # "lat_0=45"
> # "lon_0=-100"
> #
> # Alternatively, you can specify an EPSG code.
> # This is the EPSG code for
> # Lambert Azimuthal Equal-Area projection for the U.S.
> #"init=epsg:2163"
> #
> END
>
> LAYER # Hennepin Road layer begins here
> NAME hennepin_line
> DATA hennepinm
> STATUS DEFAULT
> TYPE LINE
>
> # PROJECTION
> # "init=epsg:4326"
> # END
>
> CLASSITEM "Code"
> CLASS
> EXPRESSION '01'
> COLOR 0 0 255
> END
> CLASS
> EXPRESSION '02'
> COLOR 0 0 255
> END
> CLASS
> EXPRESSION '03'
> COLOR 255 0 0
> END
> CLASS
> EXPRESSION '04'
> COLOR 0 255 255
> END
>
> END # Hennepin Roads layer ends here
>
>
> # End of LAYER DEFINITIONS -------------------------------
>
> END # end of map file
>
>
> Thanks,
>
> Changqing
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
--
"He's no geek.His tan's too good." -Benjamin Choate
More information about the MapServer-users
mailing list