[gdal-dev] GetGCPs returns null
Even Rouault
even.rouault at spatialys.com
Mon Nov 16 07:01:17 PST 2015
Le lundi 16 novembre 2015 15:51:10, Bar Ori a écrit :
> 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...)
Could be related to a wrong value of the ICORDS creation option. SetGCPs() and
GetGCPS() are tested in
https://trac.osgeo.org/gdal/browser/trunk/autotest/gdrivers/nitf.py#L1967
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list