Le mardi 11 octobre 2011 22:09:02, Jay Jennings a écrit :
> Hi folks,
> I am trying to merge a grayscale (1-band) image with RGB (3-band) imagery
> using 'gdalwarp', the hope being that the grayscale image would be
> converted on-the-fly to RGB by duplicating the one band 3 times, thus
> ending up
Hi folks,
I am trying to merge a grayscale (1-band) image with RGB (3-band) imagery using
'gdalwarp', the hope being that the grayscale image would be converted
on-the-fly to RGB by duplicating the one band 3 times, thus ending up still
grayscale visually.
But 'gdalwarp' doesn't seem to do that;
Jose,
FYI, the ReadRaster function is optimized for reading chunks of image, not
individual pixels.
An array slice is essentially an array itself. But your error message says
different. Can you provide the offending lines of code?
On Tue, Oct 11, 2011 at 11:19 PM, Jose Gomez-Dans wrote:
> Hi,
>
Hi,
I have installed GDAL 1.8.1 to use the python bindings. I note that if I
pass a slice of an array to ReadRaster for the (x,y) pixel location, I get a
TypeError:
TypeError: in method 'Dataset_ReadRaster1', argument 2 of type 'int'
If I surround the offending slice by int( x ) and int(y), it wor
joss,
you should try the libkml driver.
http://www.gdal.org/ogr/drv_libkml.html
ogr2ogr -f CSV test.csv test.kml
cat test.csv
Name,description,timestamp,begin,end,altitudeMode,tessellate,extrude,visibility,holeNumber,holeYardage,holePar
Club house,,-1,-1,-1,1,234,4
By the lake,,-1,-1,-1,
I have a similar question regarding KML and OGR.
When trying to import the example extended data as given at
http://code.google.com/apis/kml/documentation/extendeddata.html
http://code.google.com/apis/kml/documentation/extendeddata.html
The extended data is not present in the created tables in th
Hi Max,
have you tried
ogr2ogr -t_srs EPSG:4326 -f "one of many formats" outputfile myshape.shp
As ogrinfo recognizes the source shape CS (I guess it has a .prj file
associated with it), you should only transform (-t_srs) into the
destination CS.
All the best
Sig
>
Il giorno lun, 10/10/20