Hi,

Apologies if this one has already been identified.
Where multiple properties of the same type have been encoded using the 
app-schema syntax below, only the last property is included in the GeoJSON 
output regardless of the number of times an attribute is mapped. GML outputs 
return all properties as expected.

      
https://docs.geoserver.org/latest/en/user/data/app-schema/feature-chaining.html#configure-nesting-on-the-nested-feature-type<https://docs.geoserver.org/latest/en/user/data/app-schema/feature-chaining.html>

      GeologicUnit has 3 gml:name properties in the mapping file, so each has a 
code space to clarify them:
      <AttributeMapping>
        <targetAttribute>gml:name[1]</targetAttribute>
        <sourceExpression>
          <OCQL>ABBREVIATION</OCQL>
        </sourceExpression>
        <ClientProperty>
          <name>codeSpace</name>
          <value>'urn:cgi:classifierScheme:GSV:GeologicalUnitCode'</value>
        </ClientProperty>
      </AttributeMapping>
      <AttributeMapping>
        <targetAttribute>gml:name[2]</targetAttribute>
        <sourceExpression>
          <OCQL>NAME</OCQL>
        </sourceExpression>
        <ClientProperty>
          <name>codeSpace</name>
          <value>'urn:cgi:classifierScheme:GSV:GeologicalUnitName'</value>
        </ClientProperty>
      </AttributeMapping>
      <AttributeMapping>
        <targetAttribute>gml:name[3]</targetAttribute>
        <sourceExpression>
          <OCQL>id</OCQL>
        </sourceExpression>
        <ClientProperty>
          <name>codeSpace</name>
          <value>'urn:cgi:classifierScheme:GSV:MappedFeatureReference'</value>
        </ClientProperty>
      </AttributeMapping>


I am currently using Geoserver 2.16.1, however this also occurred in versions 
2.14 and 2.15.
Is this a known limitation, or plans to handle this syntax for GeoJSON outputs 
in the future?
I'd love to get this working correctly, if anyone has some advice or can shed 
some light on why it's not working for json outputs only it would be greatly 
appreciated.

Kind Regards,
Ursula

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to