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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users