[gdal-dev] GetGCPs returns null

Bar Ori Ori.Bar at elbitsystems.com
Mon Nov 16 06:51:10 PST 2015


Hi all,
I wanted some explanations please about how to work with the GCPs.
I have an image and I want to save its corners coordinates (not a rectangle) as GCPs and not using the SetGeoTransform method which takes the upper-left coordinate and creates a rectangle based on it.
I accomplished it using the SetGCPs method. I even see that the IGEOLO field (I am working with NITF) is set correctly with those coordinates.
The problem is that I want to retrieve those coordinates for painting a footprint on a map I have.
I Tried the GetGCPs method but I got null. Also the GetGCPCount returns 0.
(I can get the data from the IGEOLO, but I prefer another solution, and in general to understand why GetGCPs returns nothing...)

Thanks.


[cid:image001.png at 01D1208E.FB1CD270]

Ori Bar | Software Developer
Applications Development
Elbit Systems Land and C4I
T  +972-9-8898900  |   M  +972-504-734296




The information in this e-mail transmission contains proprietary and business 
sensitive information.  Unauthorized interception of this e-mail may constitute 
a violation of law. If you are not the intended recipient, you are hereby 
notified that any review, dissemination, distribution or duplication of this 
communication is strictly prohibited. You are also asked to contact the sender 
by reply email and immediately destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20151116/550c7f02/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4164 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20151116/550c7f02/attachment.png>


More information about the gdal-dev mailing list