Commit Graph
1287 Commits
Author SHA1 Message Date
Martin Fleischmann c823893cde GH: link geopandas-feedstock for conda-forge issue (#1685)
* GH: link geopandas-feedstock for conda-forge issue

* the
2020-11-10 18:54:06 +00:00
Adrian Garcia Badaracco a6d45c90de TST/MAINT: Deprecation of has_sindex (#1690)
* Hacky deletion of has_sindex

* remove unused imports
2020-11-09 20:52:26 +00:00
Nick HandandNick Hand ca101aae93 BUG: categories passed as a series are not properly sorted (#1670)
* add regression test

* reindex if column is a Series when plotting

* remove unnecessary import

* add test for pd.Series colors w/o index too

Co-authored-by: Nick Hand <nicholas.adam.hand@gmail.com>
2020-11-07 21:22:47 -08:00
Joris Van den Bossche 9fdeb14741 Compatibility with Shapely 1.8 deprecation warnings (array interface, asShape) (#1662) 2020-10-28 09:19:17 +01:00
Joris Van den Bossche 924cdf65c7 ENH: support pandas' new .attrs functionality (#1658) 2020-10-16 15:08:59 +02:00
Joris Van den Bossche 998375c8b0 Compatibility with Shapely 1.8 deprecation warnings (iteration) (#1659) 2020-10-16 11:22:17 +02:00
Martin Fleischmann 7044aa479d REGR: CRS lost in GeoSeries.explode() 2020-10-13 13:19:58 +01: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 63de9bd182 DOC/CI: enable doctest (#1651)
* inital doctest work

* doctest

* skip from_file

* test docstring with postgis only

* use doctest-plus

* c-f

* conditional imports

* revert

* revert conda

* fixture to conftest.py

* minimise changes, verbose output

* remove blank line

* revert pandas doc
2020-10-10 18:44:11 +01:00
Martin Fleischmann aa9f9c1ed8 DOC: add sphinx-toggleprompt to red environment (#1650) 2020-10-08 19:16:00 +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
Martin Fleischmann 1e975abc59 BUG: fix pygeos geom types mapping (#1644) 2020-10-04 07:05:26 +02:00
Martin Fleischmann ab96b6a7a2 BUG: fix geom types codes for pygeos (#1641) 2020-09-28 09:33:33 +01:00
Martin Fleischmann d1d4b46673 CI: keep pygeos master in dev environment only (#1639) 2020-09-28 08:53:15 +02:00
sangarshanan 63615be8b0 ENH: Check for duplicate column name in rename_geometry (#1602)
* check for duplicate column name in rename_geometry

* use fstring instead of %s
2020-09-27 09:40:07 +01:00
Joris Van den Bossche 40f172b6c1 BUG: fix overridden GeoSeries.apply method to accept convert_dtype keyword (#1636) 2020-09-26 13:05:25 +02:00
Martin Fleischmann e833bd5cd1 CI: codecov yml (#1629) 2020-09-26 11:37:05 +02:00
Martin FleischmannandJoris Van den Bossche 16f3ba85a8 BUG: is_ring returns False even for all LineStrings and LinearRings (#1631)
* BUG: fix is_ring

* warning, clean pygeos

* Update geopandas/_vectorized.py

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

* conditional warning

Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2020-09-24 13:58:43 +01:00
Martin Fleischmann 16347ad058 CI: schedule daily tests (#1633) 2020-09-24 13:46:10 +02:00
James McBrideandMartin Fleischmann cb4e8cb987 Create issue bug report and enhancement templates (#1584)
* Create issue bug report and enchancement templates

As a followup to #899, it would be nice to highlight this function, as
well as other useful information, when users are creating new bug
reports or requests for new features. These are copied and very lightly
edited from the templates used by pandas.

* Add header for `show_versions` in issue template

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

* Add templates for questions and installation issues

* Add references to GIS stack exchange

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

* Add suggestion to look at installation issue in issue template

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-09-21 20:14:28 +01:00
Adrian Garcia Badaracco c42f9e4a97 ENH: speed up emptiness and size checks for rtree (#1625)
* speed up emptiness and size checks for rtree

* add self.leaves comment

* Update sindex.py
2020-09-21 19:35:33 +01:00
Adrian Garcia Badaracco dc50b69896 MAINT/TST: Add GitHub actions tests for single workflow cross-platform testing (#1576) 2020-09-19 21:29:35 +02:00
Alan D. Snow d6932671c6 BUG: Handle missing geometry with to_crs and shapely (#1618)
* BUG: Handle missing geometry with to_crs and shapely

* remove pygeos compat stuff in tests
2020-09-14 09:34:24 +01:00
Rowan Molony 5616ba40a8 BUG: Geocode Fails When results.value is None (#1610)
Previously geopandas.tools.geocode._prepare_geocode_result
fails when result is None as it expects a Tuple (such as (None, None))
that it can unpack and cannot unpack a NoneType object.
2020-09-13 21:22:27 +02:00
Giacomo CariaandGiacomo Caria 55b99c6608 BUG: Warning when missing_kwds provided but no areas missing data (#1600)
* Do not plot empty series for missing_kwds. Fix #1565

* Remove extra space between words

Co-authored-by: Giacomo Caria <g.caria@student.unimelb.edu.au>
2020-09-13 11:27:37 +01:00
Alan D. Snow 72427d3d8c TST: Use less precise option for testing appending to file (#1613) 2020-09-11 12:13:47 +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
Giacomo CariaandGiacomo Caria 2adf4c7533 BUG: Fix TypeError exception message in clip (#1598)
Co-authored-by: Giacomo Caria <g.caria@student.unimelb.edu.au>
2020-09-02 20:56:20 +02:00
Dave Rench McCauleyandDave Rench McCauley 3867ad4cda DOC: Correct set_geometry docstring for `drop` default. (#1594)
Co-authored-by: Dave Rench McCauley <drench@kinetica.com>
2020-08-31 21:36:47 +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
Joris Van den Bossche a5d78253c6 Linting: update and pin black version (#1590) 2020-08-28 17:44:23 +02:00
Martin Fleischmann e53ff09109 DOC: Add logo (#1579)
* DOC: Add logo

* favicon
2020-08-26 19:31:55 +01:00
Joris Van den Bossche 90b37eb377 BUG/TST: fix failing tests with dev versions of pandas and matplotlib (#1588)
* BUG/TST: fix failing tests with dev versions of pandas and matplotlib

* fixup
2020-08-26 12:34:16 +01:00
James McBride d8dcd7b3c1 BUG: Copy legend_kwds so we don't update inplace (#1583)
Resolves #1555. In cases where legend_kwds was being passed, we were
updating legend_kwds with the cax/ax passed in on that function call.
Within a loop over multiple axes, this meant placing all colorbars on
the first placed axis. This just creates a copy of legend_kwds, when
placed, so we don't update in place.
2020-08-24 08:46:49 +02:00
WANG Aiyong 74973a0adb ENH: Add aspect=None option to plotting, to keep the original aspect. (#1512) 2020-08-24 08:43:31 +02:00
Joris Van den Bossche ca7c95e5c3 DOC: add redirects for old pages (#1577) 2020-08-21 12:11:18 +01:00
Martin Fleischmann dfe57e3b72 DOC: fix rtd (#1575) 2020-08-20 21:58:58 +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
Adrian Garcia Badaracco b4b813a2a5 REF: Move sindex to GeometryArray (#1444) 2020-08-20 16:50:55 +02:00
James McBride b366d890c3 BUG: Set clipped gdf geometry name based on input (#1566) 2020-08-12 09:46:36 +02:00
Joris Van den BosscheandBrendan Ward 0b804ea8af BUG: ensure CRS object also for empty GeoDataFrame (#1560)
Co-authored-by: Brendan Ward <bcward@astutespruce.com>
2020-08-05 21:00:26 +02:00
James McBride 11cfb783a5 CLN: Remove unused make_valid argument (#1553) 2020-08-05 08:14:46 +02: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 55ca917571 TST: Fix CI for pandas 1.1.0 (#1544) 2020-07-31 11:48:22 -07:00
Martin Fleischmann 785f2386d7 CI: pin mapclassify (#1545) 2020-07-28 21:56:25 +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
Brendan Ward 3d570922d8 TST: Remove failing test of duplicate columns on read of parquet (#1538) 2020-07-27 22:22:47 +01:00
abonte d3228ddb68 DOC: fix docstring (#1524) 2020-07-18 22:55:35 +01:00
Joris Van den Bossche 301418fc44 DOC/RLS: changelog for 0.8.1 (#1519) 2020-07-15 16:52:28 +02:00