Hi Tamas, thanks a lot for Your reply.
Using Your SDK I was able to track down the compilation problem - swig did not re-generate all files and I needed to include an extra GEOS-header directory as follows: GEOS_CFLAGS = -I$(GEOS_DIR)/capi -I$(GEOS_DIR)/source/headers -I$(GEOS_DIR)/source/headers/geos -DHAVE_GEOS -- Kind regards, Christoph > Hi, > > You might wan't to make a test with the packages available at: > http://vbkto.dyndns.org/sdk/ > > 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 directory. > > Best regards, > > Tamas > > > 2010/3/5 <[email protected] <mailto:[email protected]>> > > Hello, > > I would like to build and use OGR with GEOS support on Windows XP > 32 bit > using > 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_DIR=D:\svn\code\Tools\geos-3.2.0 > 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: > > Ogr.RegisterAll() > > 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... > > Christoph > _______________________________________________ > gdal-dev mailing list > [email protected] <mailto:[email protected]> > http://lists.osgeo.org/mailman/listinfo/gdal-dev > >
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
