Releases: DOV-Vlaanderen/pydov
v3.1.0
-
News
- Add contribution section in the pydov repository. (#394)
-
New features
-
Add support for generic DOV WFS layers. Next to the existing 'fixed' datatypes, this make all other WFS data we publish available in pydov too, allowing to use them using the same search options as for other datatypes. (#383)
To support this we are now also more relaxed about metadata being available: we will still use it when it's available, but will no longer raise errors when it's not. While all of our layers should have metadata available, most of them don't have a feature catalogue. We will now return 'None' in the description of get_fields() when this is missing.
-
Add support for geometry return fields. (#386)
While it was already possible to do advanced spatial queries, up until now the resulting dataframes only contained attribute fields and not the geometry of the feature. When the necessary dependencies are installed, it is now possible to add geometry fields to your dataframe using the
return_fields
parameter. Converting the resulting dataframe into a GeoPandas geodataframe then becomes easy.
-
-
Fixes and improvements
-
Documentation-only updates
- Open tutorial notebooks through documentation. (#385)
v3.0.0
-
News
- This version drops support for Python 3.7.
- This version adds support for Python 3.11.
- This version is supported on Python 3.8, 3.9, 3.10 and 3.11.
-
Breaking changes
-
pydov3 uses WFS 2.0.0 instead of WFS 1.1.0, as a consequence attribute filters should now use FES2.0 and location filters should now use GML3.2. This change impacts a number of places:
-
query
parameter in thepydov.search.abstract.AbstractSearch.search
methodAttribute query operators, like PropertyIsEqualTo, PropertyIsGreaterThan and so on, should from now on be imported from the owslib.fes2 package instead of the owslib.fes package. E.g.:
# change this from owslib.fes import And, PropertyIsEqualTo # into this from owslib.fes2 import And, PropertyIsEqualTo
-
sort_by
parameter in thepydov.search.abstract.AbstractSearch.search
methodAlso the SortBy operator should from now on be imported from the the owslib.fes2 package instead of the owslib.fes package. E.g.:
# change this from owslib.fes import SortBy, SortProperty # into this from owslib.fes2 import SortBy, SortProperty
-
The
pydov.util.location.GmlObject
class now expects GML3.2 geometries instead of GML3.1.1.Use GML3.2 objects from now on.
-
The
pydov.util.location.GmlFilter
class now expects GML3.2 documents instead of GML3.1.1.Transform the document to GML3.2 yourself or use a
pydov.util.location.GeometryFilter
instead.
-
-
The new WFS 2.0.0 querying also allows paged WFS requests which has impact on a number of hooks:
-
pydov.util.hooks.AbstractReadHook.wfs_search_init` now has a single argument
params
with all the parameters used to initiate the WFS search. -
pydov.util.hooks.AbstractReadHook.wfs_search_result
now has two argumentsnumber_matched
andnumber_returned
. Since there can be multiple (paged) WFS results per search, this hook can now be called multiple times per search query. It can also be called simultaneously from different threads. -
pydov.util.hooks.AbstractReadHook.wfs_search_result_received
is affected in a similar manner: this too can now be called multiple times per search, simultaneously from different threads. -
pydov.util.hooks.AbstractInjectHook.inject_wfs_getfeature_response
is affected as well. This too can now be called multiple times per search, simultaneously from different threads.
-
-
-
New features
-
Add support for WFS paging, allowing larger queries. It is now possible to execute queries larger than the WFS response feature limit of 10000 features without running into a FeatureOverflowError. (#194)
Please be kind to our infrastructure and only request the data you need.
-
Add support for repeatable sessions, allowing recording and replaying of pydov sessions. More information and use cases can be found in the documentation. (#224)
-
-
Fixes and improvements
v2.2.3
v2.2.2
v2.2.1
v2.2.0
- News
- This version adds support for Python 3.10.
- This version drops support for Python 3.6.
- This version is supported on Python 3.7, 3.8, 3.9 and 3.10.
- New features
- Add new object types for soil data, including:
- Soil depth intervals (bodemdiepteintervallen)
- Soil classifications (bodemclassificaties)
- Added
Fractiemeting
as a subtype to theBodemobservatie
type. - Renamed
glauconiet
toglauconiet_totaal
in Grondmonster and added example on how to retrieve detailed glauconite values. - Added support for proxy server autodiscovery using PAC.
- Add new object types for soil data, including:
v2.1.0
- News
- This version adds support for Python 3.9.
- This version is supported on Python 3.6, 3.7, 3.8 and 3.9.
- We are proud to be a part of the growing pyOpenSci community promoting open and reproducible research.
- New features
- Add support for location-based searching using vectorfiles (f.ex. Shapefile, Geopackage) and Geopandas dataframes.
- Add new object type for groundwater permits (GrondwaterVergunning)
- Add new object types for soil data, including:
- Soil sites (Bodemsite)
- Soil plots (Bodemlocatie)
- Soil samples (Bodemmonster)
- Soil observations (Bodemobservatie)
- Fixes and improvements
- Fix bugs that occur when the XML webservice is unavailable, i.e. prevent caching errors and return stale data if available.
- Retry failed network requests to make pydov more resilient to bad network connections.
- Switched from the main DOV WFS endpoint to workspace-level endpoints, this is more efficient and allows a cleaner codebase.
- Add the
start_interpretatie_mtaw
field to the interpretatie types. - Add the
mv_mtaw
field to the Sondering type.
v2.0.1
v2.0.0
- News
- This version drops support for Python 2.7 and Python 3.5.
- This version is supported on Python 3.6, 3.7 and 3.8.
- Fixes and improvements
- Fix the
korrelvolumemassa
,volumemassa
andwatergehalte
fields of Grondmonster type. - Add the
mv_mtaw
field to the GrondwaterFilter type. - Extend the hooks system and distinguish between read and inject hooks. The
xml_requested
hook has been removed in favor ofxml_received
. - Generate stable WFS GetFeature requests, allowing f.ex. hooks to reuse cached responses.
- Fix the
- Development-only updates
- Remove some code duplication between pydov and OWSLib.
- Simplify test fixtures setup.
- Remove duplicate docstrings to simplify the codebase.
- Documentation-only updates
- Add introductory tutorial.
- Add a tutorial on how to use a WFS geometry as location query.
- Update development installation instructions.
- Update folium examples to support the latest pyproj version.
- Add extra Binder links on top of each tutorial.
- Improve charts by including a title and axis labels.
- Improve README by adding dataframe output.
v1.0.0
- News
- This version is promoted to Stable.
- This version is the last to support Python 2.7.
- Fixes and improvements
- Fix the PropertyInList and Join query operators.
- Increase the default request timeout to 5 minutes to enable larger WFS queries.
- Retype the
meetnet_code
field of GrondwaterFilter from integer to string. - Pin the dependencies to keep explicit Python2 support.
- Development-only updates
- Make the DOV base URL configurable to be able to test against the DOV testing environment.