Re: [gdal-dev] How to read GML/GeoRSS directly from XML string?

2012-07-03 Thread Chaitanya kumar CH
Yingqi, Though the GeoJSON driver allows for reading the data directly, it is more like an exception. For consistent behavior between formats, you need to read the data from a data source like a file or url. You can create a temporary in-memory file of your data using the method gdal.FileFromMem

[gdal-dev] How to read GML/GeoRSS directly from XML string?

2012-07-03 Thread Yingqi Tang
Hi, I am using OGR/GDAL to read GML/GeoRSS/GeoJSON from either local file or url, the sample code is like below ... inputDriver = ogr.GetDriverByName(inputDriverType) inputDataSource = inputDriver.Open(inputDataPath, 0); ... It seems that I can pass in the GeoJSON string directly like: inputData

Re: [gdal-dev] Read image from zip with python and GDAL

2012-07-03 Thread Etienne Tourigny
you have to use /vsitar and not /vsigzip - because it is a tar file On Tue, Jul 3, 2012 at 2:00 PM, Anton Korosov wrote: > Dear Even, > thank you very much for the info. I'm imressed by the gdal once again! > > Though I have a problem with LANDSAT tar.gz: > > fram:raw>tar -tf LT52280012006208KIS0

Re: [gdal-dev] Read image from zip with python and GDAL

2012-07-03 Thread Anton Korosov
Dear Even, thank you very much for the info. I'm imressed by the gdal once again! Though I have a problem with LANDSAT tar.gz: fram:raw>tar -tf LT52280012006208KIS00.tar.gz L5228001_00120060727_B10.TIF L5228001_00120060727_B20.TIF L5228001_00120060727_B30.TIF fram:raw>gdalinfo /vsigzip/LT522800

Re: [gdal-dev] Read image from zip with python and GDAL

2012-07-03 Thread Even Rouault
Selon Marc Padilla Parellada : > Hello, > > > I would like to read raster files stored within a zip file with python and > GDAL. Something like this: > > Try this instead : data=gdal.Open("/vsizip/file.zip/image.tif") See http://trac.osgeo.org/gdal/wiki/UserDocs/ReadInZip __

[gdal-dev] Read image from zip with python and GDAL

2012-07-03 Thread Marc Padilla Parellada
Hello, I would like to read raster files stored within a zip file with python and GDAL. Something like this: data=gdal.Open(“file.zip/image.tif”) I have many zipped images stored in an external hard disk with slow transfer connection; hence I would like to read them without unzipping. I wou

[gdal-dev] Creating a .TAB for an ASCII Grid in MapInfo

2012-07-03 Thread Fodder
Hi Guys, Hopefully a simple one. I'm trying to create a tab file to support an ASC ASCII Grid file with the projection coming from a mid/mif. Can anyone tell me the ogr2ogr or gdal commands to achieve this? The tab is reasonably simple text file so I could probably hack it with the mid/mif header