wolfhece 2.2.13__py3-none-any.whl → 2.2.14__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.
wolfhece/PyWMS.py CHANGED
@@ -41,12 +41,16 @@ def getWalonmap(cat:Literal['IMAGERIE/ORTHO_2021', 'ALEA', 'CADMAP', 'LIDAXES',
41
41
 
42
42
  try:
43
43
  wms=WebMapService('https://geoservices.wallonie.be/arcgis/services/'
44
- + catloc+'/MapServer/WMSServer',version='1.3.0')
44
+ + catloc+'/MapServer/WMSServer',version='1.3.0', timeout=5)
45
45
  except:
46
- wms=WebMapService('https://eservices.minfin.fgov.be/arcgis/services/'
47
- + catloc+'/MapServer/WMSServer',version='1.3.0')
48
- # wms=WebMapService('http://ccff02.minfin.fgov.be/geoservices/arcgis/services/'
49
- # + catloc+'/MapServer/WMSServer',version='1.3.0')
46
+ try:
47
+ wms=WebMapService('https://eservices.minfin.fgov.be/arcgis/services/'
48
+ + catloc+'/MapServer/WMSServer',version='1.3.0')
49
+ # wms=WebMapService('http://ccff02.minfin.fgov.be/geoservices/arcgis/services/'
50
+ # + catloc+'/MapServer/WMSServer',version='1.3.0')
51
+ except:
52
+ logging.warning(_('Impossible to get data from web services'))
53
+ return None
50
54
 
51
55
  ppkm = 300
52
56
  if w is None and h is None:
@@ -72,7 +76,7 @@ def getWalonmap(cat:Literal['IMAGERIE/ORTHO_2021', 'ALEA', 'CADMAP', 'LIDAXES',
72
76
  out = open('aqualim.png', 'wb')
73
77
  out.write(img.read())
74
78
  out.close()
75
- return BytesIO(b'1')
79
+ return None
76
80
  else:
77
81
  mycontents=list(wms.contents)
78
82
  curcont=['0']
@@ -113,7 +117,7 @@ def getWalonmap(cat:Literal['IMAGERIE/ORTHO_2021', 'ALEA', 'CADMAP', 'LIDAXES',
113
117
  return BytesIO(img.read())
114
118
  except:
115
119
  logging.warning(_('Impossible to get data from web services'))
116
- pass
120
+ return None
117
121
 
118
122
  def getVlaanderen(cat:Literal['Adpf'],
119
123
  xl:float,
@@ -128,10 +132,10 @@ def getVlaanderen(cat:Literal['Adpf'],
128
132
 
129
133
  try:
130
134
  wms=WebMapService('https://geo.api.vlaanderen.be/'
131
- + catloc+'/wms',version='1.3.0')
135
+ + catloc+'/wms',version='1.3.0', timeout=5)
132
136
  except:
133
137
  logging.warning(_('Impossible to get data from web services'))
134
- return
138
+ return None
135
139
 
136
140
  ppkm = 300
137
141
  if w is None and h is None:
@@ -168,7 +172,7 @@ def getVlaanderen(cat:Literal['Adpf'],
168
172
  return BytesIO(img.read())
169
173
  except:
170
174
  logging.warning(_('Impossible to get data from web services'))
171
- pass
175
+ return None
172
176
 
173
177
 
174
178
  def getIGNFrance(cat:str,epsg:str,xl,yl,xr,yr,w,h,tofile=True) -> BytesIO:
@@ -191,7 +195,7 @@ def getIGNFrance(cat:str,epsg:str,xl,yl,xr,yr,w,h,tofile=True) -> BytesIO:
191
195
  out = open('ignFrance.png', 'wb')
192
196
  out.write(img.read())
193
197
  out.close()
194
- return BytesIO(b'1')
198
+ return None
195
199
  else:
196
200
  return BytesIO(img.read())
197
201
 
@@ -206,7 +210,7 @@ def getLifeWatch(cat:Literal['None'],
206
210
  format:Literal['image/png', 'image/png; mode=8bit']='image/png') -> BytesIO:
207
211
 
208
212
  wms=WebMapService(f'https://maps.elie.ucl.ac.be/cgi-bin/mapserv72?map=/maps_server/lifewatch/mapfiles/LW_Ecotopes/latest/{cat}.map&SERVICE=wms',
209
- version='1.3.0')
213
+ version='1.3.0', timeout=10)
210
214
 
211
215
  ppkm = 300
212
216
  if w is None and h is None:
@@ -249,7 +253,7 @@ def getLifeWatch(cat:Literal['None'],
249
253
  out = open('LifeWatch.png', 'wb')
250
254
  out.write(img.read())
251
255
  out.close()
252
- return BytesIO(b'1')
256
+ return None
253
257
  else:
254
258
  mycontents=list(wms.contents)
255
259
  curcont=['lc_hr_raster'] # 'MS
@@ -266,7 +270,7 @@ def getLifeWatch(cat:Literal['None'],
266
270
  return BytesIO(img.read())
267
271
  except:
268
272
  logging.warning(_('Impossible to get data from web services'))
269
- pass
273
+ return None
270
274
 
271
275
  if __name__=='__main__':
272
276
  # me=pyproj.CRS.from_epsg(27573)
wolfhece/apps/version.py CHANGED
@@ -5,7 +5,7 @@ class WolfVersion():
5
5
 
6
6
  self.major = 2
7
7
  self.minor = 2
8
- self.patch = 13
8
+ self.patch = 14
9
9
 
10
10
  def __str__(self):
11
11
 
wolfhece/wolf_texture.py CHANGED
@@ -317,7 +317,16 @@ class imagetexture(Element_To_Draw):
317
317
  mybytes = getWalonmap(self.category + '/' + self.subcategory,
318
318
  self.xmin, self.ymin, self.xmax, self.ymax,
319
319
  self.width, self.height, False)
320
- image = Image.open(mybytes)
320
+
321
+ if mybytes is None:
322
+ logging.warning(_('Error opening image file : ') + str(self.category + '/' + self.subcategory))
323
+ return
324
+
325
+ try:
326
+ image = Image.open(mybytes)
327
+ except Exception as e:
328
+ logging.warning(_('Error opening image file : ') + str(self.category + '/' + self.subcategory))
329
+ return
321
330
 
322
331
  glBindTexture(GL_TEXTURE_2D, self.idtexture[0])
323
332
  if self.subcategory[:5] == 'ORTHO':
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wolfhece
3
- Version: 2.2.13
3
+ Version: 2.2.14
4
4
  Author-email: Pierre Archambeau <pierre.archambeau@uliege.be>
5
5
  Project-URL: Homepage, https://uee.uliege.be/hece
6
6
  Project-URL: Issues, https://uee.uliege.be/hece
@@ -75,19 +75,13 @@ Requires-Dist: contextily
75
75
  Requires-Dist: pefile
76
76
  Requires-Dist: wolfpydike
77
77
 
78
- Ce paquet contient l'interface graphique Python du logiciel WOLF (HECE - ULiège) de même que plusieurs outils de traitements topographique, hydraulique et hydrologique.
78
+ This package contains the Python graphical interface for the WOLF software (HECE - ULiège), along with several tools for topographic, hydraulic, and hydrological processing.
79
79
 
80
- Les codes de calcul ne sont pas contenus dans ce paquet.
80
+ The core numerical codes are not included in this package.
81
81
 
82
- Version 2.1.x compatible Numpy 1.23.5
83
- Version 2.2.x compatible Numpy 2.1.3
82
+ - Version 2.1.x is compatible with Numpy 1.23.5.
83
+ - Version 2.2.x is compatible with Numpy 2.1.3.
84
84
 
85
- --
85
+ Since version 2.2.11, we support Python 3.10 and 3.11.
86
86
 
87
-
88
- This package contains the Python graphical interface of the WOLF software (HECE - ULiège), as well as several topographic, hydraulic, and hydrological processing tools.
89
-
90
- The numerical codes are not included in this package.
91
-
92
- Version 2.1.x compatible Numpy 1.23.5
93
- Version 2.2.x compatible Numpy 2.1.3
87
+ Python 3.12 and 3.13 are supported experimentally.
@@ -18,7 +18,7 @@ wolfhece/PyPictures.py,sha256=m1kY0saW6Y9Q0bDCo47lW6XxDkBrbQG-Fd8uVn8G5ic,2514
18
18
  wolfhece/PyTranslate.py,sha256=4appkmNeHHZLFmUtaA_k5_5QL-5ymxnbVN4R2OblmtE,622
19
19
  wolfhece/PyVertex.py,sha256=WT2UprotBUEA6rvs8kXfPRscKrhIL4_pya2UylzoBJE,50385
20
20
  wolfhece/PyVertexvectors.py,sha256=yPqE1rmqCSAucjNjSo1_srKHMwjqYWe0lx7S2Wbpryw,327905
21
- wolfhece/PyWMS.py,sha256=LWkQk3R7miiVal-n5K5P5ClSQJA_vi5ImBxYGuxCx9A,9122
21
+ wolfhece/PyWMS.py,sha256=e6cMA72xLnpFZQtM99lItTyIfUQKz0f5f1iL_bwJVPQ,9303
22
22
  wolfhece/RatingCurve.py,sha256=bUjIrQjvIjkD4V-z8bZmA6pe1ILtYNM0-3fT6YUY1RU,22498
23
23
  wolfhece/RatingCurveData.py,sha256=5UvnIm89BwqjnEbLCcY3CA8WoFd_xHJbooNy62fX5iY,57660
24
24
  wolfhece/RatingCurve_xml.py,sha256=cUjReVMHFKtakA2wVey5zz6lCgHlSr72y7ZfswZDvTM,33891
@@ -60,7 +60,7 @@ wolfhece/tools2d_dll.py,sha256=oU0m9XYAf4CZsMoB68IuKeE6SQh-AqY7O5NVED8r9uw,13125
60
60
  wolfhece/tools_mpl.py,sha256=gQ3Jg1iuZiecmMqa5Eli2ZLSkttu68VXL8YmMDBaEYU,564
61
61
  wolfhece/wolf_array.py,sha256=PlImSCX5lUeoqPR7ogqak_Zl6dLyGn5EXUzeD_6-xAU,497218
62
62
  wolfhece/wolf_hist.py,sha256=7jeVrgSkM3ErJO6SRMH_PGzfLjIdw8vTy87kesldggk,3582
63
- wolfhece/wolf_texture.py,sha256=IvFtekT5iLU2sivZOOlJXpE4CevjTQYSxHaOp4cH_wI,17723
63
+ wolfhece/wolf_texture.py,sha256=KlT8g4dBmH819n8mqQ8pCHLGST1C5bd4OaR_et5wsUM,18092
64
64
  wolfhece/wolf_tiles.py,sha256=v-HohqaWuMYdn75XLnA22dlloAG90iwnIqrgnB0ASQ4,10488
65
65
  wolfhece/wolf_vrt.py,sha256=wbxXVN7TL9zgdyF79S-4e3pje6wJEAgBEfF_Y8kkzxs,14271
66
66
  wolfhece/wolf_zi_db.py,sha256=baE0niMCzybWGSvPJc5FNxo9ZxsGfU4p-FmfiavFHAs,12967
@@ -86,7 +86,7 @@ wolfhece/apps/curvedigitizer.py,sha256=lEJJwgAfulrrWQc-U6ij6sj59hWN3SZl4Yu1kQxVz
86
86
  wolfhece/apps/hydrometry.py,sha256=lhhJsFeb4zGL4bNQTs0co85OQ_6ssL1Oy0OUJCzhfYE,656
87
87
  wolfhece/apps/isocurrent.py,sha256=dagmGR8ja9QQ1gwz_8fU-N052hIw-W0mWGVkzLu6C7I,4247
88
88
  wolfhece/apps/splashscreen.py,sha256=eCPAUYscZPWDYKBHDBWum_VIcE7WXOCBe1GLHL3KUmU,3088
89
- wolfhece/apps/version.py,sha256=d7VnTStgGHxEQxAc33py4-P5wUeDm7KqWqqQhg67lVw,388
89
+ wolfhece/apps/version.py,sha256=K1wI1QprwJhkLzJfrbY1MD9huUZViybAZpuclY2ssps,388
90
90
  wolfhece/apps/wolf.py,sha256=j_CgvsL8rwixbVvVD5Z0s7m7cHZ86gmFLojKGuetMls,729
91
91
  wolfhece/apps/wolf2D.py,sha256=4z_OPQ3IgaLtjexjMKX9ppvqEYyjFLt1hcfFABy3-jU,703
92
92
  wolfhece/apps/wolf_logo.bmp,sha256=ruJ4MA51CpGO_AYUp_dB4SWKHelvhOvd7Q8NrVOjDJk,3126
@@ -333,8 +333,8 @@ wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=8PlMYrb_8jI8h9F0_EagpM
333
333
  wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=ORy7fz4dcp691qKzaOZHrRLZ0uXNhL-LIHxmpDGL6BI,5007
334
334
  wolfhece/wintab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
335
335
  wolfhece/wintab/wintab.py,sha256=8A-JNONV6ujgsgG3lM5Uw-pVgglPATwKs86oBzzljoc,7179
336
- wolfhece-2.2.13.dist-info/METADATA,sha256=uManH-6owmjo2fqAuRXToSiNmuGW07Z4EvZg4OnjwZQ,2908
337
- wolfhece-2.2.13.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
338
- wolfhece-2.2.13.dist-info/entry_points.txt,sha256=ZZ-aSfbpdcmo-wo84lRFzBN7LaSnD1XRGSaAKVX-Gpc,522
339
- wolfhece-2.2.13.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
340
- wolfhece-2.2.13.dist-info/RECORD,,
336
+ wolfhece-2.2.14.dist-info/METADATA,sha256=Y7UYL2Y3HjkDspeALQzelJ9yNiWX4bx42gHbYLXjrJA,2731
337
+ wolfhece-2.2.14.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
338
+ wolfhece-2.2.14.dist-info/entry_points.txt,sha256=ZZ-aSfbpdcmo-wo84lRFzBN7LaSnD1XRGSaAKVX-Gpc,522
339
+ wolfhece-2.2.14.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
340
+ wolfhece-2.2.14.dist-info/RECORD,,