[mapserver-users] MapServer 4.8.3: MapScript setProjection

Rob gis at vanbooth.com
Wed Mar 12 11:12:11 EDT 2008


Well so far, I have tried to set my projection to

'+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000
+ellps=airy +datum=OSB36 +units=m +no_defs'
'+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000
+ellps=airy +datum=OSGB36 +units=m +no_defs'
'+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000
+ellps=airy +datum=osb36 +units=m +no_defs'
'+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000
+datum=OSGB36 +units=m +no_defs'
'+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.999601 +x_0=400000 +y_0=-100000
+ellps=airy  +units=m +no_defs'

but it only works with
'init=epsg:27700'

Error messages for the other attempts include 'unknown eliptical parameter
name' and 'projection not named' .  Typing them out again it is obvious that
there are some combinations I still havent tried, but it does feel a little
hopeful that a random combination of parameters will work and give me the
answer I want! :o)

I have tried creating a dummy epsg file which contains just two rows
representing the 27700 entry (including the preceeding comment line in case
the parser expects it to be there) and whilst this obviously still works, it
has made little or no difference to the time taken to assign a projection to
the map/layer.

Coming at it from a different angle, if I am ALWAYS going to be using the
same projection, do I need to set any projection parameters at all?

As always, any help gratefully received

Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080312/b89921f7/attachment.html


More information about the mapserver-users mailing list