Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated inline docs and license links.

  • Loading branch information...
commit 5b8182928e7f7ba9f21b0ec63320e8bb19e2c526 1 parent 8919974
David Zwarg authored
Showing with 39 additions and 24 deletions.
  1. +25 −14 sld/models.py
  2. +14 −10 sld/tests.py
View
39 sld/models.py
@@ -1,23 +1,34 @@
"""
- Copyright 2011 David Zwarg <dzwarg@azavea.com>
+StyledLayerDescriptor library for generating SLD documents.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+SLD documents are used to style cartographic representations of geometric
+features in most professional and desktop GIS applications.
- http://www.apache.org/licenses/LICENSE-2.0
+Specification
+=============
+The SLD specification is available from the Open Geospatial Consortium,
+at U{http://www.opengeospatial.org/standards/sld}
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+License
+=======
+Copyright 2011 David Zwarg <U{dzwarg@azavea.com}>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+U{http://www.apache.org/licenses/LICENSE-2.0}
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
"""
from lxml.etree import parse, Element, XMLSchema, XMLSyntaxError, tostring
import urllib2
from tempfile import NamedTemporaryFile
-import os, copy, logging, settings
-from StringIO import StringIO
+import os, copy, logging
class SLDNode(object):
"""
@@ -1182,10 +1193,10 @@ def normalize(self):
@property
def Rules(self):
"""
- Get the L{Rules} pythonic list helper for all L{Rule} objects in this
+ Get the L{sld.Rules} pythonic list helper for all L{Rule} objects in this
style.
- @rtype: L{Rules}
+ @rtype: L{sld.Rules}
@return: A list of all rules applied to this style.
"""
return Rules(self._node)
View
24 sld/tests.py
@@ -1,17 +1,21 @@
"""
- Copyright 2011 David Zwarg <dzwarg@azavea.com>
+Test suite for the StyledLayerDescriptor python library.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
+License
+=======
+Copyright 2011 David Zwarg <U{dzwarg@azavea.com}>
- http://www.apache.org/licenses/LICENSE-2.0
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+U{http://www.apache.org/licenses/LICENSE-2.0}
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
"""
from unittest import TestCase
from models import *
Please sign in to comment.
Something went wrong with that request. Please try again.