Giter VIP home page Giter VIP logo

exdraw's Introduction

Exdraw, an external drawer for shapely geometry and more..

support python>=3.6 If you found it too hard to draw shapely geometry within your running server for debugging, try this mini tool.

This is a little tools that can draw shapely geometry using an independent file server. When the server is on, a module named _probe will be injected into your working project. Then you can use:

from _probe.draw_shapely import draw_all_shapley
draw_all_shapely(your_shapely_geometries_list)

plot

***And Bang! A nice plot will show up without any side effect caused.

Installation

  1. Make sure you have python3.6, python3.7 is not working well with geopandas.
  2. Make sure you have pip3. In most case, pip3 is shipped with any python3 version.
  3. git clone https://github.com/pyeprog/exdraw.git
  4. cd exdraw
  5. sudo sh install.sh

How to use it.

cd to your working project. enter inject

If you see

Cleaning done
Injection done

then you are good to go. Now you will find a _probe module in your project path.

Now you can use several methods to draw shapely geometries.

from _probe.draw_shapely import draw_shapely_one_by_one, draw_single_shapely, draw_all_shapely, compare_two_shapely
draw_all_shapely(some_geom_list)
draw_shapely_one_by_one(some_geom_list)
draw_single_shapeply(one_geom)
compare_two_shapely(geom_list1, geom_list2)

If you wanna stop this little tools, just Ctrl-C for several times, The injected _probe module will be removed automatically.

Please create issue if you meet any problem. PR is welcome.

exdraw's People

Contributors

pyeprog avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.