- edited description
OSGB36 to ETRS89 Geodetic
Hi, I'm trying to convert from OSGB36 to ETRS89 Geodetic using a batch file.
It runs successfully, however the output is is zero, despite using a .set file created with the desktop GridInquest program. I am probably missing something obvious..
Any help would be appreciated.
Regards, Robert Slack
Comments (15)
-
reporter -
reporter - attached OSGBTransTest.bat
- attached OSGBTestOutput.csv
- attached OSGBTestData-CS1-01.csv
- attached OSGBTestData2.set
-
repo owner Hello, the only fault I can find is the input filename is incorrect in your batch file: BNG02TestData-CS1-01.csv should be OSGBTestData-CS1-01.csv to run with your test data. This produced the following output for me:
"StationName","OSTN02Easting","OSTN02Northing","OSGM02Elevation","SourceDatumCode","ETRS89GD-Lat","ETRS89GD-Long"
"SECC","261690.920","291868.800","10.000","1","52.5071336957907","-4.03928041450673"
"BLAC","331534.552","431920.792","12.636","1","53.7791102379189","-3.04045508850434"
"BRIS","362269.979","169978.688","54.467","1","51.4275474114406","-2.54407635589844"
"BUT1","151968.641","966483.777","58.836","4","58.5156035799218","-6.26091474037862"
"CARL","339921.133","556034.759","41.077","1","54.8954233847584","-2.93827759816382"…
-
repo owner Incidentally, your field names suggest the data is in OSTN02 not OSTN15, the former is not supported in this release of the software. You can run OSTN02 through it, but you will be getting sub-metre errors which might be a problem depending upon your needed precision?
-
reporter Hi Paul
Thank you for you swift reply.
Having corrected the batch file, I am still not getting the result you see - still 0,0 for lat & long.
Are you using the same .set file? I thought there might be a problem there?
OSTN02/OSTN15 comment noted, thank you.
Robert
-
reporter I am using VB 6 & originally tried to reference GIQ.dll but was unable to - “Can’t Add reference to the specified file”
Should it work with VB6?
-
repo owner I’ve not tried it from VB6 but it should work providing you are using the right copy of the DLLs, i.e. 32bit on 32bit Windows or 64bit on 64bit Windows.
-
repo owner Interestingly, I have just replicated your issue on Windows 10 64bit (my primary desktop is Linux and it works there) . I will see if I can isolate the cause.
-
repo owner - attached BNG02TestData-CS1-01.csv
- attached options.set
- attached OSGBTestOutput.csv
- attached OSGBTransTest.bat
<div class="preview-container wiki-content"><!-- loaded via ajax --></div> <div class="mask"></div> </div>
</div> </form>
-
repo owner I was able to solve the problem by updating my Windows 64 bit test environment to the latest build of GridInquestII: GridInQuestII-Win64-0101e.zip. The files above are the ones I used and I have included the output generated.
-
reporter I downloaded GridInquestll-win64-0101e.zip & updated everything.
I used your OSGBTransTest.bat & Options.set,however I still get the same result..
Yours is perfect.
I’m using 64 bit Windows 10 Pro
-
reporter - attached OSGBTestOutput.csv
<div class="preview-container wiki-content"><!-- loaded via ajax --></div> <div class="mask"></div> </div>
</div> </form>
-
reporter OK, I don’t think I’d cleared all the old files properly. I’ve done so & run your batch file successfully.
Thank you.
-
repo owner Are you running the script in the same folder as the giqtrans.exe and the *.dat files? giqtrans.exe needs to be able to find and read the *.dat files for all GM02/15 transformations. Otherwise I can’t think why you are not getting the same output as me I’m afraid?
-
reporter Paul,
I had just discovered exactly that problem!
I had copied data into a folder for use in my software, including giqtrans.exe. However I had not copied the *.dat files,
My apologies.
Again, thank you for all your help & your work in producing this software, much appreciated.
Robert
- Log in to comment