Commit Graph
156 Commits
Author SHA1 Message Date
Martin FleischmannandFlavin 79aeefacd7 DOC: documentation improvements (#1750)
* docstring changes

* cx

* notes

* ci fix

* skip check

* updates based on the review

* Update geopandas/base.py

Co-authored-by: Flavin <flavinj@gmail.com>

* typo

Co-authored-by: Flavin <flavinj@gmail.com>
2021-01-30 11:00:00 +00:00
Will Schlitzer cfc732e610 DOC: Update copyright year (#1806) 2021-01-28 20:27:06 +00:00
Alan D. Snow f53d77c950 DOC: Update rtree wheel information in installation instructions (#1770) 2021-01-05 09:03:13 +00:00
Adam J. Stewart 36521787c3 DOC: italics can't be nested in links (#1762) 2020-12-31 19:47:46 +00:00
Tim Gates 7d3136b834 DOC: fix simple typo, recommenend -> recommend (#1755) 2020-12-28 08:44:14 +01:00
7a6fcbbb0b DOC: another batch of docstring examples (#1733)
* docstring examples

* fix buffer

* Apply suggestions from code review

Co-authored-by: Flavin <flavinj@gmail.com>

* Update geopandas/base.py

Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>

* use matplotlib plot directive

Co-authored-by: Flavin <flavinj@gmail.com>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2020-12-27 14:04:18 +00:00
Isaac BoatesandMartin Fleischmann bdbca79d91 ENH: fallback to DataFrame.explode() when the specified column is not the geometry column (#1720)
* WIP: Added check to GeoDataFrame.explode() to see if it should fall back to the default pandas method of the same name

* Will geometrically explode if the column dtype is geometry, and defaults to active geometry column if left as None

* changed type check to isinstance

* moved explode() definition from GeoPandasBase to GeoSeries

* Removed ignore_index from explode() args

* cleanup

* black

* skipif

* skipif pandas 024

* added test for epxlode pandas fallback when column param is provided as arg instead of kwarg

* Using assert_geodataframe_equal instead of assert_frame equal and test column param supplied as arg or kwarg in both cases per function (ignore_index=True or False)

* blacken + docs

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-12-27 11:25:04 +00:00
Joris Van den Bossche 1ef924270e DEP: No longer rely on descartes, use own version of PolygonPatch (#1677) 2020-12-20 16:48:02 +01:00
Jake Clarke e506de5900 DOC: Fixing a typo in "South America" (#1725) 2020-12-07 09:34:03 +00:00
Martijn Visser 5096498fcd DOC: remove misplaced curly bracket from projection.rst (#1721) 2020-12-03 22:58:38 +00:00
Alan D. SnowandMartin Fleischmann a0edbee7d2 ENH: Add estimate_utm_crs method to GeoSeries and GeoDataFrame (#1646)
* ENH: Add estimate_tum_crs method to GeoSeries and GeoDataFrame

* Add examples & expect release in 0.9

* undo changes in CI

* Update geopandas/geoseries.py

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>

* pytest.mark.skipif

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>

* Update geopandas/geodataframe.py

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>

* more skipif

* use pyproj to transform bounds

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-11-27 10:15:26 +00:00
Adrian Garcia BadaraccoandMartin Fleischmann f33c483a33 ENH: add public has_sindex method (#1627)
* add public sindex_generated method to GeoDataFrame, GeoSeries and GeometryArray

* add docstring

* doc suggestions

* PR feedback

* revert docstring

* geometry -> geom

* edit docstring

* Update geopandas/array.py

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>

* formatting

* PR feedback

* Update base.py

* add to api docs

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-11-10 19:11:16 +00:00
Martin Fleischmann 7e595d08a5 DOC/CI: remove Travis from docs and paths (#1632)
* DOC/CI: remove Travis from docs and paths

* use envs

* fix

* typo

* how to trigger check
2020-10-10 20:03:25 +01:00
Martin Fleischmann 330ed11dc1 DOC: Docstring examples (#1617)
* GeoSeries examples

* GeoSeries examples

* GeoDataFrame examples

* missed one

* base examples

* review changes

* toggleprompt

* brendan's comments

* further comments
2020-10-08 18:32:19 +01:00
Ian RoseandMartin Fleischmann 38fd095fa5 ENH: Allow for more general file-like objects to be used when opening files. (#1535)
* 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>
2020-09-02 20:56:06 +01:00
Alan D. Snow a17c61f54a DOC: Use the CRS.utm_zone property to identify UTM CRS (#1595) 2020-08-28 20:31:39 -07:00
Martin Fleischmann e53ff09109 DOC: Add logo (#1579)
* DOC: Add logo

* favicon
2020-08-26 19:31:55 +01:00
Joris Van den Bossche ca7c95e5c3 DOC: add redirects for old pages (#1577) 2020-08-21 12:11:18 +01:00
Martin Fleischmann 953753896a DOC: Restructured documentation, use pydata-sphinx-theme (#1564)
* use pydata theme

* structure

* fix links

* adapt colors

* getting started

* buttons

* buttons

* rename, use myst, fill stuff

* myst to env

* cleanup

* covered_by

* review comments

* fix link

* use api
2020-08-20 21:48:19 +01:00
Sergio Rey 1b0f006ba1 DOC: update mapclassify doc links (#1557)
* [DOC] update mapclassify doc link

* Update mapclassify doc link in source
2020-08-03 09:09:11 +01:00
Martin Fleischmann 7a093643fc DEP: drop support for older versions of dependencies (#1492)
* change requirements

* ci

* remove compatibility layers

* ci recipe

* ci versions

* version in setup.py
2020-07-28 18:22:47 +01:00
Rowan MolonyandMartin Fleischmann d96da68c2e DOC: Copy pandas commit message conventions (#1533)
* DOC: Copy pandas commit message conventions

Following on from pull request discussion
in #1425

* Rename geopandas to GeoPandas

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>

* Remove triple whitespace

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>

* Remove triple whitespace again

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>

* Change reference to refer to

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-07-28 18:13:52 +01:00
Adrian Garcia Badaracco 89908f8439 REF: refactor sjoin as per #1463 (#1470)
* REF: refactor sjoin as per #1463

* PR comments + variablize OPs

* rename var

* PR feedback

* Note new op values in docs

* doc fixes

* finish line
2020-07-03 18:34:00 +01:00
Sönke Schmachtel b0381e1f4a DOC: Travis doc link fix (#1499)
* Update CONTRIBUTING.md

changed getting started url

* Update contributing.rst

changed getting started with travis link
2020-06-30 10:34:21 +01:00
Joris Van den Bossche 5eb66a2d9f DOC: add sections for PostGIS and Parquet/Feather to io.rst docs (#1485) 2020-06-24 17:19:39 +02:00
Joris Van den BosscheandMartin Fleischmann 0b1e2a1423 DOC/RLS: start changelog for 0.8.0 release (#1468)
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-06-24 14:20:50 +02:00
Adrian Garcia Badaracco 3868b44e1a ENH: use query_bulk in sjoin (#1421) 2020-06-12 11:37:04 +02:00
Bhavika Tekwani e9cc2588fc ENH: Add covers() method to GeoSeries (#1460) 2020-06-03 10:51:15 +02:00
harryposnerandJoris Van den Bossche ed612f4400 ENH: Setting the CRS of naive geometries (#747)
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2020-05-27 21:28:37 +02:00
Joris Van den Bossche 7e9868860f ENH: add Feather IO support (#1435) 2020-05-27 19:45:44 +02:00
Christopher Yeh 3cba9b720e DOC: Fix typos in mergingdata.rst (#1441) 2020-05-22 08:57:29 +01:00
d19afa4ece ENH: Add parquet IO support (#1180)
* 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>
2020-05-20 09:23:26 +01:00
raphacosta27 43523217a3 DOC: Adding geopandas.Series overlaps method in documentation (#1423) 2020-05-14 13:40:27 +01:00
Joris Van den Bossche 5a2bafbe0a DOC: add read_postgis/to_postgis to reference docs (#1406) 2020-05-05 12:51:39 +02:00
433c39bab7 ENH: Add method to write GeoDataFrame to PostGIS (#1248)
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2020-05-05 12:06:14 +02:00
Mike Taves 9b179753d1 DOC: corrections / updates (#1402)
* Binary wheels for shapely have been available since version 1.7.0
* Correction to sjoin default for op
2020-04-29 11:11:11 +02:00
Alan D. Snow 8d78e771d3 ENH: Support ignore_geometry option with read_file, test ignore_fields (#1383)
* ENH: Add option to read subset of columns in read_file

* Add support for ignore_geometry & for geometries with __geo_interface__

* ensure duplicate columns are duplicated

* update code to only fix ignore_geometry load

* added test_read_file__ignore_all_fields

* ignore column order in test_from_features_geom_interface_feature

* add skip for FIona < 1.8 for ignore_fields/geometry

* Add ignore_geometry example

* not isinstance GeoDataFrame

* limit changes for ignore geometry

* modify from_features to require geometry; update docstring in read_file about optionally returning pandas.Dataframe & make docstring numpydoc compliant

* Add note in example about returning pandas dataframe

* revert from_features changes
2020-04-25 17:51:01 +01:00
sangarshananandMartin Fleischmann 4e82afe538 ENH: Read filelike objects (#1329)
* Read TextIOBase objects with geopandas

* Split test for different file objects

* Skip pytest if fiona<1.8

* revert argname, add test for tempfile and update docstring

* Add docs for reading file like objects

* style

* minor doc styling

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-04-20 18:53:39 +01:00
TimothyLucasandMartin Fleischmann 978f1b35a5 DOC: add example of appending GeoSeries (#1215)
* changing doc/source/mergingdata.rst to propose fix for issue 1186

* append docs

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-04-19 21:59:23 +01:00
Mateusz KoniecznyandMartin Fleischmann 1f1cde7eff DOC: fix typo in spatial join (#1188)
* fix typo

* fix typo 'to' - 'two'

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-04-19 21:55:33 +01:00
Martin Fleischmann edf6e96430 ENH: move CRS to GeometryArray level (#1339) 2020-04-12 15:42:14 +02:00
Martin Fleischmann 078062d303 DOC: remove six as a depenency (#1348) 2020-04-01 11:20:20 +02:00
Joris Van den Bossche 5d1181af6b ENH: (optionally) use pygeos for vectorized GeometryArray operations (#1154) 2020-03-24 09:08:27 +01:00
Martin Fleischmann 1c13cb957b DOC: add missing methods to reference (#1328) 2020-03-18 20:51:57 +00:00
Martin Fleischmann 3cbc7fb997 Add a Code of Conduct (#1288) 2020-03-03 12:48:21 +01:00
Alan D. SnowandMartin Fleischmann 7350b49688 DOC: Fix intersphinx mapping with pyproj docs (#1297)
* DOC: Fix intersphinx mapping with pyproj docs

* pyproj.crs.CRS -> pyproj.CRS; add back space around ' : '

* minor fix

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-02-24 22:27:06 +00:00
sangarshanan 74b1d95955 DOC: Add changelog to docs (#1306)
* Add changelog to docs

* Remove extra newline

* Move Changelog to Reference Guide in docs
2020-02-24 20:24:15 +00:00
Martin Fleischmann 0a1799d986 DOC: Add note on field types to io (#1289) 2020-02-19 10:45:40 +01:00
Joris Van den Bossche 3e5fe71c34 DOC: add upgrade guide for GeoPandas 0.7 / pyproj 2 / PROJ 6 (#1292) 2020-02-16 22:39:20 +01:00
Joris Van den Bossche 952e5f4e7d DOC: fix docstring styling with sphinx > 2 (#1299) 2020-02-16 22:36:27 +01:00