[Gdal-dev] gdalwarp/gcps and ERROR 1: Failed to compute polynomial equations of desired order
4572 단어 error
Ethan Alpert ealpert at digitalglobe.com Tue Sep 14 15:20:37 EDT 2004
Greetings,
This is my first post. I tried searching around for examples but didn't
find much and mailman's search capability is non-existant.
So what's the secret for using more than 4 gcps with gdalwarp?
I have 3 pieces of imagery I'm mosaicing. I know the corners of each
image. I created a single non-projected tif of the three separate
images. I computed where (in pixel space) the top two corners of the
first two images are in the resulting tif and where the bottom two
corners of the last image are. This resulted in 6 GCP points. So I ran
the following:
gdal_translate -gcp 0 0 56.7468972222222 29.4295138888889 -gcp 859 0
56.9820861111111 29.4210638888889 -gcp 0 1363 56.7391 29.1199027777778
-gcp 859 1363 56.9705611111111 29.1071416666667 -gcp 859 2171
56.9677027777778 28.9774388888889 -gcp -gcp 0 2171 56.7381583333333
28.9917333333333 mosaic.tif mosaic_raw.tif
Then I ran:
gdalwarp -co "TFW=YES" mosaic_raw.tif mosaic_new.tif
And got:
ERROR 1: Failed to compute polynomial equations of desired order
for provided control points.
If I use -order 1 I get a really screwing output.
If I remove the middle point and do:
gdal_translate -gcp 0 0 56.7468972222222 29.4295138888889 -gcp 859 0
56.9820861111111 29.4210638888889 -gcp 859 2171 56.9677027777778
28.9774388888889 -gcp 0 2171 56.7381583333333 28.9917333333333
mosaic.tif mosaic_raw.tif
Then:
gdalwarp -co "TFW=YES" mosaic_raw.tif mosaic_new.tif
I get a projected mosiac of my images but it's not warped as I'd like.
So again my question is what needs to be done to use higher order
warping? What are the rules gcps must follow?
I'm using gdal1.2.1
Thanks in advance,
-ethan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/gdal-dev/attachments/20040914/267ff0bd/attachment.html
More information about the Gdal-dev mailing list
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Qiita의 API를 부를 때 끝에 슬래시를 붙이면 http://~로 리디렉션되므로 조심합시다.제목대로. curl 결과는 . 예전에 보았던 오류에 근거한 박자를 만났습니다 이것은 메시지처럼 HTTP 통신을 시도할 때 iOS가 차단하는 사람입니다. URLSession 에 건네주고 있는 url는 확실히 https...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.