Include data within a component

I have created a component containing a Generic Javascript View that generates a choropleth map based on specific German subdivision (“Kreise”). I want to include the geojson file that defines the subdivisions’ polygons and is read by a JSON Reader node in the component. How can I do that?

Hi @mattflor,

see here how to do it: Shared component with external file

Guess you planned to share/re-use Component?

Br,
Ivan

2 Likes

Hi @ipazin,

exactly, this would be for sharing purposes. I had actually used a knime://knime.node/../.data URL in the JSON Reader node already (and put the geojson file there), but on copying or sharing/re-using the component that data folder does not seem to be copied. There is a ticket being mentioned for that in Shared component with external file if I am not mistaken. Or am I still doing something wrong?

Thank, Matt

2 Likes

Hello @mattflor,

you are not mistaken as all data is removed from the component folder when you share it. There is ticket and I have given it +1 for you. (Internal reference: AP-6125)

Br,
Ivan

6 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.