- ARCPY CALCULATE GEOMETRY X CENTER AND Y CENTER HOW TO
- ARCPY CALCULATE GEOMETRY X CENTER AND Y CENTER 64 BIT
The following figure shows the effect after the grid drawn on the "Fangshan District". If the search radius is 2KM, the grid side length here is 2KM (approximately equal to 0.009 * 2 longitude). The grid size here is determined by the search radius. The third step is to calculate the vertex coordinates of each grid (square) and draw the grid (fishing net map) according to the limit (maximum and minimum) coordinates on the boundary of the area to be collected. As shown in the following figure, the polygonal area is drawn using arcpy according to the boundary coordinates of "Fangshan District, Beijing". The second step is to draw the area range (polygon) according to the boundary coordinates of the area to be collected. The first step is to obtain the boundary coordinates of the administrative area to be collected.
ARCPY CALCULATE GEOMETRY X CENTER AND Y CENTER 64 BIT
Otherwise (for example, using the 64 bit Python installed by ourselves) we will not find the arcpy library, or there will be abnormal problems caused by incompatibility with the 64 bit version of Python. It should be noted that a 32-bit Python will be installed when ArcGIS is installed. After installing ArcGIS, you can use the library. Arcpy is a python geographic data analysis library included in ArcGIS. The following describes the above ideas based on arcpy.
After careful inspection, it is found that the reason is that Fangshan District is relatively remote, the three types of information points are relatively few, and the search center points are relatively few, which leads to the lack of coverage in many areas, resulting in the lack of data.Ī reasonable method to select the search center point: divide the area to be collected into several grids with equal area, the area of each grid is determined by the search radius, and then take the coordinates of the grid center point as the search center point, so that every place in the area can be covered. At the beginning, we used the location of the three types of information points "administrative region, business district and gas station" as the search center, and found many omissions after collection.
For example, we encountered this problem when collecting POI information in "Fangshan District, Beijing".
ARCPY CALCULATE GEOMETRY X CENTER AND Y CENTER HOW TO
So how to reasonably select the search center is very important. If you select too many (dense), the search times will be increased and the collection efficiency will be affected. If you select too few, data will be missed due to incomplete area coverage. The selection of this search center is very important. Here, "a certain position" is the center of the search circle (search center point), "X km" refers to the search radius. Data collection based on "peripheral search" results is often used in data collection: it is to use the "nearby" search function provided by the platform (website or APP) to search for certain types of information (such as POI) within "X kilometers" around "a certain location", and then collect the search results.