Deen,

I think this is a defect in CityGML that renders it incompatible with 
app-schema. This is not something that you can fix by yourself because, 
even if you did by changing the XSD files, your schema would be 
different to the official CityGML schema and your WFS service would not 
be interoperable. CityGML clients would not understand your WFS responses.

What are you trying to do? Do you want to deliver information via one 
service or are you preparing a CityGML change request?

I draw your attention to the annotation on GenericCityObjectType:
http://schemas.opengis.net/citygml/generics/2.0/generics.xsd
"Generic (user defined) city objects may be used to model features which 
are not covered explicitly by the CityGML schema. Generic objects must 
be used with care; they shall only be used if there is no appropiate 
[sic] thematic class available in the overall CityGML schema. Oherwise 
[sic], problems concerning semantic interoperability may arise."

This is warning you *against* using these types.

Why are you not able to use one of the other types? What are you trying 
to do? Who will consume the service? What are they trying to do?

Kind regards,
Ben,

On 13/05/16 09:24, Deen wrote:
> Hi Andrea and Ben, thanks for your replies.
> Ben, I am still a little bit confused about your suggestion. As far as I
> understand,in order to generate your example code via WFS, I will end up
> with adding a property called "stringAttribute" to the feature type
> "building",which is defined in
> http://schemas.opengis.net/citygml/building/2.0/building.xsd, because the
> type "building" itself does not have an explicit property called
> "stringAttribute". And the property probably looks like:
> <xs:element name="stringAttribute" type="gen:StringAttributeType"
> minOccurs="0" maxOccurs="unbounded"/>
> but what about the namespace of this property, it should be "bldg" not
> "gen",isn't it?  In addition, I still need to modify the generic.xsd by
> adding an element type
> <xs:element name="StringAttribute" type="StringAttributeType"
> substitutionGroup="_genericAttribute"/>
> Am I missing anything?
>
> Kind Regards
> Deen


-- 
Ben Caradoc-Davies <[email protected]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to