[Mapserver-users] Reprojecting Problem

kgrootendorst at baird.com kgrootendorst at baird.com
Wed Jul 14 10:16:35 EDT 2004


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

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


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



More information about the mapserver-users mailing list