<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:x =
"urn:schemas-microsoft-com:office:excel" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR>
<STYLE>@font-face {
        font-family: Wingdings;
}
@font-face {
        font-family: Wingdings;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 99; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
P.MsoListParagraph {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt 0.5in; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 34
}
LI.MsoListParagraph {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt 0.5in; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 34
}
DIV.MsoListParagraph {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt 0.5in; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 34
}
SPAN.EmailStyle18 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
OL {
        MARGIN-BOTTOM: 0in
}
UL {
        MARGIN-BOTTOM: 0in
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2>Ed,
thank you for your quick reply.</FONT></SPAN></DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff
size=2>Initially, I have: </FONT></SPAN></DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"><FONT
color=#000000>PROJECTION</FONT></SPAN><FONT color=#000000><FONT
face="Times New Roman" size=3> <BR></FONT><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">
"init=epsg:42304"</SPAN></FONT><FONT color=#000000><FONT face="Times New Roman"
size=3> <BR></FONT><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">END</SPAN><FONT
face="Times New Roman" size=3> </FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial size=2><SPAN
class=141351617-10122007><FONT face=Arial color=#0000ff size=2>specified in
both my top-level MAP and proper layer, with UNITS
METERS.</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007>But when the map was draw, all the points are
plotted very closed togeather. <BR>I suspect that for some reason, the
map-server is plotting the data as meter instead of degree
decimal.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007>The points/data I used from the previous post was for
investigation purpose... to test why the points/data was so closed
together.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007>They are:</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007>Desc,,X,Y<BR>"5",79.725833,43.715361<BR>"6",81.000107,43.368512<BR>"7",-78.347276,44.301459<BR>"8",,81.332038,48.47381<BR>"9",79.68955,43.4662</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007>...</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"><FONT
color=#000000>"AAAAAAAAAAAAAAAAAAAAAAaaaaaa19",0,200000</FONT></SPAN><FONT
color=#000000><FONT face="Times New Roman" size=3> <BR></FONT><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">"AAAAAAAAAAAAAAAAAAAAAAaaaaaa20",0,220000</SPAN></FONT><FONT
color=#000000><FONT face="Times New Roman" size=3> <BR></FONT><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">"AAAAAAAAAAAAAAAAAAAAAAaaaaaa21",0,240000</SPAN></FONT><FONT
color=#000000><FONT face="Times New Roman" size=3> <BR></FONT><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">"AAAAAAAAAAAAAAAAAAAAAAaaaaaa30",0,300000</SPAN></FONT><FONT
color=#000000><FONT face="Times New Roman" size=3> <BR></FONT><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">"AAAAAAAAAAAAAAAAAAAAAAaaaaaa31",10000,300000</SPAN><FONT
face="Times New Roman" size=3>
</FONT></FONT><BR></DIV></SPAN></FONT></SPAN><SPAN
class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007></SPAN></FONT></SPAN>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007>Sorry about the confusion.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007>I will try posting this in the MapServer
list</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007>Thank you for the hint.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=141351617-10122007><FONT face=Arial color=#0000ff size=2><SPAN
class=141351617-10122007>Toan</SPAN></FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
proj-bounces@lists.maptools.org [mailto:proj-bounces@lists.maptools.org] <B>On
Behalf Of </B>Ed McNierney<BR><B>Sent:</B> December 10, 2007 11:58
AM<BR><B>To:</B> PROJ.4 and general Projections Discussions<BR><B>Subject:</B>
RE: [Proj] Data Plotted at Wrong Location<BR><BR></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Toan
–<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">This
is probably a better question for the MapServer list, but you’re on the wrong
path. Put the 42304 definition back the way it was – that’s
correct.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">The
EPSG:42304 projection is a Lambert Conformal Conic projection, and I assume
that’s what you want to use for your OUTPUT map image. Its units are not
in decimal degrees, nor can they be. You have an INPUT data layer in
decimal degrees, and you’d like MapServer to reproject that data to your
output projection.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Your
top-level MAP file needs the PROJECTION definition you describe below, and
then you also need to have an appropriate PROJECTION block inside the LAYER
definition for the layer in decimal degrees. That tells MapServer that
your input and output data are in different projections, and the data need to
be reprojected.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">The
correct EPSG definition for your input data in decimal degrees will depend on
what datum those coordinates use.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoListParagraph
style="MARGIN-LEFT: 0.75in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><![if !supportLists]><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><SPAN
style="mso-list: Ignore">-<SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><![endif]><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Ed
<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Ed
McNierney<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Chief
Mapmaker<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Demand
Media / TopoZone.com<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">73
Princeton Street, Suite 305<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">North
Chelmsford, MA 01863<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><A
href="mailto:ed@topozone.com"><SPAN
style="COLOR: blue">ed@topozone.com</SPAN></A><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Phone:
+1 (978) 251-4242<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Fax:
+1 (978) 251-1396<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
proj-bounces@lists.maptools.org [mailto:proj-bounces@lists.maptools.org] <B>On
Behalf Of </B>Tran, Toan (MCYS)<BR><B>Sent:</B> Monday, December 10, 2007
11:32 AM<BR><B>To:</B> proj@lists.maptools.org<BR><B>Subject:</B> [Proj] Data
Plotted at Wrong Location<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Hi,</SPAN>
<o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">I wish to
plot several points in 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. I
am guessing that Map Server plots the points in meters instead of
degree.</SPAN><o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">I used
this in my map layer:</SPAN> <BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">PROJECTION</SPAN>
<BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">
"init=epsg:42304"</SPAN> <BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">END</SPAN>
<o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">I added
this for epsg:</SPAN> <BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"><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 <></SPAN><o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">I try
changing:</SPAN> <BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"> -
<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=dd +no_defs no_defs <> .... this
causes a msProcessProjection(): Projection library error. unknown unit
conversion id error</SPAN><o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"> -
UNITS METERS to UNITS DD in my map file, but that doesn't help.</SPAN>
<o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Sample
DATA:</SPAN> <BR><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'"><<img.GIF>>
</SPAN><BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">"AAAAAAAAAAAAAAAAAAAAAAaaaaaa19",0,200000</SPAN>
<BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">"AAAAAAAAAAAAAAAAAAAAAAaaaaaa20",0,220000</SPAN>
<BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">"AAAAAAAAAAAAAAAAAAAAAAaaaaaa21",0,240000</SPAN>
<BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">"AAAAAAAAAAAAAAAAAAAAAAaaaaaa30",0,300000</SPAN>
<BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">"AAAAAAAAAAAAAAAAAAAAAAaaaaaa31",10000,300000</SPAN>
<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Any help
is much appreciated</SPAN> <BR><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Thanks</SPAN>
<BR><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Toan
</SPAN><o:p></o:p></P></DIV></BLOCKQUOTE></BODY></HTML>