[Mapserver-users] Reprojecting Problem

kgrootendorst at baird.com kgrootendorst at baird.com
Thu Jul 15 12:52:05 EDT 2004


This is a multipart message in MIME format.
--=_alternative 005CAA3385256ED2_=
Content-Type: text/plain; charset="US-ASCII"

Ed,
I'm an idiot.   Yes, the false northing was correct - one of the other 
parameters was incorrect. 
All is good now.
Thanks for your help - I hope I didn't waste too much of your time!!!

Kevin
______________________________



"Ed McNierney" <ed at topozone.com> 
07/15/2004 12:14 PM

To
<kgrootendorst at baird.com>
cc
<mapserver-users at lists.gis.umn.edu>
Subject
RE: [Mapserver-users] Reprojecting Problem






Kevin -
 
Excellent data - now you're getting somewhere.  If you can see both 
shapefiles and they're about correct horizontally, then you're getting 
SOME reprojection happening.  So the next thing to check is your 
projection definition.
 
Where did you get this projection definition from?  Are you sure that the 
false northing (the +y_0=2958000 parameter) is correct?
 
    - Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 

From: kgrootendorst at baird.com [mailto:kgrootendorst at baird.com] 
Sent: Thursday, July 15, 2004 12:06 PM
To: Ed McNierney
Cc: mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] Reprojecting Problem


Ed, 
Thanks for your help.  I meant to reply to the list before but hit 'reply' 
instead of 'reply to all'..... 
In response to your questions below: 

1.   The shoreline extents are correct. 
2.   The source projection is correct. 
3.   I can see the both the shoreline and the counties shapefile - however 
the shoreline draws many km's (1,000's) to the north of the counties. 
Horizontally looks okay - vertically is wrong. 
4.  I'm assuming I have the datum shift files installed in proj - I'm 
using the proj that came with MS 4.2.   I'm not sure how to use the 
command line to do a datum shift - do you mean the url? 

Thanks again. 
I'm going to triple check my numbers - looks like a vertical shift 
somewhere. 

Kevin
______________________________ 


"Ed McNierney" <ed at topozone.com> 
07/15/2004 09:26 AM 


To
<kgrootendorst at baird.com> 
cc
<mapserver-users at lists.gis.umn.edu> 
Subject
RE: [Mapserver-users] Reprojecting Problem








Kevin - 
  
Then stick to that problem until it's fixed!  Things to think about: 
  
1. Do you have the extents of the shoreline wrong?  Could it be in the 
wrong place? 
2. Are you SURE you've got the source projection correct? 
3. Set the EXTENT of the requested map to be HUGE, so the shoreline should 
be visible no matter where it is. 
4. Are you sure you have the datum shift files installed in PROJ?  Can you 
use the command-line PROJ to do a datum shift correctly? 
  
Please keep replying on the list - I may not have time to keep helping, 
and others may think of solutions that I miss. 
 
    - Ed 
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 

From: kgrootendorst at baird.com [mailto:kgrootendorst at baird.com] 
Sent: Thursday, July 15, 2004 9:01 AM
To: Ed McNierney
Subject: RE: [Mapserver-users] Reprojecting Problem


Ed, 
The shoreline does not display when trying to reproject from UTM to LCC.

Kevin 


"Ed McNierney" <ed at topozone.com> 
07/14/2004 06:20 PM 


To
<kgrootendorst at baird.com> 
cc
<mapserver-users at lists.gis.umn.edu> 
Subject
RE: [Mapserver-users] Reprojecting Problem










Kevin - 
 
Thanks - it's good to have that confirmed.  The next thing I'd do is 
restore the PROJECTION and EXTENT to the MAP file so you display ONLY the 
shoreline layer, but reprojected to your LCC projection.  You also don't 
need the "+no_defs" before the "no_defs" in your projection definition. 
 
   - Ed 

From: kgrootendorst at baird.com [mailto:kgrootendorst at baird.com] 
Sent: Wednesday, July 14, 2004 5:10 PM
To: Ed McNierney
Cc: mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] Reprojecting Problem


Ed, 
I did what you suggested, and the shoreline displayed fine in UTM extents. 


Kevin

"Ed McNierney" <ed at topozone.com> 
07/14/2004 01:34 PM 


To
<kgrootendorst at baird.com> 
cc
<mapserver-users at lists.gis.umn.edu> 
Subject
RE: [Mapserver-users] Reprojecting Problem












Kevin - 

Thanks; I'd suggest next modifying the MAP file to comment out ALL 
PROJECTION blocks, and turn off all the layers except the shore line. 
You'll need to adjust the EXTENT to have the right values in UTM 
coordinates, but this should get you a UTM-output map of the shoreline. 
I'm trying to make sure that all your data is valid and is really in the 
projection you think it is. 

  - Ed 
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 

From: kgrootendorst at baird.com [mailto:kgrootendorst at baird.com] 
Sent: Wednesday, July 14, 2004 12:45 PM
To: Ed McNierney
Cc: mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] Reprojecting Problem


Ed, 
Yes, it supports proj, and the other layers look okay.  These other layers 
are in the same projection as the map object. 
The custom projection I'm using in the map is as follows: 
# Custom Lambert Conformal Conic 
<50000> +proj=lcc +lat_1=49 +lat_2=63 +lat_0=49 +lon_0=-91.86 +x_0=6200000 
+y_0=2958000 +ellps=GRS80 +datum=NAD83 +units=m +no_defs  no_defs <> 
I've had no problems using this projection with ArcMap. 

I'm running the following: 
Mapserver 4.2 
PHP 4.3.4 
Win2000 

Kevin

"Ed McNierney" <ed at topozone.com> 
07/14/2004 10:50 AM 


To
<kgrootendorst at baird.com>, <mapserver-users at lists.gis.umn.edu> 
cc

Subject
[SPAM] - RE: [Mapserver-users] Reprojecting Problem - Email found in 
subject














Kevin - 

Do all your other layers look OK in the output map?  BTW, I think it's 
good practice to include a PROJECTION block in ALL layers if they're not 
all the same projection. 

If you run "mapserv -v" from the command line, does it show 
"SUPPORTS=PROJ"? 

 - Ed 
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 

From: mapserver-users-admin at lists.gis.umn.edu 
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of 
kgrootendorst at baird.com
Sent: Wednesday, July 14, 2004 10:17 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Reprojecting Problem


Hello, 
I'm having trouble with reprojecting in Mapserver.  I'm trying to 
reproject my 'shoreline' file (defined as UTM 17N NAD83) to my map, which 
has been defined with a customized lambert conformal conic projection. 
Based on my Mapfile below, can anyone see why my data will not re-project? 
 Am I missing something?  I thought everything looked okay, but obviously 
something must be wrong! 


MAP 
NAME "test" 
STATUS ON 
EXTENT 6000000 600000 9000000 1500000 
#Minx Miny Maxx Maxy 
SIZE 600 400 
SHAPEPATH "./Data" 
SYMBOLSET "./etc/symbols.sym" 
FONTSET "./etc/fonts.txt" 
IMAGETYPE PNG 
UNITS METERS 
WEB 
IMAGEPATH "C:/Program Files/Apache Group/Apache2/htdocs/ms_tmp/" 
IMAGEURL "/ms_tmp/" 
END 
PROJECTION 
"init=epsg:50000"     #Custom LCC Projection - defined in proj/epsg 
END 
LEGEND 
STATUS ON 
IMAGECOLOR 255 255 255 
POSITION LL 
KEYSIZE 18 12 
KEYSPACING 5 5 
END 
SCALEBAR 
STATUS ON 
COLOR 255 255 255 
OUTLINECOLOR 0 0 0 
BACKGROUNDCOLOR 0 0 0 
IMAGECOLOR 255 255 255 
UNITS KILOMETERS 
INTERVALS 5 
SIZE 150 10 
STYLE 0 
POSITION LL 
END 
LAYER 
NAME "ec_counties_LCC" 
STATUS ON 
DATA "./ec_counties_LCC" 
TYPE POLYGON 
UNITS METERS 
SIZEUNITS PIXELS 
CLASS 
  NAME "ec_counties_LCC" 
  TEMPLATE "ttt" 
  STYLE 
    SYMBOL 0 
    COLOR 211 255 190 
    OUTLINECOLOR 0 0 0 
  END 
END 
END 
LAYER 
NAME "New_York_County" 
STATUS ON 
DATA "./New_York_County" 
TYPE POLYGON 
#LABELITEM "NAME" 
CLASS 
  #NAME "New_York_County" 
  TEMPLATE "ttt" 
  LABEL 
    TYPE bitmap 
    FONT "arial" 
    SIZE small 
    POSITION CC 
    COLOR 255 0 0 
  END 
  STYLE 
    SYMBOL 0 
    COLOR 252 241 207 
    OUTLINECOLOR 0 0 0 
  END 
END 
END 
LAYER 
NAME "Shoreline_UTM" 
STATUS ON 
DATA "./Shoreline_UTM" 
TYPE LINE 
UNITS METERS 
SIZEUNITS PIXELS 
PROJECTION 
  "init=epsg:26917"      #UTM Zone 17N NAD 83 
END 
CLASS 
  STYLE 
    SYMBOL 0 
    COLOR 0 0 255 
  END 
END 
END 
END 

Thanks. 

Kevin 

--=_alternative 005CAA3385256ED2_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Ed,</font>
<br><font size=2 face="sans-serif">I'm an idiot. &nbsp; Yes, the false
northing was correct - one of the other parameters was incorrect. &nbsp;</font>
<br><font size=2 face="sans-serif">All is good now.</font>
<br><font size=2 face="sans-serif">Thanks for your help - I hope I didn't
waste too much of your time!!!</font>
<br>
<br><font size=2 face="sans-serif">Kevin</font>
<p><font size=5 color=blue face="Times New Roman">______________________________</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Ed McNierney&quot;
&lt;ed at topozone.com&gt;</b> </font>
<p><font size=1 face="sans-serif">07/15/2004 12:14 PM</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">&lt;kgrootendorst at baird.com&gt;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top><font size=1 face="sans-serif">&lt;mapserver-users at lists.gis.umn.edu&gt;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">RE: [Mapserver-users] Reprojecting
Problem</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="Arial">Kevin -</font>
<br><font size=3>&nbsp;</font>
<br><font size=2 face="Arial">Excellent data - now you're getting somewhere.
&nbsp;If you can see both shapefiles and they're about correct horizontally,
then you're getting SOME reprojection happening. &nbsp;So the next thing
to check is your projection definition.</font>
<br><font size=3>&nbsp;</font>
<br><font size=2 face="Arial">Where did you get this projection definition
from? &nbsp;Are you sure that the false northing (the </font><font size=2 face="Lucida Sans Unicode">+y_0=2958000
parameter) is correct?</font>
<br><font size=3>&nbsp;</font>
<br><font size=3>&nbsp; &nbsp; </font><font size=2 face="Lucida Sans Unicode">-
Ed</font>
<p><font size=2>Ed McNierney<br>
President and Chief Mapmaker<br>
TopoZone.com / Maps a la carte, Inc.<br>
73 Princeton Street, Suite 305<br>
North Chelmsford, MA &nbsp;01863<br>
ed at topozone.com<br>
(978) 251-4242 </font>
<p>
<br>
<hr><font size=2 face="Tahoma"><b>From:</b> kgrootendorst at baird.com [mailto:kgrootendorst at baird.com]
<b><br>
Sent:</b> Thursday, July 15, 2004 12:06 PM<b><br>
To:</b> Ed McNierney<b><br>
Cc:</b> mapserver-users at lists.gis.umn.edu<b><br>
Subject:</b> RE: [Mapserver-users] Reprojecting Problem</font><font size=3><br>
</font>
<br><font size=2 face="sans-serif"><br>
Ed,</font><font size=3> </font><font size=2 face="sans-serif"><br>
Thanks for your help. &nbsp;I meant to reply to the list before but hit
'reply' instead of 'reply to all'.....</font><font size=3> </font><font size=2 face="sans-serif"><br>
In response to your questions below:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
1. &nbsp; The shoreline extents are correct.</font><font size=3> </font><font size=2 face="sans-serif"><br>
2. &nbsp; The source projection is correct.</font><font size=3> </font><font size=2 face="sans-serif"><br>
3. &nbsp; I can see the both the shoreline and the counties shapefile -
however the shoreline draws many km's (1,000's) to the north of the counties.
&nbsp;Horizontally looks okay - vertically is wrong.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
4. &nbsp;I'm assuming I have the datum shift files installed in proj -
I'm using the proj that came with MS 4.2. &nbsp; I'm not sure how to use
the command line to do a datum shift - do you mean the url?</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Thanks again.</font><font size=3> </font><font size=2 face="sans-serif"><br>
I'm going to triple check my numbers - looks like a vertical shift somewhere.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Kevin</font><font size=5 color=blue face="Times New Roman"><br>
______________________________</font><font size=3> <br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=46%><font size=1 face="sans-serif"><b>&quot;Ed McNierney&quot;
&lt;ed at topozone.com&gt;</b> </font>
<p><font size=1 face="sans-serif">07/15/2004 09:26 AM</font><font size=3>
</font>
<td width=53%>
<br>
<table width=100%>
<tr>
<td width=15%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=84% valign=top><font size=1 face="sans-serif">&lt;kgrootendorst at baird.com&gt;</font><font size=3>
</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top><font size=1 face="sans-serif">&lt;mapserver-users at lists.gis.umn.edu&gt;</font><font size=3>
</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">RE: [Mapserver-users] Reprojecting
Problem</font></table>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=49%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
</font><font size=2 color=blue face="Arial"><br>
Kevin -</font><font size=3> <br>
 &nbsp;</font><font size=2 color=blue face="Arial"><br>
Then stick to that problem until it's fixed! &nbsp;Things to think about:</font><font size=3>
<br>
 &nbsp;</font><font size=2 color=blue face="Arial"><br>
1. Do you have the extents of the shoreline wrong? &nbsp;Could it be in
the wrong place?</font><font size=3> </font><font size=2 color=blue face="Arial"><br>
2. Are you SURE you've got the source projection correct?</font><font size=3>
</font><font size=2 color=blue face="Arial"><br>
3. Set the EXTENT of the requested map to be HUGE, so the shoreline should
be visible no matter where it is.</font><font size=3> </font><font size=2 color=blue face="Arial"><br>
4. Are you sure you have the datum shift files installed in PROJ? &nbsp;Can
you use the command-line PROJ to do a datum shift correctly?</font><font size=3>
<br>
 &nbsp;</font><font size=2 color=blue face="Arial"><br>
Please keep replying on the list - I may not have time to keep helping,
and others may think of solutions that I miss.</font><font size=3> <br>
 &nbsp;<br>
 &nbsp; &nbsp;</font><font size=2 color=blue face="Arial">- Ed</font><font size=3>
</font>
<p><font size=2>Ed McNierney<br>
President and Chief Mapmaker<br>
TopoZone.com / Maps a la carte, Inc.<br>
73 Princeton Street, Suite 305<br>
North Chelmsford, MA &nbsp;01863<br>
ed at topozone.com<br>
(978) 251-4242 </font>
<p><font size=3><br>
</font>
<hr><font size=2 face="Tahoma"><b>From:</b> kgrootendorst at baird.com [mailto:kgrootendorst at baird.com]
<b><br>
Sent:</b> Thursday, July 15, 2004 9:01 AM<b><br>
To:</b> Ed McNierney<b><br>
Subject:</b> RE: [Mapserver-users] Reprojecting Problem</font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
<br>
Ed,</font><font size=3> </font><font size=2 face="sans-serif"><br>
The shoreline does not display when trying to reproject from UTM to LCC.<br>
<br>
Kevin</font><font size=3> </font>
<p><font size=3><br>
</font>
<table width=100%>
<tr valign=top>
<td width=46%><font size=1 face="sans-serif"><b>&quot;Ed McNierney&quot;
&lt;ed at topozone.com&gt;</b> </font>
<p><font size=1 face="sans-serif">07/14/2004 06:20 PM</font><font size=3>
</font>
<td width=53%>
<br>
<table width=100%>
<tr>
<td width=15%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=84% valign=top><font size=1 face="sans-serif">&lt;kgrootendorst at baird.com&gt;</font><font size=3>
</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top><font size=1 face="sans-serif">&lt;mapserver-users at lists.gis.umn.edu&gt;</font><font size=3>
</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">RE: [Mapserver-users] Reprojecting
Problem</font></table>
<br><font size=3><br>
</font>
<br>
<table width=100%>
<tr valign=top>
<td width=49%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
</font><font size=2 color=blue face="Arial"><br>
<br>
Kevin -</font><font size=3> <br>
 </font><font size=2 color=blue face="Arial"><br>
Thanks - it's good to have that confirmed. &nbsp;The next thing I'd do
is restore the PROJECTION and EXTENT to the MAP file so you display ONLY
the shoreline layer, but reprojected to your LCC projection. &nbsp;You
also don't need the &quot;+no_defs&quot; before the &quot;no_defs&quot;
in your projection definition.</font><font size=3> <br>
 <br>
 &nbsp; </font><font size=2 color=blue face="Arial">- Ed</font><font size=3>
<br>
<br>
</font>
<hr><font size=2 face="Tahoma"><b>From:</b> kgrootendorst at baird.com [mailto:kgrootendorst at baird.com]
<b><br>
Sent:</b> Wednesday, July 14, 2004 5:10 PM<b><br>
To:</b> Ed McNierney<b><br>
Cc:</b> mapserver-users at lists.gis.umn.edu<b><br>
Subject:</b> RE: [Mapserver-users] Reprojecting Problem</font><font size=2 face="sans-serif"><br>
<br>
<br>
Ed,</font><font size=3> </font><font size=2 face="sans-serif"><br>
I did what you suggested, and the shoreline displayed fine in UTM extents.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
Kevin</font><font size=3><br>
</font>
<table width=100%>
<tr valign=top>
<td width=46%><font size=1 face="sans-serif"><b>&quot;Ed McNierney&quot;
&lt;ed at topozone.com&gt;</b> </font>
<p><font size=1 face="sans-serif">07/14/2004 01:34 PM</font><font size=3>
</font>
<td width=53%>
<br>
<table width=100%>
<tr>
<td width=15%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=84% valign=top><font size=1 face="sans-serif">&lt;kgrootendorst at baird.com&gt;</font><font size=3>
</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top><font size=1 face="sans-serif">&lt;mapserver-users at lists.gis.umn.edu&gt;</font><font size=3>
</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">RE: [Mapserver-users] Reprojecting
Problem</font></table>
<br><font size=3><br>
<br>
</font>
<br>
<table width=100%>
<tr valign=top>
<td width=49%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
</font><font size=2 color=blue face="Arial"><br>
<br>
<br>
Kevin -</font><font size=3> </font><font size=2 color=blue face="Arial"><br>
<br>
Thanks; I'd suggest next modifying the MAP file to comment out ALL PROJECTION
blocks, and turn off all the layers except the shore line. &nbsp;You'll
need to adjust the EXTENT to have the right values in UTM coordinates,
but this should get you a UTM-output map of the shoreline. &nbsp;I'm trying
to make sure that all your data is valid and is really in the projection
you think it is.</font><font size=3> <br>
<br>
 &nbsp;</font><font size=2 color=blue face="Arial">- Ed</font><font size=3>
</font>
<p><font size=2>Ed McNierney<br>
President and Chief Mapmaker<br>
TopoZone.com / Maps a la carte, Inc.<br>
73 Princeton Street, Suite 305<br>
North Chelmsford, MA &nbsp;01863<br>
ed at topozone.com<br>
(978) 251-4242 </font>
<p><font size=3><br>
</font>
<hr><font size=2 face="Tahoma"><b>From:</b> kgrootendorst at baird.com [mailto:kgrootendorst at baird.com]
<b><br>
Sent:</b> Wednesday, July 14, 2004 12:45 PM<b><br>
To:</b> Ed McNierney<b><br>
Cc:</b> mapserver-users at lists.gis.umn.edu<b><br>
Subject:</b> RE: [Mapserver-users] Reprojecting Problem</font><font size=2 face="sans-serif"><br>
<br>
<br>
Ed,</font><font size=3> </font><font size=2 face="sans-serif"><br>
Yes, it supports proj, and the other layers look okay. &nbsp;These other
layers are in the same projection as the map object.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
The custom projection I'm using in the map is as follows:</font><font size=3>
</font><font size=2 face="sans-serif"><br>
# Custom Lambert Conformal Conic</font><font size=3> </font><font size=2 face="sans-serif"><br>
&lt;50000&gt; +proj=lcc +lat_1=49 +lat_2=63 +lat_0=49 +lon_0=-91.86 +x_0=6200000
+y_0=2958000 +ellps=GRS80 +datum=NAD83 +units=m +no_defs &nbsp;no_defs
&lt;&gt;</font><font size=3> </font><font size=2 face="sans-serif"><br>
I've had no problems using this projection with ArcMap.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
I'm running the following:</font><font size=3> </font><font size=2 face="sans-serif"><br>
Mapserver 4.2</font><font size=3> </font><font size=2 face="sans-serif"><br>
PHP 4.3.4</font><font size=3> </font><font size=2 face="sans-serif"><br>
Win2000</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
Kevin</font><font size=3><br>
</font>
<table width=100%>
<tr valign=top>
<td width=34%><font size=1 face="sans-serif"><b>&quot;Ed McNierney&quot;
&lt;ed at topozone.com&gt;</b> </font>
<p><font size=1 face="sans-serif">07/14/2004 10:50 AM</font><font size=3>
</font>
<td width=65%>
<br>
<table width=100%>
<tr>
<td width=13%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=86% valign=top><font size=1 face="sans-serif">&lt;kgrootendorst at baird.com&gt;,
&lt;mapserver-users at lists.gis.umn.edu&gt;</font><font size=3> </font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">[SPAM] - RE: [Mapserver-users]
Reprojecting Problem - Email found in subject</font></table>
<br><font size=3><br>
<br>
<br>
</font>
<br>
<table width=100%>
<tr valign=top>
<td width=49%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
</font><font size=2 color=blue face="Arial"><br>
<br>
<br>
<br>
Kevin -</font><font size=3> </font><font size=2 color=blue face="Arial"><br>
<br>
Do all your other layers look OK in the output map? &nbsp;BTW, I think
it's good practice to include a PROJECTION block in ALL layers if they're
not all the same projection.</font><font size=3> </font><font size=2 color=blue face="Arial"><br>
<br>
If you run &quot;mapserv -v&quot; from the command line, does it show &quot;SUPPORTS=PROJ&quot;?</font><font size=3>
</font><font size=2 color=blue face="Arial"><br>
<br>
 - Ed</font><font size=3> </font>
<p><font size=2 color=blue face="Arial">Ed McNierney<br>
President and Chief Mapmaker<br>
TopoZone.com / Maps a la carte, Inc.<br>
73 Princeton Street, Suite 305<br>
North Chelmsford, MA &nbsp;01863<br>
ed at topozone.com<br>
(978) 251-4242 </font>
<p><font size=3><br>
</font>
<hr><font size=2 face="Tahoma"><b>From:</b> mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] <b>On Behalf Of </b>kgrootendorst at baird.com<b><br>
Sent:</b> Wednesday, July 14, 2004 10:17 AM<b><br>
To:</b> mapserver-users at lists.gis.umn.edu<b><br>
Subject:</b> [Mapserver-users] Reprojecting Problem</font><font size=2 face="sans-serif"><br>
<br>
<br>
Hello,</font><font size=3> </font><font size=2 face="sans-serif"><br>
I'm having trouble with reprojecting in Mapserver. &nbsp;I'm trying to
reproject my 'shoreline' file (defined as UTM 17N NAD83) to my map, which
has been defined with a customized lambert conformal conic projection.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
Based on my Mapfile below, can anyone see why my data will not re-project?
&nbsp;Am I missing something? &nbsp;I thought everything looked okay, but
obviously something must be wrong!</font><font size=3> </font><font size=2 face="Courier New"><br>
<br>
<br>
MAP</font><font size=3> </font><font size=2 face="Courier New"><br>
NAME &quot;test&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
STATUS ON</font><font size=3> </font><font size=2 face="Courier New"><br>
EXTENT 6000000 600000 9000000 1500000 <br>
#Minx Miny Maxx Maxy</font><font size=3> </font><font size=2 face="Courier New"><br>
SIZE 600 400 <br>
SHAPEPATH &quot;./Data&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
SYMBOLSET &quot;./etc/symbols.sym&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
FONTSET &quot;./etc/fonts.txt&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
IMAGETYPE PNG</font><font size=3> </font><font size=2 face="Courier New"><br>
UNITS METERS</font><font size=3> </font><font size=2 face="Courier New"><br>
WEB</font><font size=3> </font><font size=2 face="Courier New"><br>
IMAGEPATH &quot;C:/Program Files/Apache Group/Apache2/htdocs/ms_tmp/&quot;</font><font size=3>
</font><font size=2 face="Courier New"><br>
IMAGEURL &quot;/ms_tmp/&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
END</font><font size=3> </font><font size=2 face="Courier New"><br>
PROJECTION</font><font size=3> </font><font size=2 face="Courier New"><br>
&quot;init=epsg:50000&quot; &nbsp; &nbsp; #Custom LCC Projection - defined
in proj/epsg</font><font size=3> </font><font size=2 face="Courier New"><br>
END</font><font size=3> </font><font size=2 face="Courier New"><br>
LEGEND</font><font size=3> </font><font size=2 face="Courier New"><br>
STATUS ON</font><font size=3> </font><font size=2 face="Courier New"><br>
IMAGECOLOR 255 255 255</font><font size=3> </font><font size=2 face="Courier New"><br>
POSITION LL</font><font size=3> </font><font size=2 face="Courier New"><br>
KEYSIZE 18 12 <br>
KEYSPACING 5 5 <br>
END</font><font size=3> </font><font size=2 face="Courier New"><br>
SCALEBAR</font><font size=3> </font><font size=2 face="Courier New"><br>
STATUS ON</font><font size=3> </font><font size=2 face="Courier New"><br>
COLOR 255 255 255</font><font size=3> </font><font size=2 face="Courier New"><br>
OUTLINECOLOR 0 0 0</font><font size=3> </font><font size=2 face="Courier New"><br>
BACKGROUNDCOLOR 0 0 0</font><font size=3> </font><font size=2 face="Courier New"><br>
IMAGECOLOR 255 255 255</font><font size=3> </font><font size=2 face="Courier New"><br>
UNITS KILOMETERS</font><font size=3> </font><font size=2 face="Courier New"><br>
INTERVALS 5</font><font size=3> </font><font size=2 face="Courier New"><br>
SIZE 150 10 <br>
STYLE 0</font><font size=3> </font><font size=2 face="Courier New"><br>
POSITION LL</font><font size=3> </font><font size=2 face="Courier New"><br>
END</font><font size=3> </font><font size=2 face="Courier New"><br>
LAYER</font><font size=3> </font><font size=2 face="Courier New"><br>
NAME &quot;ec_counties_LCC&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
STATUS ON</font><font size=3> </font><font size=2 face="Courier New"><br>
DATA &quot;./ec_counties_LCC&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
TYPE POLYGON</font><font size=3> </font><font size=2 face="Courier New"><br>
UNITS METERS</font><font size=3> </font><font size=2 face="Courier New"><br>
SIZEUNITS PIXELS</font><font size=3> </font><font size=2 face="Courier New"><br>
CLASS</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp;NAME &quot;ec_counties_LCC&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp;TEMPLATE &quot;ttt&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp;STYLE</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp;SYMBOL 0</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp;COLOR 211 255 190</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp;OUTLINECOLOR 0 0 0</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp;END</font><font size=3> </font><font size=2 face="Courier New"><br>
END</font><font size=3> </font><font size=2 face="Courier New"><br>
END</font><font size=3> </font><font size=2 face="Courier New"><br>
LAYER</font><font size=3> </font><font size=2 face="Courier New"><br>
NAME &quot;New_York_County&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
STATUS ON</font><font size=3> </font><font size=2 face="Courier New"><br>
DATA &quot;./New_York_County&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
TYPE POLYGON</font><font size=3> </font><font size=2 face="Courier New"><br>
#LABELITEM &quot;NAME&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
CLASS</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp;#NAME &quot;New_York_County&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp;TEMPLATE &quot;ttt&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp;LABEL</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp;TYPE bitmap</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp;FONT &quot;arial&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp;SIZE small</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp;POSITION CC</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp;COLOR 255 0 0</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp;END</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp;STYLE</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp;SYMBOL 0</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp;COLOR 252 241 207</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp;OUTLINECOLOR 0 0 0</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp;END</font><font size=3> </font><font size=2 face="Courier New"><br>
END</font><font size=3> </font><font size=2 face="Courier New"><br>
END</font><font size=3> </font><font size=2 face="Courier New"><br>
LAYER</font><font size=3> </font><font size=2 face="Courier New"><br>
NAME &quot;Shoreline_UTM&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
STATUS ON</font><font size=3> </font><font size=2 face="Courier New"><br>
DATA &quot;./Shoreline_UTM&quot;</font><font size=3> </font><font size=2 face="Courier New"><br>
TYPE LINE</font><font size=3> </font><font size=2 face="Courier New"><br>
UNITS METERS</font><font size=3> </font><font size=2 face="Courier New"><br>
SIZEUNITS PIXELS</font><font size=3> </font><font size=2 face="Courier New"><br>
PROJECTION</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp;&quot;init=epsg:26917&quot; &nbsp; &nbsp; &nbsp;#UTM Zone 17N NAD
83</font><font size=3> </font><font size=2 face="Courier New"><br>
END</font><font size=3> </font><font size=2 face="Courier New"><br>
CLASS</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp;STYLE</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp;SYMBOL 0</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp;COLOR 0 0 255</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp;END</font><font size=3> </font><font size=2 face="Courier New"><br>
END</font><font size=3> </font><font size=2 face="Courier New"><br>
END</font><font size=3> </font><font size=2 face="Courier New"><br>
END</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
Thanks.</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
Kevin</font><font size=3> </font>
<p>
--=_alternative 005CAA3385256ED2_=--



More information about the mapserver-users mailing list