ellipsis 3.1.39__py3-none-any.whl → 3.1.40__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
@@ -7,7 +7,7 @@ from ellipsis import path
7
7
  from ellipsis import view
8
8
  from ellipsis import util
9
9
 
10
- __version__ = '3.1.39'
10
+ __version__ = '3.1.40'
11
11
 
12
12
 
13
13
 
ellipsis/apiManager.py CHANGED
@@ -33,7 +33,7 @@ def get(url, body = None, token = None, crash = True, parseJson = True):
33
33
 
34
34
  for k in body.keys():
35
35
  if type(body[k]) != type('x') :
36
- body[k] = json.dumps(body[k])
36
+ body[k] = json.dumps(body[k]).replace(' ','')
37
37
 
38
38
 
39
39
  body = urllib.parse.urlencode(body)
@@ -182,6 +182,14 @@ def getValuesAlongLine(pathId, timestampId, line, token = None, epsg = 4326):
182
182
  memfile.close()
183
183
  return values
184
184
 
185
+ def getLocationInfo(pathId, timestampId, locations, epsg = 4326, token= None)
186
+ pathId = sanitize.validUuid('pathId', pathId, True)
187
+ timestampId = sanitize.validUuid('timestampId', timestampId, True)
188
+ token = sanitize.validString('token', token, False)
189
+ epsg = sanitize.validInt('epsg', epsg, True)
190
+ body = {'locations':locations,'epsg':epsg}
191
+ r = apiManager.post('/path/' + pathId + '/raster/timestamp/' + timestampId + '/location', body, token)
192
+ return r
185
193
 
186
194
 
187
195
  def getRaster(pathId, timestampId, extent, token = None, showProgress = True, epsg = 4326, reproject = False, threads = None, style = None):
ellipsis/path/root.py CHANGED
@@ -41,7 +41,6 @@ def search(pathTypes = ['raster', 'vector', 'file', 'folder'] ,root=None, text=N
41
41
  }
42
42
 
43
43
  def f(body):
44
- print('body', body)
45
44
  return apiManager.get('/path', body, token)
46
45
 
47
46
  r = recurse(f, body, listAll)
@@ -68,7 +68,7 @@ def add(pathId, timestampId, seriesData, token, featureId=None, showProgress = T
68
68
  else:
69
69
  raise ValueError('date column must be of type datetime')
70
70
  else:
71
- raise ValueError('seriesData must have a column datetime of type datetime')
71
+ raise ValueError('seriesData must have a column date of type datetime')
72
72
 
73
73
  if not 'featureId' in seriesData.columns:
74
74
  raise ValueError(
@@ -6,15 +6,16 @@ def get(token):
6
6
  r = apiManager.get('/path/vector/timestamp/order', None, token)
7
7
  return r
8
8
 
9
- def add(pathId, timestampId, token, extent = None, uploadId = None):
9
+ def add(pathId, timestampId, token, extent = None, fileFormat = 'geojson'):
10
10
 
11
11
  token = sanitize.validString('token', token, True)
12
12
  pathId = sanitize.validUuid('pathId', pathId, True)
13
13
  timestampId = sanitize.validUuid('timestampId', timestampId, True)
14
14
  extent = sanitize.validBounds('extent', extent, False)
15
- uploadId = sanitize.validUuid('uploadId', uploadId, False)
15
+ token = sanitize.validString('fileFormat', fileFormat, True)
16
16
 
17
- body = {'uploadId': uploadId, 'extent':extent, 'format' :'geojson'}
17
+
18
+ body = { 'extent':extent, 'format' :fileFormat}
18
19
 
19
20
  r = apiManager.post('/path/' + pathId + '/vector/timestamp/' + timestampId + '/order', body, token)
20
21
 
@@ -25,6 +25,15 @@ def add(pathId, token, properties = None, description = None, date ={'from': da
25
25
  r = apiManager.post('/path/' + pathId + '/vector/timestamp', body, token)
26
26
  return r
27
27
 
28
+ def getLocationInfo(pathId, timestampId, locations, epsg = 4326, token= None)
29
+ pathId = sanitize.validUuid('pathId', pathId, True)
30
+ timestampId = sanitize.validUuid('timestampId', timestampId, True)
31
+ token = sanitize.validString('token', token, False)
32
+ epsg = sanitize.validInt('epsg', epsg, True)
33
+ body = {'locations':locations,'epsg':epsg}
34
+ r = apiManager.post('/path/' + pathId + '/vector/timestamp/' + timestampId + '/location', body, token)
35
+ return r
36
+
28
37
  def edit(pathId, timestampId, token, description=None, date=None):
29
38
 
30
39
  pathId = sanitize.validUuid('pathId', pathId, True)
@@ -207,7 +216,6 @@ def getFeaturesByExtent(pathId, timestampId, extent, propertyFilter = None, toke
207
216
  bounds = sh.bounds
208
217
  centerX = (bounds['maxx'].values + bounds['minx'].values )/2
209
218
  centerY = (bounds['maxy'].values + bounds['miny'].values )/2
210
- print('hoi')
211
219
  sh = sh[ np.logical_and(np.logical_and( centerX >= extent['xMin'], centerX <= extent['xMax'] ), np.logical_and( centerY >= extent['yMin'], centerY <= extent['yMax'] ) ) ]
212
220
 
213
221
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ellipsis
3
- Version: 3.1.39
3
+ Version: 3.1.40
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
@@ -1,12 +1,12 @@
1
- ellipsis/__init__.py,sha256=Qwt0Rz2XfpYk_QUrfTett7h6cgtssNiFth54WZ2yDHc,236
2
- ellipsis/apiManager.py,sha256=gG_9abycrc_xp0dR21EFecdfWAjbucGSNwcaSYxTEs0,5011
1
+ ellipsis/__init__.py,sha256=wz8_WqPmdNXuQ20QqK0MKw_TkwabTZsKEGA-UZY1yLU,236
2
+ ellipsis/apiManager.py,sha256=W1xTId1ZIDOaFN4NVcyGoxGC4HeI5CIabY4FyGz__7M,5027
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
6
6
  ellipsis/account/accessToken/__init__.py,sha256=ivwhK1eC4g74PAKaeTReb1QhIpKXyvmfdqZV6wDY-EY,66
7
7
  ellipsis/account/accessToken/root.py,sha256=TYo8wTyWyzytaqOTsuQC-Vn3y7BhYMC88EItZafpISA,1281
8
8
  ellipsis/path/__init__.py,sha256=jqmyE8UyYLua23_zRP79BoiFvekMlZO6oTdAs_sFCyw,435
9
- ellipsis/path/root.py,sha256=2siawkTGVUuL2bfXLvfYENjXDoQdBwMlV03U4d_n77g,8646
9
+ ellipsis/path/root.py,sha256=3HaKJhjAeHMqK1rBjcvT92aG6kBWllpu3prUqO3Ov6s,8618
10
10
  ellipsis/path/file/__init__.py,sha256=i_KB1S1J9pZjcPTKdyGMnjJf2tCoHFzptLGaxmTi55A,107
11
11
  ellipsis/path/file/root.py,sha256=3aqUFHQ7JLZf2arFoxOruOEKU-yOqUooj_LexGdPZ_s,4418
12
12
  ellipsis/path/folder/__init__.py,sha256=HCeAZAWZSqUnWiSQYJjsVFe6AI9uKSS8tb5uTkSeAtI,91
@@ -31,7 +31,7 @@ ellipsis/path/raster/root.py,sha256=-y0SEukHEYUDvyJyDI1x7gtcDm-Wum_Ze7ekSYJr6O4,
31
31
  ellipsis/path/raster/style/__init__.py,sha256=mxlqVtSd2dsKai3DAVQjtNsh2KnTrZVyF8loRwUNT7E,61
32
32
  ellipsis/path/raster/style/root.py,sha256=YFQlGTdgjpwXn4h0ug7LrQZFLmRp2bdJN71A0iqZRFo,1627
33
33
  ellipsis/path/raster/timestamp/__init__.py,sha256=_2rt8Kcpu-Zj7FwyzmvAbbxoENv-R5dNbjRbJdnjpz4,915
34
- ellipsis/path/raster/timestamp/root.py,sha256=cYszB9H4cF1Gxj8BN26EPHY3scbii2yqJsHOp0Ao6cc,18674
34
+ ellipsis/path/raster/timestamp/root.py,sha256=H6CNriytljBYJBZLQHa6fCVJekQZUeMZpeoOZJN_p30,19151
35
35
  ellipsis/path/raster/timestamp/util.py,sha256=eupFFSBp5CaTDIRg6DYnZnfWY61h81JZ7c15NdJ-j5E,2580
36
36
  ellipsis/path/raster/timestamp/file/__init__.py,sha256=Ln9_dQ4-PMwb5VP--Qh09IV5zmr-47RShpe0-f_NVh4,97
37
37
  ellipsis/path/raster/timestamp/file/root.py,sha256=T-vcD5o257-8t2M1l-c7WUxpq4ZmSApWFLqFhIL5Kb0,3920
@@ -46,25 +46,25 @@ ellipsis/path/vector/featureProperty/root.py,sha256=eb2bw4UGO3eYGaYgjwu43pZyA4iA
46
46
  ellipsis/path/vector/style/__init__.py,sha256=riiDnL4FDq4EFhSYAYHBSe_o5oltRTSrj4sc72F6IVQ,63
47
47
  ellipsis/path/vector/style/root.py,sha256=09PsRbCJ35YV8bl8xoWFoeGRpdmf5IBmmqwhRj30OTM,1641
48
48
  ellipsis/path/vector/timestamp/__init__.py,sha256=n0ncRxXoQIDX1WeV0lbpJH1BND793CdZ5swGgeu1Kfk,330
49
- ellipsis/path/vector/timestamp/root.py,sha256=i2bLqUZfUZ7glCBt8Aagz7EPMPPdU_-trJwFpgRoXH0,11105
49
+ ellipsis/path/vector/timestamp/root.py,sha256=EnSLILbO7VYScCUdnXOSA3J1p5ITqsxyNiuI2bgkO40,11562
50
50
  ellipsis/path/vector/timestamp/feature/__init__.py,sha256=miaLCHkogL9KJ_eUr4K_N15BShAe2ivcppDFJuE_SgI,210
51
51
  ellipsis/path/vector/timestamp/feature/root.py,sha256=BQdXZCgF5fi1sIovmUdNAV5aUrPizjJuLqfwzPguVQw,13011
52
52
  ellipsis/path/vector/timestamp/feature/message/__init__.py,sha256=XfX3MIa4RjpToFnxNyfxCKTvRlNtJFRQ44j31wDyhGc,100
53
53
  ellipsis/path/vector/timestamp/feature/message/root.py,sha256=isLzkITTiluKoIsH0PYT0K5Cr-LBzTA0TSE4-2tZU5M,3949
54
54
  ellipsis/path/vector/timestamp/feature/series/__init__.py,sha256=vPi57QdUPTEnQE31abgxzwWU3Gzu-Xxi3ZVD4z5MMwg,107
55
- ellipsis/path/vector/timestamp/feature/series/root.py,sha256=vbGb1u035L6aoVd1zuM-RIEt1LctFJoz67DwY9h5vJk,7523
55
+ ellipsis/path/vector/timestamp/feature/series/root.py,sha256=KCm28pQ8E6WREftuSi4wge_2QpojDW11b55j7_tG7Js,7519
56
56
  ellipsis/path/vector/timestamp/file/__init__.py,sha256=qJtOXI9MEv4KifDjMW3zUDKnef8PD69SQmgRc3wDShQ,73
57
57
  ellipsis/path/vector/timestamp/file/root.py,sha256=UPmcyJ4oWsOpDrsiM-sM5wtXGwkijKSIXLqpnQd4icA,4132
58
58
  ellipsis/path/vector/timestamp/order/__init__.py,sha256=w11nMYDQJzZJU_q8o7ApadV2EOdCX93gNkHZ7PO1gUo,74
59
- ellipsis/path/vector/timestamp/order/root.py,sha256=FB3AAbsp46Wv2vtvuFLx_djwh_Qn07I6trg752qL2f8,1179
59
+ ellipsis/path/vector/timestamp/order/root.py,sha256=Mke16gxwK4qJDtSMqt5DRkOtLFqZyZGU8bjN_8uBjoA,1169
60
60
  ellipsis/user/__init__.py,sha256=um_b42pc2otFiQRGqMajcEtONQpC2ei4r-EY3j7bsfQ,43
61
61
  ellipsis/user/root.py,sha256=dsMK6wGBdeCmOd3YsbIv9cEcQ6tAiSGr0jmtBhQl5-0,484
62
62
  ellipsis/util/__init__.py,sha256=G0LaqqipkJXqZZnW78pqOw-gDQWZYLMa2ioLoCac-NI,714
63
63
  ellipsis/util/root.py,sha256=keGn515Dnxyja8kNG9p-xdsX6gRa8pHCh6AJaQXLoig,23445
64
64
  ellipsis/view/__init__.py,sha256=91KyJzbSvwSP9hvJQyo1LLM48b5NixLz6G40I9h6sdY,67
65
65
  ellipsis/view/root.py,sha256=6actiBwIsM0f7sJhQl_U4j-C6Dhe0z5XGGtxIOIKdY8,1726
66
- ellipsis-3.1.39.dist-info/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
67
- ellipsis-3.1.39.dist-info/METADATA,sha256=qimH8mNuo12cPXOyixt4qCeSh7KawAmR3FnsENWAq1g,1823
68
- ellipsis-3.1.39.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
69
- ellipsis-3.1.39.dist-info/top_level.txt,sha256=eG8gfaVDyprKdb-dsGSh_lFMSa3DiZCsJFqze239RjA,9
70
- ellipsis-3.1.39.dist-info/RECORD,,
66
+ ellipsis-3.1.40.dist-info/LICENSE,sha256=7EI8xVBu6h_7_JlVw-yPhhOZlpY9hP8wal7kHtqKT_E,1074
67
+ ellipsis-3.1.40.dist-info/METADATA,sha256=v_qTXg9zcOJO4DJRqjBgPufOWb6lLSrDEBPX9HPpdcc,1823
68
+ ellipsis-3.1.40.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
69
+ ellipsis-3.1.40.dist-info/top_level.txt,sha256=eG8gfaVDyprKdb-dsGSh_lFMSa3DiZCsJFqze239RjA,9
70
+ ellipsis-3.1.40.dist-info/RECORD,,