Re: [gdal-dev] Is there "--config GDAL_TIFF_INTERNAL_MASK YES" C# equivalent???

2018-08-07 Thread Even Rouault
On mardi 7 août 2018 20:19:58 CEST Dmitriy T. wrote: > How to use a bunch: > > Dataset image = Gdal.OpenShared(sourceCopy, Access.GA_ReadOnly); > Gdal.wrapper_GDALTranslate(translatedFile, image, options, null, null); > > to create a JPEG-compressed TIFF with internal mask from a RGBA dataset (in

[gdal-dev] Is there "--config GDAL_TIFF_INTERNAL_MASK YES" C# equivalent???

2018-08-07 Thread Dmitriy T.
How to use a bunch: Dataset image = Gdal.OpenShared(sourceCopy, Access.GA_ReadOnly); Gdal.wrapper_GDALTranslate(translatedFile, image, options, null, null); to create a JPEG-compressed TIFF with internal mask from a RGBA dataset (in C#)? I'm interested in the C# equivalent of a call *--config GD

Re: [gdal-dev] Recommended OGR Driver For Very Large Vector Data

2018-08-07 Thread Benjamin Stadin
... I should have said Geopackage is „not optimal“ in regards to space efficiency. It‘s still not bad at all when compared to other formats. Am 07.08.2018 um 23:35 schrieb Benjamin Stadin mailto:benjamin.sta...@heidelberg-mobil.com>>: Geopackage is not very space efficient, due to the required

Re: [gdal-dev] Recommended OGR Driver For Very Large Vector Data

2018-08-07 Thread Benjamin Stadin
Geopackage is not very space efficient, due to the required compatibility with the spec and the „ST*“ methods matching their postgres counterparts. Check the header which is carried over for each geometry: https://github.com/opengeospatial/geopackage/blob/master/spec/2a_features.adoc For an exam

Re: [gdal-dev] Recommended OGR Driver For Very Large Vector Data

2018-08-07 Thread Patrick Young
Yeah it's not the geopackage format but that the polygons are just huge, sorry about that. There is ~1000 polygons but each one is a ton of vertices (~100k), so zoomed out the redraw takes a little while (seconds). This is true with fileGBD too, which feels slower than the gpkg FWIW. In practice

Re: [gdal-dev] GDALTranslateOptions: how to send "--config GDAL_TIFF_INTERNAL_MASK YES"

2018-08-07 Thread Dmitriy T.
see also https://github.com/mapbox/rasterio/blob/master/docs/topics/image_options.rst There is a similar for C#: *.Env(GDAL_TIFF_INTERNAL_MASK=True)* ? -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing lis

Re: [gdal-dev] GDALTranslateOptions: how to send "--config GDAL_TIFF_INTERNAL_MASK YES"

2018-08-07 Thread Dmitriy T.
see also https://github.com/OSGeo/gdal/issues/689 It seems that it is reproduced on the python, too. -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/ma

Re: [gdal-dev] GDALTranslateOptions: how to send "--config GDAL_TIFF_INTERNAL_MASK YES"

2018-08-07 Thread Dmitriy T.
see alse https://github.com/OSGeo/gdal/issues/689 It seems that it is reproduced on the python, too. -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/ma

Re: [gdal-dev] GDALTranslateOptions: how to send "--config GDAL_TIFF_INTERNAL_MASK YES"

2018-08-07 Thread Dmitriy T.
Hi! I was wrong, everything I've tried before does not work. I'm using С# and still could not make it work correctly. Please, tell me what bindings are required? -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mail

Re: [gdal-dev] Adding subdataset into GeoPackage raster with -a_srs requires also RASTER_TABLE

2018-08-07 Thread Even Rouault
Hi Jukka, > > I was doing some tests with GeoPackage rasters and found that if I define > -a_srs then also -co RASTER_TABLE is required which feels unnecessary. > Steps to reproduce: > > Create initial gpkg > gdal_translate -of GPKG global_mosaic_0.png raster.gpkg -a_srs epsg:4326 > > Try to ad

Re: [gdal-dev] Building GDAL with PROJ4 on Android

2018-08-07 Thread René Hansen
I forgot to mention, my test device is a Samsung Galaxy S5 running Android 6.0. I haven't tested on other devices so ymmv. /René On Tue, 7 Aug 2018 at 12:37 René Hansen wrote: > Hey Chris, > > > From a previous yak-shaving-adventure, I've dabbled in building Proj and > Geos for Android, because

Re: [gdal-dev] Building GDAL with PROJ4 on Android

2018-08-07 Thread René Hansen
Hey Chris, >From a previous yak-shaving-adventure, I've dabbled in building Proj and Geos for Android, because they were dependencies of Spatialite, which I'm using for an app. That resulted in a homegrown build system based on docker, aptly named: Building for Android with Docker. It is meant a

[gdal-dev] Adding subdataset into GeoPackage raster with -a_srs requires also RASTER_TABLE

2018-08-07 Thread Rahkonen Jukka (MML)
Hi, I was doing some tests with GeoPackage rasters and found that if I define -a_srs then also -co RASTER_TABLE is required which feels unnecessary. Steps to reproduce: Create initial gpkg gdal_translate -of GPKG global_mosaic_0.png raster.gpkg -a_srs epsg:4326 Try to add a subdataset and assig