Re: [gdal-dev] Failing to include libgdal.so on Fedora 32

2020-09-30 Thread Matthys Kroon
I got it to work by first removing all versions of postgres from my system and then installing the gdal and gdal-dev packages. I think somehow, somewhere there was a symlink pointing to the wrong version of a lib. On Wed, Sep 30, 2020 at 3:30 PM Matthys Kroon wrote: > Thanks for your help. > >

Re: [gdal-dev] How does it work FEATURE_SERVER_PAGING?

2020-09-30 Thread jratike80
Hi, Works for me also with GDAL 2.4.4 from gisinternals.com C:\ohjelmat\gdal_244>ogrinfo -al -so out.geojson INFO: Open of `out.geojson' using driver `GeoJSON' successful. Layer name: out Geometry: Polygon Feature Count: 1319 Debug: HTTP: Fetch(http://sifweb.regione.sicilia.it/arcgis/res

Re: [gdal-dev] How does it work FEATURE_SERVER_PAGING?

2020-09-30 Thread aborruso
Hi, below my debug output. I have GDAL 2.4.4, released 2020/01/08. FEATURE_SERVER_PAGING is not compliant with this version? If yes, there is no note about it in the documentation. Thank you -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html

Re: [gdal-dev] Elasticsearch arrays

2020-09-30 Thread nick . peihl
Hi Lewis, I’m guessing the Elasticsearch driver does not handle nested geopoints. I suggest opening an issue on the GDAL GitHub repo. > On Sep 29, 2020, at 12:26 AM, Lewis Clark wrote: > >  > In my Elasticsearch index I have an array of locations that I can’t seem to > access with OGR. > >

Re: [gdal-dev] gdal_translate multiplies bands

2020-09-30 Thread jratike80
Hi, Perhaps it is just about how you open your GeoPackage. See https://gdal.org/drivers/raster/gpkg.html: "Opening options By default, the driver will expose a GeoPackage dataset as a four band (Red,Green, Blue,Alpha) dataset, which gives the maximum compatibility with the various encodings of t

Re: [gdal-dev] How does it work FEATURE_SERVER_PAGING?

2020-09-30 Thread jratike80
Hi, I get more features with your command. I tested with GDAL 3.2.0dev Layer name: out Geometry: Polygon Feature Count: 1319 Word "file" in your command is remaining from some copy-paste, I guess. Using either FEATURE_SERVER_PAGING="YES" or FEATURE_SERVER_PAGING=YES did not have an effect. Perha

[gdal-dev] gdal_translate multiplies bands

2020-09-30 Thread Oechslin Stefan Maximilian
Hi I try to use gdal_translate in my windows command prompt to convert a single band .tif raster to a single band .gpkg. gdal_translate -of GPKG example.tif example.gpkg I always get a .gpkg with four bands and the nodata pixels get changed to a value of 255. I tried all possible combinations

[gdal-dev] How does it work FEATURE_SERVER_PAGING?

2020-09-30 Thread aborruso
Hi, when I try to download some data from the below GeoServices REST server, I have always 1000 items, also if I set FEATURE_SERVER_PAGING to YES. The command I use is: ogr2ogr out.geojson -f GEOJson "http://sifweb.regione.sicilia.it/arcgis/rest/services/SIF_INCENDI_EXTENDED/MapServer/13/query?wh

Re: [gdal-dev] Failing to include libgdal.so on Fedora 32

2020-09-30 Thread Matthys Kroon
Thanks for your help. I do seem to have the file. I have libpq and libpq5 packages installed. /usr/lib64#ls -alh libpq.so* lrwxrwxrwx. 1 root root 13 Aug 20 14:42 libpq.so -> libpq.so.5.12 lrwxrwxrwx. 1 root root 13 Aug 20 14:42 libpq.so.5 -> libpq.so.5.12 -rwxr-xr-x. 1 root root 1.3M Aug 20

Re: [gdal-dev] Failing to include libgdal.so on Fedora 32

2020-09-30 Thread Andrew C Aitchison
On Wed, 30 Sep 2020, Matthys Kroon wrote: Hi, I'm trying to build "sf" package in R on Fedora 32 but it fails to configure gdal. The error output is below: It seems to be some issue referring to a postgres lib? I have libpq-devel installed. I googled for hours and I'm still stuck. Please let

[gdal-dev] Failing to include libgdal.so on Fedora 32

2020-09-30 Thread Matthys Kroon
Hi, I'm trying to build "sf" package in R on Fedora 32 but it fails to configure gdal. The error output is below: It seems to be some issue referring to a postgres lib? I have libpq-devel installed. I googled for hours and I'm still stuck. Please let me know what other information I can provide

Re: [gdal-dev] Clip feature while query from .gdb using OpenFileGDB driver

2020-09-30 Thread jratike80
Hi, You can use gdal.VectorTranslate with the same options that ogr2ogr utility supports https://gdal.org/programs/ogr2ogr.html. That includes -clipsrc [xmin ymin xmax ymax]|WKT|datasource|spat_extent "Clip geometries to the specified bounding box (expressed in source SRS), WKT geometry (POLYGON

[gdal-dev] Clip feature while query from .gdb using OpenFileGDB driver

2020-09-30 Thread Yang
I am using OpenFileGDB driver to read .gdb data through the java binding,core codes:         Layer layer = dataSource.GetLayer("layer_name");         layer.SetSpatialFilterRect(minx,miny,maxx,maxy);         System.out.println(layer.GetFeatureCount());         layer.ResetReading();         Featur