[Mapserver-users] Reprojecting Problem

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