Как добавить в библиотеку систем координат новую СК ?

Автор Тема: Как добавить в библиотеку систем координат новую СК ?  (Прочитано 3896 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн surveyorАвтор темы

  • ADN OPEN
  • Сообщений: 2
  • Карма: 0
Добрый день!
В MgCoordinateSystemDictionary есть метод NewCoordinateSystem(), в MgCoordinateSystemFactory - Create() и CreateFromCode(), которые возвращают объект MgCoordinateSystem. Как после создания добавить его в библиотеку систем координат?

Оффлайн German

  • ADN Club
  • **
  • Сообщений: 84
  • Карма: 13
По-моему, никак. :-\
MgCoordinateSystem получаем из библиотеки только для операций с координатами (трансформациями и т.п.), а добавление в саму библиотеку закрыто.
В 2016 версии есть импорт из xml. Может пойдете по этому пути?
User Geospatial Coordinate Systems "подхватываются" и более низкими версиями (проверено в  2014).

Оффлайн surveyorАвтор темы

  • ADN OPEN
  • Сообщений: 2
  • Карма: 0
По-моему, никак.
А зачем в таком случае у MgCoordinateSystemCatalog метод AreDictionaryFilesWritable()?
В 2016 версии есть импорт из xml.
Рассматривал, но хотелось поддержки и у младших версий.
User Geospatial Coordinate Systems "подхватываются" и более низкими версиями (проверено в  2014).
По поводу CS-файлов есть такая информация:
Цитировать
CS-MAP’s “geodetic database” is a set of 6 binary catalog (*.CSD) files. These are created out of a set of *.ASC files by the CS_comp.exe compiler tool. By default, all definitions entries generated by this tool are write-protected. However, custom definitions can be added to the files. That is, "system definitions" and "customized definitions" are contained in the same file(s).

This RFC is to add capabilities to CS-MAP, so that custom(ized) definitions are no longer being written into the files produced by CS_comp.exe but are rather kept separated if required by the application hosting CSMAP.lib.
Найти CS_comp.exe или описание работы с ней не удалось. :-\

Оффлайн German

  • ADN Club
  • **
  • Сообщений: 84
  • Карма: 13
CS-MAP’s “geodetic database” is a set of 6 binary catalog (*.CSD) files. These are created out of a set of *.ASC files by the CS_comp.exe compiler tool. By default, all definitions entries generated by this tool are write-protected. However, custom definitions can be added to the files. That is, "system definitions" and "customized definitions" are contained in the same file(s).

This RFC is to add capabilities to CS-MAP, so that custom(ized) definitions are no longer being written into the files produced by CS_comp.exe but are rather kept separated if required by the application hosting CSMAP.lib.

Вот источник: http://trac.osgeo.org/csmap/wiki/CsMapRfc6

Моих знаний явно недостаточно. Может кто заглянет и подскажет.