Hello
I reopen a new question about a big problem
I have an AIXM 4.5 file and i have to translate that file in the AIXM 5.1 schema. I have already made some good translations but i have a problem with the FME type XML_Geometry
Here are some pictures to explain my problem
I have first a sample file found on the web in the AIXM5.1 format. It concern the RunwayCentreLinePoint feature and it contains a XML structure beginning by "associatedDeclaredDistance":
This structure "associatedDeclaredDistance" can be repeated in the same element "RunwayCentreLinePointTimeSlice" as many time you have an information about a characteristics associated with a runway, called a distance. This structure is defined in the AIXM 5.1 schema (FME) as a list containing a XML_Geometry structure (FME type):
The third file .png shows how a feature looks like when you have the inspector:
For the XML Structure "associatedDeclaredDistance" i see it's made with an aggregate of multi parts (declaredValue and timeInterval)
I give you the initial sample file i found on the web
So, now .... i give you the problem i have ...
I have to translate an AIXM 4.5 file in the AIXM 5.1 structure. I give you my file (a part )
In that file you have all the necessary stuff to make a good translation between the initial schema to the final schema. I give you also the file "fmw" i have made and my first attempt to complete the goal i explain here.
Now ... the problem : I try without any success to add a bookmark to map the "associatedDeclaredDistance" in the workspace. When i launch the FME script, the good structure appears at the beginning but when i try to add the nested elements inside (declaredValue and timeInterval) all is going wrong .... the structure XML disappear, and some XML structure defined before (Elevated Point) disappear too ...Try to launch without the assocatedDeclaredDistance bookmark and the XML structure "ElevatedPoint" appears again ...
I try many many times ...When i look with the inspector, i don't succeed in mapping the attributes in a way it has a good aggregate structure as in the example i show you at first ...
I need a good help on that subject and specifically about the XML_Geometry type used by FME and how to succeed to match a nested structure. I have read and follow many samples on the FME website... it doesn't work with the XML_Templater because the output schema should be in the form of XML_fragments and in my case the output element "associatedDeclaredDistance" is an XML_Geometry. It seems i have to use the "GeometryPropertySetter" transformer with some details about the xquery details but it's hard for me without any samples and good documentation
A element "annotation" inside the output schema is of XML_fragment type and i used XML_templater with success ...