Запуск Map-векторизатора NYPL в Ubuntu - ошибки скриптинга GIMP

Я надеюсь, что это правильное место, чтобы задать этот вопрос.

Я недавно попытался оцифровать кучу старых карт, и я намерен использовать инструмент векторизации карт NYPL, написанный на Mac. Вышеупомянутый код связан ниже.

https://github.com/NYPL/map-vectorizer

Моя ошибка состояла в том, что после удовлетворения всех зависимостей не удалось открыть скрипт file-load-tiff в GIMP-2.6 независимо от того, какой конкретный вариант gimp (gimp, gimp-console, gimp-console-2.6 и т. д.), и он продолжает выдавать мне одну и ту же ошибку:

> Thresholdizing:
> ---------------
> test.ti/test.tif into threshold file: test.ti/test/test-threshold-tmp.tif
> 
> (gimp:17828): GLib-WARNING **: (/build/buildd/glib2.0- 2.32.3/./glib/gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0)
> GIMP-Error: Execution error for procedure 'file-tiff-load':
> Could not open 'test.ti/test.tif' for reading: No such file or directory

> batch command experienced an execution error

> ERROR 4: `test.ti/test.tif' does not exist in the file system,
> and is not recognised as a supported dataset name.

> gdalinfo failed - unable to open 'test.ti/test.tif'.

Теперь я все понимаю после ошибки GIMP просто провал - но я совершенно новичок в gimp-скриптинге и не уверен, как обеспечить стабильную связь между несколькими скриптами, составляющими этот инструмент, и моей установкой Gimp. Я пробовал это на двух машинах: моя Ubuntu VM, установленная внутри x64 windows 7, и ARM-процессор Chromebook, работающий с Precise Pangolin через Crouton.

Обновление 17/10/2013

Внутри nypl-create-threshold.scm была опечатка, которая называлась file-tif-load. Также в вызове GIMP отсутствовали флаги -i и -b в config.py. Это можно исправить, отрегулировав строку:

    defaultgimp = '/usr/bin/gimp -i -b'

Эти два исправления привели меня к новой ошибке, когда временная генерация пороговых tif-файлов ломает и удаляет их файлы .tmp, прежде чем позволить остальному сценарию использовать их.

man@squid:~/map-vectorizer$ ./vectorize_map.py test.tif 






NYPL Labs Map Vectorizer v0.1 
=============================
By: Mauricio Giraldo Arteaga @mgiraldo / @nypl_labs

GIMP executable path [/usr/bin/gimp]: 


Processing file: test.tif



Thresholdizing:
---------------
test.ti/test.tif into threshold file: test.ti/test/test-threshold-tmp.tif
batch command experienced an execution error



Geodata obtained:
-----------------
W -73.9968041
N 40.7219642
E -73.9955339
S 40.7205240


Applying to destination:
------------------------
ERROR 4: `test.ti/test/test-threshold-tmp.tif' does not exist in the file system,
and is not recognised as a supported dataset name.

GDALOpen failed - 4
`test.ti/test/test-threshold-tmp.tif' does not exist in the file system,
and is not recognised as a supported dataset name.


ERROR 4: `test.ti/test/test-wsg-tmp.tif' does not exist in the file system,
and is not recognised as a supported dataset name.


Polygonizing (coarse):
----------------------
ERROR 4: `test.ti/test/test-gdal-tmp.tif' does not exist in the file system,
and is not recognised as a supported dataset name.

Unable to open test.ti/test/test-gdal-tmp.tif

Splitting megapolygon file into chunks
--------------------------------------
Could not open shapefile

РЕДАКТИРОВАТЬ:

ФАКТ НАУКИ: ИСПОЛЬЗОВАТЬ ПРАВИЛЬНУЮ ВЕРСИЮ.

обновлено до 2.8.6

Теперь работает.

с помощью этого чувака помощь http://www.webupd8.org/2013/06/install-gimp-286-in-ubuntu-ppa.html

также следует отметить : Precise Pangolin поддерживает только Gimp 2.6 в своих репозиториях.

1
задан 24 October 2013 в 22:12

1 ответ

Исправление было представлено. Проверьте новую версию: https://github.com/NYPL/map-vectorizer

0
ответ дан 24 October 2013 в 22:12

Другие вопросы по тегам:

Похожие вопросы: