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

P3D v4 Aerial imagery alignment issues

Messages
13
Country
germany
Hi,

I am currently working on a small airfield, for which I am compiling the aerial imagery of its area I bought.

Now, here's my problem. I loaded the image into ADE, where only the top left corner's coordinates are required and the image appears exactly where it should be. However, when I compile the image using resample.exe, the image is displaced.

See the pictures attached (and never mind the default runway shown in ADE). You can see that although ADE shows I am on the runway of the aerial image, in P3Dv4 I am actually a bit south of it. This of course also means, that streets, rivers, etc. are also not aligned with the image correctly.

Any ideas?

Thanks!
 

Attachments

  • 2019-12-13_19-57-38-509.jpg
    2019-12-13_19-57-38-509.jpg
    584.4 KB · Views: 362
  • 2019-12-13_19-57-41-864.jpg
    2019-12-13_19-57-41-864.jpg
    411.5 KB · Views: 323
  • ADE.jpg
    ADE.jpg
    433.3 KB · Views: 347
Hi,

Is the image you compiled with resample georeferenced already or did you specify the coordinates yourself?
 
Hi Arno,

although I think the imagery might be GeoTIFF, I specified the coordinates by myself. The coordinates of each corner were provided along with the imagery. The coordinates were in UTM format and I had to convert them to decimal degrees.
 
Did you reproject the image from UTM to WGS84 as well? Only converting the corner coordinates will not be enough to let resample put it in the right location.
 
Do you have QGIS or the gdal tools on your computer? You can use those tools to reproject the image.
 
Yes, I do have QGIS. I will search for a guide on Google. Is there by any chance a guide here on FSDeveloper?

Thanks a lot Arno!
 
You could try on the OSGeo4W command prompt that comes with QGIS to run this command on your image:

Code:
gdal_translate -t_srs "+proj=latlong +datum=WGS84" input.tif output_wgs84.tif
 
Running this command produces the following error:

ERROR 6: Unknown option name '-t_srs'
Usage: gdal_translate [--help-general] [--long-usage]
[-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
CInt16/CInt32/CFloat32/CFloat64}] [-strict]
[-of format] [-b band] [-mask band] [-expand {gray|rgb|rgba}]
[-outsize xsize[%]|0 ysize[%]|0] [-tr xres yres]
[-r {nearest,bilinear,cubic,cubicspline,lanczos,average,mode}]
[-unscale] [-scale[_bn] [src_min src_max [dst_min dst_max]]]* [-exponent[_bn] exp_val]*
[-srcwin xoff yoff xsize ysize] [-epo] [-eco]
[-projwin ulx uly lrx lry] [-projwin_srs srs_def]
[-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value]
[-a_scale value] [-a_offset value]
[-gcp pixel line easting northing [elevation]]*
|-colorinterp{_bn} {red|green|blue|alpha|gray|undefined}]
|-colorinterp {red|green|blue|alpha|gray|undefined},...]
[-mo "META-TAG=VALUE"]* [-q] [-sds]
[-co "NAME=VALUE"]* [-stats] [-norat]
[-oo NAME=VALUE]*
src_dataset dst_dataset

BTW, the aerial imagery (which came in 4 tiles) was indeed delivered in GeoTIFF format.
 
Sorry, my mistake. Should have been gdalwarp instead of gdal_translate.
 
Hi,

I ran gdalinfo on one of the 4 tiles I have and the result confused me even more. Here's the result:

C:\OSGeo4W64>gdalinfo 633484_5394699.tif
Driver: GTiff/GeoTIFF
Files: 633484_5394699.tif
Size is 11660, 10115
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 = (633484.033000000054017,5396721.983000000007451)
Pixel Size = (0.200000000000000,-0.200000000000000)
Metadata:
AREA_OR_POINT=Area
TIFFTAG_COPYRIGHT=Landesamt fⁿr Digitalisierung, Breitband und Vermessung
TIFFTAG_DATETIME=01.07.2018 00:00:00
TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm)
TIFFTAG_SOFTWARE=Geodaten Bestellung von Matthias Schulze
TIFFTAG_XRESOLUTION=250
TIFFTAG_YRESOLUTION=250
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 633484.033, 5396721.983) (Invalid angle,Invalid angle)
Lower Left ( 633484.033, 5394698.983) (Invalid angle,Invalid angle)
Upper Right ( 635816.033, 5396721.983) (Invalid angle,Invalid angle)
Lower Right ( 635816.033, 5394698.983) (Invalid angle,Invalid angle)
Center ( 634650.033, 5395710.483) (Invalid angle,Invalid angle)
Band 1 Block=11660x8 Type=Byte, ColorInterp=Red
Band 2 Block=11660x8 Type=Byte, ColorInterp=Green
Band 3 Block=11660x8 Type=Byte, ColorInterp=Blue

Does the 6th line mean that the image is already in WGS84 format? And just to make sure, are the corner coordinates indeed in the UTM format?
 
Hi,

The coordinates indeed suggest it's UTM, but the georeferencing says it's WGS84 already. Looks like the georeferencing is not correct. In that case you probably first need to set the right coordinate system before you can reproject it.
 
Hi Arno,

is this something I could do myself or would I have to contact the imagery provider about this?
 
If you know which UTM zone it is, you can do it yourself.
 
The image has been cropped it seems? The white border should be equal on all sides.. Have you edited the dimensions of the image?
 
No, such a white border is common with reproject ion and it should not be the same everywhere.
 
Back
Top