[Geoserver-devel] Dynamic Layers

Hi,

I’m working on a project which is basically a custom web visualizator.
Because of business logic, several layers are calculated at server side and added to PostGIS every ten days. After that, they must be registered to GeoServer so they can be published as WMS.
I’m looking for a transactional way to load geographic data to PostGIS and configure GeoServer layers.

Is there any straight forward way to do that?

I saw I can load PostGIS layers programmatically using cURL, but I’d have to implement the transaction part. Besides, keeping synchronized GeoServer configuration and layers in database can be a problem.

Can GeoServer read its configuration from a table in database? For example, it would be very useful that GeoServer determine which layers are available at the execution time of the getCapabilites or getMap operations, for example, reading from a table named AvailableLayers in database.
I saw there is a class named CatalogImpl which contains which layers are available to GeoServer, but it’s loaded by GeoServerLoader class at GeoServer load time. That was as far as I could get.

Changing the subject, another thing that could be useful is to have different layers on the same PostGIS table. Is it posible tih GeoServer?

Any ideas?

Thanks.

Hi,

Storing the catalog in a database is something that is currently be worked on, but not yet a reality yet. So for now really the only facility you have is the rest configuration api.

-Justin

On Fri, Aug 27, 2010 at 7:55 AM, Fernando Barbat <fbarbat@anonymised.com> wrote:

Hi,

I’m working on a project which is basically a custom web visualizator.
Because of business logic, several layers are calculated at server side and added to PostGIS every ten days. After that, they must be registered to GeoServer so they can be published as WMS.
I’m looking for a transactional way to load geographic data to PostGIS and configure GeoServer layers.

Is there any straight forward way to do that?

I saw I can load PostGIS layers programmatically using cURL, but I’d have to implement the transaction part. Besides, keeping synchronized GeoServer configuration and layers in database can be a problem.

Can GeoServer read its configuration from a table in database? For example, it would be very useful that GeoServer determine which layers are available at the execution time of the getCapabilites or getMap operations, for example, reading from a table named AvailableLayers in database.
I saw there is a class named CatalogImpl which contains which layers are available to GeoServer, but it’s loaded by GeoServerLoader class at GeoServer load time. That was as far as I could get.

Changing the subject, another thing that could be useful is to have different layers on the same PostGIS table. Is it posible tih GeoServer?

Any ideas?

Thanks.


Sell apps to millions through the Intel(R) Atom™ Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


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