Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[FS2004] Problem with resample for landclass

Featured Replies

Hi there,

I encountered a problem with resample for which I do not have a solution:

For a side project, I created a FS2004 land classification from Corine Data (2006, 100 m res) and saved it as an 8 bit unsigned integer geotiff using GDAL in QGIS. At this point, everything is fine, the raster values are correct and where they should be. Also the projection of the geotiff is WGS1984, so it appears to be correct. When loading this image into a geotiff viewer it displays correctly:

 

http://min.us/i/DC61uHSc3DRa

 

If I now run this geotiff throught resample.exe, it creates the strangest effect:

http://min.us/i/Rcn4Bb9qMehq
 

It seems to split the geotiff in half and exchanges the coordinates between east and west, somehow. The inf looks like that:

[Destination]
DestDir ="."
DestBaseFileName ="..."
UseSourceDimensions = 1

[source]
Type = ClassU8
SourceDir = "."
SourceFile = "... .tif"
Lat = 66.5395509994444438
Lon = -24.5326594999999976
NumOfCellsPerLine = 8622
NumOfLines = 2459
CellXdimensionDeg = 0.00128056471806619
CellYdimensionDeg = 0.00128049430651575

Do any of you guys have any idea of what could cause this resampling "error"? Any hints?

Cheers,
Andreas

Andreas Paul

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.