anthirini

How to read a shapefile

Discussion created by anthirini on Oct 9, 2012
Latest reply on Oct 10, 2012 by clthompson
Hi

I am a really new python user and I need to read a shapefile named "hpq0"
I have tried the following:

import shapefile
sf = shapefile.Reader("shapefiles/hpq0.shp")


but nothing happens. Obviously in this way the path to find the shapefile "hpq.shp" is not defined.
Is there any procedure for reading shapefiles except from the one described in this:
http://pypi.python.org/pypi/pyshp/#reading-shapefiles


Thank you very much in advance!!!

Outcomes