Professional Documents
Culture Documents
Summary: Using Voronoi objects to create a region table based on zip-code boundaries that are closest to a specific set of points Question: using a point table of service locations, is it possible to create a region map based on the zip-codes that are closest to these points? Answer: This can be accomplished by using the Create Voronoi function. Step 1: Open the point layer.
Step 4: Make your point layer editable and add 4 points that would fall outside the edge of the US. You need to do this so the Voronoi polygons reach all the zip-codes in the US.
Step 5: Make the cosmetic layer editable and then select all the points in the point layer using the marquee select tool Step 6: Choose the Object Menu and Select Voronoi
Step 7: Choose Map > Save Cosmetic Objects, leave the drop down menu on <new> and click save.
Step 8: Choose Query > SQL Select. Set up the dialog as shown below:
Make sure the Voronoi Table is first in the From Tables list and use Contains Function. This will extract all the data fr om the points and add it to the Voronoi polygons. Click OK and a browser will pop up that shows the information in the query.
Step 11: Choose File > Open and Open the table just saved
There is now a polygon for each point. It is now necessary to create a table of zip-code objects that will contain the Region ID that is attributed to each voronoi polygon. Use the SQL Query function for this. Step 12: Choose Query > SQL Select Set it up like the dialogue below.
Notice how the Zip-code table is first. This is because it is necessary to have a table of zip-code polygons in the resulting query. After clicking OK, a browser for the query will be displayed. Notice how the market code from the Voronoi object that was closest to each point in the original table is now displayed.
Step 13: Choose File > Save Copy As. Save the new query as a table. Then, click File > Close Table to close the query. Go back to the File Menu and Choose Open, and open the table that was just saved.
Add and remove any fields that will appear in the final table here. When done, click Create.
A table of region objects, created from zipcodes that were closest to the points in the original table.