Hi All,<div><br></div><div>I&#39;m a bit confused as to the way mapserver deals with projections.  My understanding is that if I place a &#39;PROJECTION&#39; tag as a high level object in the mapfile, then that is the projection I should expect when I read coordinates from a tool such as Chameleon&#39;s cursorpos widget.  </div>
<div><br></div><div>If I then have layers using data of a different base projection I need to place a &#39;PROJECTION&#39; tag within the &#39;LAYER&#39; object describing the projection of the base layer.  This will ensure all layers even if they are different projections will reproject correctly and layers will render in the correct position relative to each other.</div>
<div><br></div><div>If the above is correct can someone explain why I my map is rendering in the projection of the base layers rather than the projection I define in the mapfile level &#39;PROJECTION&#39; object.  See below for me example mapfile.</div>
<div><br></div><div>Tony</div><div><br></div><div><div>#</div><div># Start of map file</div><div>#</div><div>MAP</div><div>  NAME sp_geography</div><div>  STATUS ON</div><div>  SIZE 800 500</div><div>  EXTENT 564300 9470937 599600 9493000</div>
<div>  UNITS METERS</div><div>  SHAPEPATH &quot;/opt/FriedaRiver/&quot;</div><div>  IMAGECOLOR 237 255 208</div><div>  SYMBOLSET &quot;/opt/testwww/htdocs/includes/symbols.sym&quot;</div><div>  FONTSET &quot;/usr/share/fonts/truetype/font.list&quot;</div>
<div>  DEBUG 2</div><div>  CONFIG &quot;MS_ERRORFILE&quot; &quot;/opt/testwww/wms_error/ms_error.txt&quot;</div><div><br></div><div>OUTPUTFORMAT</div><div>  NAME &quot;AGGA&quot;</div><div>  MIMETYPE &quot;image/png&quot;</div>
<div>  DRIVER &quot;AGG/PNG&quot;</div><div>  EXTENSION &quot;png&quot;</div><div>  IMAGEMODE RGBA</div><div>  TRANSPARENT ON</div><div>END</div><div>  </div><div>#</div><div># Start of web interface definition</div><div>
# </div><div>WEB</div><div>      IMAGEPATH &quot;/opt/testwww/ms_tmp/&quot;</div><div>      IMAGEURL &quot;/ms_tmp/&quot;</div><div> END</div><div>#</div><div># Assign Projection</div><div>#</div><div>PROJECTION</div><div>
  &quot;init=epsg:32754&quot;</div><div>END</div><div><br></div><div>LAYER</div><div>    GROUP &quot;Geography&quot;</div><div>    CONNECTIONTYPE postgis</div><div>    CONNECTION &quot;host=localhost port=5432 dbname=FriedaRiver user=****password=********&quot;</div>
<div>    NAME &quot;Rivers&quot;</div><div>    DATA  &quot;wkb_geometry FROM png_riversamg66z54 using unique ogc_fid&quot;   </div><div>    PROJECTION</div><div>      &quot;init=epsg:20254&quot;</div><div>    END</div><div>
    METADATA</div><div>      SOURCE &quot;METADATA:  Supplied by Xstrata 2003&quot;</div><div>    END</div><div>    TEMPLATE &quot;/var/www/chameleon/widgets/Query/QueryResults.phtml&quot;</div><div>    STATUS ON</div><div>
    TYPE LINE</div><div>    LABELITEM &quot;name&quot;</div><div>    CLASS</div><div>      STYLE</div><div>        SYMBOL &quot;minor towns&quot;</div><div>        COLOR 50 100 255</div><div>        SIZE 1</div><div>      END</div>
<div>      LABEL</div><div>        ANGLE FOLLOW</div><div>        MINDISTANCE 200</div><div>        FONT ArialItalic</div><div>        TYPE TRUETYPE</div><div>        SIZE 8</div><div>        COLOR 50 100 255</div><div>        OUTLINECOLOR 255 255 255</div>
<div>        POSITION UC</div><div>      END</div><div>    END    </div><div>END</div><div><br></div><div>LAYER</div><div>    GROUP &quot;Tenement&quot;</div><div>    CONNECTIONTYPE postgis</div><div>    CONNECTION &quot;host=localhost port=5432 dbname=FriedaRiver user=**** password=*****&quot;</div>
<div>    NAME &quot;Tenement EL58&quot;</div><div>    DATA  &quot;wkb_geometry FROM el58_agd66z54 using unique ogc_fid&quot;       </div><div>    PROJECTION</div><div>      &quot;init=epsg:20254&quot;</div><div>    END</div>
<div>    METADATA</div><div>      SOURCE &quot;METADATA:  Supplied by Xstrata 2003&quot;</div><div>    END</div><div>    TEMPLATE &quot;/var/www/chameleon/widgets/Query/QueryResults.phtml&quot;</div><div>    STATUS ON</div>
<div>    TYPE LINE    </div><div>    CLASS</div><div>      STYLE</div><div>         COLOR 0 0 0</div><div>         WIDTH 3</div><div>      END</div><div>    END    </div><div>END</div><div>  </div><div>END</div></div>