Generating cellular polygon algorithm parsing in ArcGIS

Source: Internet
Author: User
Tags nets

There are a lot of classmates recently. Ask me questions about honeycomb polygons. That is, the hexagon, which is the following stuff:


General question and answer modes such as the following:
Pro Q: What is the tool in ArcGIS that can do this stuff?
Shrimp God Answer: Well, there is no original tool.



The parents asked: "Then I see very many people have done ah, this East how to do?"
Shrimp God Answer: Well, the algorithm is very easy ... Blah ...
Dear Friends:

Shrimp God: ...

Well, since that's the case, today we're going to use an article to briefly talk about how to make a honeycomb hexagon in ArcGIS.



When we do the sample analysis, the simplest of course is the use of rectangles. Sample square-like square ... It is very good to use this square word in it. But very much lean

Fine classmate, think square too pattern Tucson broken, how can we use so simple thing? We're going to use a positive hexagon!



In fact, the hexagonal geometric description of the narrative is really like a much better shape, a contrast to know:
First, in the geometry there is the concept of "plane mosaic" (no gap and overlap the plane), the positive hexagon is the most side of the plane mosaic graphics. (Side

The more, the closer the theoretical perfect shape--circle)

Then the hexagonal extension distance is the same.


Of course, there are many other advantages, I will not list.

Here's the go. Let's say how to make a hexagon in ArcGIS.

The procedure is for example the following:
1. First use the Fishnet tool in ArcGIS to generate fishnet meshes:

Note that the fishnet generation tool, before 10.4, is located in:
Arctoolbox--data Management tools-- Feature class toolbox below

But after 10.4, the position was moved to:
Arctoolbox--data Management tools--sampling toolbox below

When you build the fishnet. Be sure to pay attention to a detail question:


That is, the height to width ratio, must be 1.5:1. Assuming this is not set, then your hexagon will become quadrilateral ... Remember, remember.



We also use a label point (the center of the fishnet).

After the build is complete. Copy the center point of the fishnet, for example, the following:


The Label2 is then moved to the diagonal center of the Label1, where it can be calibrated with the intersection of the nets. For example, the following:



After the move is complete, it becomes the following:


Next, merge the two point layers together, merging the tools with either merge or Append, and choose to merge. Put this merged point layer. As the center point of the Tyson Polygon, generate too Tyson polygon. For example, the following:


Tyson Polygon tool in
Arctoolbox--analysis tools--proximity--create Thiessen Polygons

After the build is complete. For example, the following:


Then cut out the extra parts of the perimeter:

The honeycomb polygon is complete ...

This series of processes, which can be implemented through scripting, has been given, and interested students are able to write their own scripts.



There are several places to note:

1, when the nets are generated. Need to be larger than the area you want to cover. According to the 80/20 principle, the nets you generate extent better than the 20% of your area .



2, net height and width ratio, about 1:1.5 , this proportion according to the different space reference. Can be properly fine-tuned.

3, preferably with a projected coordinate system .

4. Suppose the grid form is too small. Then there are too many nets, which can be very slow and very slow.

Of course, there was a hole in it ... Is the Tyson Polygon algorithm, this east is I have seen the most simple rough algorithm ... Ash is often simple and free

Let's talk about it.



Honeycomb Polygon Script tool, have the need to be able to email me: [email protected].

Generating cellular polygon algorithm parsing in ArcGIS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.