<html 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" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<title>Data Plotted at Wrong Location</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:1376538812;
        mso-list-type:hybrid;
        mso-list-template-ids:12114362 -1026000462 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:.75in;
        text-indent:-.25in;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
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 link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Toan &#8211;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>This is probably a better question for the MapServer list, but
you&#8217;re on the wrong path.&nbsp; Put the 42304 definition back the way it was &#8211; that&#8217;s
correct.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The EPSG:42304 projection is a Lambert Conformal Conic
projection, and I assume that&#8217;s what you want to use for your OUTPUT map
image.&nbsp; Its units are not in decimal degrees, nor can they be.&nbsp; You have an
INPUT data layer in decimal degrees, and you&#8217;d like MapServer to reproject that
data to your output projection.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>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.&nbsp; 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:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>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:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoListParagraph style='margin-left:.75in;text-indent:-.25in;
mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><span style='mso-list:Ignore'>-<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ed&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ed McNierney<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Chief Mapmaker<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Demand Media / TopoZone.com<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>73 Princeton Street, Suite 305<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>North Chelmsford, MA&nbsp; 01863<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><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:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Phone: +1 (978) 251-4242<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Fax: +1 (978) 251-1396<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;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>&nbsp;</o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Hi,</span> <o:p></o:p></p>

<p><span style='font-size:10.0pt;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&nbsp; in meters instead of degree.</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I used this
in my map layer:</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>PROJECTION</span>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;&nbsp;
&quot;init=epsg:42304&quot;</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>END</span> <o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I added this
for epsg:</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&lt;42304&gt;
+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&nbsp; no_defs &lt;&gt;</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I try
changing:</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;-
&lt;42304&gt; +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&nbsp; no_defs &lt;&gt; .... this
causes a msProcessProjection(): Projection library error. unknown unit
conversion id error</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;-
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:10.0pt;font-family:"Arial","sans-serif"'>Sample DATA:</span>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>&lt;&lt;img.GIF&gt;&gt;
</span><br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&quot;AAAAAAAAAAAAAAAAAAAAAAaaaaaa19&quot;,0,200000</span>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&quot;AAAAAAAAAAAAAAAAAAAAAAaaaaaa20&quot;,0,220000</span>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&quot;AAAAAAAAAAAAAAAAAAAAAAaaaaaa21&quot;,0,240000</span>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&quot;AAAAAAAAAAAAAAAAAAAAAAaaaaaa30&quot;,0,300000</span>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&quot;AAAAAAAAAAAAAAAAAAAAAAaaaaaa31&quot;,10000,300000</span>
<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Any help is
much appreciated</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Thanks</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Toan </span><o:p></o:p></p>

</div>

</body>

</html>