Skip to main content
.. -*- mode: rst -*-

django-gishelper
#################

**Gishelper** is python django application with useful commands for django.gis module.

.. contents::

Requirements
-------------

- python >= 2.5
- pip >= 0.8


Installation
------------

**Gishelper** should be installed using pip: ::

pip install git+git://github.com/klen/django-gishelper.git


Setup
------

- Add gishelper to INSTALLED_APPS ::

INSTALLED_APPS += ( 'gishelper', )

- Add gishelper router to DATABASE_ROUTERS ::

DATABASE_ROUTERS = [ 'gishelper.router.GisRouter', ]

- Add GISHELPER_GIS_APPS with your gis app labels to settings ::

GISHELPER_GIS_APPS = ( 'my_gis_app', )


Usage
------

- Inspect shape maps and show django gis model structure and mapping ::

./manage.py inspectgeo -f FILEPATH -m MODEL_NAME -s SRID -u USE_DB_ALIAS

- Load data in postgis (mapping and filter) command parse from app.models::

./manage.py loadgeo APP_NAME -f FILEPATH -m MODEL -s SRID -u USE_DB_ALIAS

'loadgeo' can filtrate source, define in models file dict '<lower_model_name>_filter' where keys OGR_NAME of features and condition.

Example: ::

poi_filter = dict(AMENITY__in = ( city, town ))


Note
-----

You need to setup geodjango_ as described in geodjango documentation


.. _geodjango: http://docs.djangoproject.com/en/dev/ref/contrib/gis/

Metadata

Release files for django-gishelper 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-gishelper 0.0.2
File Size Uploaded
django-gishelper-0.0.2.tar.gz 4.1 kB Details

Release files / django-gishelper-0.0.2.tar.gz

Download URL django-gishelper-0.0.2.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
651a988b3cd37947af0c98fd7a6363bc79011d151efcbe0d8e2020202804afc0
BLAKE2b-256 checksum
How to use checksums
e6d6ffadb4085613681830597320cf7e57ee5e08d6411cfcd86a8e161deed8da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page