ingenieroariel / geonode-safe

Web based version of SAFE. More information available at http://inasafe.org
Other
2 stars 0 forks source link

Isotropic checks are too strict for geoserver #11

Open ingenieroariel opened 12 years ago

ingenieroariel commented 12 years ago
======================================================================
ERROR: Raster layers can be scaled when resampled
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/data/geonode-safe/geonode_safe/tests/test_storage.py", line 567, in test_raster_scaling
    A_scaled = R.get_data(scaling=True)
  File "/data/inasafe/safe/storage/raster.py", line 366, in get_data
    actual_res = self.get_resolution(isotropic=True)
  File "/data/inasafe/safe/storage/raster.py", line 545, in get_resolution
    raise Exception(msg)
Exception: Resolution for layer Jakarta flood like 2007 with structural improvements could not be obtained: Resolution requested with isotropic=True, but resolutions in the horizontal and vertical are different: resx = 0.009950229403, resy = 0.012437795382. 

Link to code:

https://github.com/ingenieroariel/geonode-safe/blob/master/geonode_safe/tests/test_storage.py#L530