kopia lustrzana https://github.com/marceloprates/prettymaps
Porównaj commity
10 Commity
f895570923
...
0b45685010
Autor | SHA1 | Data |
---|---|---|
marceloprates | 0b45685010 | |
marceloprates | af94eed6bd | |
marceloprates | a40c64e25d | |
marceloprates | 54339657fb | |
marceloprates | dd2fd80544 | |
marceloprates | e3a176a0b1 | |
marceloprates | c0eb528301 | |
marceloprates | d024b83954 | |
marceloprates | 8679cccf9e | |
marceloprates | cdebb322ec |
|
@ -20,7 +20,7 @@ import re
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import yaml
|
import yaml
|
||||||
import IPython
|
#import IPython
|
||||||
import pathlib
|
import pathlib
|
||||||
import warnings
|
import warnings
|
||||||
import matplotlib
|
import matplotlib
|
||||||
|
@ -37,8 +37,8 @@ from matplotlib import pyplot as plt
|
||||||
from matplotlib.colors import hex2color
|
from matplotlib.colors import hex2color
|
||||||
from matplotlib.patches import Path, PathPatch
|
from matplotlib.patches import Path, PathPatch
|
||||||
from typing import Optional, Union, Tuple, List, Dict, Any, Iterable
|
from typing import Optional, Union, Tuple, List, Dict, Any, Iterable
|
||||||
from shapely.geometry import Point, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, box
|
|
||||||
from shapely.geometry.base import BaseGeometry
|
from shapely.geometry.base import BaseGeometry
|
||||||
|
from shapely.geometry import Point, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, box
|
||||||
|
|
||||||
#import vsketch
|
#import vsketch
|
||||||
|
|
||||||
|
@ -78,6 +78,7 @@ class Preset:
|
||||||
"""
|
"""
|
||||||
params: dict
|
params: dict
|
||||||
|
|
||||||
|
'''
|
||||||
def _ipython_display_(self):
|
def _ipython_display_(self):
|
||||||
"""
|
"""
|
||||||
Implements the _ipython_display_() function for the Preset class.
|
Implements the _ipython_display_() function for the Preset class.
|
||||||
|
@ -104,7 +105,7 @@ class Preset:
|
||||||
params.iloc[1:, 2:] = ''
|
params.iloc[1:, 2:] = ''
|
||||||
|
|
||||||
IPython.display.display(IPython.display.Markdown(params.to_markdown()))
|
IPython.display.display(IPython.display.Markdown(params.to_markdown()))
|
||||||
|
'''
|
||||||
|
|
||||||
def transform_gdfs(
|
def transform_gdfs(
|
||||||
gdfs: Dict[str, gp.GeoDataFrame],
|
gdfs: Dict[str, gp.GeoDataFrame],
|
||||||
|
|
|
@ -16,19 +16,11 @@ You should have received a copy of the GNU Affero General Public License
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from ast import Dict
|
|
||||||
from functools import reduce
|
|
||||||
from tokenize import Number, String
|
|
||||||
from typing import Optional, Union, Tuple
|
|
||||||
|
|
||||||
# from unittest.runner import _ResultClassType
|
|
||||||
from xmlrpc.client import Boolean
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import osmnx as ox
|
import warnings
|
||||||
from osmnx import utils_geo
|
|
||||||
from osmnx._errors import EmptyOverpassResponse
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
import osmnx as ox
|
||||||
|
from copy import deepcopy
|
||||||
from shapely.geometry import (
|
from shapely.geometry import (
|
||||||
box,
|
box,
|
||||||
Point,
|
Point,
|
||||||
|
@ -37,12 +29,10 @@ from shapely.geometry import (
|
||||||
LineString,
|
LineString,
|
||||||
MultiLineString,
|
MultiLineString,
|
||||||
)
|
)
|
||||||
|
from geopandas import GeoDataFrame
|
||||||
from shapely.affinity import rotate
|
from shapely.affinity import rotate
|
||||||
from shapely.ops import unary_union
|
from shapely.ops import unary_union
|
||||||
from geopandas import GeoDataFrame, read_file
|
|
||||||
import warnings
|
|
||||||
from shapely.errors import ShapelyDeprecationWarning
|
from shapely.errors import ShapelyDeprecationWarning
|
||||||
from copy import deepcopy
|
|
||||||
|
|
||||||
|
|
||||||
# Parse query (by coordinates, OSMId or name)
|
# Parse query (by coordinates, OSMId or name)
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
osmnx==1.2.2
|
osmnx==1.1.2
|
||||||
tabulate==0.8.9
|
tabulate==0.8.9
|
||||||
Shapely>=1.8,<2.0
|
Shapely>=1.8,<2.0
|
||||||
descartes==1.1.0
|
descartes==1.1.0
|
||||||
ipykernel==5.3.4
|
pyyaml==6.0.0
|
||||||
pyyaml==6.0.0
|
|
4
setup.py
4
setup.py
|
@ -7,7 +7,7 @@ presets_dir = os.path.abspath(os.path.join(os.path.pardir, 'presets'))
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="prettymaps",
|
name="prettymaps",
|
||||||
version="v0.1.4",
|
version="v0.2-beta.2",
|
||||||
description="A simple python library to draw pretty maps from OpenStreetMap data",
|
description="A simple python library to draw pretty maps from OpenStreetMap data",
|
||||||
long_description=parent_dir.joinpath("README.md").read_text(),
|
long_description=parent_dir.joinpath("README.md").read_text(),
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
@ -22,6 +22,6 @@ setup(
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Intended Audience :: Science/Research",
|
"Intended Audience :: Science/Research",
|
||||||
],
|
],
|
||||||
package_dir={'prettymaps': '.'},
|
package_dir={'prettymaps': 'prettymaps'},
|
||||||
package_data={'prettymaps': ['presets/*.json']},
|
package_data={'prettymaps': ['presets/*.json']},
|
||||||
)
|
)
|
||||||
|
|
Ładowanie…
Reference in New Issue