Skip to content

Commit

Permalink
import settings, import PREFERRED_COORDINATE_SYSTEM srid re #11366
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Aug 20, 2024
1 parent 0941ebe commit b9ab29e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arches/app/utils/geo_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
from arcgis2geojson import arcgis2geojson
from django.contrib.gis.geos import GEOSGeometry, GeometryCollection, WKTWriter
from arches.app.utils.betterJSONSerializer import JSONSerializer, JSONDeserializer
from arches.app.models.system_settings import settings


class GeoUtils(object):
preferred_srid = int(settings.PREFERRED_COORDINATE_SYSTEMS[0]["srid"])

def set_precision(self, coordinates, precision):
"""
returns the passed in coordinates with the specified precision
Expand Down

0 comments on commit b9ab29e

Please sign in to comment.