<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("init=epsg:27700");</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
= "PROJCS[\"OSGB 1936 / British National Grid\",GEOGCS[\"OSGB
1936\",DATUM[\"OSGB_1936\",SPHEROID[\"Airy 1830\",6377563.396,299.3249646,AUTHORITY[\"EPSG\",\"7001\"]],AUTHORITY[\"EPSG\",\"6277\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.01745329251994328,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4277\"]],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",49],PARAMETER[\"central_meridian\",-2],PARAMETER[\"scale_factor\",0.9996012717],PARAMETER[\"false_easting\",400000],PARAMETER[\"false_northing\",-100000],AUTHORITY[\"EPSG\",\"27700\"]]";</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. </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">"Layer must have an EPSG or AUTO
projection code (in its PROJECTION object or wms_srs metadata)"</font>
<br>
<br>
<br><font size=2 face="sans-serif">Unfortunately Rob is on leave and I
am looking after things in his absence. 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>