diff options
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/models_common.py | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index adc6ca9eb..0b34400a1 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -2433,8 +2433,12 @@ class GeoVectorData(Imported, OwnPerms):                  rounded_z = spatial_reference_system.round_z              else:                  rounded_z = 3 -        return self.get_coordinates(rounded=rounded, rounded_z=rounded_z, srid=srid, dim=dim, -                                    cache=cache) +        try: +            return self.get_coordinates(rounded=rounded, rounded_z=rounded_z, srid=srid, dim=dim, +                                        cache=cache) +        except GDALException: +            # bad conversion +            return      def get_coordinates(self, rounded=5, rounded_z=3, srid: int = None, dim=2, cache=False):          if dim not in (2, 3): | 
