Sirko,

I have tracked down the GeoServer configuration that Alistair Ritchie 
(formerly of GSV) was able to get working with Niels Charlier's 
app-schema WMS support on trunk. It is attached to an internal Jira 
reminding us to document it in the manual.  :-/

Anyway, the magic sauce that is missing is the layer.xml file in the 
same directory as the featuretype.xml. This defines the layer and the 
style used to render it (as well as turning it on!). For example, a 
layer.xml that enabled WMS for the app-schema tutorial 
gsml:MappedFeature looks like this:

<layer>
   <id>gsml_MappedFeature_layer</id>
   <name>MappedFeature</name>
   <path>/</path>
   <type>VECTOR</type>
   <defaultStyle>
     <name>polygon</name>
   </defaultStyle>
   <resource class="featureType">
     <id>gsml_MappedFeature_featuretype</id>
   </resource>
   <enabled>true</enabled>
   <attribution>
     <logoWidth>0</logoWidth>
     <logoHeight>0</logoHeight>
   </attribution>
</layer>

With this layer.xml installed, I can see the three tiny back specks 
which are the tutorial polygons:
http://localhost:8080/geoserver/wms?version=1.1.1&request=GetMap&layers=gsml:MappedFeature&bbox=143,-39,144,-38&width=256&height=256&format=image/png

As I mentioned, you need trunk (i.e. 2.2-SNAPSHOT) to use app-schema WMS.

Kind regards,

-- 
Ben Caradoc-Davies <[email protected]>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to