Geofileops

Latest version: v0.9.0.post3

Safety actively analyzes 634582 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.6.3

Improvements

- Make writing to gpkg more robust in locking situations (179)
- Add create_spatial_index parameter to to_file (183)
- Ignore pandas futurewarning in dissolve (184)
- Improve dissolve performance (185)
- Small general improvements (180)

Bugs fixed

- Fix groupby columns in dissolve sometimes becoming all NULL values (181)

Deprecations and compatibility notes

- In to_file, the default behaviour is now also for .shp to create a spatial index,
consistent with convert,... (183)

0.6.2

Bugs fixed

- Fix regression in to_file to support append to unexisting file (177)

0.6.1

Improvements

- Add (private) function `is_valid_reason` for GeoSeries (164)
- Small improvements in logging, formatting, avoid deprecation warnings,...
(163, 166, 171)
- Add CI tests for python 3.10 and 3.11. On python 3.11 the simplification library is
not available (170)

Bugs fixed

- Fix groupby columns in dissolve not being treated case insensitive (162)
- Fix to_file doesn't throw an error nor saves data when appending a dataframe with
different columns than file (159)
- Fix ValueError: max_workers must be <= 61 in dissolve (160)
- Fix sql_dialect parameter is ignored in select operation (115)

0.6.0

Improvements

- Add single layer function `gfo.export_by_bounds` (149)
- Add single layer function `gfo.clip_by_geometry` (150)
- Add single layer function `gfo.warp` to warp geometries based on GCP's (151)
- Add (private) function to calculate view angles from a point towards a GeoDataFrame
(140)
- Add (private) function to calculate topologic simplify (146)
- Small changes to support geopandas 0.11+, newer pandas versions,... (143, 147, 153)

Bugs fixed

- Fix typo in hardcoded 31370 custom prj string (142)

0.5.0

The main improvements in this version are the geo operations `gfo.clip` and
`gfo.symmetric_difference` that were added.

Improvements

- Add `gfo.clip` geo operation, more info [here](https://geofileops.readthedocs.io/en/latest/api/geofileops.clip.html) (#4)
- Add `gfo.symmetric_difference` geo operation, more info [here](https://geofileops.readthedocs.io/en/latest/api/geofileops.symmetric_difference.html) (#85)
- Add support for all relevant spatial operations to join_by_location (79)
- In `gfo.dissolve`, support aggregations on a groupby column and None data in aggregation columns (130)
- Add support to reproject to `gfo.convert` (89)
- Add function `gfo.drop_column` (92)
- Add detailed column info in `gfo.get_layerinfo` (110)
- Add support to specify (any) gdal options in relevant fileops (83)
- Add support to write an attribute table (=no geometry column) to geopackage (125)
- Don't list attribute tables in e.g. `gfo.listlayers` by default anymore (124)
- Speed up creation of an index on a geopackage (87)
- Add `view_angles` function for geometries, geoseries (136)
- Some improvements to the benchmarks
- Use black to comply to pep8 + minor general improvements (113)

Bugs fixed

- Fix dissolve bugs (93)
- When `agg_columns="json"` is used and the dissolve needs multiple passes,
the json output is not correct.
- when combining tiled output with `explodecollections=False`, the output
is still ~exploded.
- For e.g. `gfo.intersection` some attribute data is NULL if output format is .shp
(102)
- `gfo.dissolve` gives error if a linestring input layer contains special characters
(108)

Deprecations and compatibility notes

- Property column of `gfo.get_layerinfo` is now a Dict[str, ColumnInfo] instead of a
List[str] (110)
- For the simplify operation, use rdp version that preserves topology (105)
- Removed redundant `verbose` parameter in all functions (133)
- Attribute tables are not listed anymore by default in e.g. `gfo.listlayers` (124)
- Rename some files in util that are rather private (84)
- Remove long-time deprecated `clip_on_tiles` parameter in `gfo.dissolve` (95)
- Deprecate `gfo.intersect` for new name `gfo.intersection` to be
consistent with most other libraries. Now a warning is given, in the future
`gfo.intersect` will be removed (99).

0.4.0

The main new features in this version are the simplified API, a new geo operation
"apply" and dissolve supporting aggregations on columns now.

Improvements

- Add apply geo operation. Info on how to use it can be found [here](https://geofileops.readthedocs.io/en/latest/api/geofileops.apply.html#geofileops.apply) (41)
- Add support for different aggregations on columns in dissolve operation. Info on how to use it can be found [here](https://geofileops.readthedocs.io/en/latest/api/geofileops.dissolve.html#geofileops.dissolve) (3)
- Simplify API by removing the seperation in geofile versus geofileops (52)
- Improve type annotations and documentation
- Increase test coverage, including tests on latlon files which weren't available yet
(32)
- Improve performance of buffer, simplify and complexhull by using the spatialite/sql
implementation (53)
- Improve benchmarks, eg. add graphs,... (55)
- Improve performance of _harmonize_to_multitype + improve test (56)

Bugs fixed

- In the two-layer operations, in some cases columns could get "lost" in the output file (67)

Deprecations and compatibility notes

- Breaking change: in `gfo.dissolve`, the parameters `aggfunc` and `columns` are
replaced by `agg_columns`. More info on the usage can be found
[here](https://geofileops.readthedocs.io/en/latest/api/geofileops.dissolve.html#geofileops.dissolve).
- Due to flattening the API, using `from geofileops import geofile` and
`from geofileops import geofileops` is deprecated, and you should use eg.
`import geofileops as gfo`. A "FutureWarning" is shown now, in a future version this
possibility will probably be removed.
- The following functions are deprecated. A "FutureWarning" is shown now, in a future
version this function they will be removed:
- `gfo.get_driver(path)` can be replaced by `GeofileType(Path(path)).ogrdriver`.
- `get_driver_for_ext(file_ext: str)` can be replaced by `GeofileType(file_ext).ogrdriver`.
- `gfo.to_multi_type(geometrytypename: str)` can be replaced by `GeometryType(geometrytypename).to_multitype`.
- `gfo.to_generaltypeid(geometrytypename: str)` can be replaced by `GeometryType(geometrytypename).to_primitivetype.value`.

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.