ArcGIS - create box
#1
Posted 13 March 2009 - 07:42 AM
Often I run into a need to create a box bounded by coordinates - I have an old AML to create a coverage for that (it creates a grid with those coords as a window, and then does a grid poly for that) - but is there really no way to do this easily directly in modern day Arc?
I want to create just a one polygon shape file, with the borders defined by the coords I punch in.
Maybe I should try to put this together myself... could be a decent exercise in Python!
#2
Posted 13 March 2009 - 11:18 AM
I'm surprised I couldn't find anything on Arcscripts as it seems like someone else would've created this already. Perhaps that person is you!
Oregon Metro - Portland, OR
www.oregonmetro.gov
#3
Posted 13 March 2009 - 12:32 PM
If you wanted to adjust an existing polygon, you could double-click on the feature to show vertices, then right-click on any vertex, and select "Properties" from the context menu. Then you can edit the coordinates of all vertices in the feature you selected.
If you need to create an entire vector grid, with a specific origin and box (cell) size, you can install a free extension called Hawths Tools.
#4
Posted 13 March 2009 - 12:33 PM
Francois Goulet
---
www.fgcartographix.com :: blog.fgcartographix.com :: http://twitter.com/fgcartographix
#5
Posted 13 March 2009 - 12:43 PM
Hi,
Often I run into a need to create a box bounded by coordinates - I have an old AML to create a coverage for that (it creates a grid with those coords as a window, and then does a grid poly for that) - but is there really no way to do this easily directly in modern day Arc?
I want to create just a one polygon shape file, with the borders defined by the coords I punch in.
Maybe I should try to put this together myself... could be a decent exercise in Python!
I'm not sure I understand your question, but...
If you need to create a shapefile that has a rectangle with specific corner points you can do that in a couple of ways (at least).
1. create an empty polygon shapefile (you can do this in ArcCatalog or you could just create a copy of an existing shapefile and delete all of the features). Start editing the shapefile and create new features. You can use the rectangle tool in the editing tools to create a rectangle that's roughly what you want and then start editing the vertices, open the sketch properties and edit the values to get the exact values you want. Or you can type "e" while creating the rectangle and enter exact coordinates.
or
2. draw a graphic rectangle in data view and convert it to a feature. Typing "e" while drawing the rectangle also works for graphic rectangles.
oops, Paul beat me to the answer
Esri
Product Engineer
Map Geek
#6
Posted 13 March 2009 - 10:49 PM
One method you could use would be to "Add x/y data..." to create points at your desired coordinates - then set your snapping environment to snap to points and draw your box. It's not fully automated - but you'd get your box at the right x/y. Scripting it in Python wouldn't be a bad idea either.
I do the same as the way Matthew suggested. In this case, you can keep the original tabular dataset with XY coordinates as a record... then just use the snapping to the points in the point layer... (I personally like the snapping environment in ArcGIS while editting
- Kay
#7
Posted 15 March 2009 - 02:49 PM
Is a great tool for creating Mapbook DS layouts that are a bit more flexable than the map grid tools in Mapbook DS as you can pan and zoom around and just hit create extent and get all that needed to drive Mapbook DS.
The great thing is you can choose to make new shp file from within the tool so no jumping out to catalog etc.
My only gripe is that it only works with page units set to inches but that's less of an issue for all you statesiders.
#8
Posted 15 March 2009 - 09:58 PM
However if one needs a polygon, then just click the same number of vertices that you want in the polygon in the drawing area of the Global Mapper, save it as an xyz file, open the xyz file in the notepad and replace those points with the long lat of the vertices that you want. Well, the approach is suitable say upto ten odd vertices or may be more for the highly patient and diligent type.
Anu
http://www.mapsandlocations.com
#9
Posted 16 March 2009 - 03:01 AM
Sam, I will take a peek at that toolbar, but i I am not so keen in working with inches...
#10
Posted 16 March 2009 - 02:41 PM
#11
Posted 23 March 2009 - 05:41 AM
If you want to try it - the toolbox is attached to this post. Please let me know if you have tested it, and if there were any problems. If it looks good, I will post it to ArcScripts later!
hugos_toolbox.zip 4.24K
120 downloads
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


Sign In
Create Account

Sweden
Back to top
United States
Canada
New Zealand
India








