From: Manfred S. <man...@gm...> - 2020-03-04 12:22:44
|
> > 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 HTH, Manfred > > A quick look at the spec for the shapefile format makes it look horrible > (mixed little-ending big-endian in the same file?! variable record types > that are required not to vary?!), but if it is hidden by a usable library .... > > Ethan > > > > > > > > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > |