I'm creating a data model with user defined types (Composite Types) https://www.postgresql.org/docs/10/rowtypes.html to implement INSPIRE EU Data Model. And I want to publish my data with Web Feature Services (WFS). I tried that with GeoServer and MapServer.
GeoServer: doesn't read the column. When I tried, I got the follow warning:
09 mar 15:17:23 WARN [geotools.jdbc] - Could not find mapping for 'inspireid', ignoring the column and setting the feature type read only
MapServer: With MapServer I can have a WFS with all my data but not structured. For example, the column INSPIREID has 3 sub columns and it shows like this:
<base:inspireid>(vaedificio_100,https://catalog.inspire.geoportal.pt/BU/Building,"(2020-02-24,)")</base:inspireid>
insted of this
<base:inspireid>
<base:localid>vaedificio_100</base:localid>
<base:namespace>https://catalog.inspire.geoportal.pt/BU/Building</base:namespace>
<base:versionid>2020-02-24</base:versionid>
</base:inspireid>
Possible workarounds in both cases is to give the query directly but I lose the structured with that to. MapServer have a interesting feature, "gml_groups" but it doesn't work for complex hierarchies. And with MapServer I have little control over the nampespaces, witch is another problem.
Is there alternative or know to can I resolve this problem?