[Gdal-dev] Using GEOS in OGR C#

Tamas Szekeres szekerest at gmail.com
Mon May 21 06:45:47 EDT 2007


Hi,

It seems that the GEOS support is not actually enabled in your
project. In this case the Intersect method tests the overlapping of
the envelopes of the 2 geometries.

Are you sure the correct version of the dll-s have been loaded?

In the recent days I've changed the csharp bindings to link against
gdal14.dll instead of the static linking. The previous approach might
lead to various problems. Checkout the latest svn-trunk to rely on
these changes.

Best regards,

Tamas


2007/5/21, Jean Michel PIERRET <jmp at geosys.com>:
> Hi,
>
> I'm looking for someone who tries to use GEOS in the C# OGR.
>
> Thanks.
>
> Best Regards
>
> PIERRET Jean michel
>
> ----------------------------------------------------------------------------
>
> Hi,
>
> I try to use the OGR's library in Csharp and the GEOS support but I have 2
> problems. I'm using the "gdal-svn-trunk-2007.05.09".
>
> 1) With the objects "OSGEO.OGR.Geometry" when I use the method "Contains" it
> turns over me an error "GEOS support not enabled". However I have
> uncommented the support GEOS in the file "nmake.opt" and the compilation
> return no error.
>
> GEOS_CFLAGS = -IE:\Mapserver\geos-2.2.3\source/capi -DHAVE_GEOS
> GEOS_LIB     = E:\Mapserver\geos-2.2.3\source/geos_c_i.lib
>
> When I use on the same object the method "Intersect" it seems work.
>
> 2) Can I use in csharp this method: "Ogr.CreateGeometryFromWkt".
>
> Best Regards
>
> PIERRET Jean michel
>
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>



More information about the Gdal-dev mailing list