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

Readding Data with FW tools

Messages
55
Country
malta
Hi everyone,
I am currently experimenting with some geotiff files in FSX. The projection is in UTM which I managed to convert into WGS84 geographic using FWTools and which was also successfully compiled by the resample tool.
I also wanted to edit the image, so I extracted the geodata from the file ending up with a .gtf file. The problem I am getting is when adding back the geodata to the edited file.
The corner coordinates specified in the gtf file and the ones found in the edited file are not the same. There must be some kind of glitch during the transfer.

Here's the data from the gtf file:

Geotiff_Information:
Version: 1
Key_Revision: 1.0
Tagged_Information:
ModelTiepointTag (2,3):
0 0 0
12.4841800983121 41.8941583180238 0
ModelPixelScaleTag (1,3):
5.66387903357033e-0065.66387903357033e-0060
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 ( 12d29' 3.05"E, 41d53'38.97"N)
Lower Left ( 12d29' 3.05"E, 41d53'10.57"N)
Upper Right ( 12d30' 1.18"E, 41d53'38.97"N)
Lower Right ( 12d30' 1.18"E, 41d53'10.57"N)
Center ( 12d29'32.11"E, 41d53'24.77"N)



Now these are the corner coordinates found in the edited geotiff tile after assigning the data from the gtf file using the geotifcp command:

Corner Coordinates:
Upper Left ( 12d29' 3.05"E, 41d53'38.97"N)
Lower Left ( 12d29' 3.05"E, 41d53'38.97"N)
Upper Right ( 12d29' 3.05"E, 41d53'38.97"N)
Lower Right (12d29' 3.05"E, 41d53'38.97"N)
Center (12d29' 3.05"E, 41d53'38.97"N)


As you may have noticed the coordinates are now all the same. Has anyone ever encountered this problem? Can the corner coordinates be edited?

Many Thanks and Happy Chrsitmas
Daniel
 
I edited the image in paintshop so obviously when I saved the image I lost the geographical data. So I had to assign the geographical data back to the image to make it a geotiff.

Daniel
 
I meant what you did with the tiff, you only paint or you change in any way the scale or cut the photo or just you painted or applied to this an alpha channel, the process is correct so you should not have problems.
and you import a tiff file in photoshop and should be saved as tiff again.
 
Last edited:
I usually use gdalinfo after reprojecting to wgs84 with gdalwarp. That gives the coords in dd.dddd format which is handy for the .inf. Once the coords are in the .inf and the x and y pixel dimensions have been computed, there's really no reason to put the coords back into the .tif after editing in PS.

gdalinfo airport_WGS84.tif > airport_WGS84.txt

Jim
 
@Tejal
Just graphical editing like some contrast, color saturation etc... just to visually enhance the image. And yes it was saved as a normal tif file.

@Jim
Thanks for the other alternative. I will try it out as well

Daniel
 
Back
Top