Я следовал инструкциям на странице инструмента MapToKML (https://pro.arcgis.com/en/pro-app/lates ... to-kml.htm), но я Мне не удалось включить наложение легенды при открытии kmz в Google Планета Земля.
# Specify the path to your .aprx file
aprx_path = r"\\bctsdata.bcgov\data\tst_root\GIS_WORKSPACE\Projects\Google_Earth\GoogleEarth_Block_and_Roads_KML\GoogleEarth_Block_and_Roads_KML.aprx"
# Open the ArcGIS Pro project
aprx = arcpy.mp.ArcGISProject(aprx_path)
# Set the output path for the KML/KMZ file
output_kmz = rf"\\bctsdata.bcgov\data\tst_root\LOCAL_DATA\GoogleEarth_Blocks_and_Roads_KML\GoogleEarth_Blocks_and_Roads_{date.today().strftime('%Y%m%d')}.kmz"
# Get map in the project
map = aprx.listMaps()[0]
print(f"Located map: {map.name}")
# Get layout in the project
layout = aprx.listLayouts()[0]
# Export the group layer to KML/KMZ
try:
arcpy.conversion.MapToKML(map, output_kmz, "300000", '', '', '', '', '', '', layout.name)
print(f"Exported all layers to {output_kmz}")
except Exception as e:
print(f"Failed to export layers: {e}")
print("***Unsuccessful attempt - terminating script***")
sys.exit()
# Clean up
del aprx
Подробнее здесь: https://stackoverflow.com/questions/791 ... tokml-tool
Невозможно включить легенду в KMZ при использовании инструмента ArcGIS Pro MapToKML. ⇐ Python
Программы на Python
1730842125
Anonymous
Я следовал инструкциям на странице инструмента MapToKML (https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/map-to-kml.htm), но я Мне не удалось включить наложение легенды при открытии kmz в Google Планета Земля.
# Specify the path to your .aprx file
aprx_path = r"\\bctsdata.bcgov\data\tst_root\GIS_WORKSPACE\Projects\Google_Earth\GoogleEarth_Block_and_Roads_KML\GoogleEarth_Block_and_Roads_KML.aprx"
# Open the ArcGIS Pro project
aprx = arcpy.mp.ArcGISProject(aprx_path)
# Set the output path for the KML/KMZ file
output_kmz = rf"\\bctsdata.bcgov\data\tst_root\LOCAL_DATA\GoogleEarth_Blocks_and_Roads_KML\GoogleEarth_Blocks_and_Roads_{date.today().strftime('%Y%m%d')}.kmz"
# Get map in the project
map = aprx.listMaps()[0]
print(f"Located map: {map.name}")
# Get layout in the project
layout = aprx.listLayouts()[0]
# Export the group layer to KML/KMZ
try:
arcpy.conversion.MapToKML(map, output_kmz, "300000", '', '', '', '', '', '', layout.name)
print(f"Exported all layers to {output_kmz}")
except Exception as e:
print(f"Failed to export layers: {e}")
print("***Unsuccessful attempt - terminating script***")
sys.exit()
# Clean up
del aprx
Подробнее здесь: [url]https://stackoverflow.com/questions/79160709/unable-to-include-legend-in-kmz-when-using-arcgis-pro-maptokml-tool[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия