[Mapserver-users] Reprojecting Problem

Ed McNierney ed at topozone.com
Wed Jul 14 10:50:17 EDT 2004


This is a multi-part message in MIME format.

------_=_NextPart_001_01C469B1.E11EC487
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Kevin -
=20
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.
=20
If you run "mapserv -v" from the command line, does it show
"SUPPORTS=3DPROJ"?
=20
    - 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=20


________________________________

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,=20
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.=20
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!=20


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

Thanks.=20

Kevin

------_=_NextPart_001_01C469B1.E11EC487
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D536454814-14072004><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Kevin -</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D536454814-14072004><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D536454814-14072004><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Do all your other layers look OK in the output =
map?&nbsp;=20
BTW, I think it's good practice to include a PROJECTION block in ALL =
layers if=20
they're not all the same projection.</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=3D536454814-14072004></SPAN><FONT face=3DArial><FONT=20
color=3D#0000ff><FONT size=3D2>I<SPAN class=3D536454814-14072004>f you =
run "mapserv=20
-v" from the command line, does it show=20
"SUPPORTS=3DPROJ"?</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D536454814-14072004></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D536454814-14072004>&nbsp;&nbsp;&nbsp; -=20
Ed</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D536454814-14072004>
<P><FONT size=3D2>Ed McNierney<BR>President and Chief =
Mapmaker<BR>TopoZone.com /=20
Maps a la carte, Inc.<BR>73 Princeton Street, Suite 305<BR>North =
Chelmsford,=20
MA&nbsp; 01863<BR>ed at topozone.com<BR>(978) 251-4242=20
</FONT></P></SPAN></FONT></FONT></FONT></DIV>
<DIV><BR></DIV>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> =
mapserver-users-admin at lists.gis.umn.edu=20
[mailto:mapserver-users-admin at lists.gis.umn.edu] <B>On Behalf Of=20
</B>kgrootendorst at baird.com<BR><B>Sent:</B> Wednesday, July 14, 2004 =
10:17=20
AM<BR><B>To:</B> mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B>=20
[Mapserver-users] Reprojecting Problem<BR></FONT><BR></DIV>
<DIV></DIV><BR><FONT face=3Dsans-serif size=3D2>Hello,</FONT> <BR><FONT=20
face=3Dsans-serif size=3D2>I'm having trouble with reprojecting in =
Mapserver.=20
&nbsp;I'm trying to reproject my 'shoreline' file (defined as UTM 17N =
NAD83) to=20
my map, which has been defined with a customized lambert conformal conic =

projection.</FONT> <BR><FONT face=3Dsans-serif size=3D2>Based on my =
Mapfile below,=20
can anyone see why my data will not re-project? &nbsp;Am I missing =
something?=20
&nbsp;I thought everything looked okay, but obviously something must be=20
wrong!</FONT> <BR><BR><FONT face=3Dsans-serif size=3D2><BR></FONT><FONT=20
face=3D"Courier New" size=3D2>MAP</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp;=20
NAME "test"</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; STATUS =
ON</FONT>=20
<BR><FONT face=3D"Courier New" size=3D2>&nbsp; EXTENT 6000000 600000 =
9000000 1500000=20
</FONT><BR><FONT face=3D"Courier New" size=3D2>&nbsp; #Minx Miny Maxx =
Maxy</FONT>=20
<BR><FONT face=3D"Courier New" size=3D2>&nbsp; SIZE 600 400 =
</FONT><BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; SHAPEPATH "./Data"</FONT> <BR><FONT =

face=3D"Courier New" size=3D2>&nbsp; SYMBOLSET =
"./etc/symbols.sym"</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; FONTSET "./etc/fonts.txt"</FONT> =
<BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; IMAGETYPE PNG</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; UNITS METERS</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; WEB</FONT> <BR><FONT =
face=3D"Courier New"=20
size=3D2>&nbsp; &nbsp; IMAGEPATH "C:/Program Files/Apache=20
Group/Apache2/htdocs/ms_tmp/"</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp;=20
&nbsp; IMAGEURL "/ms_tmp/"</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp;=20
END</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; =
PROJECTION</FONT>=20
<BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
"init=3Depsg:50000" &nbsp;=20
&nbsp; #Custom LCC Projection - defined in proj/epsg</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; END</FONT> <BR><FONT =
face=3D"Courier New"=20
size=3D2>LEGEND</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; =
&nbsp; STATUS=20
ON</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
IMAGECOLOR 255 255=20
255</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
POSITION LL</FONT>=20
<BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; KEYSIZE 18 12 =
</FONT><BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; KEYSPACING 5 5 =
</FONT><BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; END</FONT> <BR><FONT =
face=3D"Courier New"=20
size=3D2>&nbsp; SCALEBAR</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp; &nbsp;=20
STATUS ON</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
COLOR 255 255=20
255</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
OUTLINECOLOR 0 0=20
0</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
BACKGROUNDCOLOR 0 0=20
0</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
IMAGECOLOR 255 255=20
255</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; UNITS=20
KILOMETERS</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
INTERVALS=20
5</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; SIZE 150 =
10=20
</FONT><BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; STYLE =
0</FONT>=20
<BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; POSITION LL</FONT> =
<BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; END</FONT> <BR><FONT =
face=3D"Courier New"=20
size=3D2>&nbsp; LAYER</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp; &nbsp;=20
NAME "ec_counties_LCC"</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp; &nbsp;=20
STATUS ON</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
DATA=20
"./ec_counties_LCC"</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp; &nbsp;=20
TYPE POLYGON</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; =
&nbsp; UNITS=20
METERS</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
SIZEUNITS=20
PIXELS</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
CLASS</FONT>=20
<BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; &nbsp; NAME=20
"ec_counties_LCC"</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; =
&nbsp;=20
&nbsp; TEMPLATE "ttt"</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp; &nbsp;=20
&nbsp; STYLE</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; =
&nbsp; &nbsp;=20
&nbsp; SYMBOL 0</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; =
&nbsp; &nbsp;=20
&nbsp; COLOR 211 255 190</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp;=20
&nbsp; &nbsp; &nbsp; OUTLINECOLOR 0 0 0</FONT> <BR><FONT face=3D"Courier =
New"=20
size=3D2>&nbsp; &nbsp; &nbsp; END</FONT> <BR><FONT face=3D"Courier New"=20
size=3D2>&nbsp; &nbsp; END</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp;=20
END</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; LAYER</FONT> =
<BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; NAME =
"New_York_County"</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; STATUS ON</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; DATA =
"./New_York_County"</FONT>=20
<BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; TYPE =
POLYGON</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; #LABELITEM "NAME"</FONT> =
<BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; CLASS</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; &nbsp; #NAME =
"New_York_County"</FONT>=20
<BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; &nbsp; TEMPLATE =
"ttt"</FONT>=20
<BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; &nbsp; =
LABEL</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; &nbsp; &nbsp; TYPE =
bitmap</FONT>=20
<BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; &nbsp; &nbsp; FONT =

"arial"</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
&nbsp; &nbsp;=20
SIZE small</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
&nbsp;=20
&nbsp; POSITION CC</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; =
&nbsp;=20
&nbsp; &nbsp; COLOR 255 0 0</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp;=20
&nbsp; &nbsp; END</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; =
&nbsp;=20
&nbsp; STYLE</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; =
&nbsp; &nbsp;=20
&nbsp; SYMBOL 0</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; =
&nbsp; &nbsp;=20
&nbsp; COLOR 252 241 207</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp;=20
&nbsp; &nbsp; &nbsp; OUTLINECOLOR 0 0 0</FONT> <BR><FONT face=3D"Courier =
New"=20
size=3D2>&nbsp; &nbsp; &nbsp; END</FONT> <BR><FONT face=3D"Courier New"=20
size=3D2>&nbsp; &nbsp; END</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp;=20
END</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; LAYER</FONT> =
<BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; NAME "Shoreline_UTM"</FONT> =
<BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; STATUS ON</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; DATA =
"./Shoreline_UTM"</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; TYPE LINE</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; UNITS METERS</FONT> =
<BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; SIZEUNITS PIXELS</FONT> =
<BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; PROJECTION</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; &nbsp; "init=3Depsg:26917" =
&nbsp; &nbsp;=20
&nbsp;#UTM Zone 17N NAD 83</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>&nbsp;=20
&nbsp; END</FONT> <BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; =
CLASS</FONT>=20
<BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; &nbsp; =
STYLE</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; &nbsp; &nbsp; SYMBOL =
0</FONT> <BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; &nbsp; &nbsp; COLOR 0 0 =
255</FONT>=20
<BR><FONT face=3D"Courier New" size=3D2>&nbsp; &nbsp; &nbsp; END</FONT> =
<BR><FONT=20
face=3D"Courier New" size=3D2>&nbsp; &nbsp; END</FONT> <BR><FONT =
face=3D"Courier New"=20
size=3D2>&nbsp; END</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>END</FONT>=20
<BR><BR><FONT face=3Dsans-serif size=3D2>Thanks.</FONT> <BR><BR><FONT=20
face=3Dsans-serif size=3D2>Kevin</FONT></BODY></HTML>

------_=_NextPart_001_01C469B1.E11EC487--



More information about the mapserver-users mailing list