Skip to content

shapefile import to geojson response api with django

Notifications You must be signed in to change notification settings

henriod/shapegeoIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shapefile(input) Geojson(ouput) api

Dependencies

  • This project require postgresql database with postgis and hstore extensions enabled
  • It used geodjango and django_rest_framework_gis

Installing

  • Clone this repository
git clone <repo-url>
  • Create a postgresql database and enable postgis and hstore extension
  • create .env file and place your database connection parameters there same with django secret key

Executing program

  • How to run the program
  • create a virtual env and install requirements
python3 -m venv myenv
source myenv/bin/activate
pip install -r requirements.txt
  • migrate the model to the database
python manage.py migrate
  • runserver in dev
python manage.py runserver
python manage.py createsuperuser 

And visit http://localhost:8000/admin

Help

When having issue installing GDAL in the requirements.txt try installing gdal and lidgdal-dev then use

pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"

Other error create a issue so that i can have a look.

Authors

Contributors names and contact info

ex. Benard Odhiambo ex. @Henriod

License

Your can use this project anywhere you might need am not reliable for any issue caused by it

Acknowledgments

Inspiration, code snippets, etc.

About

shapefile import to geojson response api with django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages