[Gambas-user] C Sharp conversion to a Gambas Library/Component

John Rose john.aaron.rose at ...626...
Tue Feb 25 18:41:01 CET 2014


Fabien,

The C# routine that I previously attached has Subs to do conversions 
between any of OSGBGridmapReference, OSGBEastingNorthing, OSGB36 & 
WGS84. An example point is:
OSGBGridmapReference: Map=SO, Across=91370, Up=95550
OSGBEastingNorthing: Easting=391370, Northing=295550
OSGB36: Latitude=52.557346, Longitude=-2.127308
WGS84: Latitude=52.557704, Longitude=-2.128725
Would the software you suggest be capable of all these calculations?

Re your suggestions:

1. Do you mean the Ubuntu proj package?

2. Where do I obtain these classes?
proj, MapPointClass, MapBound (what is gb.map?)

3. What are epsg numbers in code below?
   Dim WGS As Proj = Proj("epsg:4326")
   Dim OBSG36 As Proj = Proj("epsg:27700")

   Dim hLatLon As MapPoint

   hLatLon = WGS.TransformMPoint(OBSG36, MapPoint(Val(TextBox1.Text),
Val(TextBox2.Text)))
  Message(hLatLon.Lat & "   /   " & hLatLon.Lon)





More information about the User mailing list