首页 > 其他分享 >arcpy 获取shp要素数量

arcpy 获取shp要素数量

时间:2022-09-06 10:00:32浏览次数:52  
标签:shp gis free 获取 osm result arcpy

arcpy 获取shp要素数量

import arcpy
arcpy.env.workspace="E:\data\china-latest-free.shp"
dss1=arcpy.ListFeatureClasses( )
for l in dss1: 
        result = arcpy.GetCount_management(l)
        print(l)
        print(result)
gis_osm_buildings_a_free_1.shp
1506243
gis_osm_landuse_a_free_1.shp
443198
gis_osm_natural_a_free_1.shp
6410
gis_osm_natural_free_1.shp
39585
gis_osm_places_a_free_1.shp
5750
gis_osm_places_free_1.shp
233652
gis_osm_pofw_a_free_1.shp
3541
gis_osm_pofw_free_1.shp
3344
gis_osm_pois_a_free_1.shp
115248
gis_osm_pois_free_1.shp
135965
gis_osm_railways_free_1.shp
185554
gis_osm_roads_free_1.shp
3099999
gis_osm_traffic_a_free_1.shp
28389
gis_osm_traffic_free_1.shp
163900
gis_osm_transport_a_free_1.shp
3674
gis_osm_transport_free_1.shp
77763
gis_osm_waterways_free_1.shp
145937
gis_osm_water_a_free_1.shp
196231

标签:shp,gis,free,获取,osm,result,arcpy
From: https://www.cnblogs.com/Leechg/p/16660728.html

相关文章