This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import logging | |
| # set up logger for CloudWatch | |
| logger = logging.getLogger(__file__) | |
| logger.setLevel(logging.DEBUG) | |
| import subprocess | |
| import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # adaptation of https://kingsgeocomputation.org/2016/03/16/aspect-slope-maps-in-qgis/ in | |
| # gdal_calc | |
| cat > color-ramp.txt <<EOL | |
| # QGIS Generated Color Map Export File | |
| 10,181,181,181,255,Custom color map entry | |
| 12,159,192,133,255,Custom color map entry | |
| 14,157,221,94,255,Custom color map entry | |
| 16,154,251,12,255,Custom color map entry | |
| 20,181,181,181,255,Custom color map entry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UnsatisfiableError: The following specifications were found to be incompatible with each other: | |
| - conda-forge/osx-64::boost-cpp==1.70.0=h75728bb_2 -> libboost[version='<0'] | |
| - conda-forge/osx-64::cfitsio==3.470=h389770f_1 -> libcurl[version='>=7.64.1,<8.0a0'] -> krb5[version='>=1.16.3,<1.17.0a0'] -> libedit[version='>=3.1.20170329,<4.0a0'] | |
| - conda-forge/osx-64::curl==7.65.3=h22ea746_0 -> krb5[version='>=1.16.3,<1.17.0a0'] -> libedit[version='>=3.1.20170329,<4.0a0'] | |
| - conda-forge/osx-64::krb5==1.16.3=hcfa6398_1001 -> libedit[version='>=3.1.20170329,<4.0a0'] | |
| - conda-forge/osx-64::libcurl==7.65.3=h16faf7d_0 -> krb5[version='>=1.16.3,<1.17.0a0'] -> libedit[version='>=3.1.20170329,<4.0a0'] | |
| - conda-forge/osx-64::libedit==3.1.20170329=hcfe32e1_1001 | |
| - conda-forge/osx-64::libkml==1.3.0=hed7d534_1010 -> boost-cpp[version='>=1.70.0,<1.70.1.0a0'] -> libboost[version='<0'] | |
| - conda-forge/osx-64::libpq==11.4=h756f0eb_3 -> krb5[version='>=1.16.3,<1.17.0a0'] -> libedit[version='>=3.1.20170329,<4.0a0'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Package python conflicts for: | |
| libgdal=3.0 -> libkml[version='>=1.3.0,<1.4.0a0'] -> boost==1.66.0 -> numpy[version='>=1.8'] -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0'] | |
| geotiff=1.5.1 -> libtiff[version='>=4.0.9,<5.0a0'] -> zstd[version='>=1.4.0,<1.4.1.0a0'] -> lz4 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0'] | |
| postgresql -> python[version='2.7.*|3.4.*|3.5.*|3.6.*|>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0'] | |
| geotiff=1.5.1 -> libtiff[version='>=4.0.9,<5.0a0'] -> zstd[version='>=1.4.0,<1.4.1.0a0'] -> lz4 -> setuptools -> python[version='2.7.*|3.5.*|3.6.*'] | |
| libkml=1.3 -> boost==1.66.0 -> numpy[version='>=1.8'] -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0'] | |
| libkml=1.3 -> boost==1.66.0 -> python[version='2.7.*|3.5.*|3.6.*'] | |
| libgdal=3.0 -> libkml[version='>=1.3.0,<1.4.0a0'] -> boost==1.66.0 -> python[version='2.7.*|3.5.*|3.6.*'] | |
| numpy=1.14 -> python[version='2.7.*|3.4.*|3.5.*|3.6.*|>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Package libcxx conflicts for: | |
| numpy=1.14 -> libcxx[version='>=4.0.1'] | |
| zstd=1.4.0 -> libcxx[version='>=4.0.1'] | |
| nitro -> libcxx[version='>=4.0.1'] | |
| geos=3.7.2 -> libcxx[version='>=4.0.1'] | |
| libgdal=3.0 -> libcxx[version='>=4.0.1'] | |
| sqlite=3 -> libcxx[version='>=4.0.1'] | |
| tiledb=1.6.0 -> libcxx[version='>=4.0.1'] | |
| laszip -> libcxx[version='>=4.0.1'] | |
| python=3.6 -> libcxx[version='>=4.0.1'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In file included from ../tutorial.cpp:1: | |
| In file included from /Users/hobu/miniconda3/envs/pdal-python-test/include/pdal/PointView.hpp:37: | |
| In file included from /Users/hobu/miniconda3/envs/pdal-python-test/include/pdal/DimDetail.hpp:37: | |
| In file included from /Users/hobu/miniconda3/envs/pdal-python-test/include/pdal/Dimension.hpp:9: | |
| In file included from /Users/hobu/miniconda3/envs/pdal-python-test/include/pdal/DimUtil.hpp:40: | |
| /Users/hobu/miniconda3/envs/pdal-python-test/include/pdal/util/Utils.hpp:572:21: error: expected expression | |
| auto pred = [tChar](char c){ return(c == tChar); }; | |
| ^ | |
| /Users/hobu/miniconda3/envs/pdal-python-test/include/pdal/util/Utils.hpp:588:21: error: expected expression | |
| auto pred = [tChar](char c){ return(c == tChar); }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "AUTOSRS_V_NAME","COMPOUND_WKT" | |
| "NAVD88 - Geoid03 (Feet)","COMPD_CS[""unknown"",PROJCS[""NAD83 / Pennsylvania South"",GEOGCS[""NAD83"",DATUM[""North_American_Datum_1983"",SPHEROID[""GRS 1980"",6378137,298.2572221010042,AUTHORITY[""EPSG"",""7019""]],AUTHORITY[""EPSG"",""6269""]],PRIMEM[""Greenwich"",0],UNIT[""degree"",0.0174532925199433],AUTHORITY[""EPSG"",""4269""]],PROJECTION[""Lambert_Conformal_Conic_2SP""],PARAMETER[""standard_parallel_1"",39.93333333333333],PARAMETER[""standard_parallel_2"",40.96666666666667],PARAMETER[""latitude_of_origin"",39.33333333333334],PARAMETER[""central_meridian"",-77.75],PARAMETER[""false_easting"",1968500],PARAMETER[""false_northing"",0],UNIT[""US survey foot"",0.3048006096012192,AUTHORITY[""EPSG"",""9003""]],AUTHORITY[""EPSG"",""32129""]],VERT_CS[""NAVD88 - Geoid03 (Feet)"",VERT_DATUM[""unknown"",2005],UNIT[""US survey foot"",0.3048006096012192,AUTHORITY[""EPSG"",""9003""]],AXIS[""Up"",UP]]]" | |
| "NAVD88 - Geoid03 (Meters)","COMPD_CS[""unknown"",PROJCS[""WGS 84 / UTM zone 11N"",G |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void* | |
| GEOSGeom_getUserData_r(GEOSContextHandle_t extHandle, const Geometry* g) | |
| { | |
| assert(0 != g); | |
| if(nullptr == extHandle) { | |
| return 0; | |
| } | |
| GEOSContextHandleInternal_t* handle = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unsigned int openFlags = GA_ReadOnly | GDAL_OF_VECTOR | GDAL_OF_VERBOSE_ERROR; | |
| GDALDataset* ds = (GDALDataset*) GDALOpenEx( dsString.c_str(), | |
| openFlags, | |
| NULL, NULL, NULL ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GDALDriverManager* hMgr = GetGDALDriverManager(); | |
| std::unique_ptr<GDALDriver> hDriver = std::unique_ptr<GDALDriver>(hMgr->GetDriverByName(aoDrivers[0].c_str())); | |
| if (!hDriver) | |
| { | |
| CPLError(CE_Failure, CPLE_AppDefined, | |
| "Cannot get driver for %s", aoDrivers[0].c_str()); | |
| return CE_Failure; | |
| } | |
| /* create output raster */ | |
| // GDALDatasetH hDstDS = nullptr; |