{ "info": { "author": "David Zwarg", "author_email": "dzwarg@azavea.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Topic :: Scientific/Engineering :: GIS" ], "description": "django-sld\n==========\n\nA django library that generates SLD documents from geographic models.\n\nRequirements\n============\n\n - *django* Required for models and spatial fields.\n - *python-sld* Required for reading and generating SLD XML files.\n - *pysal* Required for classification algorithms.\n - *colorbrewer* Required for color lookup definitions.\n\nTo install these requirements, you may use pip to install these packages\n(except for django) with this command:\n\n > sudo pip install -r requirements.txt\n\nInstallation\n============\n\n > easy_install django-sld\n\n OR\n\n > pip install django-sld\n\nUsage\n=====\n\nThis library implements a single module named \"generator\" that contains all\nthe methods of interacting with the classification algorithms. Assuming that\nyou have a geographic model in geodjango, you may classify your distribution\nwith by constructing a queryset, and feeding it to the generator.\n\nAssuming you have a spatial model named *MySpatialModel*, with a data field \nof *population*, you can classify all your data into 10 quantile classes with:\n\n from djsld import generator\n\n qs = MySpatialModel.objects.all()\n sld = generator.as_quantiles(qs, 'population', 10)\n\nYou may also any queryset to generate classes, such as a filtered queryset:\n\n qs = MySpatialModel.objects.filter(owner__name = 'David')\n sld = generator.as_quantiles(qs, 'population', 10)\n\nIf your spatial model has a different geometry column name other than 'geom',\nyou may specify that field as the *geofield* keyword:\n\n sld = generator.as_quantiles(qs, 'population', 10, geofield='state')\n\nThe data field may also be distantly related to the queryset in question. For\nthis example, assume that *MySpatialModel* has a foreign key to a model named\n*Route*, and that the data value you would like to classify is a field of the \n*Route* model:\n\n sld = generater.as_quantiles(qs, 'route__traffic', 10)\n\nBy default, all the generator methods use a plain black-to-white color ramp.\nThe number of classes must match an available color scheme, or the color ramp\nwill default to black-to-white. You may specify a colorbrewer ramp name with \nthe *colorbrewername* keyword:\n\n sld = generator.as_quantiles(qs, 'population', 9, colorbrewername='Greys')\n\nYou may also reverse the order of the ramp, by specifying the *invertgradient*\nkeyword:\n\n sld = generator.as_quantiles(qs, 'population', 9, colorbrewername='Reds',\n invertgradient=True)\n\n\nSupport\n=======\n\nIf you have any problems, questions, or comments, please visit the django-sld\nproject on github: https://github.com/azavea/django-sld/", "description_content_type": null, "docs_url": "https://pythonhosted.org/django-sld/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/azavea/django-sld/", "keywords": "ogc sld geo geoserver mapserver osgeo geodjango", "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "django-sld", "package_url": "https://pypi.org/project/django-sld/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-sld/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/azavea/django-sld/" }, "release_url": "https://pypi.org/project/django-sld/1.0.7/", "requires_dist": null, "requires_python": null, "summary": "A simple django library that generates SLD documents from geographic models.", "version": "1.0.7" }, "last_serial": 790668, "releases": { "1.0.4": [ { "comment_text": "", "digests": { "md5": "c389f0b9c002eda5ebb1a1c3a0af98fc", "sha256": "a49028ebf96b6e7ae460e63a7b1bbeb0633d2dc82a4504c8a5e7d1603bd63ec5" }, "downloads": -1, "filename": "django_sld-1.0.4-py2.6.egg", "has_sig": false, "md5_digest": "c389f0b9c002eda5ebb1a1c3a0af98fc", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 21582, "upload_time": "2012-01-03T21:27:01", "url": "https://files.pythonhosted.org/packages/18/61/9f39d44959f9b2d106a8e1f4509d48400185d5409d4f6c98bca5d2ce36f6/django_sld-1.0.4-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "6af27c9c5dfb0a832060910ee5f9c4a4", "sha256": "cbdd4f6f668da7598cfd8a33f6844526d8f2f488bb6b23cc3b8f623e7e767083" }, "downloads": -1, "filename": "django_sld-1.0.4-py2.7.egg", "has_sig": false, "md5_digest": "6af27c9c5dfb0a832060910ee5f9c4a4", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 21587, "upload_time": "2012-01-03T21:34:03", "url": "https://files.pythonhosted.org/packages/cc/7f/c6aa95a8f93bba37e92a7c201d648c7144684f830bccc7ac7a2d89b6518d/django_sld-1.0.4-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "8a73dab9e42c108491ce066bc6e7cb8b", "sha256": "356f75d463f3fff299f8924c45b5794ee4771e6d19cf95f8ec8740b9def87189" }, "downloads": -1, "filename": "django-sld-1.0.4.tar.gz", "has_sig": false, "md5_digest": "8a73dab9e42c108491ce066bc6e7cb8b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8435, "upload_time": "2012-01-13T22:36:38", "url": "https://files.pythonhosted.org/packages/e8/ef/2611a58ede5d20183b73b6191e14c815bea55d2fc1c99fd44f02529441d1/django-sld-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "0d1a3e9c005b630ae44ae3e5171be277", "sha256": "899a565059db55a580502c97d113817e0efa8649c36c348d3b961f3733830ec7" }, "downloads": -1, "filename": "django_sld-1.0.5-py2.6.egg", "has_sig": false, "md5_digest": "0d1a3e9c005b630ae44ae3e5171be277", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 21646, "upload_time": "2012-03-14T14:34:59", "url": "https://files.pythonhosted.org/packages/15/a6/23d755fcfc1ea7816452c52be243a310aac33db59e0fb1a8437205c0d176/django_sld-1.0.5-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "6b96673914f62d5453f0abdeda7efa9a", "sha256": "d9944f6679e191768fc354de81c0dc9f50427a327f5f5c918737facfd4227af6" }, "downloads": -1, "filename": "django_sld-1.0.5-py2.7.egg", "has_sig": false, "md5_digest": "6b96673914f62d5453f0abdeda7efa9a", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 21624, "upload_time": "2012-03-14T14:41:50", "url": "https://files.pythonhosted.org/packages/18/02/428f275ea62a39505857a8c6981c8fbd01539ef1ed7864468271b6339fb8/django_sld-1.0.5-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "473494a391ef7ddc2213dcaa7b3466a6", "sha256": "1e73bedf8475dfce2873909d1a80db9c84ac940a4f0ec451772dc83168bee5cf" }, "downloads": -1, "filename": "django-sld-1.0.5.tar.gz", "has_sig": false, "md5_digest": "473494a391ef7ddc2213dcaa7b3466a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10457, "upload_time": "2012-03-14T14:34:59", "url": "https://files.pythonhosted.org/packages/26/3a/92b499393a02e26f01cab81cfa32c03cfa048f7f1c066491fdc7bbc9ed1c/django-sld-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "built for Linux-3.2.0-23-generic-x86_64-with-glibc2.7", "digests": { "md5": "4231c7db410a2a10fe88fdc7cdfda1d3", "sha256": "ba87c904bae9d0494e57467c97b8b01d094e15c058472db5dbeda171199a8976" }, "downloads": -1, "filename": "django-sld-1.0.6.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "4231c7db410a2a10fe88fdc7cdfda1d3", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 15143, "upload_time": "2012-10-05T15:55:34", "url": "https://files.pythonhosted.org/packages/33/d0/2194608a0abeb722a2e50d72d0df68f50f2bb979a11fc5968edfda8d269a/django-sld-1.0.6.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "26b52efe1f2d96bd9e76239ce0442887", "sha256": "56f81e89690b707927108598040c2ae9bcef20efa9e872f02a28a1e98a9478b5" }, "downloads": -1, "filename": "django_sld-1.0.6-py2.7.egg", "has_sig": false, "md5_digest": "26b52efe1f2d96bd9e76239ce0442887", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 23380, "upload_time": "2012-10-05T15:56:07", "url": "https://files.pythonhosted.org/packages/97/52/0dd196ac13a7d0cf49d97b273b81c4d26c00198b98d2932bf4996c731f03/django_sld-1.0.6-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "681ae6fb5e8a40f48687d1b9a247c94a", "sha256": "0b12478c2c9a561f6576fed70adc95a051b647e8d1a62f9b880d5a36bf7e8ac6" }, "downloads": -1, "filename": "django_sld-1.0.6-py3.2.egg", "has_sig": false, "md5_digest": "681ae6fb5e8a40f48687d1b9a247c94a", "packagetype": "bdist_egg", "python_version": "3.2", "requires_python": null, "size": 18828, "upload_time": "2012-10-05T15:56:16", "url": "https://files.pythonhosted.org/packages/6c/48/e76b4159711a082153de4667d5eefbf34522b9f01a3e757c3aed2d53f451/django_sld-1.0.6-py3.2.egg" }, { "comment_text": "", "digests": { "md5": "4b0887f2a9581d657dcb98b637550e94", "sha256": "af846eb3c5b3340dd20515e306488272dd677de913bf63e92f64bec6f921146a" }, "downloads": -1, "filename": "django-sld-1.0.6.tar.gz", "has_sig": false, "md5_digest": "4b0887f2a9581d657dcb98b637550e94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10749, "upload_time": "2012-10-05T15:43:51", "url": "https://files.pythonhosted.org/packages/7f/e9/9b41c75656dc8ba0e16b3e96d1261939cd7968c2d3d7fb700c01c11ad510/django-sld-1.0.6.tar.gz" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "834ae6c21b99e14782ba442d791a493e", "sha256": "f631bcff823e0c22acf674fc6413119d11b24d676393c8ab971003caf5288e6f" }, "downloads": -1, "filename": "django_sld-1.0.7-py2.7.egg", "has_sig": false, "md5_digest": "834ae6c21b99e14782ba442d791a493e", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 23798, "upload_time": "2012-10-11T14:41:58", "url": "https://files.pythonhosted.org/packages/6e/5f/9ceaa4a3c585a3e7a8b786abd6e61a4447c7052a9fc54cc062d7f7325fd8/django_sld-1.0.7-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "2dfc240f511af064387d2355a8233f00", "sha256": "00db27ee844b97e781bff52bd6415a303ec6513b19c6e56d5ce243c1d1a3beeb" }, "downloads": -1, "filename": "django_sld-1.0.7-py3.2.egg", "has_sig": false, "md5_digest": "2dfc240f511af064387d2355a8233f00", "packagetype": "bdist_egg", "python_version": "3.2", "requires_python": null, "size": 19249, "upload_time": "2012-10-11T14:42:06", "url": "https://files.pythonhosted.org/packages/82/bb/7934d2e40811bd809d36f161371d42edade0660a2acbe2b5d17d139c40a0/django_sld-1.0.7-py3.2.egg" }, { "comment_text": "", "digests": { "md5": "5db76ec68911fb730c465b16aeb0f278", "sha256": "69576b3f3633146d413dabda9a74b64bd2042ef6f4d99702d48328318b7743f1" }, "downloads": -1, "filename": "django-sld-1.0.7.tar.gz", "has_sig": false, "md5_digest": "5db76ec68911fb730c465b16aeb0f278", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11151, "upload_time": "2012-10-11T14:40:37", "url": "https://files.pythonhosted.org/packages/b9/3d/9e2f01cc9a272d37709c98174560defbf83cc77553e13be4212a10976fe0/django-sld-1.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "834ae6c21b99e14782ba442d791a493e", "sha256": "f631bcff823e0c22acf674fc6413119d11b24d676393c8ab971003caf5288e6f" }, "downloads": -1, "filename": "django_sld-1.0.7-py2.7.egg", "has_sig": false, "md5_digest": "834ae6c21b99e14782ba442d791a493e", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 23798, "upload_time": "2012-10-11T14:41:58", "url": "https://files.pythonhosted.org/packages/6e/5f/9ceaa4a3c585a3e7a8b786abd6e61a4447c7052a9fc54cc062d7f7325fd8/django_sld-1.0.7-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "2dfc240f511af064387d2355a8233f00", "sha256": "00db27ee844b97e781bff52bd6415a303ec6513b19c6e56d5ce243c1d1a3beeb" }, "downloads": -1, "filename": "django_sld-1.0.7-py3.2.egg", "has_sig": false, "md5_digest": "2dfc240f511af064387d2355a8233f00", "packagetype": "bdist_egg", "python_version": "3.2", "requires_python": null, "size": 19249, "upload_time": "2012-10-11T14:42:06", "url": "https://files.pythonhosted.org/packages/82/bb/7934d2e40811bd809d36f161371d42edade0660a2acbe2b5d17d139c40a0/django_sld-1.0.7-py3.2.egg" }, { "comment_text": "", "digests": { "md5": "5db76ec68911fb730c465b16aeb0f278", "sha256": "69576b3f3633146d413dabda9a74b64bd2042ef6f4d99702d48328318b7743f1" }, "downloads": -1, "filename": "django-sld-1.0.7.tar.gz", "has_sig": false, "md5_digest": "5db76ec68911fb730c465b16aeb0f278", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11151, "upload_time": "2012-10-11T14:40:37", "url": "https://files.pythonhosted.org/packages/b9/3d/9e2f01cc9a272d37709c98174560defbf83cc77553e13be4212a10976fe0/django-sld-1.0.7.tar.gz" } ] }