• 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.

FSXA Gdalwarp how to?

Messages
10
Country
germany
Hi,

I tried to convert my Geotiff to the Fsx readable Format and the result is i get some black Borders as you can see below.
So my qestion is what im doing wrong?

here is the Command i used:

Code:
gdalwarp -of GTiff -co "INTERLEAVE=PIXEL" -s_srs EPSG:26904 -t_srs "+proj=latlong +datum=WGS84" hihono6090e23560n.tif hihono6090e23560n_wgs84.tif

And so comes it out:
[img=http://www.abload.de/thumb/hihono6090e23560n_wgsq7joh.jpg]

As you can see there black Triangles at the border.

And the listgeo information:

Code:
D:\Image_Data>gdalinfo "D:\Image_Data\hihono6090e23560n.tif"
Driver: GTiff/GeoTIFF
Files: D:\Image_Data\hihono6090e23560n.tif
Size is 10000, 10000
Coordinate System is:
PROJCS["NAD83 / UTM zone 4N",
    GEOGCS["NAD83",
        DATUM["North_American_Datum_1983",
            SPHEROID["GRS 1980",6378137,298.2572220960423,
                AUTHORITY["EPSG","7019"]],
            AUTHORITY["EPSG","6269"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4269"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",-159],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","26904"]]
Origin = (609000.000000000000000,2357500.050000000300000)
Pixel Size = (0.150000000000000,-0.150000000000000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  609000.000, 2357500.050) (157d56'56.47"W, 21d18'58.11"N)
Lower Left  (  609000.000, 2356000.050) (157d56'56.82"W, 21d18'9.33"N)
Upper Right (  610500.000, 2357500.050) (157d56'4.41"W, 21d18'57.78"N)
Lower Right (  610500.000, 2356000.050) (157d56'4.76"W, 21d18'9.00"N)
Center      (  609750.000, 2356750.050) (157d56'30.62"W, 21d18'33.56"N)
Band 1 Block=10000x1 Type=Byte, ColorInterp=Red
Band 2 Block=10000x1 Type=Byte, ColorInterp=Green
Band 3 Block=10000x1 Type=Byte, ColorInterp=Blue

I hope someone can help me out.


Best regards Benjamin
 
Hi,

Such black borders is normal when changing the projection. In your inf file you can specify black as the null value and then they should be ignored.
 
Hi,

Such black borders is normal when changing the projection. In your inf file you can specify black as the null value and then they should be ignored.

Thanks for the Reply Arno, that solved the Problem but i have a Question.

Is it possible to only transform the Corner coordinates so that the image is still quadratic and let resample warping the Image?


Best regards Benjamin
 
Hi,

No, that is not possible. Resample requires the image to use WGS84. So that each side of the image is a certain lat or lon value.
 
Back
Top