{ "info": { "author": "David Zwarg", "author_email": "david.a@zwarg.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Topic :: Scientific/Engineering :: GIS" ], "description": "python-sld\n==========\n\nA python library for reading, writing, and manipulating SLD files.\n\nRequirements\n============\n\nThe lxml library is required for XML parsing and XML Schema validation. This \nrequirement is listed in requirements.txt, and may be installed using pip with\nthis command:\n\n > sudo pip install -r requirements.txt\n\nInstallation\n============\n\n > easy_install python-sld\n\n OR\n\n > pip install python-sld\n\nUsage\n=====\n\nUsing python-sld to create SLD documents is as easy as instantiating a \nStyledLayerDescriptor class object.\n\n from sld import StyledLayerDescriptor\n mysld = StyledLayerDescriptor()\n\nYou may also read an existing SLD document in by passing it as a parameter:\n\n from sld import StyledLayerDescriptor\n mysld = StyledLayerDescriptor('mysld.sld')\n\nAddition of most elements are performed on the parent element, since they are\nrelated to parent nodes in order to preserve compliance:\n\n nl = mysld.create_namedlayer()\n ustyle = nl.create_style()\n\nA couple class objects represent collections of nodes, such as Rules and \nCssParameters. They are properties of their parent classes (FeatureTypeStyle\nand Fill/Stroke/Font respectively). They behave as python lists, and you\ncan access any of their items using a python list pattern:\n\n fts = ustyle.create_featuretypestyle()\n rule1 = fts.Rules[0]\n print len(fts.Rules)\n fts.Rules[0] = rule1\n\nFilter objects are pythonic, and when combined with the '+' operator, they\nbecome ogc:And filters. When combined with the '|' operator, they become\nogc:Or filters.\n\n from sld import Filter\n\n filter_1 = Filter(rule)\n # set filter 1 properties\n\n filter_2 = Filter(rule)\n # set filter 2 properties\n\n rule.Filter = filter_1 + filter_2\n\nYou may also construct a filter from an expression when using the create_filter\nmethod on the Rule object:\n\n filter = rule.create_filter('population', '>', '100')\n\n\nImplementation\n==============\n\nAt the current time, python-sld does ''not'' support the full SLD \nspecification. The current implementation supports the following SLD elements:\n\n - StyledLayerDescriptor\n - NamedLayer\n - Name (of NamedLayer)\n - UserStyle\n - Title (of UserStyle and Rule)\n - Abstract\n - FeatureTypeStyle\n - Rule\n - ogc:Filter\n - ogc:And\n - ogc:Or\n - ogc:PropertyIsNotEqualTo\n - ogc:PropertyIsLessThan\n - ogc:PropertyIsLessThanOrEqualTo\n - ogc:PropertyIsEqualTo\n - ogc:PropertyIsGreaterThanOrEqualTo\n - ogc:PropertyIsGreaterThan\n - ogc:PropertyIsLike\n - ogc:PropertyName\n - ogc:Literal\n - MinScaleDenominator\n - MaxScaleDenominator\n - PointSymbolizer\n - LineSymbolizer\n - PolygonSymbolizer\n - TextSymbolizer\n - Mark\n - Graphic\n - Fill\n - Stroke\n - Font\n - CssParameter\n\nSupport\n=======\n\nIf you have any problems or questions, please visit the python-sld project on\ngithub: https://github.com/azavea/python-sld/\n\nContributors\n============\n\n@[ewsterrenburg](https://github.com/ewsterrenburg)", "description_content_type": null, "docs_url": "https://pythonhosted.org/python-sld/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/azavea/python-sld/", "keywords": "ogc sld geo geoserver mapserver osgeo", "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "python-sld", "package_url": "https://pypi.org/project/python-sld/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-sld/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/azavea/python-sld/" }, "release_url": "https://pypi.org/project/python-sld/1.0.10/", "requires_dist": null, "requires_python": null, "summary": "A simple python library that enables dynamic SLD creation and manipulation.", "version": "1.0.10" }, "last_serial": 1176679, "releases": { "1.0.10": [], "1.0.6": [ { "comment_text": "", "digests": { "md5": "7e6b784a78b5572072fc4e4d0457e1cf", "sha256": "f2a48cf0fd7eddad48c7b6c4361f2175d27a73b42e2dc90f326a2fbd9927636a" }, "downloads": -1, "filename": "python_sld-1.0.6-py2.6.egg", "has_sig": false, "md5_digest": "7e6b784a78b5572072fc4e4d0457e1cf", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 37723, "upload_time": "2012-01-03T20:44:55", "url": "https://files.pythonhosted.org/packages/28/6e/68ce6095373354cd6c6f64b6409ecd33f7f98f253997881e3f8ada1b87b3/python_sld-1.0.6-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "e95761004c3ece2c854fb69126f4ff9f", "sha256": "f5bce75674dd9d7d29719b7cf44c9a4ce5c49e5183cf5b30bc08c816f16ea5e7" }, "downloads": -1, "filename": "python_sld-1.0.6-py2.7.egg", "has_sig": false, "md5_digest": "e95761004c3ece2c854fb69126f4ff9f", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 37701, "upload_time": "2012-01-03T21:32:57", "url": "https://files.pythonhosted.org/packages/49/bd/4e4e33ec1b0175bdfbb2955f0f8cbde47729fbb2294bc9dddd3d44a52abf/python_sld-1.0.6-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "3f713d60fe50236a0e27bde186eb9103", "sha256": "32f842eeb01cd0a679d6c7b2cf6b34fbc76c066becbde9a84883f5193083ce72" }, "downloads": -1, "filename": "python-sld-1.0.6.tar.gz", "has_sig": false, "md5_digest": "3f713d60fe50236a0e27bde186eb9103", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14798, "upload_time": "2012-01-13T22:36:17", "url": "https://files.pythonhosted.org/packages/69/bb/0de2f305c3781051b72a6c01ef1ca1c9e84c938180a4d0cf2fae7f78777f/python-sld-1.0.6.tar.gz" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "120f1813008332c431d910372a6abfec", "sha256": "5aaaab9dadeb83886c78142d3a86709e1d51f8e03631a8330889de297d33a71a" }, "downloads": -1, "filename": "python_sld-1.0.7-py2.6.egg", "has_sig": false, "md5_digest": "120f1813008332c431d910372a6abfec", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 37737, "upload_time": "2012-03-08T16:04:00", "url": "https://files.pythonhosted.org/packages/be/d4/2b42216511c9d9c46cfc4781f9cf72a416bb1c1fe3724ed16bd6ed636a90/python_sld-1.0.7-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "95de7f5758d8f7e4b38dd84e5be86205", "sha256": "1329a15b3d51201deca67e9fa9f5d010b8aea14fa10ab26dd064481f5475a690" }, "downloads": -1, "filename": "python_sld-1.0.7-py2.7.egg", "has_sig": false, "md5_digest": "95de7f5758d8f7e4b38dd84e5be86205", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 37707, "upload_time": "2012-03-08T16:08:34", "url": "https://files.pythonhosted.org/packages/81/b3/13ca754fac3f7f3bd4d36297e397ad9941053076f1927ca054d14493310b/python_sld-1.0.7-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "e7ed29de196dc3cf212fd776231db626", "sha256": "06ae65b4e3e2f73093b111fea3b842065e36a3fc87094efaae22ec47aca3f276" }, "downloads": -1, "filename": "python-sld-1.0.7.tar.gz", "has_sig": false, "md5_digest": "e7ed29de196dc3cf212fd776231db626", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15083, "upload_time": "2012-03-08T16:04:14", "url": "https://files.pythonhosted.org/packages/4b/c3/3f22e63c751c33cc99d75ec5af2a18f26044f52250dd9850484399a697b4/python-sld-1.0.7.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "052ce353e69c69a518f8feec7e09255a", "sha256": "133fbaf37a634ad78d1419fc9dad8607872b79560f96aaae739c01740a670759" }, "downloads": -1, "filename": "python_sld-1.0.8-py2.6.egg", "has_sig": false, "md5_digest": "052ce353e69c69a518f8feec7e09255a", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 37766, "upload_time": "2012-03-14T14:31:47", "url": "https://files.pythonhosted.org/packages/ea/15/9bb86072d398f3522dc9262ec47d96eb5eed0d26bb3536e41023fe2b9acb/python_sld-1.0.8-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "c9209dcc20ec3a55a68bd4c737550437", "sha256": "13bf5ac02b25a57f95e0d8dbe87d45e4a6402b4c6253368ec544c12d8b7ff07e" }, "downloads": -1, "filename": "python_sld-1.0.8-py2.7.egg", "has_sig": false, "md5_digest": "c9209dcc20ec3a55a68bd4c737550437", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 37738, "upload_time": "2012-03-14T14:41:10", "url": "https://files.pythonhosted.org/packages/f3/dc/11d8afd794a5d1acd2b681c4b0ad62f6b1cba9c54e5b5d09a4ac70e59755/python_sld-1.0.8-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "cba9a740efe1fc32accfdafe57d19a7c", "sha256": "5d9a35929f2655895e1e608868eddcc82febc9c5c54bf7fa0c9531fa5b91523a" }, "downloads": -1, "filename": "python-sld-1.0.8.tar.gz", "has_sig": false, "md5_digest": "cba9a740efe1fc32accfdafe57d19a7c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16895, "upload_time": "2012-03-14T14:31:46", "url": "https://files.pythonhosted.org/packages/47/83/e575cda60a32f4def463773a5dd9ea929a0bc3ff279960cce7e86468d2e6/python-sld-1.0.8.tar.gz" } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "2176aa7855633d894fb675b1e4624c22", "sha256": "8226dd162224019880ad03fc25d5c2caeda8dde4681999c72e2a60fdfdfdbe47" }, "downloads": -1, "filename": "python_sld-1.0.10-py2.7.egg", "has_sig": false, "md5_digest": "2176aa7855633d894fb675b1e4624c22", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 39011, "upload_time": "2014-08-01T00:42:53", "url": "https://files.pythonhosted.org/packages/a5/2c/9bd89cf844395a104b1b4d9df21fdbcf12c3cfa2c39062e037ff19d904ad/python_sld-1.0.10-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "e62995be034aedc6a75138a4e9ef37a4", "sha256": "6af4a4cf4488344c8883ee5611170a9b5379ace66d875a70a5477a46fad4c1d1" }, "downloads": -1, "filename": "python_sld-1.0.10-py3.2.egg", "has_sig": false, "md5_digest": "e62995be034aedc6a75138a4e9ef37a4", "packagetype": "bdist_egg", "python_version": "3.2", "requires_python": null, "size": 39627, "upload_time": "2014-08-01T00:43:09", "url": "https://files.pythonhosted.org/packages/d4/e6/ccbf523269250bd118bd0ef262147f4a425d058c84cbb1a5432e2425c40e/python_sld-1.0.10-py3.2.egg" }, { "comment_text": "", "digests": { "md5": "f3c955b72781c5a7f46a776ebf7512d2", "sha256": "7bb8a3ad60f00838eb2c3b4fbdf0ac54d1cfccf5b13f57a368066dd5fe227567" }, "downloads": -1, "filename": "python-sld-1.0.10.tar.gz", "has_sig": false, "md5_digest": "f3c955b72781c5a7f46a776ebf7512d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19052, "upload_time": "2014-08-01T00:42:34", "url": "https://files.pythonhosted.org/packages/ab/81/aa9090666ca5805f2e65afac7869b54133805b083f994d7b777b02eaab77/python-sld-1.0.10.tar.gz" }, { "comment_text": "", "digests": { "md5": "70ae574c1706f888a9afaf714cb641b8", "sha256": "f623c034d1d8d484f41b8f57dabd5197e1148959c43587e4c95a8b1d1415e8ac" }, "downloads": -1, "filename": "python_sld-1.0.9-py2.7.egg", "has_sig": false, "md5_digest": "70ae574c1706f888a9afaf714cb641b8", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 38009, "upload_time": "2012-09-10T15:04:48", "url": "https://files.pythonhosted.org/packages/35/80/9a549bad50a8501cdb6cf66679056eca673abab061e7b3eafbb4e4b53504/python_sld-1.0.9-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "3e8415a377ea9e88bdc67190cdd2aa3b", "sha256": "67ee093aeee30494fabfeec66b43a74d5e01e0ab55e1a5898eeebb131bd62d91" }, "downloads": -1, "filename": "python_sld-1.0.9-py3.2.egg", "has_sig": false, "md5_digest": "3e8415a377ea9e88bdc67190cdd2aa3b", "packagetype": "bdist_egg", "python_version": "3.2", "requires_python": null, "size": 38641, "upload_time": "2012-09-10T16:12:43", "url": "https://files.pythonhosted.org/packages/c1/90/ed0761b041307f2de3110242051c107ef0dc60d19a2a234d646b3677444d/python_sld-1.0.9-py3.2.egg" }, { "comment_text": "", "digests": { "md5": "c6e37dcc07ef68ca485dad2bef626085", "sha256": "bc18754ae8e56f9d32bcdf441b0e8a926079f0590281ce192595dbcb54e5d85b" }, "downloads": -1, "filename": "python-sld-1.0.9.tar.gz", "has_sig": false, "md5_digest": "c6e37dcc07ef68ca485dad2bef626085", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16988, "upload_time": "2012-09-10T15:04:39", "url": "https://files.pythonhosted.org/packages/62/29/981aa8f1afb5ec45b3e918193384fb789918de1a757ee759d309fd4496e1/python-sld-1.0.9.tar.gz" } ] }, "urls": [] }