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 10: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: 651
Joined: Tue Jan 14, 2014 4:36 pm
Location: Leipzig
Callsign: PORTREE
Version: 2020.2.1
OS: Windows 10

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

Postby xDraconian » Wed Jan 09, 2019 7: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: 406
Joined: Sun Jan 21, 2018 6: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 9:05 am

Many thanks. That was the issue. I'll try and update the docs.
portreekid
 
Posts: 651
Joined: Tue Jan 14, 2014 4:36 pm
Location: Leipzig
Callsign: PORTREE
Version: 2020.2.1
OS: Windows 10

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

Postby bugman » Wed Jan 09, 2019 12:45 pm

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

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

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

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

I'll have a look at that. It would really lower the bar for all users.
portreekid
 
Posts: 651
Joined: Tue Jan 14, 2014 4:36 pm
Location: Leipzig
Callsign: PORTREE
Version: 2020.2.1
OS: Windows 10

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

Postby wkitty42 » Wed Jan 09, 2019 5: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: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

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

Postby portreekid » Wed Jan 09, 2019 8: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: 651
Joined: Tue Jan 14, 2014 4:36 pm
Location: Leipzig
Callsign: PORTREE
Version: 2020.2.1
OS: Windows 10

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

Postby wkitty42 » Wed Jan 09, 2019 9: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: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

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

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

Not yet.
portreekid
 
Posts: 651
Joined: Tue Jan 14, 2014 4:36 pm
Location: Leipzig
Callsign: PORTREE
Version: 2020.2.1
OS: Windows 10

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

Postby wkitty42 » Wed Jan 09, 2019 9: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: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

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

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

bugman wrote in Wed Jan 09, 2019 12:45 pm:@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: 648
Joined: Fri Feb 01, 2008 10: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 9:56 am

Torsten wrote in Thu Jan 10, 2019 9: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: 1808
Joined: Thu Mar 19, 2015 10:01 am
Version: next

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

Postby portreekid » Thu Jan 10, 2019 10: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: 651
Joined: Tue Jan 14, 2014 4:36 pm
Location: Leipzig
Callsign: PORTREE
Version: 2020.2.1
OS: Windows 10

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

Postby bugman » Thu Jan 10, 2019 10: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: 1808
Joined: Thu Mar 19, 2015 10:01 am
Version: next

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

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

Fixed. It works with the recent version
portreekid
 
Posts: 651
Joined: Tue Jan 14, 2014 4:36 pm
Location: Leipzig
Callsign: PORTREE
Version: 2020.2.1
OS: Windows 10

Next

Return to Scenery

Who is online

Users browsing this forum: No registered users and 10 guests