v0.11.0
Release Notes
New Features
- Add support for requesting
LineString
polygon forArcGISRESTful
. - Add a new argument called
distance
toArcGISRESTful.oids_bygeom
for specifying the buffer distance from the input geometry for getting features.
Breaking Changes
- Drop support for Python 3.6 since many of the dependencies such as
xarray
andpandas
have done so. - Remove
async_requests
function, since it has been packaged as a
new Python library called AsyncRetriever. - Refactor
MatchCRS
. Now, it should be instantiated by providing the
in and out CRSs like so:MatchCRS(in_crs, out_crs)
. Then its methods, namely,geometry
,bounds
andcoords
, can be called. These methods now have only one input, geometry. - Change input and output types of
MatchCRS.coords
from tuple of
lists of coordinates to list of(x, y)
coordinates. ArcGISRESTful
now has a new argument,layer
, for specifying the
layer number (int). Now, the target layer should either be a part ofbase_url
or be passed withlayer
argument.- Move the
spatial_relation
argument fromArcGISRESTful
class to
oids_bygeom
method, since that's where it's applicable.
Internal Changes
- Refactor
ArcGISRESTfulBase
class to reduce its code complexity and make the service initialization logic much simpler. The class is faster since it makes less requests during the initialization process. - Add
pydantic
as a new dependency that takes care of
ArcGISRESTfulBase
validation. - Use persistent caching for all send/receive requests that can
significantly improve the network response time. - Explicitly include all the hard dependencies in
setup.cfg
. - Set a default value of 1000 for
max_nrecords
inArcGISRESTfulBase
. - Use
dataclass
forWMSBase
andWFSBase
since support for Python
3.6 is dropped.