• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Export button not work FWtools

Messages
54
Country
spain
Hi, i have a problem with fwtools OpenEV.

With the conversión ED50 to WGS84 the image is rotated and work fine, but to complete the rectangular area is fill with black color, this is normal.

Ok, i use the Draw ROI tool to cut black zone, but the export button not work, why? i try the administrator options & install-work in D: directory, but not fix the problem. :mad:

Is possible draw roi in gtiff & export with other freeware program or with a command in Fwtools Shell?

thanks, regards.

Geotiff file Link http://ubuntuone.com/7jlYYFVDmGGiVzMPYQKHLQ

 
Last edited:
Hi,

I never use the OpenEV GUI, so I am not sure if I can help. I always use the command line tools of FWTools.

What are you trying to achieve? Do you want to make the file smaller to get rid of the black border after reprojecting?

That black border is the no data value, so it would not give you trouble in FS.
 
Thanks arno,
Yes i want cut the black zones selecting with roi tool the interior area.

So, that black zone not is visible in FSX? I thought that only work with a *_B.tif file name for example.

If you put other terrain image (quadrant terrain next) overlapping the black zones, this terrain will work, or he will be transparent because black zone?
 
Hi again, finally the tif file its with black borders, i will try in fsx.
But, before of that i need resample, ok, i have the georeference image, get the data in ''.gtf'' file, and after put in edited image (blend, night mask...), but not work with fwtools shell, this is crazy, i cant progress.
Here is the steps that i follow.

Code:
D:\FWTools2.4.7>cd..

D:\>gdalinfo sanchidrian.tif
Driver: GTiff/GeoTIFF
Files: sanchidrian.tif
Size is 1503, 1360
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-4.616291506282457,40.905072173582326)
Pixel Size = (0.000010329247209,-0.000010329247209)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  -4.6162915,  40.9050722) (  4d36'58.65"W, 40d54'18.26"N)
Lower Left  (  -4.6162915,  40.8910244) (  4d36'58.65"W, 40d53'27.69"N)
Upper Right (  -4.6007666,  40.9050722) (  4d36'2.76"W, 40d54'18.26"N)
Lower Right (  -4.6007666,  40.8910244) (  4d36'2.76"W, 40d53'27.69"N)
Center      (  -4.6085291,  40.8980483) (  4d36'30.70"W, 40d53'52.97"N)
Band 1 Block=1503x1 Type=Byte, ColorInterp=Red
Band 2 Block=1503x1 Type=Byte, ColorInterp=Green
Band 3 Block=1503x1 Type=Byte, ColorInterp=Blue

D:\>listgeo sanchidrian.tif > sanchidrian.gtf

I obtain a .gtf file with this content:
Code:
Geotiff_Information:
   Version: 1
   Key_Revision: 1.0
   Tagged_Information:
      ModelTiepointTag (2,3):
         0                0                0                
         -4.6162915062824640.9050721735823 0                
      ModelPixelScaleTag (1,3):
         1.03292472085483e-0051.03292472085483e-0050                
      End_Of_Tags.
   Keyed_Information:
      GTModelTypeGeoKey (Short,1): ModelTypeGeographic
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
      GeographicTypeGeoKey (Short,1): GCS_WGS_84
      GeogCitationGeoKey (Ascii,7): "WGS 84"
      GeogAngularUnitsGeoKey (Short,1): Angular_Degree
      GeogSemiMajorAxisGeoKey (Double,1): 6378137          
      GeogInvFlatteningGeoKey (Double,1): 298.257223563    
      End_Of_Keys.
   End_Of_Geotiff.

GCS: 4326/WGS 84
Datum: 6326/World Geodetic System 1984
Ellipsoid: 7030/WGS 84 (6378137.00,6356752.31)
Prime Meridian: 8901/Greenwich (0.000000/  0d 0' 0.00"E)

Corner Coordinates:
Upper Left    (  4d36'58.65"W, 40d54'18.26"N)
Lower Left    (  4d36'58.65"W, 40d53'27.69"N)
Upper Right   (  4d36' 2.76"W, 40d54'18.26"N)
Lower Right   (  4d36' 2.76"W, 40d53'27.69"N)
Center        (  4d36'30.70"W, 40d53'52.97"N)
After I open the georeference tif with a editor (gimp) make the blend colors or night textures, and save with other name, *_B.tif or *_lm.tif
And insert georeferenced data in edited tif, here i have a doubt, if i write
Code:
geotifcp -g file1.gtf file1.tif editedfile1_B.tif
i overwrite my edited file with the original file, and undo the edition of file by original tif.
So, i write
Code:
geotifcp -g file1.gtf editedfile1_B.tif editedfile1b_B.tif
And is created a new tif file georeferenced in teory, but not...
Code:
D:\>geotifcp -g sanchidrian.gtf sanchidrian_B.tif sanchidrianb_B.tif
D:\>

D:\>gdalinfo sanchidrianb_B.tif
Driver: GTiff/GeoTIFF
Files: sanchidrianb_B.tif
Size is 1503, 1360
Coordinate System is `'
GCP Projection =
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
GCP[  0]: Id=1, Info=
          (0,0) -> (-4.61629150628246,0,0)
Metadata:
  TIFFTAG_DOCUMENTNAME=C:\Users\Spark\Desktop\sanchidrian_wgs84_B.tif
  TIFFTAG_XRESOLUTION=72.009003
  TIFFTAG_YRESOLUTION=72.009003
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0, 1360.0)
Upper Right ( 1503.0,    0.0)
Lower Right ( 1503.0, 1360.0)
Center      (  751.5,  680.0)
Band 1 Block=1503x64 Type=Byte, ColorInterp=Gray
  Mask Flags: PER_DATASET ALPHA
Band 2 Block=1503x64 Type=Byte, ColorInterp=Alpha

D:\>
I think, missing some data, any idea of what is wrong or I'm doing wrong?

Thanks again.
 
Hi,

What you did looks OK. geotifcp -g file.gtf input.tif output.tif.

I don't have a file here now to test it with though.
 
Hi arno, I have the original file link retroprojected in the first post, to test it.

Reinstall the fwtools not fix the problem. I must try in other pc.
 
Back
Top