Hi Jorge,
you are confirming a misbehavior I reported to the geotools-devel list
about a month ago:
http://osgeo-org.1560.x6.nabble.com/App-schema-problem-encoding-multi-valued-target-attribute-containing-only-client-properties-using-dea-td5227294.html

I have not had time to try and fix it yet, as the fix doesn't seem trivial
(at least to my limited knowledge).

In the meantime, you could try splitting your denormalized table in two,
one for profiles and one for profile layers, and then join them via Feature
Chaining
<http://docs.geoserver.org/latest/en/user/data/app-schema/feature-chaining.html>
.

Let me know if you need further help setting this up.


On Wed, Oct 28, 2015 at 4:53 PM, Jorge Samuel Mendes de Jesus <
jorge.mendesdeje...@wur.nl> wrote:

> Hi
>
> Me again :) I am having a problem with multivalue properties in
> ClientPropery my application schema mapping
> Geoserver: 2.7.3
> Postigis: 9.3
> OS: Ubuntu 14.04.3 LTS
>
> My DB table is as follows
> profile_id;profile_layer_id;upper_depth
> 45101;77583;0
> 45101;77584;4
> 45101;77585;25
>
> So 1  profile_id   * multiple profile_layers_is.  I need to map them in
> something like this
> <soil:SO_Soil gml:id="soil.so_soil.45101">
>     <soil:soHorizon xlink:title='foo' xlink:href=77583>
>    <soil:soHorizon xlink:title='foo' xlink:href=77584>
> <soil:soHorizon xlink:title='foo' xlink:href=77585>
> </soil:SO_Soil>
>
> But I am only getting 1 soHorizon
> <soil:SO_Soil gml:id="soil.so_soil.45101">
>     <soil:soHorizon xlink:href=77585>
> </soil:SO_Soil>
>
> Current mapping
>      <AttributeMapping>
>                       <isDenormalised>true</isDenormalised>
>                         <encodeIfEmpty>true</encodeIfEmpty>
>                          <isMultiple>true</isMultiple>
>
>                          <targetAttribute>soil:soHorizon</targetAttribute>
>                            <ClientProperty>
>                                                 <name>xlink:ref</name>
>
> <value>profile_layer_id</value>
>                                 </ClientProperty>
>
>                          </AttributeMapping>
>
> I only get the last value of the table xlink:href=77585 if I set the
> isMultiple (false) I get the first one (I undestand this part)
>
> The full mapping is here:
> http://pastebin.com/573agyUR
>
> I found the same problem in this tutorial:
>
> https://sites.google.com/site/inspiremappingtutorial/land-use-mapping-details/5-2-spatialplan_mapping-xml
> (check line in red in the middle)
>
> I am a bit lost, any tips ?
>
> Cheers
> Jorge
>
> --
> ISRIC - World Soil Information
> Post: PO box 353, 6700 AJ, Wageningen,
> The Netherlands Visiting Address: Droevendaalsesteeg 3, 6708 PB
> Wageningen (Bdg. 101),
> Office: C.013
> Office Phone: +31 (0) 317 4 83715
> Mobile Phone: +31 (0) 613 9 06950
> Skype: jorge.de.jesus (Jorge Samuel Mendes de Jesus)
> OpenPGPKey: 0xA3D0065A
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 

Best regards,
Stefano Costa

==
GeoServer Professional Services from the experts!
Visithttp://goo.gl/it488V for more information.
==
Dott. Stefano Costa
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it

-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate.
Il loro utilizzo è consentito esclusivamente al destinatario del
messaggio, per le finalità indicate nel messaggio stesso. Qualora
riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail e di procedere alla
distruzione del messaggio stesso, cancellandolo dal Vostro sistema.
Conservare il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità
diverse, costituisce comportamento contrario ai principi dettati dal
D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely
for the attention and use of the named addressee(s) and may be
confidential or proprietary in nature or covered by the provisions of
privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New
Data Protection Code).Any use not in accord with its purpose, any
disclosure, reproduction, copying, distribution, or either
dissemination, either whole or partial, is strictly forbidden except
previous formal approval of the named addressee(s). If you are not the
intended recipient, please contact immediately the sender by
telephone, fax or e-mail and delete the information in this message
that has been received in error. The sender does not give any warranty
or accept liability as the content, accuracy or completeness of sent
messages and accepts no responsibility  for changes made after they
were sent or for other risks which arise as a result of e-mail
transmission, viruses, etc.
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to