Hello,
Here's the scenario.
I have Many databases with geospatial data partitioned by state.
I want to write a custom data store that takes a bounding box and a feature
type (table to extract from). The datastore will take the bounding box and
do an intersection query to see what
states the bounding box intersects (that will tell me what databases to
visit to extract features from).
Once I get the list of states that intersect the bounding box I will run
through the list of states and build the list of features from each of the
states that fall within the bounding box.
then I will return those features (I'm guessing as a FeatureSource?)

To begin with I want to make things really simple.  I'm going to have a
configuration file where I have the state code and its associated postGIS
database server connection parameters, those parameters will be read
perhaps in a statis variable (data is read-only).
I was thinking..
should I simply write a wrapper around postGIS datastore that internally
keeps a map of PostGIS datastores, each datastore being 1 state and then
once I figure out the intersecting states submit the query to the postGIS
datastores that is associated with each state?

or should I go a level deeper and "extend" postGIS datastore (or JDBC
datastore? not sure) to be "state boundary" aware?

Obviously I will want the DataStore to be discoverable through SPI since I
will plug it into Geoserver.

Geoserver will then "query" the datastore like it would a standard postGIS
datastore in a WMS getMap request.

Can someone give me a starting point in terms of "where to look" in Geotools
and maybe what I can extend/look at? I'm have read
http://docs.geotools.org/latest/tutorials/advanced/datastore.html
but I'm thinking that I want something higher level than that because I want
to piggy back the postGIS datastore that takes care of the mapping to
PostGIS SQL code for me.

Thanks and regards,
Alessandro Ferrucci
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to