POST
|
For those who cant get metadata conversions to work outside of the python window in arcgis check this thread post #5, you may have to adjust your commands if you are running 64bit windows http://forums.arcgis.com/threads/15433-Python-Errors-in-IDLE-but-Works-in-ArcCatalog
... View more
01-12-2012
09:19 AM
|
0
|
0
|
585
|
POST
|
I am writing an arcpy script to export metadata from my arcsde. When I run it as a publish it to my arcgis server the scrip runs but does not export any metadata. import os
import shutil
import arcpy
import arcpy.mapping
import arcgisscripting
from arcpy import env
dir = arcpy.GetInstallInfo("desktop")["InstallDir"]
xslt = dir + "Metadata/Stylesheets/ArcGIS.xsl"
translator = dir + "Metadata/Translator/ESRI_ISO2ISO19139.xml"
#service = arcpy.GetParameterAsText(0)
service = "grace"
workDir = r"c:/temp/"+service
if not os.path.exists(workDir):
os.makedirs(workDir)
else:
shutil.rmtree(workDir)
os.makedirs(workDir)
env.workspace = workDir
mxd = arcpy.mapping.MapDocument(r"D:\\arcGisSupportFiles\\ServerMaps\\"+service+".mxd")
for lyr in arcpy.mapping.ListLayers(mxd):
try:
if(lyr.datasetName.split(".")[0] == "sde"):
arcpy.XSLTransform_conversion(lyr, xslt, lyr.name+".html", "#")
#arcpy.ESRITranslator_conversion (lyr, translator, lyr.name+".html", "#")
print "sde layer, metadata created"
else:
print "non-sde layer, no metadata to create"
except:
print "folder layer"
metaDir = "\\\\gisv\\kyle\\metadata\\"+service
if os.path.exists(metaDir):
shutil.rmtree(metaDir)
... View more
01-12-2012
07:55 AM
|
0
|
1
|
269
|
POST
|
Hello, I recently setup a geoportal v1.1.1 I was able to add content using the desktop publish client and I can see and search the metadata in the admin tab, I can also use the browse tab to find and display meta data. The problem is that the search tab doesn't give any results.
... View more
08-17-2011
05:53 AM
|
0
|
1
|
1420
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|