Re: [gdal-dev] Modify original ColorTable in VRT & TIFF files

2021-04-23 Thread Hotmail
Hi Lars, Thanks a lot for the tip with sed, it works fine. > sed -i '//,/<\/Metadata>/d; / c2="0" c3="0" c4="255" \/>/,/ \/>/d; //r COLORTABLE.txt' $F_VRT > Le 23 avr. 2021 à 11:31, lars.schylb...@blixtmail.se a écrit : > > Hi again, > > Some other tricks. To extract the color table from a PNG

Re: [gdal-dev] how to use tiledb datasets on gcs?

2021-04-23 Thread Norman Barker
Yes, internally the GDAL TileDB driver remaps vsis3 requests to s3 requests within the TileDB library. To a user the vsi notation still works the same. I will look over the PR, thanks Vincent! Norman On Fri, Apr 23, 2021 at 9:30 AM Vincent Schut wrote: > Even's understanding is correct. I've

Re: [gdal-dev] Python GDAL split polyline by intersection

2021-04-23 Thread Patrick Young
You might check out the Python library Shapely (which wraps GEOS), it has a split method in it: https://shapely.readthedocs.io/en/stable/manual.html#splitting P On Fri, Apr 23, 2021 at 9:59 AM Chang Liao wrote: > Hi, GDALers, > > I have a GDAL Python API question, i want to find some function

Re: [gdal-dev] How to incorporate driver updates into GDAL?

2021-04-23 Thread Ivan Lucena
Hi Hongmei, I am the original author of the RST driver. I can help if you need. Regards, Ivan From: gdal-dev on behalf of Even Rouault Sent: Friday, April 23, 2021 12:05 PM To: Hongmei Zhu ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] How to incorporate

Re: [gdal-dev] How to incorporate driver updates into GDAL?

2021-04-23 Thread Even Rouault
Hongmei, GDAL has now been using github as its main way for code contributions since a few years. Please fork https://github.com/OSGeo/gdal/ , apply your modifications to your clone and submit them as a pull request A few hints are athttps://github.com/OSGeo/gdal/blob/master/CONTRIBUTING.m

[gdal-dev] How to incorporate driver updates into GDAL?

2021-04-23 Thread Hongmei Zhu
Hi all, I join the mailing list just now to ask a question for help. IDRISI driver in GDAL doesn't support Cylindrical Equal Area (CEA) so far. Since IDRISI GIS software has added the CEA to its supported reference system, the GDAL IDRISI driver needs to be updated. So, I added the support of C

[gdal-dev] Python GDAL split polyline by intersection

2021-04-23 Thread Chang Liao
Hi, GDALers, I have a GDAL Python API question, i want to find some function similar to the ArcGIS tool: https://desktop.arcgis.com/en/arcmap/10.3/manage-data/editing-existing-features/splitting-lines-at-intersections.htm But it seems there is no such existing function ready for use. I put some d

Re: [gdal-dev] how to use tiledb datasets on gcs?

2021-04-23 Thread Vincent Schut
Even's understanding is correct. I've made a small PR to add this functionality: https://github.com/OSGeo/gdal/pull/3728. I'm not an experienced c++ programmer, so I hope I've done things the right way. At least it works here. Let's move the rest of the discussion - if any - to the PR. Vincen

Re: [gdal-dev] GDAL question

2021-04-23 Thread jratike80
Hi, You can't update with ogr2ogr. Use ogrinfo instead. I believe that you will find good examples from gis.stackexchange https://gis.stackexchange.com/search?q=ogrinfo+update -Jukka Rahkonen- Peter P wrote > It is works, Thanks > > Now I trying update row. > In SQL will be: /UPDATE "table1" S

Re: [gdal-dev] how to use tiledb datasets on gcs?

2021-04-23 Thread Even Rouault
Sean, my understanding of the commit is that internally the tiledb SDK handles cloud storage by itself (ie not relying on GDAL virtual file systems) and using s3:// / gcs:// naming conventions, and the purpose of the below referenced commit is, for the GDALOpen() code path, to remap /vsis3/ t

Re: [gdal-dev] how to use tiledb datasets on gcs?

2021-04-23 Thread Sean Gillies via gdal-dev
Hi Vincent, Even. Why would we do this when /vsigcs/... should work? Letting individual drivers set their own conventions for dataset names seems, to me, to hurt long-term maintenance and interoperability. On Fri, Apr 23, 2021 at 7:34 AM Vincent Schut wrote: > Thanks for confirming, Even. That

Re: [gdal-dev] how to use tiledb datasets on gcs?

2021-04-23 Thread Vincent Schut
Thanks for confirming, Even. That doesn't look too difficult. I'll give it a try. On 4/23/21 3:09 PM, Even Rouault wrote: I guess you should add something similar to https://github.com/OSGeo/gdal/commit/3623f9c91a2c513af204d30fe25314dbe5c7b9be for /vsigs Le 23/04/2021 à 14:59, Vincent Schu

Re: [gdal-dev] how to use tiledb datasets on gcs?

2021-04-23 Thread Even Rouault
I guess you should add something similar to https://github.com/OSGeo/gdal/commit/3623f9c91a2c513af204d30fe25314dbe5c7b9be for /vsigs Le 23/04/2021 à 14:59, Vincent Schut a écrit : On 4/23/21 2:17 PM, Vincent Schut wrote: Hi, how should I specify a tiledb dataset's url that resides on gcs (goo

Re: [gdal-dev] how to use tiledb datasets on gcs?

2021-04-23 Thread Vincent Schut
On 4/23/21 2:17 PM, Vincent Schut wrote: Hi, how should I specify a tiledb dataset's url that resides on gcs (google cloud storage) to gdal? I've tried several combinations of gcs://, /vsigs/, prefixed with TILEDB:// or not, but no luck. I've looked in the driver source, and apparently there is

[gdal-dev] how to use tiledb datasets on gcs?

2021-04-23 Thread Vincent Schut
Hi, how should I specify a tiledb dataset's url that resides on gcs (google cloud storage) to gdal? I've tried several combinations of gcs://, /vsigs/, prefixed with TILEDB:// or not, but no luck. I've looked in the driver source, and apparently there is only a /vsis3/ -> tiledb uri translation

Re: [gdal-dev] GDAL question

2021-04-23 Thread Peter P
It is works, Thanks Now I trying update row. In SQL will be: /UPDATE "table1" SET "TestGeometry"= WHERE "Name" = 'testname'/ How is this possible in ogr2ogr? I use -update, -append not work... jratike80 wrote > Hi, > > Please check your GeoJSON before fighting with Python. "Name" placed in

Re: [gdal-dev] Modify original ColorTable in VRT & TIFF files

2021-04-23 Thread lars . schylberg
Hi again, Some other tricks. To extract the color table from a PNG I often use pngcheck. pngcheck -p /data/tests/500K_large_pct.png \ | sed '1,2d' \ | awk 'NR < 257' \ | sed 's/[=].*$//' \ | sed 's/[(:)]//g' \ | sed 's/,/ /g' \ | sed 's/...//' > color.txt You could add an extra print command i

Re: [gdal-dev] Accessing a Nitf DES

2021-04-23 Thread Even Rouault
https://github.com/OSGeo/gdal/pull/3153 should cover this need Le 23/04/2021 à 02:07, jovajova24 a écrit : So I found this issue that never got merged i.e., https://github.com/OSGeo/gdal/pull/2336 I'm assuming this means that GDAL doesn't support accessing GLAS\GFM DES right now? If not, could