I am just figuring out how to use GeoServer and PostGIS. I am using the States.shp example that came with GeoServer, and I have uploaded that into a table into the PostGIS database. I have created a new layer, and can make WFS requests to get back GML. For example:
This returns a GML of the top 1 state (which happens to be Illinois). I use a view, and aside from the geometric data, I also get all the fields I have exposed in the view, which happen to be “name” and “abbreviation”.
If I add a second table, say a list of cities within each state, is it possible to return this information within the GML? Is there an easy way to do this using the setup I have described?