[gdal-dev] Geotransform - rotation and translation

2013-08-26 Thread Oyvind Idland
I am currently working on a driver for a proprietary format, which is being consumed by ArcGis via GDAL. These grids sometimes has a rotation with a specified pivot point. I managed to get ArcGis to display the rotated grid by doing the following: poDS-dGeoTransform[0] = originX;

[gdal-dev] Errors reading jpegs

2013-06-24 Thread Oyvind Idland
I got a tiled dataset from a client, consisting of 8 jpegs + jpw's. These are used in a .vrt, and I get the following error: IReadBlock failed at X offset 0, Y offset 73. I get the same errors when testing the .jpegs individually aswell. When stepping into the GDAL code, I can see that the first

Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-21 Thread Oyvind Idland
Whoever comes up with an idea to directly drive his app GUI with a library such as GDAL should leave his desk, go fishing for as long as it takes him to come back with solution on his app side. Not sure what you mean by drive the app GUI here. I think the main point here is to get metadata

[gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-19 Thread Oyvind Idland
Is it possible to specify multiple file extensions in GDAL_DMD_EXTENSION ? I ask because I am working on a driver for a format that has several known file extensions. - Oyvind ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-19 Thread Oyvind Idland
be beneficial to extend this definition for multiple extensions separated by comma. cheers Etienne On Tue, Feb 19, 2013 at 11:26 AM, Frank Warmerdam warmer...@pobox.com wrote: I am not aware of a way to list multiple extensions. Best regards, On Feb 19, 2013 2:15 AM, Oyvind Idland

Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-19 Thread Oyvind Idland
People *usually* want a list of extensions so they can automatically categorize the format of files on disk or to filter to only show extensions they think GDAL supports. I find this practice abhorrent! GDAL is based on the idea that file formats are discovered by inspecting file contents

Re: [gdal-dev] Forces SRS into VRT ? (gdalbuildvrt)

2012-10-02 Thread Oyvind Idland
Hi Even, thanks ! :) - Oyvind On Mon, Oct 1, 2012 at 11:26 PM, Even Rouault even.roua...@mines-paris.orgwrote: Le lundi 01 octobre 2012 16:07:15, Oyvind Idland a écrit : Hello, is it possible to force an SRS into a .vrt in some way, during creation ? (except manually copying

[gdal-dev] Forces SRS into VRT ? (gdalbuildvrt)

2012-10-01 Thread Oyvind Idland
Hello, is it possible to force an SRS into a .vrt in some way, during creation ? (except manually copying into the .vrt) In my case, I got a tiled dataset in .jpeg, with no SRS information attached. Since I know the projection, I am looking for an -a_srs or similar. - Oyvind

[gdal-dev] Reprojecting a tiled dataset

2012-05-18 Thread Oyvind Idland
Hello, i have a set of GeoTIFF tiles, that I want to reproject into a new set of tiles. So far I have the following strategy: 1) create a VRT from the existing tiles 2) make a script that creates new tiles, one by one using gdalwarp. Is there a better way of doing this ? - Oyvind

[gdal-dev] Re: Reprojecting a tiled dataset

2012-05-18 Thread Oyvind Idland
In case anybody else is trying this, my plan worked out well. I found that doing it via a Python script was the best way, as I added some code to reproject the source extent to destination, calculating the new tiles etc. -- Oyvind On Fri, May 18, 2012 at 10:34 AM, Oyvind Idland oyvind.idl

[gdal-dev] WFS client - missing namespace in filter

2012-05-16 Thread Oyvind Idland
, Oyvind Idland ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Re: WFS client - missing namespace in filter

2012-05-16 Thread Oyvind Idland
Sorry, forget about that one, it seems to be fixed by now in trunk. Thanks ! -- Oyvind On Wed, May 16, 2012 at 10:10 AM, Oyvind Idland oyvind.idl...@gmail.comwrote: Hello, there is a minor bug in the filter submitted by WFS GET requests: The wfs namespace is missing. The current

Re: [gdal-dev] Re: WFS client - missing namespace in filter

2012-05-16 Thread Oyvind Idland
Even, my bad, correct.. its ogc, not wfs. -- Oyvind On Wed, May 16, 2012 at 1:25 PM, Even Rouault even.roua...@mines-paris.orgwrote: Selon Oyvind Idland oyvind.idl...@gmail.com: Sorry, forget about that one, it seems to be fixed by now in trunk. Actually, this was already fixed in GDAL

Re: [gdal-dev] WFS - OGRLayer GetNextFeature - fails

2012-05-15 Thread Oyvind Idland
There is another problem with the Filter in OGR when dealing with WFS 1.1.0: The wfs namespace is missing. The current implementation sends Filter xmlns:gml=http://www.opengis.net/gml; but should be Filter xmlns=http://www.opengis.net/wfs; xmlns:gml= http://www.opengis.net/gml; Since I am

[gdal-dev] Fastest way of reprojecting from VRT ?

2012-04-13 Thread Oyvind Idland
I am currently using GDAL 1.8.0, and have found that reprojecting VRT datasets can be incredibly slow (several minutes in my case). I believe there are bugs/tickets related to this issue. I am only interested in reprojecting arbitrary datasets (or portions of it) into a screen size window, on the

Re: [gdal-dev] Fastest way of reprojecting from VRT ?

2012-04-13 Thread Oyvind Idland
-paris.org følgende: Selon Oyvind Idland oyvind.idl...@gmail.com: I am currently using GDAL 1.8.0, and have found that reprojecting VRT datasets can be incredibly slow (several minutes in my case). I believe there are bugs/tickets related to this issue. I am only interested in reprojecting

[gdal-dev] VRT - using 8BPP palettized tiles

2012-04-11 Thread Oyvind Idland
Hello, I am fiddling with some old scanned (handmade) maps. In order to reduce the size of the data, and since the maps has a limited amount of colors, i figured that using palettized 8BPP tiffs would be suitable in this case. I got several tiles that make up the whole area, using rgb(0,0,0) as

Re: [gdal-dev] VRT - using 8BPP palettized tiles

2012-04-11 Thread Oyvind Idland
value is the index of the color component to extract : 1 for the red band, 2 for the green band, 3 for the blue band or 4 for the alpha band. [1]: http://www.gdal.org/gdal_vrttut.html On Wed, Apr 11, 2012 at 1:27 PM, Oyvind Idland oyvind.idl...@gmail.comwrote: Hello, I am fiddling

[gdal-dev] VRT and overviews

2012-04-04 Thread Oyvind Idland
How do I get overviews to work with VRT datasets ? What I do is - creating a .vrt with additional alpha band + nodata using gdalbuildvrt (wrapping an existing TIFF) - creating overviews using gdaladdo. I then get an external .ovr file. - creating a new TIFF from the VRT First, it seems that

Re: [gdal-dev] VRT and overviews

2012-04-04 Thread Oyvind Idland
Ok, thanks, good to know. -- oyvind On Wed, Apr 4, 2012 at 3:24 PM, Dmitry Baryshnikov poli...@mail.ru wrote: 04.04.2012 16:57, Oyvind Idland написал: How do I get overviews to work with VRT datasets ? What I do is - creating a .vrt with additional alpha band + nodata using gdalbuildvrt

Re: [gdal-dev] Most optimal way of using tiles ?

2012-04-03 Thread Oyvind Idland
? To: Oyvind Idland oyvind.idl...@gmail.com Hy, you can use gdaladdo --config COMPRESS_OVERVIEW [DEFLATE | JPEG] to create compressed overview. And then you can use gdalbuildvrt or gdaltindex to build an index of the files. 2012/4/2, Oyvind Idland oyvind.idl...@gmail.com: Hello, I got

[gdal-dev] Masking issue

2012-04-03 Thread Oyvind Idland
Hello, I got one problem: I have a bunch of uncompressed TIFF tiles, which I am converting to compressed GeoTiff. I would like to mask away the rgb(0,0,0) values. However, when I use NODATA on my VRT dataset, there are JPEG artifacts around the edges when rendering. Is it possible to generate

Re: [gdal-dev] Masking issue

2012-04-03 Thread Oyvind Idland
at 5:26 PM, Oyvind Idland oyvind.idl...@gmail.comwrote: Hello, I got one problem: I have a bunch of uncompressed TIFF tiles, which I am converting to compressed GeoTiff. I would like to mask away the rgb(0,0,0) values. However, when I use NODATA on my VRT dataset, there are JPEG artifacts

[gdal-dev] Most optimal way of using tiles ?

2012-04-02 Thread Oyvind Idland
Hello, I got a huge dataset consisting of about 100 uncompressed TIFF's, each with size 12599 X 9449 pixels with RGB bands. Note, that the TIFF's are not georef'ed, instead there are .tfw's following each file. Also, since they are about 350 MB each, I guess converting them to a compressed format

Re: [gdal-dev] GDAL 1.8.0 and MrSid no-data values

2011-05-16 Thread Oyvind Idland
, so what you describe would be expected in that case. *From:* gdal-dev-boun...@lists.osgeo.org [mailto: gdal-dev-boun...@lists.osgeo.org] *On Behalf Of *Oyvind Idland *Sent:* vendredi 13 mai 2011 04:28 *To:* gdal-dev@lists.osgeo.org *Subject:* [gdal-dev] GDAL 1.8.0 and MrSid no-data values

[gdal-dev] GDAL 1.8.0 and MrSid no-data values

2011-05-13 Thread Oyvind Idland
Hi, I just updated to 1.8.0 from 1.7, using the MrSid DSDK 8.0. In order to handle transparency, i have until now used the metadata values from IMAGE__NO_DATA_VALUE, and simply masked away pixels. After upgrading, the IMAGE__NO_DATA_VALUE yields nothing, neither is it listed when using

Re: [gdal-dev] libecwj2 ?

2010-12-15 Thread Oyvind Idland
But there are a few changes you would need to do in order to compile the GDAL/ECW driver because the path and library names has changed. Regards, Ivan ---Original Message--- From: Oyvind Idland oyvind.idl...@gmail.com To: gdal-dev@lists.osgeo.org Subject: [gdal-dev

Re: [gdal-dev] libecwj2 ?

2010-12-15 Thread Oyvind Idland
:\gdalinfo --format ecw Format Details: Short Name: ECW Long Name: ERMapper Compressed Wavelets Extension: ecw Help Topic: frmt_ecw.html C:\gdalinfo --version GDAL 1.7.3, released 2010/11/10 Regards, Ivan ---Original Message--- From: Oyvind Idland oyvind.idl

[gdal-dev] libecwj2 ?

2010-12-14 Thread Oyvind Idland
Hello, i am compiling GDAL from source, and need the ECW as plugin. The package is mentioned on the site, libecwj2-3.3-2006-09-06.zip, is this a package from ERDAS ? I tried to find some info about it on their site, but found nothing.. I found a couple of other download links, so I can at least

[gdal-dev] NoData vs metadata confusion

2010-10-28 Thread Oyvind Idland
. Regards, Oyvind Idland ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] NoData vs metadata confusion

2010-10-28 Thread Oyvind Idland
for future releases. On Thu, Oct 28, 2010 at 4:21 PM, Oyvind Idland oyvind.idl...@gmail.comwrote: Hello, stumbled across a problem when reading MrSid: The MrSid dataset contains 3 bands, R/G/B. None of the 3 bands gives me a GetNoDataValue(), however, the metadata contains

[gdal-dev] WMS bands - no color interpretation ?

2010-09-24 Thread Oyvind Idland
Hi, i am fiddling around a bit with GDAL. I can successfully load GeoTIFF files etc, but when trying with the WMS driver, something strange happens: Opening the example frmt_wms_onearth_global_mosaic.xml works fine. I query for bands, and get 3. When calling band-GetColorInterpretation(), I get

[gdal-dev] The 2.5D geometry proposal

2010-09-16 Thread Oyvind Idland
/CompoundCurve etc). regards, Oyvind Idland ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev