Skip to content

Commit

Permalink
Merge branch 'conda-windows-tests' of github.com:PDAL/PDAL into conda…
Browse files Browse the repository at this point in the history
…-windows-tests
  • Loading branch information
hobu committed Oct 25, 2018
2 parents 592a612 + de8c624 commit 94063f6
Show file tree
Hide file tree
Showing 16 changed files with 11 additions and 41 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -37,7 +37,7 @@ install:
- python -c "import sys; print(sys.executable)"
- python -c "import sys; print(sys.prefix)"
- call "%CONDA_ROOT%\Scripts\activate.bat" base
- conda install geotiff laszip nitro curl gdal pcl cmake eigen ninja libgdal geos zstd numpy xz libxml2 laz-perf qhull sqlite hdf5 oracle-instantclient numpy-base
- conda install geotiff laszip nitro curl gdal=2.2.4 pcl cmake eigen ninja libgdal geos zstd numpy=1.15.3 xz libxml2 laz-perf qhull sqlite hdf5 oracle-instantclient numpy-base=1.15.3
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
- call scripts\\appveyor\\config.cmd

Expand Down
3 changes: 1 addition & 2 deletions cmake/examples/hobu-conda-win64.bat
Expand Up @@ -4,7 +4,7 @@ cd build-project

set GENERATOR="Visual Studio 14 2015 Win64"
REM set GENERATOR="NMake Makefiles"
REM set GENERATOR="Ninja"
set GENERATOR="Ninja"

set CONDA_ROOT=c:\miniconda3-x64
set ORACLE_HOME=%CONDA_ROOT%
Expand All @@ -21,7 +21,6 @@ cmake -G %GENERATOR% ^
-DBUILD_PLUGIN_I3S=ON ^
-DBUILD_PLUGIN_SQLITE=ON ^
-DBUILD_PLUGIN_ICEBRIDGE=ON ^
-DBUILD_PLUGIN_HEXBIN=ON ^
-DBUILD_PLUGIN_NITF=ON ^
-DENABLE_CTEST=OFF ^
-DWITH_TESTS=ON ^
Expand Down
1 change: 0 additions & 1 deletion cmake/examples/hobu-windows.bat
Expand Up @@ -67,7 +67,6 @@ if EXIST CMakeCache.txt del CMakeCache.txt
cmake -G %GENERATOR% ^
-DBUILD_PLUGIN_CPD=OFF ^
-DBUILD_PLUGIN_GREYHOUND=ON ^
-DBUILD_PLUGIN_HEXBIN=ON ^
-DBUILD_PLUGIN_ICEBRIDGE=OFF ^
-DBUILD_PLUGIN_MRSID=OFF ^
-DBUILD_PLUGIN_NITF=ON ^
Expand Down
5 changes: 0 additions & 5 deletions cmake/options.cmake
Expand Up @@ -32,11 +32,6 @@ option(BUILD_PLUGIN_GREYHOUND
add_feature_info("Greyhound plugin" BUILD_PLUGIN_GREYHOUND
"read points from a Greyhound server")

option(BUILD_PLUGIN_HEXBIN
"Choose if the HexBin filter is built" FALSE)
add_feature_info("Hexbin plugin" BUILD_PLUGIN_HEXBIN
"determine boundary and density of a point cloud")

option(BUILD_PLUGIN_ICEBRIDGE
"Choose if Icebridge support should be built" FALSE)
add_feature_info("Icebridge plugin" BUILD_PLUGIN_ICEBRIDGE
Expand Down
5 changes: 0 additions & 5 deletions doc/apps/density.rst
Expand Up @@ -9,11 +9,6 @@ output of :ref:`filters.hexbin`.

.. _`OGR layer`: http://www.gdal.org/ogr_utilities.html

.. note::

The ``density`` command is only available when PDAL is linked with Hexer
(BUILD_PLUGIN_HEXBIN=ON).

::

$ pdal density <input> <output>
Expand Down
9 changes: 6 additions & 3 deletions plugins/python/plang/Environment.cpp
Expand Up @@ -233,9 +233,10 @@ PyObject *fromMetadata(MetadataNode m)
std::string description = m.description();

MetadataNodeList children = m.children();
PyObject *submeta = PyList_New(0);
PyObject *submeta(0);
if (children.size())
{
submeta = PyList_New(0);
for (MetadataNode& child : children)
PyList_Append(submeta, fromMetadata(child));
}
Expand All @@ -244,8 +245,10 @@ PyObject *fromMetadata(MetadataNode m)
PyDict_SetItemString(data, "value", PyUnicode_FromString(value.data()));
PyDict_SetItemString(data, "type", PyUnicode_FromString(type.data()));
PyDict_SetItemString(data, "description", PyUnicode_FromString(description.data()));
PyDict_SetItemString(data, "children", submeta);

if (children.size())
{
PyDict_SetItemString(data, "children", submeta);
}
return data;
}

Expand Down
1 change: 1 addition & 0 deletions scripts/appveyor/config.cmd
Expand Up @@ -22,6 +22,7 @@ cmake -G "Ninja" ^
-DBUILD_PLUGIN_CPD=OFF ^
-DBUILD_PLUGIN_GREYHOUND=ON ^
-DBUILD_PLUGIN_ICEBRIDGE=ON ^

-DBUILD_PLUGIN_MRSID=OFF ^
-DBUILD_PLUGIN_NITF=ON ^
-DBUILD_PLUGIN_PCL=ON ^
Expand Down
2 changes: 2 additions & 0 deletions scripts/appveyor/test.cmd
Expand Up @@ -3,6 +3,8 @@ pushd build
REM set CONDA_ROOT=C:\\Miniconda3-x64
SET PDAL_DRIVER_PATH="C:\projects\pdal\build\bin"
SET GEOTIFF_CSV=c:\\Minicoda3-x64\\Library\\share\\epsg_csv
set PYTHONHOME=C:\\Miniconda3-x64\
set PYTHONPATH=C:\\Miniconda3-x64\\Lib
cd "c:\projects\pdal\build"
ctest -V --output-on-failure
echo %CD%
Expand Down
1 change: 0 additions & 1 deletion scripts/ci/script.sh
Expand Up @@ -19,7 +19,6 @@ cmake .. \
-DBUILD_PLUGIN_CPD=ON \
-DBUILD_PLUGIN_GREYHOUND=ON \
-DBUILD_PLUGIN_I3S=ON \
-DBUILD_PLUGIN_HEXBIN=ON \
-DBUILD_PLUGIN_NITF=ON \
-DBUILD_PLUGIN_ICEBRIDGE=ON \
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
Expand Down
3 changes: 0 additions & 3 deletions scripts/docker/Dockerfile
Expand Up @@ -12,7 +12,6 @@ RUN \
alpine-sdk \
unzip \
cmake \
hexer-dev \
nitro-dev \
gdal-dev \
geos-dev \
Expand Down Expand Up @@ -43,7 +42,6 @@ RUN \
eigen-dev@edgecommunity \
libressl2.7-libcrypto@edgecommunity \
libressl-dev \
hexer \
nitro \
gdal \
geos \
Expand Down Expand Up @@ -116,7 +114,6 @@ RUN \
-DBUILD_PLUGIN_PYTHON=ON \
-DBUILD_PLUGIN_CPD=ON \
-DBUILD_PLUGIN_GREYHOUND=ON \
-DBUILD_PLUGIN_HEXBIN=ON \
-DBUILD_PLUGIN_NITF=ON \
-DBUILD_PLUGIN_ICEBRIDGE=ON \
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
Expand Down
3 changes: 0 additions & 3 deletions scripts/docker/master/alpine/Dockerfile
Expand Up @@ -8,7 +8,6 @@ RUN \
unzip \
cmake \
eigen-dev \
hexer-dev \
nitro-dev \
gdal-dev \
geos-dev \
Expand All @@ -35,7 +34,6 @@ RUN \
zstd-dev \
; \
apk add --no-cache \
hexer \
nitro \
gdal \
geos \
Expand Down Expand Up @@ -88,7 +86,6 @@ RUN \
-DBUILD_PLUGIN_PYTHON=ON \
-DBUILD_PLUGIN_CPD=ON \
-DBUILD_PLUGIN_GREYHOUND=ON \
-DBUILD_PLUGIN_HEXBIN=ON \
-DBUILD_PLUGIN_NITF=ON \
-DBUILD_PLUGIN_ICEBRIDGE=ON \
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
Expand Down
13 changes: 0 additions & 13 deletions scripts/docker/master/ubuntu/Dockerfile
Expand Up @@ -115,18 +115,6 @@ RUN \
make install; \
cd /; \
rm -rf /laszip; \
git clone https://github.com/hobu/hexer.git; \
cd hexer; \
mkdir build; \
cd build; \
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE="Release" \
; \
make; \
make install; \
cd /; \
rm -rf /hexer; \
git clone https://github.com/hobu/laz-perf.git; \
cd laz-perf; \
mkdir build; \
Expand Down Expand Up @@ -206,7 +194,6 @@ RUN \
-DBUILD_PLUGIN_CPD=OFF \
-DBUILD_PLUGIN_MBIO=ON \
-DBUILD_PLUGIN_GREYHOUND=ON \
-DBUILD_PLUGIN_HEXBIN=ON \
-DBUILD_PLUGIN_ICEBRIDGE=ON \
-DBUILD_PLUGIN_MRSID=ON \
-DBUILD_PLUGIN_NITF=ON \
Expand Down
1 change: 0 additions & 1 deletion scripts/docker/rivlib/Dockerfile
Expand Up @@ -12,7 +12,6 @@ RUN CC="gcc" CXX="g++" git clone --depth=1 https://github.com/PDAL/PDAL \
&& cmake \
-DBUILD_PLUGIN_CPD=ON \
-DBUILD_PLUGIN_GREYHOUND=ON \
-DBUILD_PLUGIN_HEXBIN=ON \
-DBUILD_PLUGIN_ICEBRIDGE=ON \
-DBUILD_PLUGIN_MRSID=ON \
-DBUILD_PLUGIN_NITF=ON \
Expand Down
1 change: 0 additions & 1 deletion scripts/docker/ubuntu/Dockerfile
Expand Up @@ -13,7 +13,6 @@ RUN git clone https://github.com/PDAL/PDAL.git /pdal; \
-DBUILD_PLUGIN_PYTHON=ON \
-DBUILD_PLUGIN_CPD=ON \
-DBUILD_PLUGIN_GREYHOUND=ON \
-DBUILD_PLUGIN_HEXBIN=ON \
-DBUILD_PLUGIN_NITF=ON \
-DBUILD_PLUGIN_ICEBRIDGE=ON \
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
Expand Down
1 change: 0 additions & 1 deletion scripts/linux-install-scripts/pdal.sh
Expand Up @@ -20,7 +20,6 @@ cmake -G "Unix Makefiles" \
-DWITH_LAZPERF=ON \
-DWITH_LIBXML2=ON \
-DBUILD_PLUGIN_PYTHON=ON \
-DBUILD_PLUGIN_HEXBIN=ON \
-DBUILD_PLUGIN_ICEBRIDGE=ON \
-DBUILD_PLUGIN_NITF=ON \
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
Expand Down
1 change: 0 additions & 1 deletion scripts/osgeo4w/config.cmd
Expand Up @@ -28,7 +28,6 @@ del /s /q install
cmake -G %GENERATOR% ^
-DBUILD_PLUGIN_CPD=OFF ^
-DBUILD_PLUGIN_GREYHOUND=ON ^
-DBUILD_PLUGIN_HEXBIN=ON ^
-DBUILD_PLUGIN_ICEBRIDGE=OFF ^
-DBUILD_PLUGIN_MRSID=OFF ^
-DBUILD_PLUGIN_NITF=ON ^
Expand Down

0 comments on commit 94063f6

Please sign in to comment.