Repository navigation
Improve/fix the gmt_ogrread function and include in the lib code. - #445
Conversation
|
Looks like there are compiling errors in Travis for Linux - could you check and see what is missing (if anything)? |
|
Don't get it. It looks like it's not finding some GDAL pieces (can't be the whole GDAL because it doesn't complain with gdalread). It builds fine on OSX though. |
|
Maybe @leouieda can sniff out what is happening? |
|
I bet it's our friend Ubuntu being stable. We need at least GDAL2.0 but it likely is still at 1.11 (a couple of years old) |
|
Wonder if possible to isolate under a "#if GDAL_VERSION > 2" test? |
|
Yes. It would be |
Travis uses Ubuntu Xenial and the latest gdal there is 1.11.3. But I don't think there is a good way around this other than getting gdal from another source. This is why I use the conda packages for pygmt but that comes with its own set of headaches. If it breaks on Travis, you can bet it will break for all our Ubuntu users who follow our install instructions and don't build GDAL from source. |
|
OK, it turned out that upgrading Winbuntu was quicker then "the whole night" and I now have a With this it builds fine. So I don't understand why Travis is still failing since I added the #if (GDAL_VERSION_NUM >= 2000) in 160cb76 |
|
Replaced the versioning condition by |
Changelog for a bugfix release that finally supports Windows! Release date set to 2020/05/22. Co-authored-by: Dongdong Tian <[email protected]>
Start the work of reading the OGR vector formats directly via GDAL. The
gmt_ogrreaf()uses a design inherited from it's Matlab ancestor in Mirone and hence it's structure must be improved to fit better with the GMT needs. But as it is we can already load data directly. We still need to write code to parse its contents and feed the corresponding GMT data structures, so as it is we can't use it yet but as a proof o concept I added one such type of function parser in Julia that converts the gmt_ogrreaf() output into aGMTdataset. It works like this.