Re: [gdal-dev] S-57 Driver WRONG Geometry

2010-05-31 Thread Bogdan Grama
I guess is a commodity. The authority has sevencs production software. So, if it “looks ok” in that software “never mind the others”. Until Frank implemented the modification I’ve recomposed myself the geometry. But there is no way other than visual to decide if I should draw edge by edge or a

Re: [gdal-dev] S57 questions

2010-05-31 Thread Frank Warmerdam
ogr user wrote: This patch does not do anything regarding direction of winding. What it does is - discover the exterior ring for a polygon, and make it the first ring in the polygon object. This was in response to your earlier comment that said "The S-57 driver uses OGRBuildPolygonFromEdges() to

[gdal-dev] Removing usgs quads collars using gdal tools.

2010-05-31 Thread Hemant Bist
Hi, I am trying to create map tiles from the 'standard' USGS geotiffs using gdal2tiles.py e.g. ( http://www.archive.org/download/usgs_drg_ca_37119_g5/o37119g5.tif). However I am unable to remove the extra border/collar that comes with these scanned tiff. Does anyone know how can I generate the t

Re: [gdal-dev] S57 questions

2010-05-31 Thread ogr user
This patch does not do anything regarding direction of winding. What it does is - discover the exterior ring for a polygon, and make it the first ring in the polygon object. This was in response to your earlier comment that said "The S-57 driver uses OGRBuildPolygonFromEdges() to form the set of l

Re: [gdal-dev] S57 questions

2010-05-31 Thread Frank Warmerdam
ogr user wrote: Dear all and Frank, I sent this patch out a few times before - never got any replies. It's ok if you are not interested, though I have to say that it works very well for me and improved handling of data. However, would someone kindly confirm that you have looked at this patch, a

Re: [gdal-dev] S57 questions

2010-05-31 Thread ogr user
Dear all and Frank, I sent this patch out a few times before - never got any replies. It's ok if you are not interested, though I have to say that it works very well for me and improved handling of data. However, would someone kindly confirm that you have looked at this patch, acknowledged it and

Re: [gdal-dev] S-57 Driver WRONG Geometry

2010-05-31 Thread ogr user
Sevencs succeed in many other aspects where others fail. For example, they will actually parse and show older Netherlands chart data (I still have a few cells from a year ago), which encoded polygon edges using multiple SG2D fields, rather than a single SG2D field with multiple values. Not only th

Re: [gdal-dev] Howto change geo transform parameters in dataset.

2010-05-31 Thread Oliver Eichler
> > Updating the geotransform should work in-place for GeoTIFF format. This > may be a relatively new feature. I will note that the file needs to be > open in update mode. So if opening an existing file use GA_Update as > the access mode. > Arrgh, GA_Update! Stupid me. I was so focused on how

Re: [gdal-dev] Howto change geo transform parameters in dataset.

2010-05-31 Thread Frank Warmerdam
Oliver Eichler wrote: Am 31.05.2010 19:13, schrieb Frank Warmerdam: Oliver Eichler wrote: Hi, I would like to change the offset of a referenced file. I use GDALDataset::GetGeoTransform(adfGeoTransform) to read the current settings. I change adfGeoTransform[0] and adfGeoTransform[3] and use GDA

Re: [gdal-dev] Which ONE image in a .vrt is currently being displayed?

2010-05-31 Thread Frank Warmerdam
Greg Coats wrote: With GDAL 1.7.2, released 2010/04/23, I used gdalbuildvrt to build a .vrt file that points to 726 GeoJPEG2000 images. Then, I use QGIS 1.5.0, release 13519M to pan and zoom through these images. When zoomed in, how do I get Qgis to identify which ONE of the raster images in the

Re: [gdal-dev] Which ONE image in a .vrt is currently being displayed?

2010-05-31 Thread Even Rouault
You can't. Because of the meaning of the 'A' in GDAL, a VRT is seen as a single raster for any user of GDAL API. A dedicated function should be created in QGIS to parse the VRT XML and make sense of it for what you wish. Le Monday 31 May 2010 19:47:17 Greg Coats, vous avez écrit : > With GDAL 1.

[gdal-dev] Which ONE image in a .vrt is currently being displayed?

2010-05-31 Thread Greg Coats
With GDAL 1.7.2, released 2010/04/23, I used gdalbuildvrt to build a .vrt file that points to 726 GeoJPEG2000 images. Then, I use QGIS 1.5.0, release 13519M to pan and zoom through these images. When zoomed in, how do I get Qgis to identify which ONE of the raster images in the .vrt file is curr

Re: [gdal-dev] Howto change geo transform parameters in dataset.

2010-05-31 Thread Oliver Eichler
Am 31.05.2010 19:13, schrieb Frank Warmerdam: > Oliver Eichler wrote: >> Hi, >> >> I would like to change the offset of a referenced file. I use >> GDALDataset::GetGeoTransform(adfGeoTransform) to read the current >> settings. I change adfGeoTransform[0] and adfGeoTransform[3] and use >> GDALDatase

Re: [gdal-dev] Howto change geo transform parameters in dataset.

2010-05-31 Thread Frank Warmerdam
Oliver Eichler wrote: Hi, I would like to change the offset of a referenced file. I use GDALDataset::GetGeoTransform(adfGeoTransform) to read the current settings. I change adfGeoTransform[0] and adfGeoTransform[3] and use GDALDataset::SetGeoTransform(adfGeoTransform) to replace the old settings

[gdal-dev] Re: how to new image file or how to send data into the dataset

2010-05-31 Thread Hermann Peifer
On 31/05/2010 10:40, mail2vajram wrote: i need to create a image file. Here i have brightness values of each pixel in a table. by using these values, how can i create an image file. You could add a few header lines to your table, so that it looks like ASCII grid format, see http://en.wikipedi

[gdal-dev] Howto change geo transform parameters in dataset.

2010-05-31 Thread Oliver Eichler
Hi, I would like to change the offset of a referenced file. I use GDALDataset::GetGeoTransform(adfGeoTransform) to read the current settings. I change adfGeoTransform[0] and adfGeoTransform[3] and use GDALDataset::SetGeoTransform(adfGeoTransform) to replace the old settings. Of course that does n

[gdal-dev] Compiling PostGIS + GDAL + WKT Raster in Windows with MinGW

2010-05-31 Thread Jorge Arévalo
Hello, I'm trying to compile WKT Raster [1] in Windows using MinGW 5.1.6. I compiled PostgreSQL 8.4.3, PostGIS 1.4.2 and GDAL 1.7.2 properly following these instructions: http://trac.osgeo.org/gdal/wiki/BuildingWithMinGW (for GDAL) http://trac.osgeo.org/postgis/wiki/UsersWikiWinCompile (for Postg

[gdal-dev] how to new image file or how to send data into the dataset

2010-05-31 Thread mail2vajram
i need to create a image file. Here i have brightness values of each pixel in a table. by using these values, how can i create an image file. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-new-image-file-or-how-to-send-data-into-the-dataset-tp5120971p5120971.html