Re: [gdal-dev] NITF Chip

2013-06-14 Thread Even Rouault
Le lundi 10 juin 2013 22:43:52, Baker, Anthony W a écrit : > One possible answer seems to be to use ICHIP_OP_**_** and ICHIP_FI_**_** > > Using the _OP_ metadata I form a row-wise 2x2 projection matrix with _12 - > _11 as one row and _21 - _11 as the other. With _FI_ I form a column-wise > 2x2 p

[gdal-dev] NITF Chip

2013-06-13 Thread Baker, Anthony W
Hi All, I posted a few days ago about trying to find the transform for a NITF chip, for instance to map from the chip pixel coordinates to geo coordinates. I was able to come close in terms of my mapping but it does not seem to match with other sources that are interpreting the data. Would so

Re: [gdal-dev] NITF Chip

2013-06-11 Thread Baker, Anthony W
Yes, after I sent it I relieved that I was wrong about the RPC. I did follow up with what I think is a better way although I am not sure it works perfectly. For example ArcMap's visualization does not line up with my points :-S Would love to hear back what a better way would be. Anthony ___

Re: [gdal-dev] NITF Chip

2013-06-10 Thread Even Rouault
Le lundi 10 juin 2013 18:13:47, Baker, Anthony W a écrit : > I have a NITF file which I can read fine with GDAL. The issue that it is a > chip and using the transformation to determine geolocations fails (for > example finding the chip's four corners). Instead of placing a point > based on the ch

Re: [gdal-dev] NITF Chip

2013-06-10 Thread Baker, Anthony W
double a1, a2; a1 = -(m11*op11c + m12*op11r) + fi11c; a2 = -(m21*op11c + m22*op11r) + fi11r; ST[0] = a1; ST[3] = a2; ST[1] = m11; ST[2] = m12; ST[4] = m21; ST[5] = m22; From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Baker, Anthony W Sent: Monda

[gdal-dev] NITF Chip

2013-06-10 Thread Baker, Anthony W
I have a NITF file which I can read fine with GDAL. The issue that it is a chip and using the transformation to determine geolocations fails (for example finding the chip's four corners). Instead of placing a point based on the chip, it places it based on the whole image. I can read the metad