Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

Bend Metadata
to Your Will
Eok Ngo
Integrated Spatial Solutions, Inc.
ArcCatalog Metadata Form
Batch Edits
&
Fine-Grain Control
ArcToolbox Form
The Issues :
Different Standards (ISO, FGDC, etc.)

Failed Upgrade Process (9.3 -> 10)

Incomplete / Missing Metadata
Our Tools :
Python 2.7
ArcPy
ElementTree
XML
XSLT
XPath
&
arcpy.XSLTTransform_conversion()

arcpy.MetadataImporter_conversion()
ArcPy Tools
Get to Know
Your Schema
Official
Documentation
Geoportal Server
Templates
Identity
Transform
arcpy.XSLTTransform_conversion()
Manipulating
XML
ElementTree Basics
Input
  • rawXML = ElementTree.parse("myFile.xml")
  • xmlRoot = rawXML.getroot()
Output
  • rawXML.write("citation")
Retrieve
  • root.iter("citation") - find all descendants
  • root.findall("citation") - find all direct children
  • root.find("citation") - find first child

ElementTree Basics
Value
  • node.text = 2014
Attribute
  • node.get("updated")
  • node.set("updated", "yes")
Add Node
  • root.append("citation")
Remove Node
  • root.remove("citation")
ElementTree Tip
Namespaces
nameSp = "{http://www.w3.org/1999/XML/Transform}"

ET.register_namespace("xsl", "http://www.w3.org/1999/XML/Transform")

xmlRoot.findall("./{0}template[@name='addContact']".format(nameSp))
XSLT / XPath Basics
The Identity Template
XSLT / XPath Basics
Template & XPath
XSLT / XPath Basics
Variable
Build an ArcToolbox
Script Tool
Determine Input / Output Parameters
from Python Script
Configure Tool Parameters
Edit Tool Validation
Create Custom Variables
Modify Initialize Parameters
Modify Update Parameters
Script Tool Form
References
Geoportal Server - Schemas
  • ESRI ISO - http://bit.ly/Ny1sHP
  • FGDC - http://bit.ly/1hi82xh
ElementTree
  • http://bit.ly/1lmj9bK
ArcToolbox Script Tool
  • http://bit.ly/1kagUI7
Happy Coding!
www.issi-gis.com
@issigis
www.facebook.com/issigis
Eok Ngo
Integrated Spatial Solutions, Inc