mbloch / mapshaper

Tools for editing Shapefile, GeoJSON, TopoJSON and CSV files
http://mapshaper.org
Other
3.78k stars 535 forks source link

Exporting Maps Colored using Classify to ArcGIS, Power BI, etc. #585

Closed bonnjorr closed 1 year ago

bonnjorr commented 1 year ago

@mbloch

Hello again sir! Do you have any advice on how to export a map colored using classify? I tried to upload my map to ArcGIS and Power BI, but neither recognized the colors once uploaded. Any suggestions would be welcome. Also, I couldn't figure out how to make the lines with the colored map show ups. So it was somewhat difficult to see where the different polygons began and and ended.

image

mbloch commented 1 year ago

Hi, within Mapshaper, you can make the lines show up by adding a stroke color and stroke width to the polygons. An example command is: -style stroke=black stroke-width=1.5. You can see all the style options with mapshaper -h style.

In Mapshaper's GeoJSON output, style properties are stored as data properties with names like fill, stroke, fill-opacity, etc. You'll have to read the PowerBI and ArcGIS documentation to find out if those platforms are able to import styles from GeoJSON properties. A quick web search didn't turn up a simple way to do this... maybe you'll have better luck than me.