[Gdal-dev] Using GEOS in OGR C#

Jean Michel PIERRET jmp at geosys.com
Tue May 22 11:12:32 EDT 2007


Hi,

It's seems ok now.

My Problem was not in the compil of gdal but in the compil of geos my
geos_c.dll was corrupt.

Apologize for any inconvenience

Best Regards.
 
Jean-michel PIERRET - Poste  376
Tel : +33 (0)5 62 47 80 76
Mail : jmp at geosys.com
GEOSYS SA



-----Message d'origine-----
De : Tamas Szekeres [mailto:szekerest at gmail.com] 
Envoyé : mardi 22 mai 2007 16:28
À : Jean Michel PIERRET
Cc : gdal-dev at lists.maptools.org
Objet : Re: RE : [Gdal-dev] Using GEOS in OGR C#

Jean,

I've tested the trunk with the GEOS option and seems to be working for
me. I've added a new example (OGRGEOS.cs) to the trunk for testing the
geos support.

I continue to think you are using an incorrect version of the
gdal14.dll. Would you mind copying the compiled version of this dll
into you application directory? You might also run the ogrgeos.exe in
the swig/csharp directory (after copying gdal14.dll here).

Best regards,

Tamas



2007/5/22, Jean Michel PIERRET <jmp at geosys.com>:
> Hi,
>
> I have the same problem where the latest gdal-svn-trunk-2007.05.09.
>
> What are all the operations for enabled the GEOS support?
>
> Thanks, Best Regards,
>
> Jean-michel PIERRET - Poste 376
> Tel : +33 (0)5 62 47 80 76
> Mail : jmp at geosys.com
> GEOSYS SA
>
>
>
> -----Message d'origine-----
> De: Tamas Szekeres [mailto:szekerest at gmail.com]
> Envoyé: lundi 21 mai 2007 12:46
> À: Jean Michel PIERRET
> Cc: gdal-dev at lists.maptools.org
> Objet: Re: [Gdal-dev] Using GEOS in OGR C#
>
> 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