Re: [gdal-dev] gpkg tests and gdalinfo

2017-09-07 Thread Even Rouault
On jeudi 7 septembre 2017 14:59:37 CEST Norman Barker wrote: > Hi, > > I am building the current trunk (the osgeo master from the github mirror of > svn), I am running on centos. > > Running `python gpkg.py` from the autotest suite gives (with CPL_DEBUG ON) > > GNM: GNMRegisterAllInternal >

Re: [gdal-dev] RFC68: C++11 compilation mode - Call for vote on adoption

2017-09-07 Thread Mateusz Loskot
On 7 September 2017 at 18:44, David Strip wrote: > > For a while now the Windows dll search order starts with the directory that > the app was loaded from. This was in response to the "dll hell" phenomenon > in earlier editions that was created when an app overrode a dll

Re: [gdal-dev] RFC68: C++11 compilation mode - Call for vote on adoption

2017-09-07 Thread Mateusz Loskot
On 7 September 2017 at 17:59, Joaquim Luis wrote: > Thanks Even and Mateusz for clarifying this. > Thanks to your persistence that helped to dig the issue further :-) Best regards, -- Mateusz Loskot, http://mateusz.loskot.net ___

Re: [gdal-dev] RFC68: C++11 compilation mode - Call for vote on adoption

2017-09-07 Thread David Strip
On 9/7/2017 9:59 AM, Joaquim Luis wrote: And since more people are probably confused as well I find 16 copies of api-ms-win-crt-runtime-l1-1-0.dll in my machine that has a updated Win10 + VS compilers. Among them, those installed by

Re: [gdal-dev] RFC68: C++11 compilation mode - Call for vote on adoption

2017-09-07 Thread Joaquim Luis
Thanks Even and Mateusz for clarifying this. And since more people are probably confused as well I find 16 copies of api-ms-win-crt-runtime-l1-1-0.dll in my machine that has a updated Win10 + VS compilers. Among them, those installed by Firefox TortoiseSVN MikTex VScode OneDrive and others

Re: [gdal-dev] ogr2ogr, preserve_fid and Postgres sequences

2017-09-07 Thread César Martínez
Done, thanks for the support: https://trac.osgeo.org/gdal/ticket/7032 César 2017-09-07 17:41 GMT+02:00 Even Rouault : > On jeudi 7 septembre 2017 17:05:36 CEST César Martínez wrote: > > > Hi Jukka, see answer inline: > > > > > > 2017-09-07 16:48 GMT+02:00 jratike80

Re: [gdal-dev] ogr2ogr, preserve_fid and Postgres sequences

2017-09-07 Thread Even Rouault
On jeudi 7 septembre 2017 17:05:36 CEST César Martínez wrote: > Hi Jukka, see answer inline: > > 2017-09-07 16:48 GMT+02:00 jratike80 : > > Hi César, > > > > What are the problems you face when editing such layer? > > If you later try to add a new record to

Re: [gdal-dev] Error while compiling gdal 1.9.2 in Ubuntu16.04

2017-09-07 Thread Farook
I tried installing libjson as per the suggestion sudo apt-get install libjson-c-dev and did wget http://download.osgeo.org/gdal/gdal192.zip unzip gdal192.zip -d gdal cd gdal cd gdal-1.9.2/ ./configure make clean make again am getting the same error -- Sent from:

Re: [gdal-dev] ogr2ogr, preserve_fid and Postgres sequences

2017-09-07 Thread César Martínez
Hi Jukka, see answer inline: 2017-09-07 16:48 GMT+02:00 jratike80 : > Hi César, > > What are the problems you face when editing such layer? If you later try to add a new record to the layer without providing an id, it will raise an error, defeating the

Re: [gdal-dev] ogr2ogr, preserve_fid and Postgres sequences

2017-09-07 Thread jratike80
Hi César, What are the problems you face when editing such layer? Do you have an alternative suggestion about what to do for the sequence? -Jukka Rahkonen- -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing

[gdal-dev] ogr2ogr, preserve_fid and Postgres sequences

2017-09-07 Thread César Martínez
Hi, When loading a layer on PostGIS using ogr2ogr, a sequence is created for the serial primary key. If -preserve_fid paramenter is provided, the sequence start is not properly initialized (i. e. sequence starts on 1). This leads to problems if the layer is later edited. Is this an intended

Re: [gdal-dev] Error while compiling gdal 1.9.2 in Ubuntu16.04

2017-09-07 Thread Even Rouault
On jeudi 7 septembre 2017 06:53:06 CEST Farook wrote: > I am trying to compile and build gdal 1.9.2 in Ubuntu 16.04.3. I am doing > the below steps Be aware that this is a totally unsupported combination. 1.9.2 is really anciant, but yes I'm aware that Geoserver still requires it... Anyway, I

[gdal-dev] Error while compiling gdal 1.9.2 in Ubuntu16.04

2017-09-07 Thread Farook
I am trying to compile and build gdal 1.9.2 in Ubuntu 16.04.3. I am doing the below steps sudo wget http://download.osgeo.org/gdal/gdal192.zip unzip gdal192.zip -d gdal cd gdal cd gdal-1.9.2/ sudo ./configure make When i run make, i am getting the below error In file included from

[gdal-dev] Shapefile corruption issue affecting GDAL >= 2.1.3 and GDAL >= 2.2.0

2017-09-07 Thread Even Rouault
Hi, I want to notify those using OGR to do edition of shapefiles (modifications of existing shape / SetFeature() + creation of new shape / CreateFeature()) that a bug was found in a particular scenario: if you edit the last shape of the file to be larger than its previous version (addition of

Re: [gdal-dev] How to read CSV with GeoJSON correctly?

2017-09-07 Thread Even Rouault
On jeudi 7 septembre 2017 03:16:03 CEST jratike80 wrote: > Even Rouault-2 wrote > > > Hi Jukka, > > ... > > That's not enough. As there are quoted strings in the GeoJSON content, > > they > > confuse the CSV reader. So you need to surround the whole GeoJSON content > > by double-quotes, and

Re: [gdal-dev] How to read CSV with GeoJSON correctly?

2017-09-07 Thread jratike80
Even Rouault-2 wrote > Hi Jukka, > ... > That's not enough. As there are quoted strings in the GeoJSON content, > they > confuse the CSV reader. So you need to surround the whole GeoJSON content > by double-quotes, and escape the inside double quotes with a repeated > double quote character > (You

Re: [gdal-dev] RFC68: C++11 compilation mode - Call for vote on adoption

2017-09-07 Thread Mateusz Loskot
On 7 September 2017 at 11:58, Even Rouault wrote: > > I can give you some feedback regarding this. > [...] > So I suspect the situation is the following : > > * ship the api-ms-win-crt-*.dll next to your binaries and that should work > everywhere > * if not shippig the

Re: [gdal-dev] RFC68: C++11 compilation mode - Call for vote on adoption

2017-09-07 Thread Even Rouault
On jeudi 7 septembre 2017 07:47:40 CEST Mateusz Loskot wrote: > On 7 September 2017 at 01:01, Joaquim Luis wrote: > > On Wed, 06 Sep 2017 21:22:18 +0100, Mateusz Loskot > > wrote: > >> On 6 September 2017 at 21:53, Kurt Schwehr wrote: > >>>

Re: [gdal-dev] How to read CSV with GeoJSON correctly?

2017-09-07 Thread Even Rouault
Hi Jukka, > > I copy-pasted the CSV example and edited it to use semicolon as field > separator. That's not enough. As there are quoted strings in the GeoJSON content, they confuse the CSV reader. So you need to surround the whole GeoJSON content by double-quotes, and escape the inside double

Re: [gdal-dev] How to read CSV with GeoJSON correctly?

2017-09-07 Thread Ian Turton
As i said in my answer to the question the GeoJSON is invalid due to the ring order, but I'm not sure if OGR checks for that. Ian On 7 September 2017 at 07:38, Rahkonen Jukka (MML) < jukka.rahko...@maanmittauslaitos.fi> wrote: > Hi, > > I was thinking about this question on gis.stackexchange >

[gdal-dev] How to read CSV with GeoJSON correctly?

2017-09-07 Thread Rahkonen Jukka (MML)
Hi, I was thinking about this question on gis.stackexchange https://gis.stackexchange.com/questions/254536/how-to-convert-txt-containing-two-columns-id-and-geojson-geometry I copy-pasted the CSV example and edited it to use semicolon as field separator. Then I read