Hi guys,

I know there's not much activity on this list, but I have a question directed 
at the terragear developers especially.

I have a list of coordinates, namely elevation points, and a list of polygons, 
obtained by ogr-decode (lots of polygons, obtained through Corine).

Now, I've written my own tool which uses gdal/ogr with GEOS bindings, in order 
to perform the OGRGeometry::Within() test for each point. (Actually I'm using 
a very small line because points tend to give me an exception).

So far so good, except for the fact that I have about 900 tables each with 
12000 + coordinate points. The Within test performed by GEOS takes too long.
I've calculated that I would need 40 days to fill my database which is 
unacceptable.

I wonder if anybody has a better solution to my problem rather than using the 
point-in-poly routine of GEOS. I've not tried shapefiles, because ogr-decode 
gives me exactly the name/type of terrain used by Flightgear.

I'm considering writing a program using an OSG intersect visitor on each small 
btg tile, but I don't know whether that would be any faster at all.

Thanks for any answers.

Cheers,
Adrian

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Flightgear-scenery mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-scenery

Reply via email to