Question

Reading OSM and editing fme_map_features_config.xml

  • 29 January 2018
  • 0 replies
  • 3 views

Badge

I want to modify which attributes I get when reading OSM data.

For example I want to see the "generator:source" tag as an attribute in the power feature.

I can add it as an atribute to all features by adding it to the list of attributes near the top of "fme_map_features_config.xml" as follows:

<fme_osm_config>
<add>
<geom_type name="aggregate"></geom_type>
<geom_type .....

<attribute name="id" type="string"></attribute>
<attribute name="timestamp" type="string"></attribute>
<attribute name ........
my addition->   <attribute name="generator:source" type="string"></attribute>

But there is a section further down for the power feature that looks like this:

	<key k="power">
<value v="cable"></value>
<value v="cable_distribution_cabinet"></value>
<value v="catenary_mast"></value>
<value ......
</key>

Can I edit this section so that "generator:source" appears as an attribute in the power feature only?  I have played around with all sorts of syntax but can't get the result I want.


0 replies

Be the first to reply!

Reply