alex_bn_lee

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  Python Study / Python & ArcPy

1 2 3 4 5 ··· 7 下一页

Python 学习,主要是 ArcGIS 里面有用到!
[999] Update table values in a geodatabase using arcpy
摘要:To update values in a feature class within a geodatabase using acrpy, we can use an Update Cursor. Using an Update Cursor You can use an arcpy.da.Upda 阅读全文

posted @ 2024-05-22 09:10 McDelfino 阅读(11) 评论(0) 推荐(0) 编辑

[955] Contamination certificate, extend the extent, layer is visible, intersection, select layer by location
该文被密码保护。

posted @ 2024-01-19 07:32 McDelfino 阅读(0) 评论(0) 推荐(0) 编辑

[953] Find contours within a polygon
该文被密码保护。

posted @ 2023-11-29 08:13 McDelfino 阅读(0) 评论(0) 推荐(0) 编辑

[940] Create a progress bar in Python
摘要:To create a progress bar in Python, you can use the tqdm library, which is a popular library for adding progress bars to your loops. If you haven't in 阅读全文

posted @ 2023-11-16 12:43 McDelfino 阅读(12) 评论(0) 推荐(0) 编辑

[939] Generate a new shapefile based on a list of records and query polygons from a large shapefile
摘要:ref: arcpy.management.MakeFeatureLayer(in_features, out_layer, {where_clause}, {workspace}, {field_info}) ref: arcpy.management.SelectLayerByAttribute 阅读全文

posted @ 2023-11-16 11:55 McDelfino 阅读(8) 评论(0) 推荐(0) 编辑

[938] How to operate with shapefiles using Geopandas
摘要:Geopandas is a Python library that makes working with geospatial data easier by extending the data manipulation capabilities of pandas to spatial data 阅读全文

posted @ 2023-11-15 14:04 McDelfino 阅读(18) 评论(0) 推荐(0) 编辑

[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 阅读(12) 评论(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 阅读(31) 评论(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 阅读(12) 评论(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 阅读(12) 评论(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 阅读(46) 评论(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 阅读(9) 评论(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 阅读(28) 评论(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 阅读(15) 评论(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 阅读(37) 评论(0) 推荐(0) 编辑

[920] Copy the font style from one cell in a table of a Word document to another cell using Python
摘要:To copy the font style from one cell in a table of a Word document to another cell using Python and the python-docx library, you can access the font p 阅读全文

posted @ 2023-10-20 09:59 McDelfino 阅读(46) 评论(0) 推荐(0) 编辑

[919] Change the horizontal alignment of a cell to center within a table of a Word document using Python
摘要:To change the horizontal alignment of a cell to center within a table of a Word document using Python and the python-docx library, you can set the ali 阅读全文

posted @ 2023-10-20 09:57 McDelfino 阅读(33) 评论(0) 推荐(0) 编辑

[918] Copy the formatting from one cell in a table of a Word document to another cell in Python
摘要:To copy the formatting from one cell in a table of a Word document to another cell, you can use the python-docx library in Python. Here's a step-by-st 阅读全文

posted @ 2023-10-20 09:55 McDelfino 阅读(89) 评论(0) 推荐(0) 编辑

[917] Replace text in a specific table within a Word document using Python
摘要:To replace text in a specific table within a Word document using Python, you can use the python-docx library to access and modify the content of the t 阅读全文

posted @ 2023-10-20 09:53 McDelfino 阅读(94) 评论(0) 推荐(0) 编辑

[916] Replace text in a Word document using Python
摘要:To replace text in a Word document using Python, you can use the python-docx library, which allows you to work with Microsoft Word files (.docx). If y 阅读全文

posted @ 2023-10-20 09:51 McDelfino 阅读(56) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 7 下一页
点击右上角即可分享
微信分享提示