Re: [gdal-dev] removing of transparency possible?

2009-03-31 Thread Frank Warmerdam
WolfgangZ wrote: Hi, how do I remove a transparency layer? I used one during the merging process, but conversion to jpg (e.g.) complains about. Many thanks Wolg Wolg, Are you referring to an alpha band? If so, you could select a subset of bands with gdal_translate using the -b flag. eg.

Re: [gdal-dev] xml file for accessing to a wcs server

2009-03-31 Thread Frank Warmerdam
belaqziz salwa wrote: Hi, for Accessing to a WCS server i created a local service description xml file,but when i tested the gdal_translate command, i have the following error: C:\Inetpub\wps>gdal_translate -of GTIFF wcs.xml wcs.tif -srcwin 0 0 547 347 Input file size is 548, 348 0ERROR 1: Re

[gdal-dev] xml file for accessing to a wcs server

2009-03-31 Thread belaqziz salwa
Hi, for Accessing to a WCS server i created a local service description xml file,but when i tested the gdal_translate command, i have the following error: C:\Inetpub\wps>gdal_translate -of GTIFF wcs.xml wcs.tif -srcwin 0 0 547 347 Input file size is 548, 348 0ERROR 1: Returned tile does not matc

Re: [gdal-dev] gdal2tiles strangeness

2009-03-31 Thread Mano Marks
Hi Klokan, Thanks for the pointer. So it looks like, right now, there's a bug in gdal2tiles, according to Jesse? Any news on when that might be fixed? Mano 2009/3/31 Klokan Petr Přidal : > Mano, > > If you would like to have both Google Maps and Google Earth > presentation for a global map then

[gdal-dev] help with resampling via python

2009-03-31 Thread Chris Somerlot
Having trouble figuring out how to resample an image to a different cell size from python. I looked over the VRT driver page and have been trying to get this to work: from osgeo import gdal gdal.AllRegister() src = gdal.Open('DOQ_test.TIF') drv = gdal.GetDriverByName('VRT') dst = drv.CreateCopy(

Re: [gdal-dev] Questions about projects of GSoC 2009

2009-03-31 Thread Jorge Arévalo
Hello Klokan, Thanks for encouraging me! And congratulations for your excellent job with gdal2tiles. It really saved me from a lot of unproductive hours... It would be great to help you with WMTS implementation, or work with PNG driver, or with WKT Raster driver. I'm going to apply for the three

[gdal-dev] Re: Is it a big thing to change ECW to support 16-bit imagery?

2009-03-31 Thread WolfgangZ
I think you have to ask this question the right people! mohwawang schrieb: Mateuse, So what's the answer to the "correct" question? Mo --- On Fri, 3/27/09, Mateusz Loskot wrote: From: Mateusz Loskot Subject: Re: [gdal-dev] Is it a big thing to change ECW to support 16-bit imagery? To: "m

[gdal-dev] removing of transparency possible?

2009-03-31 Thread WolfgangZ
Hi, how do I remove a transparency layer? I used one during the merging process, but conversion to jpg (e.g.) complains about. Many thanks Wolg ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] gdal2tiles strangeness

2009-03-31 Thread Klokan Petr Přidal
Mano, If you would like to have both Google Maps and Google Earth presentation for a global map then you must generate two tile sets, because Google Maps supports only Mercator tiles (EPSG:900913) and Google Earth only geodetic (EPSG:4326). GDAL2Tiles has as a default tile profile 'mercator', it

Re: [gdal-dev] Questions about projects of GSoC 2009

2009-03-31 Thread Klokan Petr Přidal
Jorge, I am glad you are interested in the PNG driver, which I suggested as a project for Summer of Code... It would be really great to have this in GDAL and I guess more projects will profit from this... I am going to assist as much as I can, whether in gsoc program timeframe or even otherwise.

Re: [gdal-dev] in memory KML

2009-03-31 Thread Frank Warmerdam
Clay, Bruce wrote: After a bit more digging I am not sure I asked the right question. What I want to do is read feature information from a shapefile or other data source and get a string that contains the feature information encoded in KML that I can pass directly into Google Earth. I know

RE: [gdal-dev] in memory KML

2009-03-31 Thread Clay, Bruce
After a bit more digging I am not sure I asked the right question. What I want to do is read feature information from a shapefile or other data source and get a string that contains the feature information encoded in KML that I can pass directly into Google Earth. I know I can do this operatio

[gdal-dev] in memory KML

2009-03-31 Thread Clay, Bruce
I know that OGR supports in memory feature classes and it supports creating KML data. I could not find any examples of using the in-memory datasource. Is there a way to create KML in memory? Bruce This message and any enclosures are intended only for the addressee. Please n

[gdal-dev] gdal2tiles strangeness

2009-03-31 Thread Mano Marks
I'm getting started with gdal2tiles, and I'm getting strange results. I downloaded a blue marble jpg from NASA: http://www.nasa.gov/vision/earth/features/blue_marble.html And I ran the following command lines: gdal_translate -of VRT -a_srs EPSG:4326 -gcp 0 0 -180 90 -gcp 21600 0 180 90 -gcp 2160

Re: [Gdal-dev] no file

2009-03-31 Thread Frank Warmerdam
mjollnir wrote: You can run the PNG encoder to a memory buffer "virtual file" using the mechanism described at: http://www.gdal.org/cpl__vsi_8h.html#66e2e6f093fd42f8a941b962d4c8a19e Then you would send the contents of the memory buffer off to the socket. In theory you could also write a s

Re: [Gdal-dev] no file

2009-03-31 Thread mjollnir
You can run the PNG encoder to a memory buffer "virtual file" using the mechanism described at: http://www.gdal.org/cpl__vsi_8h.html#66e2e6f093fd42f8a941b962d4c8a19e Then you would send the contents of the memory buffer off to the socket. In theory you could also write a special file handl

Re: [Gdal-dev] no file

2009-03-31 Thread Frank Warmerdam
mjollnir wrote: hi, i read the image from a JPG file, and translate it to a PNG dataset, now, i want send the PNG image binary data to a socket directly, actually no intermediate PNG file needed. Ray, You can run the PNG encoder to a memory buffer "virtual file" using the mechanism described

[Gdal-dev] no file

2009-03-31 Thread mjollnir
hi, i read the image from a JPG file, and translate it to a PNG dataset, now, i want send the PNG image binary data to a socket directly, actually no intermediate PNG file needed. can i do this? -- View this message in context: http://n2.nabble.com/no-file-tp2563633p2563633.html Sent from

Re: Re :[gdal-dev] How to use GDAL Library

2009-03-31 Thread Jürgen E . Fischer
Hi, [what's your firstname btw?] On Tue, 31. Mar 2009 at 06:01:51 -, Ajmeri Iqbal wrote: > shell i continue with C-api or build GDAL library with MinGW and use C++-api? http://trac.osgeo.org/gdal/wiki/FAQMiscellaneous#CAPIvsCAPI: > If you intend writing code using GDAL/OGR that will not requ