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
6
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/python2.7/dist-packages/aptdaemon/worker.py", line 961, in simulate
    trans.unauthenticated = self._simulate_helper(trans)
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1085, in _simulate_helper
    return depends, self._cache.required_download, \
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 226, in required_download
    pm.get_archives(fetcher, self._list, self._records)
SystemError: E:I wasn't able to locate file for the ttf-mscorefonts-installer package. This might mean you need to manually fix this package.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.