I solved my own problem. It was due to the fact that my workspace URI wasn’t set to match the URI specified in my data store and mapping file.
Thanks,
Danny
···
From: Danny Cheng
Sent: Monday, September 22, 2014 12:00 PM
To: geoserver-users@lists.sourceforge.net
Subject: Complex Feature; Feature Type
Hi Everyone:
I have 2 simple features setup inside my PostgreSQL database and I am trying to follow the app schema tutorial (http://docs.geoserver.org/stable/en/user/data/app-schema/tutorial.html) to convert them into a complex feature. I modified datastore.xml and added a mapping file, but when I try to get the feature through WFS request, it tells me that : is unknown.
Does my new complex feature have to use the same name as the simple feature? Right now I have simple feature A and B, and I’m trying to make a complex feature C from A and B. The unknown feature type error occurs when I try to send a WFS get request for :C.
I defined my complex feature C in the mapping file as follows.
http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd</schemaUri>
datastore
A
namespace:C
namespace:C
fid
gml:name[1]
filename
gml:name[2]
description
Thanks,
Danny