[Geoserver-users] Merging contents of two GMl files

Hi all,

I'm working on a project of extracting feature instances from multiple WFS
in parallel. Assuming data in all WFS is redundant. We want to partition
the query, get response of query from multiple WFS in parallel and then
merge the results from each WFS.

Now once data from each WFS is extracted as a GML file, I want to merge
all these GML files to form a single result file. Can anyone tell me what
can be best way to merge these files (Assume that the schema of feature
instances in all GML files is same).

I'm thinking of building R-tree index over these feature instances for
each GML file and use these R-tree index to merge the data. But still not
able to get the exact solution for this. I would really appreciate if
someone can tell me solution for this or place where I can search for the
solution. Is there any work done previously on similar problem?

Thanks,
Sanket Patle
Student
IIT Bombay, India.

Hi Sanket,

I think I remember a thread started by you a while back on this topic. Unfortunately the answer has not gotten much better... there is still no good way to merge together two separate gml files afaik. The brute force approach I presented last time might be the only way.

I am not sure what using a spatial index will buy you here. Unless you only wan to merge portions of each file together. One approach that might work is to load the GML you receive from each WFS into a single database table, like postgis. When then use a tool which converts the entire table to a GML file.

-Justin

Sanket Chandulal Patle wrote:

Hi all,

I'm working on a project of extracting feature instances from multiple WFS
in parallel. Assuming data in all WFS is redundant. We want to partition
the query, get response of query from multiple WFS in parallel and then
merge the results from each WFS.

Now once data from each WFS is extracted as a GML file, I want to merge
all these GML files to form a single result file. Can anyone tell me what
can be best way to merge these files (Assume that the schema of feature
instances in all GML files is same).

I'm thinking of building R-tree index over these feature instances for
each GML file and use these R-tree index to merge the data. But still not
able to get the exact solution for this. I would really appreciate if
someone can tell me solution for this or place where I can search for the
solution. Is there any work done previously on similar problem?

Thanks,
Sanket Patle
Student
IIT Bombay, India.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.