Re: [gdal-dev] Intersection of two Layers

2016-01-18 Thread Ari Jolma
18.01.2016, 11:56, Kai Muehlbauer kirjoitti: Hi, at the moment I calculate the intersection of two OGR Layers (A, B) by iterating over features/geometries (GA) of layer A and then calling GA.Intersection(GB) for every Feature/Geometry (GB) of B. I set a spatial filter for layer B with every G

Re: [gdal-dev] GDAL license and copyright

2016-01-18 Thread Greg Troxel
Aaron Boxer writes: > I am trying to learn more about how open source projects manage > copyright of contributors. I see that various GDAL files have > different copyright assignees, although they all use the MIT license. (I'm not trying to counter anything Evan said; he is not only an authori

Re: [gdal-dev] OpenJPEG tiled encoding

2016-01-18 Thread Aaron Boxer
On Mon, Jan 18, 2016 at 5:14 PM, Even Rouault wrote: > Le lundi 18 janvier 2016 22:41:38, Aaron Boxer a écrit : > > Hello, > > > > It looks like OpenJPEG tiled encoding is broken for non power of 2 > images. > > This seems to be quite an old bug. > > I don't reproduce that. For example, the follo

Re: [gdal-dev] OpenJPEG tiled encoding

2016-01-18 Thread Even Rouault
Le lundi 18 janvier 2016 22:41:38, Aaron Boxer a écrit : > Hello, > > It looks like OpenJPEG tiled encoding is broken for non power of 2 images. > This seems to be quite an old bug. I don't reproduce that. For example, the following works : gdal_translate ../autotest/gdrivers/data/utm.tif out.jp

[gdal-dev] OpenJPEG tiled encoding

2016-01-18 Thread Aaron Boxer
Hello, It looks like OpenJPEG tiled encoding is broken for non power of 2 images. This seems to be quite an old bug. Does this type of encoding get used in GDAL ? Or are all images power of 2 dimensions. Thanks, Aaron ___ gdal-dev mailing list gdal-dev

Re: [gdal-dev] map info and projections from GeoTIFF file to create ENVI header

2016-01-18 Thread Dmitry Baryshnikov
Oh, I'm confused MapInfo and ENVI map info. In your case you need to form this string by yourself using values from OGRSpatialReference methods. Also take a look to https://github.com/OSGeo/gdal/blob/trunk/gdal/frmts/raw/envidataset.cpp Best regards, Dmitry 19.01.2016 00:33, ngu...@jlab.

Re: [gdal-dev] map info and projections from GeoTIFF file to create ENVI header

2016-01-18 Thread nguler
Dmitry, After doing this, I following your suggested steps, I get the string: Earth Projection 8, 104, "m", -69, 0, 0.9996, 50, 0 Bit, the map info string I need to use looks like this: map info = {UTM, 1, 1, 145185, 2189715, 30, 30, 19, North} I tried other ExportTo functions but none giv

Re: [gdal-dev] GDAL license and copyright

2016-01-18 Thread Aaron Boxer
On Mon, Jan 18, 2016 at 2:22 PM, Even Rouault wrote: > Le lundi 18 janvier 2016 19:59:01, Aaron Boxer a écrit : > > Hello, > > > > I am trying to learn more about how open source projects manage copyright > > of contributors. > > I see that various GDAL files have different copyright assignees, >

Re: [gdal-dev] GDAL license and copyright

2016-01-18 Thread Even Rouault
Le lundi 18 janvier 2016 19:59:01, Aaron Boxer a écrit : > Hello, > > I am trying to learn more about how open source projects manage copyright > of contributors. > I see that various GDAL files have different copyright assignees, although > they all use the MIT > license. > > Is this difficult t

[gdal-dev] GDAL license and copyright

2016-01-18 Thread Aaron Boxer
Hello, I am trying to learn more about how open source projects manage copyright of contributors. I see that various GDAL files have different copyright assignees, although they all use the MIT license. Is this difficult to manage? For example, if GDAL is packaged for a distribution such as Fedor

Re: [gdal-dev] map info and projections from GeoTIFF file to create ENVI header

2016-01-18 Thread Dmitry Baryshnikov
Hi Nevzat, you need to get spatial reference from GDALDataset (via GetProjectionRef http://gdal.org/classGDALDataset.html#aa42537e1062ce254d124b29ff3ebe857) and convert it to OGRSpatialReference. Than use exportToMICoordSys to get MI CRS string. http://gdal.org/classOGRSpatialReference.html#

Re: [gdal-dev] map info and projections from GeoTIFF file to create ENVI header

2016-01-18 Thread nguler
It is solved. Thank you very much Even and Dmitry for your helps. I have missed the GDAL_DATA variable and it caused me all that trouble. Now I need to get the map info string: map info = {UTM, 1, 1, 145185, 2189715, 30, 30, 19, North,WGS-84} Using hDS->GetGeoTransform(adfGeoTransform) does not g

Re: [gdal-dev] map info and projections from GeoTIFF file to create ENVI header

2016-01-18 Thread nguler
Yes, Thank you Even, I was missing the GDAL_DATA environmental variable. Now I get the same gdalinfo output. Do I need to set this variable while using the C++ classes you suggested before: GetGeoTransform and GetProjectionRef()..? Because, there also I had the same problem. Best regards, - Nevzat

Re: [gdal-dev] map info and projections from GeoTIFF file to create ENVI header

2016-01-18 Thread Even Rouault
Le lundi 18 janvier 2016 17:13:14, ngu...@jlab.org a écrit : > Dmitry and All, > I just downloaded the set of tiff files from earthexplorer and run gdalinfo > on it. Please see below. I am missing some fields in the output > information. It is different from what you got. I don't know what can > ca

Re: [gdal-dev] map info and projections from GeoTIFF file to create ENVI header

2016-01-18 Thread nguler
Dmitry and All, I just downloaded the set of tiff files from earthexplorer and run gdalinfo on it. Please see below. I am missing some fields in the output information. It is different from what you got. I don't know what can cause this? My gdalinfo.exe is not good? Any idea? C:\Cubes\LC8008047201

[gdal-dev] Intersection of two Layers

2016-01-18 Thread Kai Muehlbauer
Hi, at the moment I calculate the intersection of two OGR Layers (A, B) by iterating over features/geometries (GA) of layer A and then calling GA.Intersection(GB) for every Feature/Geometry (GB) of B. I set a spatial filter for layer B with every GA. The intersections features/geometries are

[gdal-dev] gdal_proximity: possible bug

2016-01-18 Thread Filipe Dias
Hi, I used gdal_proximity on a raster and did not pass the "Values" parameter because in the help file it said " all non-zero pixels will be considered target pixels.". The result was an incorrect Distances raster. Afterwards I set the "Values" parameter and it worked as expected. I reported this

Re: [gdal-dev] RPC

2016-01-18 Thread Even Rouault
Le lundi 18 janvier 2016 08:39:06, Surya Prakash a écrit : > Hi ALL, > I have some imagery associated with RPC files. The locational accuracy of > the images defined by the RPCs is quite poor and I would like to update > the RPCs by using some additional GCPs. How to do this, Please guide me. You

[gdal-dev] RPC

2016-01-18 Thread Surya Prakash
Hi ALL, I have some imagery associated with RPC files. The locational accuracy of the images defined by the RPCs is quite poor and I would like to update the RPCs by using some additional GCPs. How to do this, Please guide me. Thanks & regards SPR___ g