Giter Site home page Giter Site logo

numericdigitize_ng's Introduction

numericdigitize_ng's People

Contributors

alisovenko avatar kinda-me avatar simgislab avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

numericdigitize_ng's Issues

"Умный" парсинг координат

Сейчас допустим ввод только числовых значений координат.
Достаточно часто бывают данные в форматах:
210° 4544`` 210° 45.54
210.44°
Была бы полезной возможность вводить подобные значения.

Необработанная ошибка при внесении неверных координат

Если выбрать EPSG:4326, и ввести например координаты: 999 999, то случатся необработанное исключение:

Traceback (most recent call last):
  File "/home/yellow/.qgis2/python/plugins/numericalDigitize_NG/numericalDigitize.py", line 164, in createGeom
    transformedPoint = xform.transform( point )
QgsCsException: прямая трансформация of
(17.435839, 17.435839)
PROJ.4:  +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0 +to  +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs
Ошибка: latitude or longitude exceeded limits

image

  • Необходимо обрабатывать ошибки перепроицирования
  • Выдавать MessageBox.Critical с текстом в эксепшене (например тут: Ошибка: latitude or longitude exceeded limits)
  • Если окно с вводом координат еще не закрыто возвращать фокус ему

Ошибка при выборе растрового слоя

Traceback (most recent call last):
File "/home/yellow/.qgis2/python/plugins/NumericDigitize_NG/numericalDigitize.py", line 112, in toggle
layer.editingStarted.connect(self.toggle)
AttributeError: 'TileLayer' object has no attribute 'editingStarted'

Объекты созданные плагином не пишутся в WFS слой NGW

Исходный слой в проекции 3857.
В QGIS добавляется через WFS сервис (например http://176.9.38.120/cl2/resource/31/wfs).
Ввод координат осуществляется в 4326. Координаты валидные - 10 10.

Если редактирование производить стандартными инструментами ввода - Добавление нового объекта, то слой сохраняется без ошибок.
Если же вводить с помощью сабжа, то объект добавляется в слой, но слой сохраняться не желает:

Не удалось внести изменения в слой fosc

Ошибки: ОШИБКА: не добавлен 1 объект.

  Ошибки источника:
      пустой ответ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.