Skip to main content
Question

Reading OSM and editing fme_map_features_config.xml

  • January 29, 2018
  • 0 replies
  • 11 views

btl
Contributor
Forum|alt.badge.img+8

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.

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.