Re: [gdal-dev] GCPsToGeoTransform returns wrong values

2015-11-19 Thread Bar Ori
dy to hear if there is a better solution. From: gdal-dev [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Bar Ori Sent: 18 November 2015 13:18 To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] GCPsToGeoTransform returns wrong values I found in did that the GDALGCPsToGeoTransform using

Re: [gdal-dev] GCPsToGeoTransform returns wrong values

2015-11-18 Thread Bar Ori
* padfGeoTransform[1]; in this case, the question is what is the best practice for the problem I published (sometimes rectangle, sometimes not). From: gdal-dev [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Bar Ori Sent: 18 November 2015 12:00 To: Ari Jolma Cc: gdal-dev@lists.osgeo.org Subject: Re

Re: [gdal-dev] GCPsToGeoTransform returns wrong values

2015-11-18 Thread Bar Ori
eturns the exact transform the dataset has. I'm not sure if it makes sense to have real values for the pixel coordinates although they are real values. Best, Ari On 18.11.2015 09:32, Bar Ori wrote: Hi, I noticed something that for me looks weird and I would like to know maybe I am doing some

[gdal-dev] GCPsToGeoTransform returns wrong values

2015-11-17 Thread Bar Ori
Hi, I noticed something that for me looks weird and I would like to know maybe I am doing something wrong. If not, how should I overcome this behavior. I set 4 GCPs as follows: var gcps = new[] { new GCP(LeftUp.X, LeftUp.Y, LeftUp.Z, 0.5, 0.5, null, "1"), new GCP(RightUp.X, RightUp.Y, RightUp.Z,

[gdal-dev] GetGCPs returns null

2015-11-16 Thread Bar Ori
Hi all, I wanted some explanations please about how to work with the GCPs. I have an image and I want to save its corners coordinates (not a rectangle) as GCPs and not using the SetGeoTransform method which takes the upper-left coordinate and creates a rectangle based on it. I accomplished it usi

[gdal-dev] Rotated image

2015-11-08 Thread Bar Ori
Hello, According to GDAL API tutorial: "In the particular, but common, case of a "north up" image without any rotation or shearing, the georeferencing transform takes the following form ..." In case I don't want to be limited to "north up", is there any advanced option to save rotation informati

[gdal-dev] NITF - EDIT TRE

2015-10-08 Thread Bar Ori
Hi all, I created a NITF file with my own TRE (not registered). Until here, everything is alright and I also getting the content of it using GetMetadataItem(). The problem is when I create a copy of the file on purpose to edit the data of the TRE. I tried, as I do with the metadata, to use the cr

Re: [gdal-dev] NSIF with GDAL

2015-08-31 Thread Bar Ori
s gone, at least by opening with FWTool. -Original Message- From: Even Rouault [mailto:even.roua...@spatialys.com] Sent: Monday, 31 August 2015 14:01 To: Bar Ori Cc: gdal-dev@lists.osgeo.org; Ben Saraf Omer Subject: Re: [gdal-dev] NSIF with GDAL Le lundi 31 août 2015 12:51:17, Bar O

Re: [gdal-dev] NSIF with GDAL

2015-08-31 Thread Bar Ori
do I add it as part of my nsf file without any aux.xml file? Is there any documentation how to work with the TRE? -Original Message- From: Even Rouault [mailto:even.roua...@spatialys.com] Sent: Monday, 31 August 2015 13:25 To: Bar Ori Cc: gdal-dev@lists.osgeo.org; Ben Saraf Omer Subject:

Re: [gdal-dev] NSIF with GDAL

2015-08-31 Thread Bar Ori
exists? Thanks, Ori. -Original Message- From: Even Rouault [mailto:even.roua...@spatialys.com] Sent: Monday, 31 August 2015 12:42 To: Bar Ori Cc: gdal-dev@lists.osgeo.org; Ben Saraf Omer Subject: Re: [gdal-dev] NSIF with GDAL Le lundi 31 août 2015 11:21:51, vous avez écrit : > Hi

Re: [gdal-dev] NSIF with GDAL

2015-08-31 Thread Bar Ori
additional information that is not part of NITF (my metadata is relevant to NSIF - STANAG 4545). -Original Message- From: Even Rouault [mailto:even.roua...@spatialys.com] Sent: Monday, 31 August 2015 12:13 To: gdal-dev@lists.osgeo.org Cc: Bar Ori; Ben Saraf Omer Subject: Re: [gdal-dev

[gdal-dev] NSIF with GDAL

2015-08-31 Thread Bar Ori
Hello, I have a purpose to create a file in format of NSIF. As far as understood, I need to use the NITF driver and set the metadata which is relevant to NSIF. I tried to work with GDAL to make it, but noticed that the metadata is saved on a "aux.xml" file. When I remove this file or when set the