[Shapelib] Example of how to create a shapefile
Kleymeyer, Alan
AKleymeyer at overwatch.com
Wed Mar 15 14:13:09 PST 2006
Can someone provide an examples of creating a shapefile.
I've tried the following sequence:
SHPCreate(SHPT_MULTIPOINTZ)
SHPCreateSimpleObject(SHPT_MULTIPOINTZ)
SHPWriteObject()
SHPDestroyObject()
SHPClose();
which appears to create the .SHP & .SHX just fine.
However ArcMap fails to load it reporting "Error opening feature class"
I assume because I haven't created a .DBF file.
What exactly do I need to write to the .DBF file?
Thanks,
Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/shapelib/attachments/20060315/294055bf/attachment.html>
More information about the Shapelib
mailing list