Hi everyone,

currently I am trying to map the feature type 'Building' of CityGML with
geoserver application schema and I came across some problems when i tried
to map the generic attributes of the buildings. One of feature types about
the generic attributes of the building is "stringAttribute",which is
defined in http://schemas.opengis.net/citygml/generics/2.0/generics.xsd,
and what i want is just chaining two feature types "buildng" and
"stringAttribute"

Here is the a piece of my mapping file "bldg_Building.xml"

    <typeMappings>
        <FeatureTypeMapping>
            <sourceDataStore>bldg</sourceDataStore>
            <sourceType>v1_bldg_building</sourceType>
            <targetElement>bldg:Building</targetElement>
            ......
            <AttributeMapping>

<targetAttribute>core:_GenericApplicationPropertyOfCityObject</targetAttribute>
                    <sourceExpression>
                        <OCQL>id</OCQL>
                        <linkElement>gen:stringAttribute</linkElement>
                        <linkField>FEATURE_LINK</linkField>
                    </sourceExpression>

<targetAttributeNode>gen:StringAttributeType</targetAttributeNode>
                </AttributeMapping>
              ......
  <typeMappings>

Here is the a piece of my mapping file "gen_stringAttribute.xml"

 <typeMappings>
        <FeatureTypeMapping>
            <sourceDataStore>bldg</sourceDataStore>
            <sourceType>v1_gen_string_attr</sourceType>
            <targetElement>gen:stringAttribute</targetElement>
             .......
            <AttributeMapping>
                    <targetAttribute>FEATURE_LINK</targetAttribute>
                    <sourceExpression>
                        <OCQL>cityobject_id</OCQL>
                    </sourceExpression>
                </AttributeMapping>
             ......
 </typeMappings>


Here is What I got from WFS of geoserver :

<gml:featureMember>
<bldg:Building gml:id="BLDG_0003000b0009a940">
     <core:_GenericApplicationPropertyOfCityObject>
     [FeatureImpl:stringAttribute<StringAttributeType
id=DENK_ID>=[AttributeImpl:value<string>=09030374]]
        <gen:stringAttribute>
           <gen:value>09030374</gen:value>
       </gen:stringAttribute>
     </core:_GenericApplicationPropertyOfCityObject>
     <core:_GenericApplicationPropertyOfCityObject>
          <gen:stringAttribute>
           <gen:value>09030374</gen:value>
       </gen:stringAttribute>
   </core:_GenericApplicationPropertyOfCityObject>
     .....

My question is if there is any way to link two feature types without
"container" attribute "core:_GenericApplicationPropertyOfCityObject",
because the standard GML file  is something like

<bldg:Building gml:id="BLDG_0003000b0009a940">
        <gen:stringAttribute>
           <gen:value>09030374</gen:value>
       </gen:stringAttribute>
              <gen:stringAttribute>
           <gen:value>0903387</gen:value>
       </gen:stringAttribute>
......

This problem is bugging me for a while and any help I would really
appreciate

Thanks
Deen


gen_stringAttribute.xml (3K) 
<http://osgeo-org.1560.x6.nabble.com/attachment/5265622/0/gen_stringAttribute.xml>
bldg_Building.xml (6K) 
<http://osgeo-org.1560.x6.nabble.com/attachment/5265622/1/bldg_Building.xml>




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Problems-with-CityGML-and-application-schema-tp5265622.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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