• 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 v2 Error converting jp2 files

Messages
293
Country
us-virginia
I just downloaded some compressed NAIP scenery tiles from USGS (6 total) and am trying to convert there to geotiff format using fwtools. After entering the commandline (I am using one kindly provided to me by Jim Robinson) I get the following error for each tile:

Error 6 - No translation for Mercator_Auxiliary_Sphere to PROJ.4 format is known

Any ideas? Thanks!

Todd
 
They should be GEOTIFF format. You need to reproject (gdal warp) them to WGS84 projection. You shouldn't need to input the original projection. Run this code.

gdalwarp -of GTiff -co "INTERLEAVE=PIXEL" -t_srs "+proj=latlong +datum=WGS84" -r cubic "input1.tif" "input2.tif" "output.tif"

This will create a mosaic of the images if there's more than 1 input.

You can even define the pixel/metre resolution here:

gdalwarp -of GTiff -co "INTERLEAVE=PIXEL" -t_srs "+proj=latlong +datum=WGS84" -r cubic -tr 0.0000025 0.0000025 ""input1.tif" "input2.tif" "output.tif"

(Change the number to suit your needs)
 
Shaun,

Right, but I have to convert the jp2 files to Geotiff format and that's when I get the above error. I ran a code provided to me by Jim to do just that but I get the above error instead. Once I convert the files to GeoTiff, then I'll run the gdalwarp code.

Thanks for the resolution tip.

Todd
 
Oh right, helps if I read properly.

I've never downloaded jp2 from USGS. Is it high resolution orthoimagery?
 
Shaun, USGS has gone to the jp2 format to speed up the downloading process. At least IIRC that's what it said somewhere on their website. I downloaded some imagery for a project several months ago and the resolution was .15m per pixel. This was the best resolution that they had available. It really depends on the location. I think I was lucky to get such high resolution.
 
I downloaded some additional 60 cm and 15 cm imagery (non-NAIP) and gdalwarp worked just fine on these, just FYI. The NAIP jp2 files I had issues with were 100cm anyway, so not very good. I ended up trashing those.

Todd
 
Back
Top