from xml.etree import ElementTree as ET import sys, string, os, arcgisscripting gp = arcgisscripting.create(9.3) workspace = "D:/J040083" gp.workspace = workspace for root, dirs, filenames in os.walk(workspace): # returms root, dirs, and files for filename in filenames: filename_split = os.path.splitext(filename) # filename and extensionname (extension in [1]) filename_zero = filename_split[0] extension = str.upper(filename_split[1]) try: first_2_letters = str.upper(filename_zero[0] + filename_zero[1]) except: first_2_letters = "XX" if first_2_letters == "LI" and extension == ".XML": tree = ET.parse(workspace) print tree.find('//{http://www.opengis.net/gml}lowerCorner').text print tree.find('//{http://www.opengis.net/gml}upperCorner').text
Bug #985029 reported by
shivajinaik
This bug report is a duplicate of:
Bug #659438: Installation/Removal fails because of package which could not be located (failure in apt.Cache.required_download).
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Aptdaemon |
New
|
Undecided
|
Unassigned |
Bug Description
Traceback (most recent call last):
File "/usr/lib/
trans.
File "/usr/lib/
return depends, self._cache.
File "/usr/lib/
pm.
SystemError: E:I wasn't able to locate file for the ttf-mscorefonts
To post a comment you must log in.