Board index FlightGear Development Scenery

gdalchop EPSG PCS/GCS code 4326 not found in EPSG support fi  Topic is solved

Questions and discussion about enhancing and populating the FlightGear world.

gdalchop EPSG PCS/GCS code 4326 not found in EPSG support fi

Postby portreekid » Tue Jan 08, 2019 9:00 pm

I'm trying out the Docker toolchain.

https://github.com/t3r
http://wiki.flightgear.org/Howto:Docker ... _toolchain

I downloaded the elevation from viewfinderpanoramas

http://viewfinderpanoramas.org/dem3/N30.zip

when running I get this. Docker is running on W10 if it is relevant.

Code: Select all
bash-4.3$ gdalchop work/STRM-3 SRTM-source/*.hgt
ERROR 6: EPSG PCS/GCS code 4326 not found in EPSG support files.  Is this a valid
EPSG coordinate system?
ERROR 6: No translation for an empty SRS to PROJ.4 format is known.
Segmentation fault
bash-4.3$ srtmchop
portreekid
 
Posts: 338
Joined: Tue Jan 14, 2014 3:36 pm
Location: Dresden
Version: 3.0
OS: Windows 7

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor

Postby xDraconian » Wed Jan 09, 2019 6:03 am

disclaimer: I haven't used the Docker image myself, so this is my best guess.

Seems that GDAL is not installed in the docker image - or more specifically, the GDAL support files are missing.
You can test GDAL with...
Code: Select all
gdalwarp --version

The support files are typically located at...
Code: Select all
/usr/share/gdal

Workaround: Try running hgtchop instead of gdalchop.
xDraconian
 
Posts: 240
Joined: Sun Jan 21, 2018 5:53 am
Version: Git
OS: Linux Mint

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor

Postby portreekid » Wed Jan 09, 2019 8:05 am

Many thanks. That was the issue. I'll try and update the docs.
portreekid
 
Posts: 338
Joined: Tue Jan 14, 2014 3:36 pm
Location: Dresden
Version: 3.0
OS: Windows 7

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor

Postby bugman » Wed Jan 09, 2019 11:45 am

@portreekid: Is it possible to update the Docker image instead to automatically include the GDAL support files?

Regards,
Edward
bugman
Moderator
 
Posts: 1719
Joined: Thu Mar 19, 2015 9:01 am
Version: next

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor

Postby portreekid » Wed Jan 09, 2019 1:34 pm

I'll have a look at that. It would really lower the bar for all users.
portreekid
 
Posts: 338
Joined: Tue Jan 14, 2014 3:36 pm
Location: Dresden
Version: 3.0
OS: Windows 7

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor

Postby wkitty42 » Wed Jan 09, 2019 4:17 pm

the TerraGear repo has also just had some bug fixes committed to it... torstenD found and fixed them and suspects that demchop and gdalchop have been broken since a 2012 commit... he uses htgchop instead which a lot of other folks have probably also been using due to these(?) bugs...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5779
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor

Postby portreekid » Wed Jan 09, 2019 7:32 pm

I'll just stay with hgtchop. The next branch seems to be broken now.

Code: Select all
[ 24%] Linking CXX executable srtmchop
[ 24%] Linking CXX executable terra_bin
[ 24%] Built target terra_bin
[ 24%] Built target srtmchop
[ 24%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/polygon_set/tg_polygon_set_io_debug.cxx.o
[ 25%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/polygon_set/tg_polygon_set_meta.cxx.o
The command '/bin/sh -c true     && git clone -b ${TGBRANCH} --single-branch ${TGURL}     && pushd terragear     && git status && git log HEAD^..HEAD     && popd     && mkdir -p build/terragear     && pushd build/terragear     && cmake -D CMAKE_BUILD_TYPE=Release -D "CMAKE_CXX_FLAGS=-pipe -std=c++11" -DCMAKE_PREFIX_PATH=$HOME/dist -D CMAKE_INSTALL_PREFIX:PATH=$HOME/dist ../../terragear      && cmake -D CMAKE_BUILD_TYPE=Release -D "CMAKE_CXX_FLAGS=-pipe -std=c++11" -DCMAKE_PREFIX_PATH=$HOME/dist -D CMAKE_INSTALL_PREFIX:PATH=$HOME/dist ../../terragear      && make -j4 install      && popd' returned a non-zero code: 137
portreekid
 
Posts: 338
Joined: Tue Jan 14, 2014 3:36 pm
Location: Dresden
Version: 3.0
OS: Windows 7

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor

Postby wkitty42 » Wed Jan 09, 2019 8:28 pm

have you reported it on the mailing list yet?
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5779
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor

Postby portreekid » Wed Jan 09, 2019 8:34 pm

Not yet.
portreekid
 
Posts: 338
Joined: Tue Jan 14, 2014 3:36 pm
Location: Dresden
Version: 3.0
OS: Windows 7

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor

Postby wkitty42 » Wed Jan 09, 2019 8:37 pm

ok... i won't ;)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5779
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor  

Postby Torsten » Thu Jan 10, 2019 8:19 am

bugman wrote in Wed Jan 09, 2019 11:45 am:@portreekid: Is it possible to update the Docker image instead to automatically include the GDAL support files?


I have just pushed a fix to the docker source repo at github and sourceforge.
Updated image ist available at The Docker Hub
Use the "latest" tag, this one builds with SimGear and TerraGear next branches.
Also, alway use "docker pull flightgear/terragear:latest" before doing "docker run flightgear/terragear:latest" to make sure you really have the latest image.

Please test if it works now.
FWIW, a while ago I was not able to use gdalchop on large datasets due serious memory leaks.
flightgear.org - where development happens.
User avatar
Torsten
 
Posts: 637
Joined: Fri Feb 01, 2008 9:22 pm
Location: near Hamburg, Germany
Callsign: offline
Version: next
OS: Linux

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor

Postby bugman » Thu Jan 10, 2019 8:56 am

Torsten wrote in Thu Jan 10, 2019 8:19 am:FWIW, a while ago I was not able to use gdalchop on large datasets due serious memory leaks.


Is there any benefit in 'fixing' gdalchop for the toolchain and the next world scenery build?

Regards,
Edward
bugman
Moderator
 
Posts: 1719
Joined: Thu Mar 19, 2015 9:01 am
Version: next

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor

Postby portreekid » Thu Jan 10, 2019 9:07 am

If not, then the wiki must be fixed, as hgtchop is declared as deprecated. Goal of the Docker chain should be that "we" lower the bar.
portreekid
 
Posts: 338
Joined: Tue Jan 14, 2014 3:36 pm
Location: Dresden
Version: 3.0
OS: Windows 7

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor

Postby bugman » Thu Jan 10, 2019 9:17 am

Well, the TerraGear src/Prep/GDALChop directory only contains 340 source lines of code (SLOC) according to SLOCCount! So running Valgrind on this with a small data set should help eliminate all memory leaks. This shouldn't be such a big task. Does anyone have such a small test data set at hand? I'd like to run this through Valgrind to have a quick look.

Regards,
Edward
bugman
Moderator
 
Posts: 1719
Joined: Thu Mar 19, 2015 9:01 am
Version: next

Re: gdalchop EPSG PCS/GCS code 4326 not found in EPSG suppor

Postby portreekid » Fri Jan 11, 2019 6:59 am

Fixed. It works with the recent version
portreekid
 
Posts: 338
Joined: Tue Jan 14, 2014 3:36 pm
Location: Dresden
Version: 3.0
OS: Windows 7

Next

Return to Scenery

Who is online

Users browsing this forum: No registered users and 1 guest