<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">This is a follow up to a question a
colleague asked a few weeks ago:</font>
<br><a href="http://lists.osgeo.org/pipermail/mapserver-users/2008-March/054772.html"><font size=2 face="sans-serif">http://lists.osgeo.org/pipermail/mapserver-users/2008-March/054772.html</font></a>
<br>
<br><font size=2 face="sans-serif">To summarise:</font>
<br>
<br><font size=2 face="sans-serif">In order to improve performance in our
java application that uses the mapscript API we have replaced:</font>
<br>
<br><font size=2 face="sans-serif">mapobj.setProjection(&quot;init=epsg:27700&quot;);</font>
<br>
<br><font size=2 face="sans-serif">with</font>
<br>
<br><font size=2 face="sans-serif">private static final String PROJECTION_WK_EPSG_27700
= &quot;PROJCS[\&quot;OSGB 1936 / British National Grid\&quot;,GEOGCS[\&quot;OSGB
1936\&quot;,DATUM[\&quot;OSGB_1936\&quot;,SPHEROID[\&quot;Airy 1830\&quot;,6377563.396,299.3249646,AUTHORITY[\&quot;EPSG\&quot;,\&quot;7001\&quot;]],AUTHORITY[\&quot;EPSG\&quot;,\&quot;6277\&quot;]],PRIMEM[\&quot;Greenwich\&quot;,0,AUTHORITY[\&quot;EPSG\&quot;,\&quot;8901\&quot;]],UNIT[\&quot;degree\&quot;,0.01745329251994328,AUTHORITY[\&quot;EPSG\&quot;,\&quot;9122\&quot;]],AUTHORITY[\&quot;EPSG\&quot;,\&quot;4277\&quot;]],UNIT[\&quot;metre\&quot;,1,AUTHORITY[\&quot;EPSG\&quot;,\&quot;9001\&quot;]],PROJECTION[\&quot;Transverse_Mercator\&quot;],PARAMETER[\&quot;latitude_of_origin\&quot;,49],PARAMETER[\&quot;central_meridian\&quot;,-2],PARAMETER[\&quot;scale_factor\&quot;,0.9996012717],PARAMETER[\&quot;false_easting\&quot;,400000],PARAMETER[\&quot;false_northing\&quot;,-100000],AUTHORITY[\&quot;EPSG\&quot;,\&quot;27700\&quot;]]&quot;;</font>
<br>
<br><font size=2 face="sans-serif">...</font>
<br>
<br><font size=2 face="sans-serif">mapobj.setWKTProjection(PROJECTION_WK_EPSG_27700);</font>
<br>
<br>
<br><font size=2 face="sans-serif">We have also changed the code to use
the WKT projection method for each layer.</font>
<br>
<br><font size=2 face="sans-serif">As Rob says the performance improvement
is way better and we thought we had a winner. &nbsp;</font>
<br><font size=2 face="sans-serif">Unfortunately we have a problem based
on the size of the image and bounding box. </font>
<br>
<br><font size=2 face="sans-serif">If we ask for a small bounding box (roughly
1 mile by 1 mile) with a 1000x800 PNG image then it works</font>
<br><font size=2 face="sans-serif">If we ask for a large bounding box (roughly
500 miles by 500 miles) with a 200x200 PNG image then it works</font>
<br><font size=2 face="sans-serif">If we ask for a large bounding box with
a 300x300 PNG image then we get this error:</font>
<br>
<br><font size=2 face="sans-serif">&quot;Layer must have an EPSG or AUTO
projection code (in its PROJECTION object or wms_srs metadata)&quot;</font>
<br>
<br>
<br><font size=2 face="sans-serif">Unfortunately Rob is on leave and I
am looking after things in his absence. &nbsp;Any help is much appreciated
:-)</font>
<br><font size=3 face="sans-serif"><br>
</font>
<br><font size=3 face="sans-serif"><br>
</font>
<hr><font size=2 face="sans-serif"><br>
<i><br>
</i></font>
<p><font size=2 face="sans-serif"><i>Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU</i></font>
<p><font size=2 face="sans-serif"><br>
</font><font size=3 face="sans-serif"><br>
</font>
<br>
<br><font size=3 face="sans-serif"><br>
</font>