From: Allin C. <cot...@wf...> - 2020-03-04 15:07:31
|
On Wed, 4 Mar 2020, Manfred Schwarb wrote: > > This may be putting the cart before the horse, but... > > Do you think it would be helpful to teach gnuplot to read shape files? > > I imagine it would be possible to test for the presence of shapelib.so > > and provide a binary input mode: > > > > splot <data> binary filetype=shapelib with polygons > > > > I have never worked with this libary so I don't know if it is organized > > in such a way that this would be possible. > > I do it using the gdal software and some shell magic: > # ogr2ogr -f "GMT" gaga.gmt gaga.shp > # grep -v "^#" gaga.gmt | sed 's/>//' > gaga.txt That's also the approach taken by Bob Mesibov at https://www.datafix.com.au/BASHing/2018-10-31.html I'm hopeful that libshape can do the job without requiring the whole of gdal. Libshape was developed by Frank Warmerdam, the guy who initially developed gdal, and is used by gdal's OGR library. Allin Cottrell |