L
L
Larisa .•º2017-01-17 10:25:09
PostgreSQL
Larisa .•º, 2017-01-17 10:25:09

How about django.db.utils.InternalError: ERROR: Operation on mixed SRID geometries?

At the beginning I do

#
           obj = Table.objects.filter(geometry__contains=p.wkt)
           if obj :
               # выполняются действия

And it turns out
File "D:\projects\lesfond\venv_forest\lib\site-packages\django\db\utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "D:\projects\lesfond\venv_forest\lib\site-packages\django\utils\six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "D:\projects\lesfond\venv_forest\lib\site-packages\django\db\backends\utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
django.db.utils.InternalError: ОШИБКА:  Operation on mixed SRID geometries

Tell me what could be
django.db.utils.InternalError: ОШИБКА:  Operation on mixed SRID geometries

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2017-01-17
@fox_12

Why don't you just try googling to get started?
gis.stackexchange.com/questions/68711/postgis-geom...
stackoverflow.com/questions/20231423/postgis-error...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question