Tag Info

New answers tagged


Is the shapefile EPSG:4326 ? If not, you can convert via ogr2ogr -f "ESRI Shapefile" -t_srs "EPSG:4326" output.shp input.shp


Turns out that while QGIS' Python console found shapely, contour didn't. QGIS is using its own version of Python (2.7.4) in QGIS directory\apps while my non-QGIS Python install - tailored to my non-QGIS work needs and !important - is 2.7.9 in C:\Python27. Shapely was installed into C:\Python27\Lib\site-packages but contour was blind to anything outside ...


According to the documentation: Seeking the beginning of the file is not supported. You must reopen the collection to get back to the beginning. Open the file again for the second loop. I changed your last line to the following and got the loop to run all the way through. with fiona.open('ne_110m_admin_0_countries.shp', 'r') as source2: ...

Top 50 recent answers are included