What is the structure of a multipoint shapefile dbf file?

3448
1
Jump to solution
12-19-2015 10:37 AM
AntonSawka
New Contributor

I'm writing a program to create a multipoint shapefile (.shp .shx .dbf), and I'm not sure how the format of the .dbf file should look. The .dbf starts off with a record header, followed by field subrecord structures, which are then followed by the actual records. The records start with a deletion flag followed by data.

With the consideration that this is a multipoint shapefile, how would the records be written? Is each point in the multipoint file a record or are all of the points considered to be one record?

0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Esteemed Contributor

the shapefile specification is here https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf

the shape field will contain the multipoint geometry to which one attribute in the dbase file is associated, hence, the multipoint designation, multiple points to one attribute

There are numerous threads on dbase format on the web dbase IV I think is the one being used, so you might query those as well... for example... http://www.dbase.com/KnowledgeBase/int/db7_file_fmt.htm

rather than reinvent the wheel, you might want to look at some packages that do it already ... ie for python pyshp 1.2.3 : Python Package Index

And there are builtins that can be used within arcpy to generate multipoints and export attributes out to shapefile format if you need. those

View solution in original post

1 Reply
DanPatterson_Retired
MVP Esteemed Contributor

the shapefile specification is here https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf

the shape field will contain the multipoint geometry to which one attribute in the dbase file is associated, hence, the multipoint designation, multiple points to one attribute

There are numerous threads on dbase format on the web dbase IV I think is the one being used, so you might query those as well... for example... http://www.dbase.com/KnowledgeBase/int/db7_file_fmt.htm

rather than reinvent the wheel, you might want to look at some packages that do it already ... ie for python pyshp 1.2.3 : Python Package Index

And there are builtins that can be used within arcpy to generate multipoints and export attributes out to shapefile format if you need. those

View solution in original post