X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FKML.py;h=9b589ad582c0ac4f11c16a775222716bf7fa1d2f;hb=638f3b97a2b85bbb72c1683f8f40fa92edbb83be;hp=26e8e71d551437caa72617c52bdfe7ce41717774;hpb=2c1d45fac5f57867d6cf7f4e19628a67aae8a055;p=dead%2Fcensus-tools.git
diff --git a/src/KML.py b/src/KML.py
index 26e8e71..9b589ad 100644
--- a/src/KML.py
+++ b/src/KML.py
@@ -110,6 +110,12 @@ class Description(KmlObject):
+class Coordinates(KmlObject):
+
+ OPEN_TAG = ''
+ CLOSE_TAG = ''
+
+
class LineString(KmlObject):
OPEN_TAG = ''
@@ -140,9 +146,9 @@ class LineString(KmlObject):
coords = []
for ls in linestrings:
- c_tag_start = ls.find('')
- c_start = c_tag_start + len('')
- c_end = ls.find('')
+ c_tag_start = ls.find(Coordinates.OPEN_TAG)
+ c_start = c_tag_start + len(Coordinates.OPEN_TAG)
+ c_end = ls.find(Coordinates.CLOSE_TAG)
c = ls[ c_start : c_end ]
coords.append(c)