Home » Community » Newbie corner » MSVC 10 to Upp conversion
Re: MSVC 10 to Upp conversion [message #32792 is a reply to message #32773] |
Thu, 09 June 2011 23:28   |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
Hi Koldo
Quote: | ERROR 4: Unable to open EPSG support file gcs.csv.
|
It's not linked with FWTools\bin.
How the original dstile was used was dstile.exe was placed in FWTools\bin. Try placing the ntile.exe and the dstile.exe in the bin and you can try both.
Then right clicking on the FWTools icon then change Properties->Start in: to the directory the image files are in.
Then just open FWTools with a left click and enter the command line in the FWTools dos box that is opened:
dstile.exe tile --lztsd 10.0 --wwcache --overviews 0nt LA_clip.tif
Changing dstile.exe on the command line to the U++ compiled ntile.exe works the same way except it has the changes in the code.
To debug the code in U++ this was done:
In the FWTools Properties->Target: it has:
C:\WINDOWS\system32\cmd.exe /K "C:\FWTools2.4.7\setfw.bat"
This sets the environment.
So in the ntile code I added this so no changes to the FWTools properties need to be changed:
system ("C:/FWTools2.4.7/setfw.bat /K");
Then hard coded the args.
To run from the U++ GUI the hard coded args were commented.
Making the nl.bat to pass the args the line
out.PutLine("call cd C:\\0-Neil\\FAA\\2011\\Sectionals");
had to have the double \\ instead of the single \.
The problem of doing it that way is it is run by the .bat file using the ntile.exe that has been placed in FWTools\bin and there is no way to pass data back to the GUI.
And there is no way to debug the ntile code included with the GUI package because it is not used.
Maybe calling the ntile function included with the GUI code:
ntile("tile --lztsd 10.0 --wwcache --overviews 0nt LA_clip.tif");
is something I will try next.
Note that the ntile.exe placed in the FWTools\bin doesn't have any hard coded args, etc., just the code as compiled in MSVC 10 except when compiled in U++ some changes were made as far as the output format, etc..
Sorry my explanations and current code is lacking, still tinkering.
Your help with the linking, compiling in U++ is much appreciated.
[Updated on: Thu, 09 June 2011 23:34] Report message to a moderator
|
|
|
 |
|
MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Mon, 30 May 2011 22:54
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Tue, 31 May 2011 08:40
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Tue, 31 May 2011 21:20
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Wed, 01 June 2011 08:06
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Wed, 01 June 2011 12:09
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Wed, 01 June 2011 17:19
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Thu, 02 June 2011 08:36
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Thu, 02 June 2011 11:37
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Thu, 02 June 2011 13:53
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Sun, 05 June 2011 06:58
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Tue, 07 June 2011 07:17
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Tue, 07 June 2011 15:59
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
|
 |
|
Re: MSVC 10 to Upp conversion
By: koldo on Tue, 14 June 2011 09:17
|
 |
|
Re: MSVC 10 to Upp conversion
|
Goto Forum:
Current Time: Mon May 12 17:56:55 CEST 2025
Total time taken to generate the page: 0.00679 seconds
|