This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import sqrt | |
from matplotlib import pyplot | |
from shapely.geometry import * | |
GM = (sqrt(5)-1.0)/2.0 | |
W = 8.0 | |
H = W*GM | |
SIZE = (W, H) | |
COLORS = ['#6699cc', '#ffcc33'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here's an attempt to log coverage. | |
commit 73344c76b2c34beb066ffe22548cf56a0d064e47 | |
Author: sgillies <[email protected]> | |
Date: Thu Sep 9 14:01:39 2010 -0600 | |
$ coverage -e | |
$ coverage -x setup.py test | |
$ coverage -r shapely/*.py shapely/geometry/*.py | |
Name Stmts Exec Cover |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> name = 'ⲙⲛⲧⲣⲙⲛⲕⲏⲙⲉ'.decode('utf-8') | |
>>> transliterate_name('cop', name) | |
'mntrmnkeme' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gispy-lab)krusty-2:Shapely-1.2 seang$ python speedups-benchmark.py | |
N=10 | |
====== | |
Without speedups | |
74.75 usec/pass | |
With speedups | |
19.80 usec/pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pipelinedemo.py | |
# Data processing pipeline demo | |
from json import dumps | |
import logging | |
def coroutine(func): | |
"""Used as a decorator, advances a generator to active it""" | |
def start(*args,**kwargs): | |
cr = func(*args,**kwargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================ | |
The GeoJSON Format Specification | |
================================ | |
:Abstract: | |
GeoJSON is a geospatial data interchange format based on JavaScript Object | |
Notation (JSON). | |
:Authors: | |
Howard Butler (Hobu Inc.), |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fiona==0.8 | |
Pyproj==1.9.0 | |
Shapely==1.2.14 |
OlderNewer