Closed theroggy closed 12 months ago
@theroggy, I think a PR to fix this would be welcome. I looked at the source code and makefile64.vc
a bit and didn't see an obvious way to get make sure that GEOS was configured properly, but my Windows expertise is next to nonexistent.
@conda-forge/libspatialite, any of the rest of you have time and expertise to try to fix this?
@conda-forge/libspatialite, any of the rest of you have time and expertise to try to fix this?
Windows is always hard. If you can send a PR please do!
I'm afraid I haven't been programming in C/C++ in about 15 years, so I'm afraid I'm not qualified to make a PR.
Nonetheless I have had a look as well and I think the main issue is that there are some macros not being set that control these features to be available. In header file gaiaconfig.h the macros are not being set, but if you use configure for the gcc based compiling the macros are added to a confdefs.h file, and I wonder if this logic isn't just kind of missing in the MSVC scripts provided.
So, I recently posted a message in the spatialite forum as well, because if above is the case, it probably would be better that it would be fixed/changed upstream? https://groups.google.com/g/spatialite-users/c/jb7wZWEs0_Y
Yes upstream would be best, but reading that conversation it sounds like they are not interested in MSVC builds (which we require for compatibility with Python on Windows). Can you list the macros that are missing on the Windows build? I can take a look then.
Yes upstream would be best, but reading that conversation it sounds like they are not interested in MSVC builds (which we require for compatibility with Python on Windows). Can you list the macros that are missing on the Windows build? I can take a look then.
I think these should do the trick:
#define GEOS_3100 1
#define GEOS_3110 1
Thanks for looking into it!
Solution to issue cannot be found in the documentation.
Issue
The geos 3.10 and geos 3.11 functions that were added in spatialite 5.1 don't seem to be available on windows. Par example
GeosDensify
,GeosMakeValid
,ReducePrecision
,...They all lead to an error being raised when used in a sql statement:
Error no such function: GeosDensify executing...
.Other geos functions are available though, e.g.
GEOSMinimumRotatedRectangle
.On Linux and MacOS all functions are available.
Installed packages
Environment info
reference https://github.com/geofileops/geofileops/issues/401