Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/l/i/linz2osm-HEAD/linz2osm/convert/processing/__init__.py   linz2osm(Download)
from linz2osm.convert.processing.line_reverse import ReverseLine
from linz2osm.convert.processing.poly_winding import PolyWindingCW, PolyWindingCCW
from linz2osm.convert.processing.centroid import Centroid, PointOnSurface
 
def get_available():

src/l/i/linz2osm-HEAD/linz2osm/convert/processing/tests/test_centroid.py   linz2osm(Download)
from django.test import TestCase
 
from django.contrib.gis import geos
 
from linz2osm.convert.processing.centroid import PointOnSurface, Centroid
    def test_poly_square(self):
        g = geos.Polygon(((0,0), (10,0), (10,10), (0,10), (0,0)))
 
        p = PointOnSurface()
        g2 = p.handle(g)
    def test_poly_n(self):
        g = geos.Polygon(((0,0), (2,0), (2,8), (8,8), (8,0), (10,0), (10,10), (0,10), (0,0)))
 
        p = PointOnSurface()
        g2 = p.handle(g)
    def test_line(self):
        g = geos.LineString((0,0), (0,10), (10,10))
 
        p = PointOnSurface()
        g2 = p.handle(g)