Re: [gdal-dev] DPI for printing in geospatial PDF

2016-08-02 Thread John W. Glendening
On Tue, 2016-08-02 at 09:37 +0200, Even Rouault wrote: > Your use case makes sense. The current behaviour is such that when reading, > the GDAL PDF driver can retrieve the original size in pixels. > > I've just committed an improvement that will enable the user to select which > behaviour he wan

Re: [gdal-dev] compile error on windows

2016-08-02 Thread Jeff McKenna
For the longest time MS4W did leverage the static lib for HDF5, so the switch of -D_HDF5USEDLL was required in GDAL. If you compile HDF5 dynamically you will require the -DH5_BUILT_AS_DYNAMIC_LIB switch. This is described at https://www.hdfgroup.org/HDF5/release/obtain5.html Please please if

Re: [gdal-dev] compile error on windows

2016-08-02 Thread Jeff McKenna
It would be great for all those interested in this thread, to take a moment and make sure that these steps are documented in the BuildHints wiki page for this (https://trac.osgeo.org/gdal/wiki/HDF). I did that of course, but other community members should as well, especially all those so concer

Re: [gdal-dev] Closing connection in Python gdal (too many clients already)

2016-08-02 Thread Yves Jacolin
On Tuesday, August 02, 2016 10:50:15 Even Rouault wrote: > On Tuesday 02 August 2016 10:28:09 Yves Jacolin wrote: > > Bonjour Even, > > > > On Tuesday, August 02, 2016 9:42:56 Even Rouault wrote: > > > Salut Yves, > > > > > > > I am using gdal 2.1.1 in python. > > > > > > > > When I import sever

Re: [gdal-dev] Closing connection in Python gdal (too many clients already)

2016-08-02 Thread Even Rouault
On Tuesday 02 August 2016 10:28:09 Yves Jacolin wrote: > Bonjour Even, > > On Tuesday, August 02, 2016 9:42:56 Even Rouault wrote: > > Salut Yves, > > > > > I am using gdal 2.1.1 in python. > > > > > > When I import several layers into postgis I get a FATAL error : 'sorry, > > > too > > > many c

Re: [gdal-dev] Closing connection in Python gdal (too many clients already)

2016-08-02 Thread Yves Jacolin
Bonjour Even, On Tuesday, August 02, 2016 9:42:56 Even Rouault wrote: > Salut Yves, > > > I am using gdal 2.1.1 in python. > > > > When I import several layers into postgis I get a FATAL error : 'sorry, > > too > > many clients already'. It seems I don't close the connection after each > > impor

Re: [gdal-dev] Closing connection in Python gdal (too many clients already)

2016-08-02 Thread Even Rouault
Salut Yves, > > I am using gdal 2.1.1 in python. > > When I import several layers into postgis I get a FATAL error : 'sorry, too > many clients already'. It seems I don't close the connection after each > import. > > I open the connection with dstDS = gdal.OpenEx(connectionString). how can I >

Re: [gdal-dev] DPI for printing in geospatial PDF

2016-08-02 Thread Even Rouault
Jack, Your use case makes sense. The current behaviour is such that when reading, the GDAL PDF driver can retrieve the original size in pixels. I've just committed an improvement that will enable the user to select which behaviour he wants. Here's the doc of the new creation option: WRITE_USE

[gdal-dev] Closing connection in Python gdal (too many clients already)

2016-08-02 Thread Yves Jacolin
Hello, I am using gdal 2.1.1 in python. When I import several layers into postgis I get a FATAL error : 'sorry, too many clients already'. It seems I don't close the connection after each import. I open the connection with dstDS = gdal.OpenEx(connectionString). how can I close the connexion?

Re: [gdal-dev] Question on GDAL using libjpegturbo

2016-08-02 Thread Even Rouault
On Monday 01 August 2016 19:38:29 Lucian Plesea wrote: > How about 8 and 12 bit JPEG simultaneously, using libjpegturbo? I'm not sure libjpegturbo can be compiled in 12bit mode. Perhaps it can, but in that case I guess that it doesn't have the SIMD optimizations enabled. Anyway at the ./configur