I have written a Delphi library for reading shapefiles. Now I'd like to test it with some real data, but cannot find any shapefiles containing the "M" variety of data:
I have written a Delphi library for reading shapefiles. Now I'd like to test it with some real data, but cannot find any shapefiles containing the "M" variety of data:
* PointM, MultiPointM, PolygonM or PolylineM
* and also "Z" data (PointZ, MultiPointZ, PolygonZ or PolylineZ) including the optional "M" data.
* PointM, MultiPointM, PolygonM or PolylineM
* and also "Z" data (PointZ, MultiPointZ, PolygonZ or PolylineZ) including the optional "M" data.
By shapefiles are you referring to https://en.wikipedia.org/wiki/Shapefile? Just reading, or also including rendering? Sorry, I'm totally new to this area :)
ReplyDeleteen.wikipedia.org - Shapefile - Wikipedia
Edwin Yip Yes, ESRI shape files. Yes, only reading (but there is also a writer). At work we have got a mapping tool for rendering which uses this library, but only my library is free.
ReplyDeleteAttila Kovacs It's part of my dzlib
ReplyDeletehttps://sourceforge.net/p/dzlib/code/HEAD/tree/dzlib/trunk/src/u_dzShapeFileReader.pas
But beware that I haven't updated it to the latest version yet, so there are quite a few bugs for now reading M and Z data. It works fine for 2d data.
Somehow the link to sig.stackexchange.com got lost in the post:
ReplyDeletehttp://gis.stackexchange.com/q/223797/45221
There is one comment that pointed me to some files which turned out to be quite useful for finding multiple bugs.
Thomas Mueller I started writing something similar a few years ago, but the project was abandoned.. This might help revive it ;-)
ReplyDeleteAttila Kovacs I have finished the library and checked all fixes into the svn repository on sourceforge.
ReplyDelete