Re: [gdal-dev] ogr2ogr to convert one CSV row of MULTIPOLYGON to many CSV rows of POLYGON

2019-10-11 Thread jratike80
Hi, Please provide some test data and explain in details what did you try. Spending some time for making an answerable question would certainly be the best way for getting fast and usable help. -Jukka Rahkonen- Simon Eves wrote > Dear List, > > I need to do this super-urgently > > I am tryin

Re: [gdal-dev] ogr2ogr to convert one CSV row of MULTIPOLYGON to many CSV rows of POLYGON

2019-10-11 Thread jratike80
Here is a partial solution or workaround Take this as input id,wkt 1,"MULTIPOLYGON ((( 296 643, 623 660, 531 484, 349 507, 296 643 )), (( 681 635, 895 588, 632 432, 681 635 )))" Run this ogr2ogr -f csv -lco geometry=as_wkt -explodecollections wkt_expl.csv wkt.csv Get this result WKT,id,wkt "P

Re: [gdal-dev] python GDAL issue

2019-10-11 Thread Edson, Adam Robert
I can't make the NITF file available, however the relevant portion of the BANDSB TRE should look like (with the type following in parentheses): RAD_QUANTITY = 'SPECTRAL RADIANCE ' (BCS-A) RAD_QUANTITY_UNIT = 'S' (BCS-A) SCAL

Re: [gdal-dev] python GDAL issue

2019-10-11 Thread Brad Hards
GDAL's NITF encoding doesn't appear to have BANDSB yet: https://github.com/OSGeo/gdal/blob/master/gdal/data/nitf_spec.xml It would definitely help to see how that file encodes it. Can you open the NITF file, find the part that starts with BANDSB0 (where 0 is some length value), and copy