Hi,I have GDAL 2.3.0dev and if I run `ogrinfo -dialect sqlite -sql "select spatialite_version() from test" test.shp` the result is `spatialite_version() (String) = 4.3.0-RC1`.I'm using it on windows, it's the gisinternals release.
Hi,
From https://www.gaia-gis.it/gaia-sins/spatialite-sql-latest.html you
can read that MakeValid/ST_MakeValid is a LWGEOM function so the check
to perform is
SELECT lwgeom_version();
It really seems to give NULL for the GDAL from gisinternals that I have.
That is an outdated version, 4.3.0 was released more that 2 years ago- it would need LWGEOM to be installed (i.e. 'SELECT lwgeom_version(); ' must return a result)The present developer version uses RTTOPO- which then must be installed
Hi Jukka and Mark,thank you very much.On 1 November 2017 at 14:17, 'mj10777' via SpatiaLite Users <spatiali...@googlegroups.com> wrote:That is an outdated version, 4.3.0 was released more that 2 years ago- it would need LWGEOM to be installed (i.e. 'SELECT lwgeom_version(); ' must return a result)The present developer version uses RTTOPO- which then must be installedNow I know that I have an outdated version and moreover I do not have LWGEOM.How to build GDAL/OGR binaries with RTTOPO support? Is there some how-to page?
On Wed, 1 Nov 2017 05:58:32 -0700 (PDT), Andrea Borruso wrote:
so modern versions of SpatiaLite (since 4.4.0) now depend
on RTTOPO [1], a fork from PostGIS/LWGEOM.
RTTOPO really is a self-standing library respecting reasonable
cross-version stability, it just depends on GEOS alone and it
can be easily built on Windows too.
Even more important, RTTOPO not only supports MakeValid
and few others advanced functions; it fully supports
ISO Topology primitives.
you can anyway follow this:
http://www.gaia-gis.it/gaia-sins/mingw64_how_to.html
On Wed, 1 Nov 2017 17:00:10 +0100, andy wrote:
https://git.osgeo.org/gogs/rttopo/librttopo/archive/master.tar.gz
and you have to run "./autoconf.sh" before attempting to execute
./configure
Ciao SandroOn 1 November 2017 at 17:32, <a.fu...@lqt.it> wrote:On Wed, 1 Nov 2017 17:00:10 +0100, andy wrote:
fossil clone https://www.gaia-gis.it/fossil/libspatialite libspatialite.fossil
mkdir libspatialite
cd libspatialite
fossil open ../libspatialite.fossil
./configure --enable-rttopo=yes --enable-gcp=yesI have this error: "configure: error: cannot find proj_api.h, bailing out".I have already installed libproj. How to pass this check?
Ciao Sandro,On 1 November 2017 at 17:32, <a.fu...@lqt.it> wrote:On Wed, 1 Nov 2017 17:00:10 +0100, andy wrote:
https://git.osgeo.org/gogs/rttopo/librttopo/archive/master.tar.gz
and you have to run "./autoconf.sh" before attempting to execute
./configurewhere can I find the "./autoconf.sh" file?
you'll find the "./autoconf.sh" script directly into the
sources tarball downloaded from git.
Ciao Sandro,On 2 November 2017 at 13:42, <a.fu...@lqt.it> wrote:
you'll find the "./autoconf.sh" script directly into the
sources tarball downloaded from git.I have found the autogen.sh file, but when I run it I have "Missing autoconf!"But I have autoconf already installed:```$ pacman -Ss autoconfmsys/autoconf 2.69-3 (base-devel) [installed]A GNU tool for automatically configuring source codemsys/autoconf-archive 2017.09.28-1Autoconf Macro Archivemsys/autoconf2.13 2.13-2 (base-devel) [installed]A GNU tool for automatically configuring source code```I think I must export some path variable, but I do not know which.
./autogen.sh* Running /usr/bin/libtoolize (2.4.2) OPTIONS = --force --copylibtoolize: putting auxiliary files in `.'.libtoolize: copying file `./ltmain.sh'libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.libtoolize: copying file `m4/libtool.m4'libtoolize: copying file `m4/ltoptions.m4'libtoolize: copying file `m4/ltsugar.m4'libtoolize: copying file `m4/ltversion.m4'libtoolize: copying file `m4/lt~obsolete.m4'* Running /usr/bin/aclocal (1.14.1)* Running /usr/local/bin/autoheader (2.69)* Running /usr/bin/automake (1.14.1) OPTIONS = --add-missing --copy -Woverride* Running /usr/local/bin/autoconf (2.69)======================================Now you are ready to run './configure'
which autoconf/usr/local/bin/autoconf
echo $PATH
have you perhaps suddenly switched from Linux to Windows/MSYS/MinGW ?
it would be surely better if you'll acquire first a fairly good
familiarity with civilized Linux before adventuring yourself into
the dangerous savage lands of lawless Far West.
Ciao Sandro,On 2 November 2017 at 14:34, <a.fu...@lqt.it> wrote:
have you perhaps suddenly switched from Linux to Windows/MSYS/MinGW ?
it would be surely better if you'll acquire first a fairly good
familiarity with civilized Linux before adventuring yourself into
the dangerous savage lands of lawless Far West.
I have choosen to start from your great page http://www.gaia-gis.it/gaia-sins/mingw64_how_to.htmlI need something like that because is really well written. Than in this moment I'm in Windows/MSYS/MinGW.Two notes for that page:- at the beginning there is a wrong URL in the "Please follow the instructions you can find here" sentence (in "here");- when I built libspatialite, I have had a note about libxml2 dependency. If this is right, I should add it in libspatialite dependency list.If I run all the commands of that page I have no problem to compile spatialite with rttopo.But If I want to build an updated version, starting from https://git.osgeo.org/gogs/rttopo/librttopo/archive/master.tar.gz, I have the missing `autoconf` problem when I run `autogen.sh`.If I run `which autoconf`, I have:```which: no autoconf in (/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
find /usr -iname autoconf/usr/local/bin/autoconf
find / -iname autoconf
find / -iname libproj4*
find /usr -iname autoconf/usr/local/bin/autoconf
it seems that you have not properly installed
the autoconf package.
Hi all,I succeeded to build all, and it was not luck: it has been possible because you are skilled and very kind people.I would like to give back something. Is this page in some git repo? If yes I would like to update it with some tips for lamer (like me), and I would like to do some pull request.A last (I hope for you) question: if I build GDAL (using always mingw64_how_to page), will it be possible to run command like "ogr2ogr valid.shp input.shp -dialect sqlite -sql "select MakeValid(geometry) as geometry, * from input""
./configure \
Hi,
On 3 November 2017 at 10:55, andy <abor...@gmail.com> wrote:
```export "CPPLAGS=-I/mingw64/local/include"export "LDFLAGS=-L/mingw64/local/lib"./configure \--prefix=/mingw64/local \--with-sqlite3=/mingw64/local \--with-spatialite=/mingw64/local \--with-static-proj4=/mingw64/local \--with-geos=/mingw64/local/bin/geos-config \--with-liblzma=/mingw64/local --with-webp=/mingw64/local```
I have done make
, and it seems I have no error. The last rows are:
echo 'CONFIG_VERSION='`cat ./VERSION`'' >> gdal.pc
echo 'CONFIG_INST_PREFIX=/mingw64/local' >> gdal.pc
echo 'CONFIG_INST_LIBS=-L/mingw64/local/lib -lgdal' >> gdal.pc
echo 'CONFIG_INST_CFLAGS=-I/mingw64/local/include' >> gdal.pc
echo 'CONFIG_INST_DATA=/mingw64/local/share/gdal/data' >> gdal.pc
cat gdal.pc.in >> gdal.pc
But when I run make install-strip
, I have make: *** No rule to make target "install-strip"
.
How to solve it?
Thank you
Hi,
On 3 November 2017 at 10:55, andy <abor...@gmail.com> wrote:
```export "CPPLAGS=-I/mingw64/local/include"export "LDFLAGS=-L/mingw64/local/lib"./configure \--prefix=/mingw64/local \--with-sqlite3=/mingw64/local \--with-spatialite=/mingw64/local \--with-static-proj4=/mingw64/local \--with-geos=/mingw64/local/bin/geos-config \--with-liblzma=/mingw64/local --with-webp=/mingw64/local```I have done
make
, and it seems I have no error. The last rows are:echo 'CONFIG_VERSION='`cat ./VERSION`'' >> gdal.pc echo 'CONFIG_INST_PREFIX=/mingw64/local' >> gdal.pc echo 'CONFIG_INST_LIBS=-L/mingw64/local/lib -lgdal' >> gdal.pc echo 'CONFIG_INST_CFLAGS=-I/mingw64/local/include' >> gdal.pc echo 'CONFIG_INST_DATA=/mingw64/local/share/gdal/data' >> gdal.pc cat gdal.pc.in >> gdal.pc
But when I run
make install-strip
, I havemake: *** No rule to make target "install-strip"
.How to solve it?
make install
GDAL/OGR works with RTTOPO!!!
RTTOPO warning: Ring Self-intersection at or near point 528108.51558918029 4571486.8073004419
RTTOPO warning: Ring Self-intersection at or near point 1177064.5067999677 4571209.1925928816
RTTOPO warning: Ring Self-intersection at or near point 1154968.4279781275 4561653.8165247878
...
Thank you very much
Since I'm no software developper, it is quite hard to follow the steps and solve difficulties.