[gdal-dev] Still Confused about datum transformations

2011-10-21 Thread dev4cx4m9z
I have received many useful suggestions, but I am still struggling with what should be a simple problem. I am trying to translate a series of lat/lon coordinates in WGS84 coordinates to lat/lon coordinates for my map (AGD66). The code is below, and seems to mirror sample code in the GDAL tutorials.

RE: [gdal-dev] Confused about datum transformations

2011-10-19 Thread dev4cx4m9z
Yes - I mean lat and lon. I'm using the datums in common use in Australia, i.e. Australian Geodetic 1966, Australian Geodetic 1984, Australian Geocentric 1994 From: Simon Lyngby Kokkendorff silyko-at-gmail.com |GDAL| [mailto:r0dk224...@sneakemail.com] Sent: Wednesday, October 19, 2011 10:32

RE: [gdal-dev] Confused about datum transformations

2011-10-19 Thread dev4cx4m9z
Well, it's 'working' (sort of) but I'm still confused. I'll try to explain better what I'm trying to do. I have a database of map coordinates stored in WGS84 datum. I load and display a map in my application which may, or may not, use the WGS84 datum. I am setting up a coordinatetransformation

RE: [gdal-dev] Confused about datum transformations

2011-10-19 Thread dev4cx4m9z
THORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9108"]],AUTHORITY["EPSG","4326"]],PROJECTION["Transverse_Mercator"]

RE: [gdal-dev] Confused about datum transformations

2011-10-19 Thread dev4cx4m9z
I have a big clue - I have inspected the output of ExportToWKT, and the results are interesting With WGS84SRS GDALError = .SetProjCS("WGS84 Datum") Debug.Assert(GDALError = OGRError.OGRERR_NONE, GetLastErrorMsg()) GDALError = .SetWellKnownGeogCS("WGS84"

RE: [gdal-dev] Confused about datum transformations

2011-10-19 Thread dev4cx4m9z
I have not used org2ogr. I have just realised that the C API for GDAL uses a mixture of STD and CDECL. How annoying. Anyway – I have carefully checked and all are correct. I get a stack balance problem if they are not anyway. It’s hard to see how I could get the arguments wrong – one is the stri

RE: [gdal-dev] Confused about datum transformations

2011-10-19 Thread dev4cx4m9z
Thanks for all the suggestions – they have given me many possibilities to eliminate, but I still haven’t really got an answer to the original question. Am I required to have proj.dll built with support for the datums/projections I want to use, or is it sufficient to set GDAL_DATA such that gc

RE: [gdal-dev] Confused about coordinate transformations

2011-10-18 Thread dev4cx4m9z
My program does MANY other things that GDAL can’t. I’m using GDAL as a small part of something much larger. I need to do the transformation at runtime. Marc, proj4 usually comes with the gdal library. Instead of coding your own program, first try the ogr2ogr utility[1] that comes with the gd

RE: [gdal-dev] Confused about datum transformations

2011-10-18 Thread dev4cx4m9z
I’m not sure the code will help too much, but here are the relevant code fragments. I’m using a hand crafted VB.net wrapper which explains some of the syntax Private WGS84SRS As New OGRSpatialReference ' Coordinate system in WGS84 Private MapSRS As OGRSpatialReference ' Coordinate

[gdal-dev] Confused about coordinate transformations

2011-10-18 Thread dev4cx4m9z
I have a GIS database with all coordinates stored in WGS84 datum. I am trying to translate the coordinates of the database to the datum of my map. I am creating two OGRSpatialReference, one for WGS84 and one for the current map. I am then creating an OGRCoordinateTransformation. When I do so I get

RE: [gdal-dev] How do I convert LL to UTM?

2011-09-24 Thread dev4cx4m9z
Expected result was a UTMeast >0 . I always receive the same result no matter the input. -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Jean-Claude Repetto jrepetto-at-free.fr |GDAL| Sent: Saturday, September 24, 2011 11:15

RE: [gdal-dev] How do I convert LL to UTM?

2011-09-24 Thread dev4cx4m9z
Sorry - left critical line out of previous post. Is there a web based version of this mailing list? It's a bit tedious with mailman. Can anybody see what I'm doing wrong (and don't say writing it in VB.NET) in my logic of converting a Lat/Long to UTM? All the assignments, except the lat one, ar

[gdal-dev] How do I convert LL to UTM?

2011-09-24 Thread dev4cx4m9z
Can anybody see what I'm doing wrong (and don't say writing it in VB.NET) in my logic of converting a Lat/Long to UTM? Dim MapSRS As New OGRSpatialReference ' Coordinate system of map Dim UTMSRS As New OGRSpatialReference ' Coordinate system for UTM Dim CT As OGRCoordinat

[gdal-dev] RE: OziExplorer driver & VB.NET support

2011-09-11 Thread dev4cx4m9z
1. I am attempting to build GDAL with the OziExplorer file format (ozf2/ozxf3) driver. I have downloaded the source from http://download.osgeo.org/gdal/gdal181.zip and successfully built GDAL using VC Express 2010. I cannot see the source files for the ozf2/ozxf3 files driver. Where would I find th