ellipsis 3.1.47__py3-none-any.whl → 3.1.49__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.

Potentially problematic release.


This version of ellipsis might be problematic. Click here for more details.

ellipsis/__init__.py CHANGED
@@ -6,7 +6,7 @@ from ellipsis import user
6
6
  from ellipsis import path
7
7
  from ellipsis import util
8
8
 
9
- __version__ = '3.1.47'
9
+ __version__ = '3.1.49'
10
10
 
11
11
 
12
12
 
ellipsis/apiManager.py CHANGED
@@ -74,8 +74,10 @@ def call(method, url, body = None, token = None, crash = True, parseJson = True)
74
74
  try:
75
75
  r = actualCall(method, url, body, token)
76
76
  break
77
- except:
77
+ except Exception as ex:
78
78
  print('time out detected, retrying request')
79
+ print('url', url)
80
+ print('error',ex)
79
81
  time.sleep(WAIT)
80
82
  tried = tried +1
81
83
  if tried >= RETRIES:
@@ -114,6 +116,7 @@ def actualCall(method, url, body, token):
114
116
  return r
115
117
 
116
118
  def upload(url, filePath, body, token, key = 'data', memfile= None):
119
+ body['debug'] = True
117
120
  body = filterNone(body, toString=True)
118
121
 
119
122
  seperator = os.path.sep
@@ -125,7 +128,8 @@ def upload(url, filePath, body, token, key = 'data', memfile= None):
125
128
  conn_file = memfile
126
129
 
127
130
  payload = MultipartEncoder(fields = {**body, key: (fileName, conn_file, 'application/octet-stream')})
128
- token = 'Bearer ' + token
131
+ if not 'Bearer' in token:
132
+ token = 'Bearer ' + token
129
133
 
130
134
  r = requests.post(baseUrl + url, headers = {"Authorization":token, "Content-Type": payload.content_type}, data=payload, verify=False)
131
135
 
@@ -179,7 +179,7 @@ def getRaster(pathId, timestampId, extent, token = None, showProgress = True, ep
179
179
  as_jpg = info['raster']['asJpg']
180
180
  num_bands = len(bands)
181
181
  dtype = info['raster']['format']
182
-
182
+ accessLevel = info['yourAccess']['accessLevel']
183
183
  timestamps = info['raster']['timestamps']
184
184
  all_timestamps = [item['id'] for item in timestamps]
185
185
  if not timestampId in all_timestamps:
@@ -212,7 +212,7 @@ def getRaster(pathId, timestampId, extent, token = None, showProgress = True, ep
212
212
 
213
213
  N=0
214
214
  w = 256
215
- if not skipTar and ((x2_osm - x1_osm) * (y2_osm - y1_osm) > 50 or forceTar):
215
+ if not skipTar and ((x2_osm - x1_osm) * (y2_osm - y1_osm) > 50 and accessLevel > 100 or forceTar):
216
216
  tarZoom = next(item for item in timestamps if item["id"] == timestampId)['tarZoom']
217
217
 
218
218
  if type(tarZoom) != type(None):
@@ -13,6 +13,9 @@ from ellipsis.path import get as getInfo
13
13
 
14
14
  import datetime
15
15
 
16
+
17
+
18
+
16
19
  def add(pathId, token, properties = None, description = None, date ={'from': datetime.datetime.now(), 'to': datetime.datetime.now()}):
17
20
 
18
21
  pathId = sanitize.validUuid('pathId', pathId, True)
@@ -150,7 +153,8 @@ def getFeaturesByIds(pathId, timestampId, featureIds, token = None, showProgress
150
153
  sh = sh.to_crs('EPSG:' + str(epsg))
151
154
  r['result'] = sh
152
155
  return r
153
-
156
+
157
+
154
158
 
155
159
  def getFeaturesByExtent(pathId, timestampId, extent, propertyFilter = None, token = None, listAll = True, pageStart = None, epsg = 4326, coordinateBuffer = None, onlyIfCenterPointInExtent = False):
156
160
  pathId = sanitize.validUuid('pathId', pathId, True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ellipsis
3
- Version: 3.1.47
3
+ Version: 3.1.49
4
4
  Summary: Package to interact with the Ellipsis API
5
5
  Home-page: https://github.com/ellipsis-drive-internal/python-package
6
6
  Author: Daniel van der Maas
@@ -11,22 +11,22 @@ Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.6
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
- Requires-Dist: pandas
14
+ Requires-Dist: Fiona
15
15
  Requires-Dist: Pillow
16
- Requires-Dist: matplotlib
16
+ Requires-Dist: Shapely
17
17
  Requires-Dist: geopandas
18
- Requires-Dist: pyproj
18
+ Requires-Dist: geopy
19
+ Requires-Dist: imagecodecs
19
20
  Requires-Dist: imageio
21
+ Requires-Dist: matplotlib
20
22
  Requires-Dist: numpy
21
- Requires-Dist: imagecodecs
23
+ Requires-Dist: pandas
24
+ Requires-Dist: pygltflib
25
+ Requires-Dist: pyproj
26
+ Requires-Dist: rasterio
22
27
  Requires-Dist: requests
23
28
  Requires-Dist: requests-toolbelt
24
- Requires-Dist: rasterio
25
- Requires-Dist: Shapely
26
- Requires-Dist: geopy
27
29
  Requires-Dist: scikit-image
28
- Requires-Dist: Fiona
29
- Requires-Dist: pygltflib
30
30
  Requires-Dist: tifffile
31
31
 
32
32
  # Ellipsis Drive Python Package
@@ -1,5 +1,5 @@
1
- ellipsis/__init__.py,sha256=vkB0vbq2jydnn3Y_bh4qUAoUaF9Mb5yCuGVXdR6vsq4,210
2
- ellipsis/apiManager.py,sha256=JJ-1nT29BIcVSzMvEdkm1Wq6PsXT7Jq5OmJrRdg7C2o,5463
1
+ ellipsis/__init__.py,sha256=o3wQ1o9b6Wzcfd94pUTq5aXW3XzGSXb1Em1IWmlL37c,210
2
+ ellipsis/apiManager.py,sha256=T0YYV26r02yDMFO5ePmBbM4_gfy55KleECAyM1OSrCk,5598
3
3
  ellipsis/sanitize.py,sha256=T5FawJRZ2eqGv0itiMkZ1fuJpahsSyhBMFty9cG-wwA,10194
4
4
  ellipsis/account/__init__.py,sha256=K40DMBaUDSxt3rO2WZv63Wmpfy49ocqBxvWqyIYHR24,92
5
5
  ellipsis/account/root.py,sha256=tgGAT2BzP3zgAqsevvkeognn5S67T-MrIP52BLN9rbE,1791
@@ -33,7 +33,7 @@ ellipsis/path/raster/root.py,sha256=-y0SEukHEYUDvyJyDI1x7gtcDm-Wum_Ze7ekSYJr6O4,
33
33
  ellipsis/path/raster/style/__init__.py,sha256=mxlqVtSd2dsKai3DAVQjtNsh2KnTrZVyF8loRwUNT7E,61
34
34
  ellipsis/path/raster/style/root.py,sha256=YFQlGTdgjpwXn4h0ug7LrQZFLmRp2bdJN71A0iqZRFo,1627
35
35
  ellipsis/path/raster/timestamp/__init__.py,sha256=brmFXg69CKRcWaAfPbxWfsvHvnn5q8GBQhVzUTVb4_w,842
36
- ellipsis/path/raster/timestamp/root.py,sha256=qhJALjYVCdNmH3atGNmIe89Zm5xj_EAd8fczHWW4CQg,17257
36
+ ellipsis/path/raster/timestamp/root.py,sha256=AVwrLIcyyK_1G90C3jLCWFSFxisv5bzIobdt5IHk5R0,17330
37
37
  ellipsis/path/raster/timestamp/util.py,sha256=eupFFSBp5CaTDIRg6DYnZnfWY61h81JZ7c15NdJ-j5E,2580
38
38
  ellipsis/path/raster/timestamp/file/__init__.py,sha256=Ln9_dQ4-PMwb5VP--Qh09IV5zmr-47RShpe0-f_NVh4,97
39
39
  ellipsis/path/raster/timestamp/file/root.py,sha256=KD8E64eZtS62C-WCl3BTeVjsc08BaLXpuLwxfbmnTLI,4545
@@ -50,7 +50,7 @@ ellipsis/path/vector/featureProperty/root.py,sha256=eb2bw4UGO3eYGaYgjwu43pZyA4iA
50
50
  ellipsis/path/vector/style/__init__.py,sha256=riiDnL4FDq4EFhSYAYHBSe_o5oltRTSrj4sc72F6IVQ,63
51
51
  ellipsis/path/vector/style/root.py,sha256=09PsRbCJ35YV8bl8xoWFoeGRpdmf5IBmmqwhRj30OTM,1641
52
52
  ellipsis/path/vector/timestamp/__init__.py,sha256=n0ncRxXoQIDX1WeV0lbpJH1BND793CdZ5swGgeu1Kfk,330
53
- ellipsis/path/vector/timestamp/root.py,sha256=kcLdfBWpoqRXWswz-nqrEM0mxw6oEZc5sUFCD_B4JRk,11296
53
+ ellipsis/path/vector/timestamp/root.py,sha256=MrYfAUKzmIXnt8DYRYU9YB6pqnNexcWcXUu4Ze3WUGc,11296
54
54
  ellipsis/path/vector/timestamp/feature/__init__.py,sha256=miaLCHkogL9KJ_eUr4K_N15BShAe2ivcppDFJuE_SgI,210
55
55
  ellipsis/path/vector/timestamp/feature/root.py,sha256=Y_GiT1vBEvZxxvJdUvzhjGqYsfPfi1L6qHBS5jNcnBY,7212
56
56
  ellipsis/path/vector/timestamp/feature/message/__init__.py,sha256=XfX3MIa4RjpToFnxNyfxCKTvRlNtJFRQ44j31wDyhGc,100
@@ -65,8 +65,8 @@ ellipsis/user/__init__.py,sha256=um_b42pc2otFiQRGqMajcEtONQpC2ei4r-EY3j7bsfQ,43
65
65
  ellipsis/user/root.py,sha256=dsMK6wGBdeCmOd3YsbIv9cEcQ6tAiSGr0jmtBhQl5-0,484
66
66
  ellipsis/util/__init__.py,sha256=_sNBUXDKJVGffRyt93xdUrJ4gON651Sp-unr7LKVCEc,756
67
67
  ellipsis/util/root.py,sha256=Ts7DeaD_X7x-csmq5V2sa_hYrt1mCd59T7-NUQcWj3Y,23980
68
- ellipsis-3.1.47.dist-info/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
69
- ellipsis-3.1.47.dist-info/METADATA,sha256=Qc1vooJjV5xuKr1Pwqi6SrDiZt5Dz55sAr7x1fx_dcc,1823
70
- ellipsis-3.1.47.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
71
- ellipsis-3.1.47.dist-info/top_level.txt,sha256=eG8gfaVDyprKdb-dsGSh_lFMSa3DiZCsJFqze239RjA,9
72
- ellipsis-3.1.47.dist-info/RECORD,,
68
+ ellipsis-3.1.49.dist-info/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
69
+ ellipsis-3.1.49.dist-info/METADATA,sha256=Od7VFLtt3fk_zWDTFpOZsu9AnC4hGZUX6P6rShg-_t0,1823
70
+ ellipsis-3.1.49.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
71
+ ellipsis-3.1.49.dist-info/top_level.txt,sha256=eG8gfaVDyprKdb-dsGSh_lFMSa3DiZCsJFqze239RjA,9
72
+ ellipsis-3.1.49.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.37.1)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5