Tag: osgeo

PDAL:无法创build“裁剪”types的筛选器阶段

我想在python中使用pdal。 我开始了一个超级简单的裁剪: json = """{ "pipeline":[ "ARRA-LFTNE_NewYork_2010_000636.las", { "type":"crop", "bounds":"([616766.770,617765.46],[4510733.640,4511649.800])" }, "output.laz" ] }""" pipeline = pdal.Pipeline(unicode(json,encoding="utf-8")) pipeline.validate() # check if our JSON and options were good pipeline.loglevel = 8 #really noisy count = pipeline.execute() arrays = pipeline.arrays metadata = pipeline.metadata log = pipeline.log json来自pdal的hp https://www.pdal.io/pipeline.html#pipeline ,应该简单地裁剪图像。 但是,在validation过程中会失败并显示错误: Traceback (most recent call last): File "/src/test.py", […]

在Python中导入osgeo库失败

我无法在我的python应用程序中导入osgeo库。 我在由以下依赖关系定义的conda环境中工作: 对于默认频道: python=3.6.0 pandas=0.19.2 scikit-learn=0.18.1 numpy=1.12.1 requests=2.14.2 pyyaml=3.12 jinja2=2.9.6 对于伪造渠道: gdal=2.2.1 用pip安装: jellyfish unidecode scikit-optimize skater==1.0.2 boto3==1.4.1 schedule==0.4.3 geopy==1.11.0 fuzzywuzzy==0.15.1 python-Levenshtein==0.12.0 我收到以下错误: from osgeo import ogr File "/opt/conda/lib/python3.6/site-packages/osgeo/__init__.py", line 21, in <module> _gdal = swig_import_helper() File "/opt/conda/lib/python3.6/site-packages/osgeo/__init__.py", line 17, in swig_import_helper _mod = imp.load_module('_gdal', fp, pathname, description) File "/opt/conda/lib/python3.6/imp.py", line 242, in load_module return […]