explicit imports, cleaned up, remove comments, clean up

pull/30/head
Christoph Rieke 2021-08-28 20:57:51 +02:00
rodzic aa1376a2a3
commit 3066525032
4 zmienionych plików z 19 dodań i 52 usunięć

Wyświetl plik

@ -1,3 +1 @@
# Fetch & Draw
from .draw import *
from .fetch import *
from .draw import plot

Wyświetl plik

@ -1,8 +1,8 @@
from matplotlib import pyplot as plt
from matplotlib import patches
import math
from matplotlib import text as mtext
import numpy as np
import math
class CurvedText(mtext.Text):
"""

Wyświetl plik

@ -1,32 +1,18 @@
# OpenStreetMap Networkx library to download data from OpenStretMap
import osmnx as ox
# Matplotlib-related stuff, for drawing
from matplotlib.path import Path
from matplotlib import pyplot as plt
from matplotlib.patches import PathPatch
# CV2 & Scipy & Numpy & Pandas
import numpy as np
from numpy.random import choice
# Shapely
from shapely.geometry import *
from shapely.affinity import *
# Geopandas
from geopandas import GeoDataFrame
# etc
import re
import pandas as pd
from functools import reduce
from tabulate import tabulate
from IPython.display import Markdown, display
from collections.abc import Iterable
# Fetch
from .fetch import *
import osmnx as ox
import pandas as pd
import numpy as np
from numpy.random import choice
from shapely.geometry import Polygon, MultiPolygon, MultiLineString, GeometryCollection
from shapely.affinity import translate, scale, rotate
from descartes import PolygonPatch
from tabulate import tabulate
from IPython.display import Markdown, display
from .fetch import get_perimeter, get_layer
# Helper functions
def get_hash(key):

Wyświetl plik

@ -1,28 +1,11 @@
# OpenStreetMap Networkx library to download data from OpenStretMap
from ast import Mult
from operator import ge
from functools import reduce
import osmnx as ox
# CV2 & Scipy & Numpy & Pandas
import numpy as np
# Shapely
from shapely.geometry import *
from shapely.affinity import *
from shapely.geometry import Point, Polygon, MultiPolygon, MultiLineString
from shapely.ops import unary_union
# Geopandas
from geopandas import GeoDataFrame
# Matplotlib
from matplotlib.path import Path
# etc
from collections.abc import Iterable
from functools import reduce
from descartes import PolygonPatch
from functools import reduce
# Compute circular or square boundary given point, radius and crs
def get_boundary(point, radius, crs, circle = True, dilate = 0):