Giter Site home page Giter Site logo

pyslip's Introduction

pyslip/examples/graphics/pyslip_logo.png

pySlip

The python 3, wxpython 4 version is at 'beta' stage and is available through PyPi.

pySlip is a 'slip map' widget for wxPython.

During my work writing geophysical applications in python I often wanted to display a map that was very large - many hundreds of thousands of pixels in width. I searched around for a GUI solution that would work rather like Google maps: tiled, layers, etc. I couldn't find anything that didn't assume browser+map server. So I wrote my own wxPython widget. This worked well for cartesian self-generated maps and has been extended to handle non-cartesian maps and tiles sourced from places like OpenStreetMap.

It's a poor thing, but solves my problem. I'm placing it here in the hope that someone else may find it useful. If you find it useful, or make improvements to it, drop me a line.

pySlip works on Linux and may work on Mac and Windows. It works with wxPython 4.0+ and Python 3.6+. It may work on earlier python 3 versions.

The widget API is documented in the wiki.

Screenshots

A few screenshots of pyslip_demo.py, the first showing OpenStreetMap tiles:

pyslip/examples/graphics/pyslip_demo_osm.png

Next, the pre-generated GMT tiles:

pyslip/examples/graphics/pyslip_demo_gmt.png

Getting pySlip

You can clone this repository, of course, and then do:

python setup.py install

Or you could install through PyPI:

pip install pyslip

Using pip is the recommended way to install pySlip as the cheese shop code is guaranteed to work. The code in the GitHib repository is, unfortunately, a moving target.

Map Tiles Licensing

OpenStreetMap Tiles

© OpenStreetMap contributors

See the licence here.

Stamen Toner Tiles

Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.

Stamen Watercolor and Transport Tiles

Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.

Tile Usage

Before using any tiles provided by pySlip modules, make sure you are not transgressing any usage rules applied by the tiles provider.

Heavy usage of tiles probably means you should set up your own tile cache server and write a Tiles module that gets tiles from your own server(s).

pyslip's People

Contributors

fivitti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.