Сообщество программистов Autodesk в СНГ
ADN Club => Civil 3D API => Тема начата: surveyor от 26-04-2016, 14:35:41
-
Добрый день!
В MgCoordinateSystemDictionary есть метод NewCoordinateSystem(), в MgCoordinateSystemFactory - Create() и CreateFromCode(), которые возвращают объект MgCoordinateSystem. Как после создания добавить его в библиотеку систем координат?
-
По-моему, никак. :-\
MgCoordinateSystem получаем из библиотеки только для операций с координатами (трансформациями и т.п.), а добавление в саму библиотеку закрыто.
В 2016 версии есть импорт из xml. Может пойдете по этому пути?
User Geospatial Coordinate Systems "подхватываются" и более низкими версиями (проверено в 2014).
-
По-моему, никак.
А зачем в таком случае у 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 или описание работы с ней не удалось. :-\
-
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
Моих знаний явно недостаточно. Может кто заглянет и подскажет.