RE: [gdal-dev] pixel/line mapping for two images.

2009-09-17 Thread Belaid MOA
Sorry to bother you guys again. This is just to give a little more details about my arithmetic and what I use it for. I wrote a GDAL C++ code that solves the following simple problem: take two images, a source image with spatial resolution 25mx25m (high resolution) and a destination

Re: [gdal-dev] How to improve gdal_rasterize perfomance?

2009-09-17 Thread Hermann Peifer
Frank Warmerdam wrote: This sounds like a heap of processing that needs to be done. You can increase the chunk size on which gdal_rasterize operates by increasing the GDAL_CACHEMAX config option. I would suggest sizing it to be roughly 1/3 of your machine RAM. eg. gdal_rasterize --config

Re: [gdal-dev] How to improve gdal_rasterize perfomance?

2009-09-17 Thread Frank Warmerdam
Hermann Peifer wrote: Frank Warmerdam wrote: This sounds like a heap of processing that needs to be done. You can increase the chunk size on which gdal_rasterize operates by increasing the GDAL_CACHEMAX config option. I would suggest sizing it to be roughly 1/3 of your machine RAM. eg.

[gdal-dev] DIPA BISWAS wants to chat

2009-09-17 Thread DIPA BISWAS
--- DIPA BISWAS wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-737570-9bed6926fd-655bc167fb201c3d You'll need to

[gdal-dev] GDALGetProjectionRef(...) problem on filetype JPEG and BMP

2009-09-17 Thread alex
Good day. I encountered the following problem using GDAL. GDALGetProjectionRef(...) works with file formats TIF, but JPG and BMP returns an empty string. Used as: There have been downloaded sources from http://download.osgeo.org/gdal/gdal162.zip Sources was built using Visual Studio

[gdal-dev] simple listing of layers by OGR

2009-09-17 Thread Yilmaz Arslanoglu
Hello everybody; First of all, I would like to say that I am quite new in S-57 format and GDAL/OGR libraries. As a starting point, I downloaded the source codes and built the whole GDAL library on my computer, using the nmake of Visual Studio 2008. Now: poDS = OGRSFDriverRegistrar::Open(

[gdal-dev] converting ascci to geotiff

2009-09-17 Thread Riki Tiki
Hi, Phase 1) let's assume i convert the geotiff - file1.tif to ascii grid file - file2.txt... Phase 2) later on i change some of the values of file2.txt, now i want to again convert the file2.txt (with changed data part...) to geotiff with the projection information of file1.tif... Can you

[gdal-dev] gdal_rasterize not masking float data

2009-09-17 Thread Ned Horning
Hi - I am trying to use a shapefile as a mask for a 32-bit float single band image in ERDAS img format. When I view the result after running gdal_rasterize it does not appear to have changed the values in the image that correspond with the polygons in the shapefile. When I converted the image

[gdal-dev] Re: converting ascci to geotiff

2009-09-17 Thread Hermann Peifer
Riki Tiki wrote: Hi, Phase 1) let's assume i convert the geotiff - file1.tif to ascii grid file - file2.txt... Phase 2) later on i change some of the values of file2.txt, now i want to again convert the file2.txt (with changed data part...) to geotiff with the projection information of

Re: [gdal-dev] gdal_rasterize not masking float data

2009-09-17 Thread Ned Horning
I found out what the problem is. I did not delete the pyramid (.rrd) file associated with the image. As you know gdal_rasterize does not change that file so when I displayed the processed image in ERDAS the viewer was still accessing the old (unchanged) pyramid images. I zoomed in but not

Re: [gdal-dev] converting ascci to geotiff

2009-09-17 Thread Joaquim Luis
Riki Tiki wrote: Hi, Phase 1) let's assume i convert the geotiff - file1.tif to ascii grid file - file2.txt... Phase 2) later on i change some of the values of file2.txt, now i want to again convert the file2.txt (with changed data part...) to geotiff with the projection information of

Re: [gdal-dev] Re: converting ascci to geotiff

2009-09-17 Thread Frank Warmerdam
Hermann Peifer wrote: Riki Tiki wrote: Hi, Phase 1) let's assume i convert the geotiff - file1.tif to ascii grid file - file2.txt... Phase 2) later on i change some of the values of file2.txt, now i want to again convert the file2.txt (with changed data part...) to geotiff with the

[gdal-dev] (no subject)

2009-09-17 Thread Riki Tiki
@Frank and Hermann: Thanks a lot! My other question is as follows: 1) gdal_translate -of AAIGrid a.tif a.asc it creates the following: a.asc (ASC File), a.asc.aux (XML Document), and a (IDL project file)... now to do the reverse i do the following: 2) gdal_translate -of GTiff a.asc a.tif it

[gdal-dev] Re:

2009-09-17 Thread Frank Warmerdam
Riki Tiki wrote: @Frank and Hermann: Thanks a lot! My other question is as follows: 1) gdal_translate -of AAIGrid a.tif a.asc it creates the following: a.asc (ASC File), a.asc.aux (XML Document), and a (IDL project file)... Riki, Not that the .prj file is not an IDL project file, it is an

[gdal-dev] getting statistics of GTiff precomputed

2009-09-17 Thread Riki Tiki
Jason, In my case I have no problems with no data values... ArcGIS sees them right. I don't know whether this is important or not... 1) When i convert raster to ascii using ArcGIS it writes no data value as -. 2) When i convert the same raster to ascii using gdal_translate, my no data

Re: [gdal-dev] Re:

2009-09-17 Thread Frank Warmerdam
Jason Roberts wrote: Riki, Please let us know whether Frank's suggestion works or not. I have been experimenting with writing GeoTIFFs using GDAL 1.6.0 and the Python bindings and have not been successful so far at using GDAL to calculate statistics that ArcGIS recognizes. It would be

Re: [gdal-dev] simple listing of layers by OGR

2009-09-17 Thread Frank Warmerdam
Yilmaz Arslanoglu wrote: Hello everybody; First of all, I would like to say that I am quite new in S-57 format and GDAL/OGR libraries. As a starting point, I downloaded the source codes and built the whole GDAL library on my computer, using the nmake of Visual Studio 2008. Now: poDS =

Re: [gdal-dev] pixel/line mapping for two images.

2009-09-17 Thread Christopher Barker
Belaid MOA wrote: I wrote a GDAL C++ code that solves the following simple problem: take two images, a source image with spatial resolution 25mx25m (high resolution) and a destination image with spatial resolution 1mx1m (low resolution) and scale the source image so that the values of

RE: [gdal-dev] Re:

2009-09-17 Thread Jason Roberts
\CalculateStatistics Date=20090917 Time=171630CalculateStatistics C:\Temp2\sst2004d.tif 1 1 # C:\Temp2\sst2004d.tif/Process/lineage/DataProperties/Esri/metadata Given that the .tif itself was not touched, it seems that the statistics were stored in the .aux file. If this is true, do you think ArcGIS will pay

Re: [gdal-dev] Re:

2009-09-17 Thread Frank Warmerdam
Jason Roberts wrote: Given that the .tif itself was not touched, it seems that the statistics were stored in the .aux file. If this is true, do you think ArcGIS will pay attention to the .aux.xml file that GDAL will generate? I don't know much about this stuff so your guess is better than mine.

[gdal-dev] clarifications anout gdal_wms, tilecache and gdaltindex

2009-09-17 Thread G. Allegri
Hello list I'm facing for the first time the need of serving a big raster dataset continuum though a Mapserver wms service. The data source, at the moment, is an ArcIms service (this comes for various reasons). I've considered two options to tile, cache and serve it: - use gdaltindex to use the

Re: [gdal-dev] Recent Windows binaries?

2009-09-17 Thread Christopher Barker
Tamas Szekeres wrote: You may get the most recent versions compiled daily from the development and stable branches from this location http://vbkto.dyndns.org:1280/sdk/ Thanks, it took a bit of manipulating, as those are not installed quite the same way. Also, port 1280 is blocked by our

Re: [gdal-dev] pixel/line mapping for two images.

2009-09-17 Thread Chris Barker
Belaid MOA wrote: I do not see how gdal_wrap could be used to find the pixels in the source image that map to the same pixel in the destination image? sorry for the typo, that's gdalwarp My point was not that you could use it to find the pixels, but that you could use it to do the whole

RE: [gdal-dev] pixel/line mapping for two images.

2009-09-17 Thread Belaid MOA
Thank you very much Chris. I will take a look at lanczons method and check whether I could use it to solve my simple problem once for all. With best regards. ~Belaid. Date: Thu, 17 Sep 2009 15:56:33 -0700 From: chris.bar...@noaa.gov Subject: Re: [gdal-dev] pixel/line mapping for two images.

[gdal-dev] Any known issues with geoserver GDAL NITF plugin crashing Java in Geoserver?

2009-09-17 Thread Boyd, David W.
All: First, I apologize if this is too much a newbie post, but I need to know if I can make this work or need to find another tact. I have some NGA Raster Product Format (RPF) data. I have ~45K NITF files in this data set. All use the NGA standard compression for RPF. I have set these up as