Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bohdanszymanik/59e4a338c32dd46824969578319d5154 to your computer and use it in GitHub Desktop.
Save bohdanszymanik/59e4a338c32dd46824969578319d5154 to your computer and use it in GitHub Desktop.
Using ArcGIS Pro with ArcGIS Online to generate a choropleth map and save on ArcGIS Online credits
Load in the shape file with the boundaries
Load in the csv file with victimisations or some other measure + boundary key eg meshblock id. Little issue here - by default ArcGIS Pro will strip preceding zeros on a number field and make it an int/long. You can create and apply a function in ArcGIS Pro to convert back to string ids with preceeding zeros or you can use a schema.ini file to enforce a schema on the csv import (that's what I did).
Use the Join tool (not join features tool - because in this instance joining a feature layer to a data table) to join the data to the feature layer containing the boundaries - keyed on eg meshblock id.
Now here's the trick - a simple share to ArcGIS Online will fail because in memory joins aren't supported 00226: In-memory joins are not supported—ArcGIS Pro | Documentation so I did the option in the help doc of exporting out the features to a new feature layer, removing the join and sharing the new feature layer to ArcGIS Online. This worked.
Click the Analyze button first before sharing - you might have other errors.
A common one is going to be differences in projected coordinate systems between layers - those are easy to fix - press the elipsis on the error and it will come up with a fix option.
In ArcGIS Online you'll still need to use the Styles button to set colours on shapes etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment