Skip to main content
Question

kml description 2 shp

  • December 18, 2018
  • 3 replies
  • 20 views

fer_ruiz
Contributor
Forum|alt.badge.img+2

i dont know how do it, i see some discussion here but i dont know what i do wrong.

the input

the worckbench

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • December 18, 2018

Hi @ftl,

Please change the XQuery expression in the XMLXQueryExtractor to:

declare namespace x='http://www.w3.org/1999/xhtml';
for $x in /x:html/x:body/x:table/x:tr/x:td/x:table/x:tr
return fme:set-attribute($x/x:td[1]/text(),$x/x:td[2]/text())

fer_ruiz
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • 23 replies
  • December 19, 2018

great,,.... thanks a lot @DaveAtSafe


oscard
Influencer
Forum|alt.badge.img+22
  • Influencer
  • 344 replies
  • December 20, 2018

great,,.... thanks a lot @DaveAtSafe

Bare in mind this works beatifully if the kml_description is displayed as a table. It could be modified to present the data with a custom layout that drops the table settings. In those cases, extracting the attributes is way trickier.