Commit Graph
13 Commits
Author SHA1 Message Date
Joris Van den Bossche 5e0ead84b8 CI: pin python to 3.7.3 (pip install issues with 3.7.4) (#1092) 2019-08-12 11:33:57 +02:00
Martin Fleischmann 8c42164559 ENH: allow pysal alongside mapclassify for plotting scheme (#1082) 2019-08-09 09:28:04 +02:00
Joris Van den Bossche 6d3fad4ab3 CI: use defaults for py36 build (#1079) 2019-08-05 17:26:14 +02:00
Joris Van den Bossche 6ef9746a01 CI: add zstd as dependency to fix conda-forge problem with latest fiona / gdal 2019-07-29 14:07:48 +02:00
Joris Van den Bossche 69757afe6b Update minimal dependencies for pandas (>=0.23.4) and matplotlib (>=2.0.1) (#1002) 2019-05-24 13:05:38 +02:00
Joris Van den Bossche d7a5a30a6f CI: too old fiona installed on py3.5-minimal build (#985) 2019-04-25 11:40:01 +02:00
Joris Van den Bossche 59bbca801b TST/CI: pin a few builds to older fiona version (#973) 2019-04-17 12:47:32 +02:00
Joris Van den Bossche 619c99c221 CI: update travis builds (#949)
- remove py27 dev build (pandas master no longer supports python 2.7) and replace with pandas 0.23 build
- py37 dev build: move installing pandas and matplotlib master to separate steps in travis yml file (otherwise the conda create step takes too long)
- remove conda-forge/label/dev label for fiona (was still installing the rc instead of actual released version)
2019-03-25 16:23:28 +01:00
Joris Van den Bossche 02c6cf6d2b CI: fix the conda-forge env with pd 0.20 (remove pin of old matplotlib) (#903)
Travis CI tests were failing recently for one specific build, see https://github.com/conda-forge/gdal-feedstock/issues/261

Fixed by removing the pin of matplotlib to 1.5.3 (but added `gdal=2.3` to keep at older gdal version). 

Also added `nomkl` to have a built with numpy/openblas from conda-forge (not that it should matter though).
2019-01-26 14:08:18 +01:00
Martin Fleischmann f4fa69eae0 Use mapclassify instead of PySAL due to change of PySAL structure. (#872) 2018-12-08 22:36:45 +01:00
lmmarsano 201ae9cd93 BUG: fix from_postgis to accept nullable geometry (#856)
* TST: test read_postgis with NULL geometry

Though GIS databases permit NULL values in the geometry field, read_postgis throws exceptions when it encounters them.
test_read_postgis_null_geom defines this test case with sqlite3 database, and support functions are revised to support it.
create_sqlite is revised to loosen data type restrictions and follow [recommendations from the python manual](https://docs.python.org/3/library/sqlite3.html)
- connection parameter instead of filename to allow for in-memory database
- 'with' statement for transaction management
- parameter substitution instead of string operations
validate_boro_df strips NULL values before checking geometry type.

* TST: replace sqlite test with spatialite test

The original SQLite test reflected unlikely usage for geospatial analysis.
In parity with PostGIS, the new test runs against SQLite with SpatiaLite enabled.
For coverage, test geometries read as text and binary.

* TST: add libspatialite as a test dependency

* TST: add conda-forge testing environment for Python 2.7

add this environment to continuous integration
conda-forge Python 2.7 enables loadable SQLite extensions with conda-forge/python-feedstock#227
adding this environment enables SpatiaLite tests

* BUG: fix read_postgis & GeoDataFrame to accept NULL geometry values

read_postgis failed to load nullable binary geometry data while GeoDataFrame raised exceptions on NULL in the geometry field.
This fixes both issues.
It moreover adds logic to detect python version & load geometries from
python 2 buffers as necessary.

* ENH DOC: drop hex_encoded parameter from read_postgis & from_postgis

drop hex_encoded, since sqlite3 represents binary & text as distinct Python data types
adjust names to clarify this distinction
adjust documentation to clarify geometry is expected in WKB representation (which was implicit)
add example SpatiaLite usage reflecting this expectation
2018-11-29 21:05:08 -08:00
Joris Van den Bossche 556e29ed83 Test fiona 1.8b1 (#844) 2018-10-27 15:22:39 +02:00
Joris Van den Bossche 1faf62b7b6 TST/CI: refactor travis using fixed environment files (#843) 2018-10-17 00:18:06 +02:00