[Mapserver-users] Reprojecting Problem

kgrootendorst at baird.com kgrootendorst at baird.com
Wed Jul 14 09:45:05 PDT 2004


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

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 005C067C85256ED1_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Ed,</font>
<br><font size=2 face="sans-serif">Yes, it supports proj, and the other
layers look okay.  These other layers are in the same projection as
the map object.</font>
<br><font size=2 face="sans-serif">The custom projection I'm using in the
map is as follows:</font>
<br><font size=2 face="sans-serif"># Custom Lambert Conformal Conic</font>
<br><font size=2 face="sans-serif"><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 <></font>
<br><font size=2 face="sans-serif">I've had no problems using this projection
with ArcMap.</font>
<br>
<br><font size=2 face="sans-serif">I'm running the following:</font>
<br><font size=2 face="sans-serif">Mapserver 4.2</font>
<br><font size=2 face="sans-serif">PHP 4.3.4</font>
<br><font size=2 face="sans-serif">Win2000</font>
<br>
<br><font size=2 face="sans-serif">Kevin<br>
<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Ed McNierney"
<ed at topozone.com></b> </font>
<p><font size=1 face="sans-serif">07/14/2004 10:50 AM</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"><kgrootendorst at baird.com>,
<mapserver-users at lists.gis.umn.edu></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>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 color=blue face="Arial">Kevin -</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Arial">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.</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Arial">If you run "mapserv -v"
from the command line, does it show "SUPPORTS=PROJ"?</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Arial">    - Ed</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  01863<br>
ed at topozone.com<br>
(978) 251-4242 </font>
<p>
<br>
<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=3><br>
</font>
<br><font size=2 face="sans-serif"><br>
Hello,</font><font size=3> </font><font size=2 face="sans-serif"><br>
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.</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?
 Am I missing something?  I thought everything looked okay, but
obviously something must be wrong!</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
</font><font size=2 face="Courier New"><br>
MAP</font><font size=3> </font><font size=2 face="Courier New"><br>
  NAME "test"</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 "./Data"</font><font size=3> </font><font size=2 face="Courier New"><br>
  SYMBOLSET "./etc/symbols.sym"</font><font size=3> </font><font size=2 face="Courier New"><br>
  FONTSET "./etc/fonts.txt"</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 "C:/Program Files/Apache Group/Apache2/htdocs/ms_tmp/"</font><font size=3>
</font><font size=2 face="Courier New"><br>
    IMAGEURL "/ms_tmp/"</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>
    "init=epsg:50000"     #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 "ec_counties_LCC"</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 "./ec_counties_LCC"</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>
      NAME "ec_counties_LCC"</font><font size=3>
</font><font size=2 face="Courier New"><br>
      TEMPLATE "ttt"</font><font size=3> </font><font size=2 face="Courier New"><br>
      STYLE</font><font size=3> </font><font size=2 face="Courier New"><br>
        SYMBOL 0</font><font size=3> </font><font size=2 face="Courier New"><br>
        COLOR 211 255 190</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>
      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 "New_York_County"</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 "./New_York_County"</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 "NAME"</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>
      #NAME "New_York_County"</font><font size=3>
</font><font size=2 face="Courier New"><br>
      TEMPLATE "ttt"</font><font size=3> </font><font size=2 face="Courier New"><br>
      LABEL</font><font size=3> </font><font size=2 face="Courier New"><br>
        TYPE bitmap</font><font size=3> </font><font size=2 face="Courier New"><br>
        FONT "arial"</font><font size=3>
</font><font size=2 face="Courier New"><br>
        SIZE small</font><font size=3> </font><font size=2 face="Courier New"><br>
        POSITION CC</font><font size=3> </font><font size=2 face="Courier New"><br>
        COLOR 255 0 0</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>
      STYLE</font><font size=3> </font><font size=2 face="Courier New"><br>
        SYMBOL 0</font><font size=3> </font><font size=2 face="Courier New"><br>
        COLOR 252 241 207</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>
      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 "Shoreline_UTM"</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 "./Shoreline_UTM"</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>
      "init=epsg:26917"      #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>
      STYLE</font><font size=3> </font><font size=2 face="Courier New"><br>
        SYMBOL 0</font><font size=3> </font><font size=2 face="Courier New"><br>
        COLOR 0 0 255</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="Courier New"><br>
END</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Thanks.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Kevin</font>
<br>
--=_alternative 005C067C85256ED1_=--



More information about the MapServer-users mailing list