This guide describes how to edit geometries in your CARTO dataset, based on the results of an analysis. Drawing a shape on your map adds the geometry to your dataset, applies the map layer styling, and automatically recalculates the analysis!
For this example, you will draw additional data points for store locations, based on the results of an analysis that calculates the distance of Domino's stores near MTA Subway stations in NYC. The calculated results include the Filter points in polygon, and the Create areas of influence analyses as part of a chained workflow.
Add new store locations to the existing dataset, and see if the results are within the subway buffers.
Import the template .carto file packaged from "Download resources" of this guide and create the map.
CARTO Builder displays three map layers; Dominos store locations (red dots), a hidden MTA Subway buffers layer, and the stores within the buffers (yellow dots). The number of Domino's stores within a 200 meter buffer of subway entrances was queried. The stores are filtered into two categories - within the buffer (yellow) and outside the buffer (red).
From the Dominos Store Locations layer, click the point icon from the Map View. The edit point geometry and attributes appear.
Click the search location magnifying glass from the Map View. This enables you to search for named locations and add points. Type 201 Moore Street, Brooklyn, NY and press Enter.
The map moves to the matched location and displays a marker. Click to add the point at the named location.
Typically, you would edit values for the new store point with the Geometry and Attributes options. In this case, you can keep the values blank, as the analysis will recalculate around the added point.
Click ADD to create the point and continue the process. (Download the final .carto file from the "Download resources" of this guide, and explore the additional store points that we added in Williamsburg, Times Square, and Greenpoint).
Once all the points are added and you re-center the map, notice how the analysis automatically recalculates whenever a new point is added. The result appear as either a yellow dot to indicate that the point is within the subway buffer, or a red dot indicating the location is outside of the defined buffer.
We would love to hear from you! Was it easy to understand? Do you need more information? Let us know.