Adrian Musceac
2012-12-10 15:41:53 UTC
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
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