File tree Expand file tree Collapse file tree 4 files changed +26
-1
lines changed
pyrasterframes/src/main/python Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ _defaults: &defaults
55 environment :
66 TERM : dumb
77 docker :
8- - image : s22s/rasterframes-circleci:latest
8+ - image : s22s/rasterframes-circleci:9b7682ef
99
1010_setenv : &setenv
1111 name : set CloudRepo credentials
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM circleci/openjdk:8-jdk
22
33ENV OPENJPEG_VERSION 2.3.1
44ENV GDAL_VERSION 2.4.1
5+ ENV SPATIALINDEX_VERSION 1.9.3
56ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
67
78# most of these libraries required for
7475 sudo make install && \
7576 sudo ldconfig && \
7677 cd /tmp && sudo rm -Rf gdal*
78+
79+ # Compile and install libspatialindex
80+ RUN \
81+ cd /tmp && \
82+ wget https://github.com/libspatialindex/libspatialindex/releases/download/${SPATIALINDEX_VERSION}/spatialindex-src-${SPATIALINDEX_VERSION}.tar.gz && \
83+ tar -xf spatialindex-src-${SPATIALINDEX_VERSION}.tar.gz && \
84+ cd spatialindex-src-${SPATIALINDEX_VERSION}/ && \
85+ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/ && \
86+ make && \
87+ sudo make install && \
88+ sudo ldconfig && \
89+ cd /tmp && sudo rm -Rf spatialindex*
Original file line number Diff line number Diff line change 1+ # Spatial Join
2+
3+ ```python
4+ import geopandas
5+ url = "http://d2ad6b4ur7yvpq.cloudfront.net/naturalearth-3.3.0/ne_110m_land.geojson"
6+ df = geopandas.read_file(url)
7+ df2 = geopandas.read_file(url)
8+
9+ geopandas.sjoin(df, df2)
10+ ```
11+
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ matplotlib<3.0.0 # no python 2.7 support after v2.x.x
77ipython == 6.2.1
88rasterio >= 1.0.0
99folium # for documentation
10+ rtree # for geopandas spatial join etc
You can’t perform that action at this time.
0 commit comments