PS: I've also played with resolution depth, resolve=all. However, as I have not chained all included features (for some I just generate an xlink URL and map this value), enabling resolve all causes errors with these non-chained features

On 06.07.2020 16:44, Kathi Schleidt wrote:

Hiya,

I've encountered a strangeness in my GeoServer App Schema Config - it's refusing to included nested FeatureTypes although I'm sure this used to work.

Specific example pertains to INSPIRE EnvironmentalMonitoringFacilities, issue pertains to both the ef:operationalActivityPeriod and ef:observingCapability. I've tried various alternatives, with and without mapping name, but the result is always just an xlink to the ID (interesting is that under the OGC API - Features extension, these bits are properly nested!). DataTypes such as the base2:RelatedParty come through without a hitch.

Am I doing something wrong in the mapping? (entire file attached, relevant bits inline below) Is there another file (one of the wfs.xml) that needs some tender loving care?

:?

Kathi

Current output

<ef:operationalActivityPeriod xlink:href="#A021005050"/>

Attribute Mapping for ef:operationalActivityPeriod from main FT ef:EnvironmentalMonitoringFacility

<AttributeMapping>
<targetAttribute>ef:operationalActivityPeriod</targetAttribute>
          <sourceExpression>
            <OCQL>id</OCQL>
            <linkElement>_opact</linkElement>
            <linkField>FEATURE_LINK</linkField>
          </sourceExpression>
        </AttributeMapping>

Header of the chained bit for

<FeatureTypeMapping>
<sourceDataStore>idDataStoreInsp</sourceDataStore>
      <sourceType>ef_opact_v</sourceType>
<targetElement>ef:OperationalActivityPeriod</targetElement>
      <mappingName>_opact</mappingName>
      <attributeMappings>
        <AttributeMapping>
<targetAttribute>FEATURE_LINK</targetAttribute>
          <sourceExpression>
            <OCQL>efid</OCQL>
          </sourceExpression>
        </AttributeMapping>
        <AttributeMapping>
<targetAttribute>ef:OperationalActivityPeriod</targetAttribute>
          <idExpression>
            <OCQL>gmlid</OCQL>
          </idExpression>
        </AttributeMapping>




--
_________________________________________________________________________
Katharina Schleidt
Tel: +43 (1) 89 234 26
Mobile: +43 (650) 89 234 26
Skype: Kathi Schleidt
[email protected]
www.schleidt.org/kathi

In the twenty-first century censorship works by flooding people with irrelevant 
information.
-- Homo Deus, Yuval Noah Harari

The people can always be brought to the bidding of the leaders.
That is easy. All you have to do is tell them they are being attacked
and denounce the pacifists for lack of patriotism and exposing the country to 
danger.
It works the same way in any country.
--Hermann Göring, Nazi military leader (12 Jan 1893-1946)

--
_________________________________________________________________________
Katharina Schleidt
Tel: +43 (1) 89 234 26
Mobile: +43 (650) 89 234 26
Skype: Kathi Schleidt
[email protected]
www.schleidt.org/kathi

In the twenty-first century censorship works by flooding people with irrelevant 
information.
-- Homo Deus, Yuval Noah Harari

The people can always be brought to the bidding of the leaders.
That is easy. All you have to do is tell them they are being attacked
and denounce the pacifists for lack of patriotism and exposing the country to 
danger.
It works the same way in any country.
--Hermann Göring, Nazi military leader (12 Jan 1893-1946)

_______________________________________________
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