Data Plotted at Wrong Location
Tran, Toan (MCYS)
Toan.Tran at ONTARIO.CA
Mon Dec 10 10:13:33 PST 2007
Hi,
I wish to plot several points in Ontario, Canada, but the problem is
that the points are plotted at the wrong location. My data are in
decimal degree stored in a CSV file. But when the map was draw, all the
points are plotted very closed together. I suspect that for some reason,
the map-server is plotting the data as meter/or any other unit instead
of degree decimal.
I used this PROJECTION in both my top-level MAP and proper layer, with
UNITS METERS:
PROJECTION
"init=epsg:42304"
END
I added this for the /usr/local/share/proj/epsg file because it wasn't
there after I installed the Projection Library:
<42304> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0
+ellps=GRS80 +datum=NAD83 +units=m +no_defs no_defs <>
Is it enough to simple add the above epsg code???
Changing UNITS METERS to UNITS DD in my map file doesn't help either.
Here are some sample DATA:
<<img.GIF>>
Desc,,X,Y
"5",79.725833,43.715361
"6",81.000107,43.368512
"7",-78.347276,44.301459
"8",,81.332038,48.47381
"9",79.68955,43.4662
...
"AAAAAAAAAAAAAAAAAAAAAAaaaaaa19",0,200000
"AAAAAAAAAAAAAAAAAAAAAAaaaaaa20",0,220000
"AAAAAAAAAAAAAAAAAAAAAAaaaaaa21",0,240000
"AAAAAAAAAAAAAAAAAAAAAAaaaaaa30",0,300000
"AAAAAAAAAAAAAAAAAAAAAAaaaaaa31",10000,300000
This is what I see when I type ./mapserv -v
MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE DEBUG=MSDEBUG
Any help is much appreciated
Thanks
Toan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20071210/f6a806b6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: img.GIF
Type: image/gif
Size: 7516 bytes
Desc: img.GIF
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20071210/f6a806b6/attachment.gif>
More information about the MapServer-users
mailing list