[gdal-dev] Bug in SetGCPs method of GDALDataset class??
Chaitanya kumar CH
chaitanya.ch at gmail.com
Thu Jul 8 05:04:36 EDT 2010
Giuseppe,
Sorry for the confusion but the Python interface doesn't need the first
argument, the number of GCPs.
Examples:
http://trac.osgeo.org/gdal/browser/trunk/autotest/gcore/tiff_write.py#L236
http://trac.osgeo.org/gdal/browser/trunk/autotest/warp/warp.py#L695
On Thu, Jul 8, 2010 at 2:24 PM, vizziello <vizziello at consorzio-innova.it>wrote:
>
> I have a problem with SetGCPs method in GDAL python binding.
>
> My gdal version is 1.6.3.
>
> Seems impossible assigns the passed set of GCPs to dataset:
>
> newdataset.SetGCPs(ngcp, newgcp, gcpProjection)
>
> Where:
> - ngcp = Number of GCP
> - newgcp = New gcp list
> - gcpProjection = Gcp projection
>
> I have this error code:
>
> /usr/lib/python2.5/site-packages/osgeo/gdal.pyc in SetGCPs(self, *args)
> 584 def SetGCPs(self, *args):
> 585 """SetGCPs(self, int nGCPs, char pszGCPProjection) ->
> CPLErr"""
> --> 586 return _gdal.Dataset_SetGCPs(self, *args)
> 587
> 588 def FlushCache(self, *args):
>
> TypeError: Dataset_SetGCPs() takes exactly 3 arguments (4 given)
>
>
> Is a bug or error in the sample code?
>
> Greets,
> Giuseppe
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Bug-in-SetGCPs-method-of-GDALDataset-class-tp5269103p5269103.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
--
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100708/47a9d025/attachment.html
More information about the gdal-dev
mailing list