Hi everyone,
I'm trying to write a theme plugin for GeoServer - geoserver interface
where you can maintain layers as a tree structure, similar to files
(layers) and directories (themes).
1) Themes can be inside of themes (just like directories)
2) Same layer can be found in several themes.
3) Order of layers inside of a theme is important.
Then I want to create some rest interface that returns this tree as a json,
so that a client can pick it up and render it. Last part looks
quite straightforward but I'm confused with the first one.
I can see some similarity with LayerGroups so I want something like this:
LayerThemeInfo lt = catalog.getFactory().createLayerTheme();
lt.setName( "Theme1" );
lt.getLayers().add( catalog.getLayerByName(
"sf:PrimitiveGeoFeature" ) );
lt.getLayers().add( catalog.getLayerByName(
"sf:AggregateGeoFeature" ) );
catalog.add( lt );
Question: how can I extend Catalog, any extension points? Or maybe any
examples that I can have a look at? Also I don't want to invent a bicycle,
maybe there is already a solution fot this problem?
Thanks Alex
P.S. Should I move this topic to geoserver-dev?
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users