django-geojson


Namedjango-geojson JSON
Version 4.1.0 PyPI version JSON
download
home_pagehttps://github.com/makinacorpus/django-geojson
SummaryServe vectorial map layers with Django
upload_time2024-05-13 12:08:19
maintainerNone
docs_urlNone
authorMathieu Leplatre
requires_python>=3.8
licenseLPGL, see LICENSE file.
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            ==============
django-geojson
==============

See the `documentation <https://django-geojson.readthedocs.io/en/latest/>`_ for more information.

*django-geojson* is a set of tools to manipulate GeoJSON with Django >= 3.2:

* (De)Serializer for (Geo)Django objects, querysets and lists
* Base views to serve GeoJSON map layers from models
* GeoJSON model and form fields to avoid spatial database backends
  (compatible with *django-leaflet* for map widgets)


.. image:: https://readthedocs.org/projects/django-geojson/badge/?version=latest
    :target: http://django-geojson.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

.. image:: https://img.shields.io/pypi/v/django-geojson.svg
        :target: https://pypi.python.org/pypi/django-geojson

.. image:: https://img.shields.io/pypi/dm/django-geojson.svg
        :target: https://pypi.python.org/pypi/django-geojson

.. image:: https://travis-ci.org/makinacorpus/django-geojson.png?branch=master
    :target: https://travis-ci.org/makinacorpus/django-geojson

.. image:: https://coveralls.io/repos/makinacorpus/django-geojson/badge.png?branch=master
    :target: https://coveralls.io/r/makinacorpus/django-geojson


=======
AUTHORS
=======

* Mathieu Leplatre <mathieu.leplatre@makina-corpus.com>
* Glen Robertson author of django-geojson-tiles at: https://github.com/glenrobertson/django-geojson-tiles/
* @jeffkistler's author of geojson serializer at: https://gist.github.com/967274
* Ben Welsh and Lukasz Dziedzia for `quick test script <http://datadesk.latimes.com/posts/2012/06/test-your-django-app-with-travisci/>`_
* Florent Lebreton http://github.com/fle
* Julien Le Sech http://www.idreammicro.com
* Kevin Cooper @kevcooper
* Achille Ash @AchilleAsh
* Yann Fouillat (alias Gagaro) <yann.fouillat@makina-corpus.com>

Version 1.X:

* Daniel Sokolowski, serializer snippet
* ozzmo, python 2.6 compatibility

|makinacom|_

.. |makinacom| image:: http://depot.makina-corpus.org/public/logo.gif
.. _makinacom:  http://www.makina-corpus.com

=======
LICENSE
=======

Lesser GNU Public License


=========
CHANGELOG
=========

4.1.0 (2024-05-13)
==================

- Drop Python 3.7, Django 3.2. Support Python 3.11 and 3.12, Django 4.2 and 5.0. #123 

4.0.0 (2022-10-17)
==================

- Drop support for Python < 3.7 / Django < 3.2
- Remove jsonfield dependency in favor of django.db.models.JSONField
	WARNING : This can break your migration. jsonfield used to create a text column for your json data when running 'makemigrations'. However, django.db.models.JSONField creates a json column using database-backend specific column types (ie jsonb on postgresql). As such your model field that used to be a text column is now a jsonb column.

3.2.1 (2022-02-21)
==================

- Set default initial value to form field #116 

3.2.0 (2021-04-15)
==================

- Support Django 3.2.

3.1.0 (2020-10-27)
==================

- Drop support for Python 2 and Django < 2.2
- Fix warnings in Django 3.1
- Use explicit srid in get_queryset #106
- Add support for crs_type using the view options #107

3.0.0 (2020-03-02)
===================

- Fix with_modelname option after first iteration
- Drop Django 1.11 support
- jsonfield 3.0 support, drop 2.x support

2.12.0 (2018-12-05)
===================

- Change media type to 'application/geo+json'
- Make with_modelname option available in views
- Drop Django 1.8 support.
- Fixed unnecessary GDAL dependency. (#100, thanks @coredumperror)

2.11.0 (2017-12-05)
===================

- Django 2.0 support.
- Fix setup.py encoding error.

2.10.0 (2017-02-28)
===================

- python 3.5 support.


2.9.1 (2016-08-22)
==================

** Bug fixes **

- Remove deprecation warnings with Django 1.8 (#78, thanks @AchilleAsh)


2.9.0 (2016-02-08)
==================

** New features **

- handle natural keys in views (#74, thanks Achille Ash!)

** Bug fixes **

- Add Django 1.9 compatibility (#69, thanks Julien Le Sech!)
- Fix imports in view.py to work without GEOS (#62, thanks Kevin Cooper!)


2.8.1 (2015-06-17)
==================

** Bug fixes**

- Fixed detection of GEOS (thanks Kevin Cooper!)

2.8.0 (2015-04-17)
==================

** New features **

- Support GeoJSON specification for named crs (thanks Alvin Lindstam)

** Bug fixes **

- Add python 3.2 compatibility (thanks Nikolay Korotkiy, fixes #55)
- Fix tests on Django >= 1.7 (thanks Manel Clos)


2.7.0 (2015-02-21)
==================

** New features **

- Add a with_modelname option to serializer

** Bug fixes **

- change 'fields' to 'properties' in code example
- Adds a warning for "Module version, as defined in PEP-0396


2.6.0 (2014-07-21)
==================

** New features **

- Django GeoJSON fields without libgeos installed (thanks Florent Lebreton)
- Properties can be a tuple (fixes #34)


2.5.0 (2014-06-03)
==================

** New features **

- Add vector tiles view
- Improved `geojsonfeature` template tag (fixes #15, #16)
- Add various GeoJSON fields, for each geometry type

** Bug fixes **

- Fix (de)serializers not being usable from command-line (fixes #28)
- Fix import attempt for *django-leaflet* (fixes #27), by Seyi Ogunyemi
- Fix missed SRID after copying a geometry in ``_handle_geom``, by Biel Frontera

** Internal changes **

- Specify django-leaflet minimal version for GeoJSON model field
- Got rid of shapely for deserialization


2.4.0 (2014-03-22)
==================

- Add GeoJSON fields


2.3.0 (2014-02-08)
==================

- Python 3 support (thanks @amarandon)
- Add bbox at feature level (thanks @7wonders)


2.2.0 (2013-12-18)
==================

- Deserialization: add ability to specify model name as option (thanks @Vross)
- Deserialization: look-up ``ìd`` value in properties whe missing at feature level: (thanks @Vross)


2.1.1 (2013-08-21)
==================

- Set default SRID to 4326 in generic GeoJSON views.


2.1.0 (2013-08-19)
==================

- Serialize reversed relations using natural keys (fixes #8)
- Support empty geometries (None or NULL in Db)
- Fix serializing property in upper class

2.0.1 (2013-07-10)
==================

- Fix usage of simplify.
- Expose ``force2d`` option in view
- Allow to have ``pk`` or ``id`` in properties if explicitly listed

2.0.0 (2013-07-09)
==================

- Complete rewrite using @jeffkistler and @glenrobertson code
- CRS is added to GeoJSON ouput by default
- Ability to build ``pk`` dynamically by passing a lambda
- Ability to provide a ``bbox``
- Ability to use Django natural keys
- Support of *ValuesQuerySet*
- Support of *ForeignKey* and *ManyToMany*
- Added ``force2d`` option

** Backwards incompatible changes **

- Geom field is not guessed automatically : Use ``geometry_field`` option, default is ``'geom'``.
- no more ``pk`` in properties : use feature ``id``, or list ``pk`` in properties explicitly.
- ``fields`` list in ``GeoJSONLayer`` was renamed ``properties``.

1.2.0 (2013-05-22)
==================

- Shapely is now optional (used for deserialization only)
- Add Django to requirements
- Skip a step in GeoJSON conversion of geometries (fixes #6)


1.1.0 (2013-03-06)
==================

- Django 1.5 support
- Fix template tag geojsonfeature on empty geometries

1.0.0 (2012-08-03)
==================

- Initial working version.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/makinacorpus/django-geojson",
    "name": "django-geojson",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Mathieu Leplatre",
    "author_email": "mathieu.leplatre@makina-corpus.com",
    "download_url": "https://files.pythonhosted.org/packages/b9/65/9a3df3ecbc78d5d3f5de240d87d689466012a17690f624febb95178d776e/django_geojson-4.1.0.tar.gz",
    "platform": null,
    "description": "==============\ndjango-geojson\n==============\n\nSee the `documentation <https://django-geojson.readthedocs.io/en/latest/>`_ for more information.\n\n*django-geojson* is a set of tools to manipulate GeoJSON with Django >= 3.2:\n\n* (De)Serializer for (Geo)Django objects, querysets and lists\n* Base views to serve GeoJSON map layers from models\n* GeoJSON model and form fields to avoid spatial database backends\n  (compatible with *django-leaflet* for map widgets)\n\n\n.. image:: https://readthedocs.org/projects/django-geojson/badge/?version=latest\n    :target: http://django-geojson.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n.. image:: https://img.shields.io/pypi/v/django-geojson.svg\n        :target: https://pypi.python.org/pypi/django-geojson\n\n.. image:: https://img.shields.io/pypi/dm/django-geojson.svg\n        :target: https://pypi.python.org/pypi/django-geojson\n\n.. image:: https://travis-ci.org/makinacorpus/django-geojson.png?branch=master\n    :target: https://travis-ci.org/makinacorpus/django-geojson\n\n.. image:: https://coveralls.io/repos/makinacorpus/django-geojson/badge.png?branch=master\n    :target: https://coveralls.io/r/makinacorpus/django-geojson\n\n\n=======\nAUTHORS\n=======\n\n* Mathieu Leplatre <mathieu.leplatre@makina-corpus.com>\n* Glen Robertson author of django-geojson-tiles at: https://github.com/glenrobertson/django-geojson-tiles/\n* @jeffkistler's author of geojson serializer at: https://gist.github.com/967274\n* Ben Welsh and Lukasz Dziedzia for `quick test script <http://datadesk.latimes.com/posts/2012/06/test-your-django-app-with-travisci/>`_\n* Florent Lebreton http://github.com/fle\n* Julien Le Sech http://www.idreammicro.com\n* Kevin Cooper @kevcooper\n* Achille Ash @AchilleAsh\n* Yann Fouillat (alias Gagaro) <yann.fouillat@makina-corpus.com>\n\nVersion 1.X:\n\n* Daniel Sokolowski, serializer snippet\n* ozzmo, python 2.6 compatibility\n\n|makinacom|_\n\n.. |makinacom| image:: http://depot.makina-corpus.org/public/logo.gif\n.. _makinacom:  http://www.makina-corpus.com\n\n=======\nLICENSE\n=======\n\nLesser GNU Public License\n\n\n=========\nCHANGELOG\n=========\n\n4.1.0 (2024-05-13)\n==================\n\n- Drop Python 3.7, Django 3.2. Support Python 3.11 and 3.12, Django 4.2 and 5.0. #123 \n\n4.0.0 (2022-10-17)\n==================\n\n- Drop support for Python < 3.7 / Django < 3.2\n- Remove jsonfield dependency in favor of django.db.models.JSONField\n\tWARNING : This can break your migration. jsonfield used to create a text column for your json data when running 'makemigrations'. However, django.db.models.JSONField creates a json column using database-backend specific column types (ie jsonb on postgresql). As such your model field that used to be a text column is now a jsonb column.\n\n3.2.1 (2022-02-21)\n==================\n\n- Set default initial value to form field #116 \n\n3.2.0 (2021-04-15)\n==================\n\n- Support Django 3.2.\n\n3.1.0 (2020-10-27)\n==================\n\n- Drop support for Python 2 and Django < 2.2\n- Fix warnings in Django 3.1\n- Use explicit srid in get_queryset #106\n- Add support for crs_type using the view options #107\n\n3.0.0 (2020-03-02)\n===================\n\n- Fix with_modelname option after first iteration\n- Drop Django 1.11 support\n- jsonfield 3.0 support, drop 2.x support\n\n2.12.0 (2018-12-05)\n===================\n\n- Change media type to 'application/geo+json'\n- Make with_modelname option available in views\n- Drop Django 1.8 support.\n- Fixed unnecessary GDAL dependency. (#100, thanks @coredumperror)\n\n2.11.0 (2017-12-05)\n===================\n\n- Django 2.0 support.\n- Fix setup.py encoding error.\n\n2.10.0 (2017-02-28)\n===================\n\n- python 3.5 support.\n\n\n2.9.1 (2016-08-22)\n==================\n\n** Bug fixes **\n\n- Remove deprecation warnings with Django 1.8 (#78, thanks @AchilleAsh)\n\n\n2.9.0 (2016-02-08)\n==================\n\n** New features **\n\n- handle natural keys in views (#74, thanks Achille Ash!)\n\n** Bug fixes **\n\n- Add Django 1.9 compatibility (#69, thanks Julien Le Sech!)\n- Fix imports in view.py to work without GEOS (#62, thanks Kevin Cooper!)\n\n\n2.8.1 (2015-06-17)\n==================\n\n** Bug fixes**\n\n- Fixed detection of GEOS (thanks Kevin Cooper!)\n\n2.8.0 (2015-04-17)\n==================\n\n** New features **\n\n- Support GeoJSON specification for named crs (thanks Alvin Lindstam)\n\n** Bug fixes **\n\n- Add python 3.2 compatibility (thanks Nikolay Korotkiy, fixes #55)\n- Fix tests on Django >= 1.7 (thanks Manel Clos)\n\n\n2.7.0 (2015-02-21)\n==================\n\n** New features **\n\n- Add a with_modelname option to serializer\n\n** Bug fixes **\n\n- change 'fields' to 'properties' in code example\n- Adds a warning for \"Module version, as defined in PEP-0396\n\n\n2.6.0 (2014-07-21)\n==================\n\n** New features **\n\n- Django GeoJSON fields without libgeos installed (thanks Florent Lebreton)\n- Properties can be a tuple (fixes #34)\n\n\n2.5.0 (2014-06-03)\n==================\n\n** New features **\n\n- Add vector tiles view\n- Improved `geojsonfeature` template tag (fixes #15, #16)\n- Add various GeoJSON fields, for each geometry type\n\n** Bug fixes **\n\n- Fix (de)serializers not being usable from command-line (fixes #28)\n- Fix import attempt for *django-leaflet* (fixes #27), by Seyi Ogunyemi\n- Fix missed SRID after copying a geometry in ``_handle_geom``, by Biel Frontera\n\n** Internal changes **\n\n- Specify django-leaflet minimal version for GeoJSON model field\n- Got rid of shapely for deserialization\n\n\n2.4.0 (2014-03-22)\n==================\n\n- Add GeoJSON fields\n\n\n2.3.0 (2014-02-08)\n==================\n\n- Python 3 support (thanks @amarandon)\n- Add bbox at feature level (thanks @7wonders)\n\n\n2.2.0 (2013-12-18)\n==================\n\n- Deserialization: add ability to specify model name as option (thanks @Vross)\n- Deserialization: look-up ``\u00ecd`` value in properties whe missing at feature level: (thanks @Vross)\n\n\n2.1.1 (2013-08-21)\n==================\n\n- Set default SRID to 4326 in generic GeoJSON views.\n\n\n2.1.0 (2013-08-19)\n==================\n\n- Serialize reversed relations using natural keys (fixes #8)\n- Support empty geometries (None or NULL in Db)\n- Fix serializing property in upper class\n\n2.0.1 (2013-07-10)\n==================\n\n- Fix usage of simplify.\n- Expose ``force2d`` option in view\n- Allow to have ``pk`` or ``id`` in properties if explicitly listed\n\n2.0.0 (2013-07-09)\n==================\n\n- Complete rewrite using @jeffkistler and @glenrobertson code\n- CRS is added to GeoJSON ouput by default\n- Ability to build ``pk`` dynamically by passing a lambda\n- Ability to provide a ``bbox``\n- Ability to use Django natural keys\n- Support of *ValuesQuerySet*\n- Support of *ForeignKey* and *ManyToMany*\n- Added ``force2d`` option\n\n** Backwards incompatible changes **\n\n- Geom field is not guessed automatically : Use ``geometry_field`` option, default is ``'geom'``.\n- no more ``pk`` in properties : use feature ``id``, or list ``pk`` in properties explicitly.\n- ``fields`` list in ``GeoJSONLayer`` was renamed ``properties``.\n\n1.2.0 (2013-05-22)\n==================\n\n- Shapely is now optional (used for deserialization only)\n- Add Django to requirements\n- Skip a step in GeoJSON conversion of geometries (fixes #6)\n\n\n1.1.0 (2013-03-06)\n==================\n\n- Django 1.5 support\n- Fix template tag geojsonfeature on empty geometries\n\n1.0.0 (2012-08-03)\n==================\n\n- Initial working version.\n",
    "bugtrack_url": null,
    "license": "LPGL, see LICENSE file.",
    "summary": "Serve vectorial map layers with Django",
    "version": "4.1.0",
    "project_urls": {
        "Download": "http://pypi.python.org/pypi/django-geojson/",
        "Homepage": "https://github.com/makinacorpus/django-geojson"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "46449e9763876dc137bddcf44ee5650b7e5b4bd2e72846d09967a15d5d55a6d0",
                "md5": "ad429ee0fe7e284c4364682e150071d0",
                "sha256": "27cb3dc94f448300157d05646a8d3ff14e9e36a58181c47a654e307c449fd9da"
            },
            "downloads": -1,
            "filename": "django_geojson-4.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ad429ee0fe7e284c4364682e150071d0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 22680,
            "upload_time": "2024-05-13T12:08:17",
            "upload_time_iso_8601": "2024-05-13T12:08:17.906932Z",
            "url": "https://files.pythonhosted.org/packages/46/44/9e9763876dc137bddcf44ee5650b7e5b4bd2e72846d09967a15d5d55a6d0/django_geojson-4.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b9659a3df3ecbc78d5d3f5de240d87d689466012a17690f624febb95178d776e",
                "md5": "50280a7b23f3e57fb00be3a54d7d63e6",
                "sha256": "d044803ef8ce5039d89a5c53ecf6cb9dd0068acb31ceade041f6c14b1b2a723a"
            },
            "downloads": -1,
            "filename": "django_geojson-4.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "50280a7b23f3e57fb00be3a54d7d63e6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 20939,
            "upload_time": "2024-05-13T12:08:19",
            "upload_time_iso_8601": "2024-05-13T12:08:19.647463Z",
            "url": "https://files.pythonhosted.org/packages/b9/65/9a3df3ecbc78d5d3f5de240d87d689466012a17690f624febb95178d776e/django_geojson-4.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-13 12:08:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "makinacorpus",
    "github_project": "django-geojson",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "django-geojson"
}
        
Elapsed time: 1.13331s