This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from Esri/v.next
Merging 1.1 into master and rolling v.next ahead to Pro 1.2 development
- Loading branch information
Showing
54 changed files
with
615 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.33 MB
(110%)
data/mil2525d/core_data/stylefiles/Military 2525Delta All.style
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+52 KB
(100%)
data/mil2525d/core_data/stylefiles/Military Control Measures Areas.style
Binary file not shown.
Binary file modified
BIN
+52 KB
(100%)
data/mil2525d/core_data/stylefiles/Military Control Measures Lines.style
Binary file not shown.
Binary file modified
BIN
+120 KB
(110%)
data/mil2525d/core_data/stylefiles/Military Control Measures Points.style
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+172 KB
(100%)
data/mil2525d/core_data/stylefiles/Military Frames And Amplifiers.style
Binary file not shown.
Binary file modified
BIN
+68 KB
(110%)
data/mil2525d/core_data/stylefiles/Military Land Equipment.style
Binary file not shown.
Binary file modified
BIN
+92 KB
(110%)
data/mil2525d/core_data/stylefiles/Military Land Installation.style
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+44 KB
(100%)
data/mil2525d/core_data/stylefiles/Military Sea Subsurface.style
Binary file not shown.
Binary file modified
BIN
+48 KB
(110%)
data/mil2525d/core_data/stylefiles/Military Sea Surface.style
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+56 KB
(110%)
data/mil2525d/core_data/stylefiles/Military Weather Areas.style
Binary file not shown.
Binary file modified
BIN
+12 KB
(100%)
data/mil2525d/core_data/stylefiles/Military Weather Lines.style
Binary file not shown.
Binary file modified
BIN
+52 KB
(100%)
data/mil2525d/core_data/stylefiles/Military Weather Points.style
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.84 MB
(120%)
data/mil2525d/core_data/stylxfiles/mil2525d-lines-areas-labels-base-template.stylx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+43.6 KB
data/mil2525d/utilities/military-features-utilities/screenshots/DomainDiff.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.5 KB
data/mil2525d/utilities/military-features-utilities/screenshots/ScreenShot.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16 KB
data/mil2525d/utilities/military-features-utilities/screenshots/ScreenShot2.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.6 KB
data/mil2525d/utilities/military-features-utilities/screenshots/Toolbox.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+549 KB
(160%)
data/mil2525d/utilities/military-features-utilities/update-domain-toolbox/UpdateDomains.tbx
Binary file not shown.
73 changes: 73 additions & 0 deletions
73
...ies/military-features-utilities/update-domain-toolbox/scripts/ExportGDBDomainsToFolder.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# ---------------------------------------------------------------------------------- | ||
# Copyright 2015 Esri | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ---------------------------------------------------------------------------------- | ||
# ExportGDBDomainsToFolder.py | ||
# Description: Exports all domains from a Military Features GDB | ||
# Requirements: ArcGIS Desktop/Pro | ||
# ---------------------------------------------------------------------------------- | ||
import csv | ||
import os | ||
import arcpy | ||
|
||
def exportDomains(): | ||
gdb = arcpy.GetParameter(0) | ||
folder = arcpy.GetParameter(1) | ||
|
||
if (gdb == '') or (gdb is None): | ||
arcpy.AddError('Input GDB not provided') | ||
return | ||
|
||
if (folder == '') or (folder is None): | ||
arcpy.AddError('Output folder not provided') | ||
return | ||
|
||
domains = arcpy.da.ListDomains(gdb) | ||
|
||
for domain in domains: | ||
domainName = domain.name | ||
csvFileName = 'Coded_Domain_' + domainName + '.csv' | ||
if domain.domainType == 'CodedValue': | ||
arcpy.AddMessage('Exporting Domain: ' + domainName + ' to CSV: ' + csvFileName) | ||
|
||
codedValues = domain.codedValues | ||
|
||
# Create a csv file and writer to export the domains | ||
# we do this versus the DomainToTable snippet below* | ||
# so we can make the format closely match the format of the exported tables | ||
# at: https://github.com/Esri/joint-military-symbology-xml/tree/master/samples/name_domains_values | ||
# (so we can then compare the 2 outputs with a "diff" utility) | ||
csvFullFileName = os.path.join(str(folder), csvFileName) | ||
csvFile = open(csvFullFileName, 'w', newline='') | ||
writer = csv.writer(csvFile, delimiter=',') | ||
writer.writerow(["Name", "Value"]) # make header row | ||
|
||
# sort the codes/keys so things are exported in order | ||
sortedCodedValues = sorted(codedValues.keys()) | ||
|
||
# write each line to the csv in the [description, value] format | ||
for val in sortedCodedValues: | ||
writer.writerow([codedValues[val], val]) | ||
|
||
# *DomainToTable snippet | ||
# NOTE a much simpler version of the above if we don't care above the order/format of the export table | ||
# desc = arcpy.Describe(gdb) | ||
# domains = desc.domains | ||
# for domain in domains: | ||
# csv = 'Coded_Values_' + str(domain) + '.csv' | ||
# arcpy.AddMessage('Exporting: ' + str(domain) + ' to CSV: ' + csv) | ||
# table = os.path.join(str(folder), csv) | ||
# arcpy.DomainToTable_management(gdb, domain, table, 'Value','Name', '#') | ||
|
||
if __name__ == '__main__': | ||
exportDomains() |
Binary file modified
BIN
-6 Bytes
(97%)
data/mil2525d/utilities/style-utilities/ForceRuntimeCompatibility.reg
Binary file not shown.
Oops, something went wrong.