[gdal-dev] enable GEOS support (GDAL/OGR 1.7.1; GEOS 2.3.0;
szekerest at gmail.com
Fri Mar 5 14:57:22 EST 2010
You might wan't to make a test with the packages available at:
All of those gave geos support compiled in.
By downloading the SDK pacakges your could also compile gdal by yourself
easily using a VS Command Prompt and type 'nmake gdal' in the SDK root
2010/3/5 <toefftoeff1 at gmx.net>
> I would like to build and use OGR with GEOS support on Windows XP 32 bit
> Visual Basic.NET (.NET framework 2.0 or 3.5).
> GDAL/OGR 1.7.1 and GEOS 2.3.0 compilation seem to work fine (using
> nmake, Visual Studio 2008, only
> warnings, no error messages).
> I used the following GDAL/OGR nmake.opt settings to include GEOMS support:
> # Uncomment for GEOS support
> GEOS_CFLAGS = -I$(GEOS_DIR)/capi -I$(GEOS_DIR)/source/headers -DHAVE_GEOS
> GEOS_LIB = $(GEOS_DIR)/build/msvc90/Release/geos_c_i.lib
> But using GEOMS in a sample .NET project always results in an exception
> "GEOS support not enabled".
> Sample code:
> Dim g1 As Geometry = Geometry.CreateFromWkt("POLYGON((0 0,
> 10 10, 10 0, 0 0))")
> Dim g2 As Geometry = Geometry.CreateFromWkt("POLYGON((-90
> -90, -90 90, 190 -90, -90 -90))")
> Dim result As Boolean = g2.Contains(g1)
> I copied all GDAL/OGR wrapper libraries and geos_c.dll to the
> appropriate places.
> Any suggestions?
> Thanks a lot...
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev