I have OSGeo4W64 installed on my machine with a shortcut on my desktop to open the shell. In Visual Studio 2013, I have a python file with some sample code I found online. I could be using PyCharm but I don't think that's really part of the issue or solution here.
# Import the necessary modulesfrom osgeo import ogr, osrdriver = ogr.GetDriverByName('ESRI Shapefile')shp = driver.Open(r'C:\your\shapefile.shp')I need to reference osgeo but I'm not sure what I need to reference or where to get it. I know how to add a reference and where to go to do it but I don't know what I'm adding to get this library included.
أكثر...
# Import the necessary modulesfrom osgeo import ogr, osrdriver = ogr.GetDriverByName('ESRI Shapefile')shp = driver.Open(r'C:\your\shapefile.shp')I need to reference osgeo but I'm not sure what I need to reference or where to get it. I know how to add a reference and where to go to do it but I don't know what I'm adding to get this library included.
أكثر...