* Allow for more general file-like objects to be used when opening files.
* Add a zip scheme to a local path if it is missing on a .zip file. This
allows similar zip inference to happen for remote and local files.
* Add tests using file-like objects and for inferring zip file.
* Make fsspec an optional dep for CI.
* Handle case where windows drive names are present.
* Add test using GDAL-style vsi path.
* Try to increase test coverage a bit.
* Handle case where an archive path is included for a zip
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
* Fix fiona-style path handling for zip archives.
* Remove debug log.
* Remove remote fsspec test as mostly-redundant.
* Simplify reading of bytes by using BytesCollection everywhere. At some
point it may be better to move to the more-supported
MemoryFile/ZipMemoryFile.
* Add fsspec example to the io docs.
* Slight reorg of zip scheme logic.
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
* WIP: initial migration of geofeather into geopandas
* WIP: initial implementation of parquet support for geometries
* Refactored approach to retain same geometry column names
* fix CI errors
* Fix CI errors, improve test coverage
* Py2.7 CI fix for decoding binary strings
* Remove feather support (for now) and address PR comments
* Make primary geometry column more clear
* Address PR comments, allow parameter overrides
* Refactor to_paquet(), read_parquet() per PR feedback
* Migrate to column-level CRS metadata
* Refactored parqut I/O to align with latest parquet metadata spec
* Use GeometryArray in read_parquet to set crs directly
* Updated parquet I/O per PR feedback
* Update parquet I/O per PR feedback
* Fix fstrings in compat
* Undo whitespace autoformatting in .travis.yml
* Add stability warning for parquet metadata spec
* Revert pyarrow version for travis
* Add classmethod from_parquet and fix skips for pyarrow
* TEMP: add test for pandas parquet I/O for appveyor
* Add test for parquet columns parameter repeated column names
* try to fix appveyor
* add to reference
* add pyarrow to show_versins
* skip parquet tests on windows
* try again to skip parquet tests on windows
* remove from_parquet classmethod
* undo space
* Updates per metadata spec PR feedback
* Update parquet metadata to match spec, make io methods private
* Add warning for initial parquet implementation
* Add basic read / write benchmarks for parquet
* Add whitespace to make CI happy
* Ignore parquet warnings in tests except where testing the warnings
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
- 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)
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).
* 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