PHP5-Shape-File-Parser icon indicating copy to clipboard operation
PHP5-Shape-File-Parser copied to clipboard

Parsing .dbf and .shx files

Open stephenfrank opened this issue 11 years ago • 1 comments

Hi,

I'm new to shape files and GIS in general.

I'm working with a set of map data and I'm able to load the .shp file with your library and read out what looks like x, y and polygon information (yay) but I'm missing information that I believe is held in the .dbf file (sigh). This is the label for each polygon (the name of the place).

Does this library support this / do you have any tips that will help me consolidate this data?

stephenfrank avatar Sep 27 '13 06:09 stephenfrank

You should be able to load associated data by zipping the .shp and associated files together, and reading the zip file instead of the shp file directly.

Disclaimer: I haven't actually used this library in years, not sure if this is still accurate. Basing this on the notes in the README.

fillerwriter avatar Sep 27 '13 13:09 fillerwriter