[Gdal-dev] Re: OGR with Geos in Windows?

Rodrigo Aceves roaceves at inaoep.mx
Wed Nov 24 13:39:23 EST 2004


The problem is OGR with GEOS support.  I have compiled GDAL 1.2.4 wiht VC
.NET and it went perfect, no problem at all. The problem is when I try to
use OGRGeomtry::Within().

This function only works (according to OGR help) when GEOS support is
enabled.

So I tried to compile OGR with GEOS but that is the problem.

I have succesfully compiled GEOS 1.0.0 alone. Is this version enough for
OGR?

I was looking all over the code where to define the HAVE_GEOS flag, and
since I didn't find any comments about it I put it in the ogr_geos.h file,
is that correct?

I am going to try your advise.

Thanks.

Regards.


"Frank Warmerdam" <warmerdam at pobox.com> escribió en el mensaje
news:41A4CC12.6010102 at pobox.com...
> Rodrigo Aceves wrote:
> > I'm trying to build OGR (GDAL) in Windows, but I can't figure it out
how.
> > Any ideas?
>
> Rodrigo,
>
> Is your problem with building GDAL/OGR itself or specifically with
including
> geos support?  GDAL/OGR building is covered briefly at:
>
>    http://gdal.org/gdal_building.html
>
> I have never built with GEOS support on windows yet.  To do so I imagine
you
> would need to ensure that HAVE_GEOS is defined (-DHAVE_GEOS=1 in OPTFLAGS
> for instance), and that the directory above the geos include directory is
> in the include path. Then link in the geos library (put it in ADD_LIBS
> variable in nmake.opt).
>
> As far as I know, geos itself doesn't have a vc makefile, so you may have
> a bit of effort at that end.
>
> I really should add it to my FWTools builds for windows at which time I
> would add it more properly as an option in nmake.opt.
>
> Best regards,
>
> -- 
> ---------------------------------------+----------------------------------
----
> I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Programmer for Rent






More information about the Gdal-dev mailing list