geobox 2.0.1__py3-none-any.whl → 2.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. geobox/__init__.py +61 -63
  2. geobox/aio/__init__.py +61 -63
  3. geobox/aio/api.py +489 -473
  4. geobox/aio/apikey.py +263 -263
  5. geobox/aio/attachment.py +341 -339
  6. geobox/aio/base.py +261 -262
  7. geobox/aio/basemap.py +196 -196
  8. geobox/aio/dashboard.py +340 -342
  9. geobox/aio/feature.py +23 -33
  10. geobox/aio/field.py +315 -321
  11. geobox/aio/file.py +72 -72
  12. geobox/aio/layout.py +340 -341
  13. geobox/aio/log.py +23 -23
  14. geobox/aio/map.py +1033 -1034
  15. geobox/aio/model3d.py +415 -415
  16. geobox/aio/mosaic.py +696 -696
  17. geobox/aio/plan.py +314 -314
  18. geobox/aio/query.py +693 -693
  19. geobox/aio/raster.py +907 -869
  20. geobox/aio/raster_analysis.py +740 -0
  21. geobox/aio/route.py +4 -4
  22. geobox/aio/scene.py +340 -342
  23. geobox/aio/settings.py +18 -18
  24. geobox/aio/task.py +404 -402
  25. geobox/aio/tile3d.py +337 -339
  26. geobox/aio/tileset.py +102 -103
  27. geobox/aio/usage.py +52 -51
  28. geobox/aio/user.py +506 -507
  29. geobox/aio/vector_tool.py +1968 -0
  30. geobox/aio/vectorlayer.py +315 -306
  31. geobox/aio/version.py +272 -273
  32. geobox/aio/view.py +1019 -983
  33. geobox/aio/workflow.py +340 -341
  34. geobox/api.py +18 -2
  35. geobox/apikey.py +262 -262
  36. geobox/attachment.py +336 -337
  37. geobox/base.py +384 -384
  38. geobox/basemap.py +194 -194
  39. geobox/dashboard.py +339 -341
  40. geobox/enums.py +432 -348
  41. geobox/feature.py +5 -5
  42. geobox/field.py +320 -320
  43. geobox/file.py +4 -4
  44. geobox/layout.py +339 -340
  45. geobox/log.py +4 -4
  46. geobox/map.py +1031 -1032
  47. geobox/model3d.py +410 -410
  48. geobox/mosaic.py +696 -696
  49. geobox/plan.py +313 -313
  50. geobox/query.py +691 -691
  51. geobox/raster.py +907 -863
  52. geobox/raster_analysis.py +737 -0
  53. geobox/scene.py +341 -342
  54. geobox/settings.py +194 -194
  55. geobox/task.py +399 -400
  56. geobox/tile3d.py +337 -338
  57. geobox/tileset.py +4 -4
  58. geobox/usage.py +3 -3
  59. geobox/user.py +503 -503
  60. geobox/vector_tool.py +1968 -0
  61. geobox/vectorlayer.py +5 -5
  62. geobox/version.py +272 -272
  63. geobox/view.py +981 -981
  64. geobox/workflow.py +338 -339
  65. {geobox-2.0.1.dist-info → geobox-2.2.0.dist-info}/METADATA +15 -1
  66. geobox-2.2.0.dist-info/RECORD +72 -0
  67. geobox-2.0.1.dist-info/RECORD +0 -68
  68. {geobox-2.0.1.dist-info → geobox-2.2.0.dist-info}/WHEEL +0 -0
  69. {geobox-2.0.1.dist-info → geobox-2.2.0.dist-info}/licenses/LICENSE +0 -0
  70. {geobox-2.0.1.dist-info → geobox-2.2.0.dist-info}/top_level.txt +0 -0
geobox/feature.py CHANGED
@@ -7,7 +7,7 @@ from .enums import FeatureType
7
7
  if TYPE_CHECKING:
8
8
  from .vectorlayer import VectorLayer
9
9
  from .aio import AsyncGeoboxClient
10
- from .aio.feature import Feature as AsyncFeature
10
+ from .aio.feature import AsyncFeature
11
11
 
12
12
 
13
13
  class Feature(Base):
@@ -16,7 +16,7 @@ class Feature(Base):
16
16
 
17
17
  def __init__(self,
18
18
  layer: 'VectorLayer',
19
- srid: Optional[int] = 3857,
19
+ srid: Optional[int] = BASE_SRID,
20
20
  data: Optional[Dict] = {}):
21
21
  """
22
22
  Constructs all the necessary attributes for the Feature object.
@@ -244,7 +244,7 @@ class Feature(Base):
244
244
  >>> feature = layer.get_feature(id=1)
245
245
  >>> feature.delete()
246
246
  """
247
- super().delete(self.endpoint)
247
+ super()._delete(self.endpoint)
248
248
 
249
249
 
250
250
  def update(self, geojson: Dict) -> Dict:
@@ -511,7 +511,7 @@ class Feature(Base):
511
511
  async_client (AsyncGeoboxClient): The async version of the GeoboxClient instance for making requests.
512
512
 
513
513
  Returns:
514
- geobox.aio.feature.Feature: the async instance of the feature.
514
+ AsyncFeature: the async instance of the feature.
515
515
 
516
516
  Example:
517
517
  >>> from geobox import Geoboxclient
@@ -522,7 +522,7 @@ class Feature(Base):
522
522
  >>> async with AsyncGeoboxClient() as async_client:
523
523
  >>> async_feature = feature.to_async(async_client)
524
524
  """
525
- from .aio.feature import Feature as AsyncFeature
525
+ from .aio.feature import AsyncFeature
526
526
 
527
527
  async_layer = self.layer.to_async(async_client=async_client)
528
528
  return AsyncFeature(layer=async_layer, srid=self.srid, data=self.data)