NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

2
1

I have a csv file holding coordinates, I am able to import it correctly into umap. I managed to also have the marker name imported through an additional column named 'name'. However, I would like to import the color of the marker.

Here is an example of input file:

lon;lat;name;color
2.2908106734441;48.8421565600018;aaa;green
2.40580700033425;48.8756657433978;bbb;red
2.33270615799049;48.8661396641722;ccc;blue
2.34734689771536;48.8668886093452;ddd;yellow

This does not work. I also tried using HTML/CSS colors (i.e. replacing 'red' with #ff0000). This does not work either. What I don't understand is that is is stated here: https://wiki.openstreetmap.org/wiki/UMap/Guide/Import_data_files

csv: [...] All other columns will be imported as properties.

Did I misunderstand something?

If this is not possible with csv, is it possible with other file formats?

Thanks for all suggestions.

Edit: the real file is about 5000 markers, so I can't edit them one by one...

asked 27 Oct '21, 13:55

sebkramm's gravatar image

sebkramm
41114
accept rate: 0%

edited 27 Oct '21, 14:34


In umap Github there is a description how this can be achieved using GeoJSON. Maybe that is a way for you to do it.

permanent link

answered 27 Oct '21, 18:26

TZorn's gravatar image

TZorn
12.3k764225
accept rate: 15%

Thanks, I'll have a look, but I have to check how can I convert my csv file to geoJSON.

(27 Oct '21, 21:40) sebkramm

You can also try if _umap_options can be passed as a csv column somehow.

(28 Oct '21, 07:36) TZorn

Thanks for you suggestion. Tried this: https://pastebin.com/WezLpauz => no result...

(29 Oct '21, 13:44) sebkramm

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×314
×196
×42

question asked: 27 Oct '21, 13:55

question was seen: 1,540 times

last updated: 29 Oct '21, 13:44

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum