Pyshp is a pure Python shapefile library which can be used to read, write and edit ESRI shapefiles.
1
vote
1answer
63 views
How to add attributes to shapefile with Python and pyshp?
I'm using pyshp for creating a shapefile. I need to populate tens of fields with values using the record() method of shapefile.Writer. I have those values as a list, but have no idea how to send it to ...
3
votes
3answers
145 views
Updating Attributes using Pyshp
Is it possible to update an attribute field in a shapefile using pyshp ?
I went through their documentation and all they show is how to create new attribute rather than editing or updating an already ...
5
votes
2answers
326 views
How to get text attributes from shapefile with python / pyshp
I have a shapefile, containing only points in XY-coordinates and a string attribute for each point. I would like to read the coordinates and the attribute for postprocessing in python, but can't get ...
5
votes
1answer
69 views
Where do I append point values with pyshp?
I would like to generate a .shp with five points using shapefile available through pyshp. However, when I loop through my list I get only the last value. This makes sense as I did not append any of ...
2
votes
2answers
309 views
Problems converting CSV to Shapefile using pyshp
I have a python script which converts csv data to shapefiles. It converts but won't get angle from csv.
Can anyone help me?
The CSV data looks like this:
fid_nr;x;y;angle
...
1
vote
0answers
81 views
How to construct a line from points in pyshp?
I am reading a shapefile for a pipeline and what I've noticed is that if I just draw a line from one point to the next (in the order I read them), there will be points where the line terminates, and ...
4
votes
1answer
1k views
Using the python shape library: pyshp - how to convert .csv file to .shp
I am trying to understand how I can use the csv module in python to open a csv file in the same folder as the python script, and then create a shapefile using the shapefile module pyshp.
The csv file ...

