Combining different datastores

View: New views
2 Messages — Rating Filter:   Alert me  

Combining different datastores

by Hartmuth Schachinger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is it possible to combine data from different datastores. I want to
create a datastore, that gets its geometry from postgis and some
attribute data from mysql. Is it possible to create such a datastore. I
want to distribute this data as WFS and if possible as WMS.

thanks in advance

Hartmuth Schachinger

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Re: Combining different datastores

by Andrea Aime-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hartmuth Schachinger ha scritto:
> Is it possible to combine data from different datastores. I want to
> create a datastore, that gets its geometry from postgis and some
> attribute data from mysql. Is it possible to create such a datastore. I
> want to distribute this data as WFS and if possible as WMS.

GeoServer 2.0 has a module, called app-schema, that can do this kind of
mapping (among many other, powerful feature), but it's hard
to use at the moment as there is no UI to configure it, and it will work
for WFS only.
The module is documented here:
http://docs.geoserver.org/trunk/en/user/data/app-schema/index.html

A simpler alternative is to setup a periodic job that copies the
mysql table contents to postgres and then build a joining view
there.
You can then publish the view using GeoServer (remember to register
the geometry columns contained in the view in the geometry__columns
table so that GS will know the geometry type and the spatial reference
system of the geometries).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users