Hi,<br><br>You might wan&#39;t to make a test with the packages available at:<br><a href="http://vbkto.dyndns.org/sdk/">http://vbkto.dyndns.org/sdk/</a><br><br>All of those gave geos support compiled in.<br><br>By downloading the SDK pacakges your could also compile gdal by yourself easily using a VS Command Prompt and type &#39;nmake gdal&#39; in the SDK root directory.<br>
<br>Best regards,<br><br>Tamas<br><br><br><div class="gmail_quote">2010/3/5  <span dir="ltr">&lt;<a href="mailto:toefftoeff1@gmx.net">toefftoeff1@gmx.net</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I would like to build and use OGR with GEOS support on Windows XP 32 bit<br>
using<br>
Visual Basic.NET (.NET framework 2.0 or 3.5).<br>
<br>
GDAL/OGR 1.7.1 and GEOS 2.3.0 compilation seem to work fine (using<br>
nmake, Visual Studio 2008, only<br>
warnings, no error messages).<br>
<br>
I used the following GDAL/OGR nmake.opt settings to include GEOMS support:<br>
<br>
# Uncomment for GEOS support<br>
GEOS_DIR=D:\svn\code\Tools\geos-3.2.0<br>
GEOS_CFLAGS = -I$(GEOS_DIR)/capi -I$(GEOS_DIR)/source/headers -DHAVE_GEOS<br>
GEOS_LIB     = $(GEOS_DIR)/build/msvc90/Release/geos_c_i.lib<br>
<br>
But using GEOMS in a sample .NET project always results in an exception<br>
&quot;GEOS support not enabled&quot;.<br>
<br>
Sample code:<br>
<br>
            Ogr.RegisterAll()<br>
<br>
            Dim g1 As Geometry = Geometry.CreateFromWkt(&quot;POLYGON((0 0,<br>
10 10, 10 0, 0 0))&quot;)<br>
            Dim g2 As Geometry = Geometry.CreateFromWkt(&quot;POLYGON((-90<br>
-90, -90 90, 190 -90, -90 -90))&quot;)<br>
<br>
            Dim result As Boolean = g2.Contains(g1)<br>
<br>
I copied all GDAL/OGR wrapper libraries and geos_c.dll to the<br>
appropriate places.<br>
<br>
Any suggestions?<br>
<br>
Thanks a lot...<br>
<br>
  Christoph<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br>