alex_bn_lee

导航

随笔分类 -  Python Study

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 31 下一页

Study of Python.
[937] Combine different shapefiles and remove duplicate features
摘要:In arcpy, you can combine different shapefiles and remove duplicate features using the arcpy.management.Merge tool and the arcpy.management.DeleteIden 阅读全文

posted @ 2023-11-15 13:56 McDelfino 阅读(37) 评论(0) 推荐(0)

[936] Save a GeoDataFrame as a Shapefile
摘要:In GeoPandas, you can save a GeoDataFrame as a Shapefile using the to_file method. Here's how to do it: import geopandas as gpd # Create or load a Geo 阅读全文

posted @ 2023-11-06 11:51 McDelfino 阅读(53) 评论(0) 推荐(0)

[934] Run the python file directly (ArcGIS Pro)
摘要:ref: The Edit with IDLE and Run with ArcGIS Pro options are not available in the context menu when right-clicking Python files Description In some ins 阅读全文

posted @ 2023-11-03 11:00 McDelfino 阅读(19) 评论(0) 推荐(0)

[933] In ArcPy, how to get the geometry of a feature from a shapefile
摘要:In ArcPy, you can get the geometry of a feature from a shapefile using the SearchCursor or UpdateCursor and the SHAPE@ token to access the geometry of 阅读全文

posted @ 2023-11-02 10:37 McDelfino 阅读(47) 评论(0) 推荐(0)

[932] In ArcPy, how to get the extent of a shapefile
摘要:In ArcPy, you can get the extent of a shapefile using the Describe function and the extent property. Here's how you can do it: import arcpy # Set the 阅读全文

posted @ 2023-11-02 10:32 McDelfino 阅读(75) 评论(0) 推荐(0)

[931] arcpy - buffer, delete shp and rename shp
摘要:The script is as follows: arcpy.analysis.Buffer("siteboundary.shp","siteboundary1.shp","-5 Centimeters","FULL","ROUND","NONE",None,"GEODESIC") arcpy.m 阅读全文

posted @ 2023-11-01 14:12 McDelfino 阅读(21) 评论(0) 推荐(0)

[930] arcpy - change spatial reference, zoom to layer and export to PDF
摘要:The general idea is as follows: aprx -> layout -> map -> layer -> extent layout -> setExtent layout -> exportToPDF The script is as follows: def expor 阅读全文

posted @ 2023-11-01 12:59 McDelfino 阅读(46) 评论(0) 推荐(0)

[929] datetime format (strftime() and strptime() Format Codes)
摘要:ref: strftime() and strptime() Format Codes The following is a list of all the format codes that the 1989 C standard requires, and these work on all p 阅读全文

posted @ 2023-11-01 07:43 McDelfino 阅读(33) 评论(0) 推荐(0)

[925] GDA2020_MGA and change the spatial reference in ArcGIS Pro
摘要:ZONE50: 114.0 120.0 - arcpy.mp.spatialReference("GDA2020_MGA_Zone_50") ZONE51: 120.0 126.0 - arcpy.mp.spatialReference("GDA2020_MGA_Zone_51") ZONE52: 阅读全文

posted @ 2023-10-24 11:40 McDelfino 阅读(36) 评论(0) 推荐(0)

[924] ArcGIS Pro Mapping Module - arcpy.mp
摘要:ref: Introduction to arcpy.mp ref: Getting started with arcpy.mp tutorial ref: Guidelines for arcpy.mp ref: Alphabetical list of arcpy.mp functions re 阅读全文

posted @ 2023-10-24 10:04 McDelfino 阅读(74) 评论(0) 推荐(0)

[923] f-strings in Python
摘要:ref: f-strings in Python ref: Python's F-String for String Interpolation and Formatting F-strings, also known as formatted string literals, are a feat 阅读全文

posted @ 2023-10-23 12:36 McDelfino 阅读(23) 评论(0) 推荐(0)

[922] Implementation of zooming to selected features by Python
摘要:ref: ArcPy.mp Get Selected Features Extent ref: Python/ArcPy classes/Geometry # Set the path to your project file (.aprx) project_file = r"Map 1.3 Her 阅读全文

posted @ 2023-10-20 14:29 McDelfino 阅读(23) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 31 下一页