Страница 1 из 1

Как заставить работать инструмент Warp из ArcToolbox ?

Добавлено: 29 окт 2009, 11:06
batmax
Инструмент находится в меню: ArcToolbox("красный ящичек") -> Data Management Tools -> Projections and Transformations -> Raster -> Warp.
Как следует из документации, он может искажать растры по опорным точкам. Я пробовал запустить скрипт, он работает без ошибок, но пробный растр 100х100 остаётся без изменений. Что не так? Вот скрипт:

set gp = wscript.createobject("esriGeoprocessing.GPDispatch.1")
'Set the input raster dataset name
inputRaster = "D:\stage2\100.bmp"
'Set the output raster name
outputRaster = "D:\stage2\100bilinear.bmp"
'Define the source control points
SourcePoints = "'1 1'; '50 10'; '50 1'; '100 1'; '50 50'; '100 100'; '1 100'"
'Define the target control points
TargetPoints = "'1 1'; '50 37'; '50 23'; '100 1'; '50 50'; '100 100'; '1 100'"
'Process: Warp
gp.Warp_management inputRaster, SourcePoints, TargetPoints, outputRaster, "POLYORDER2", "BILINEAR"