mirror of
https://github.com/wassname/geopandas.git
synced 2026-09-24 13:30:40 +08:00
CLN: Clean up imports. Use absolute imports.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
from collections import defaultdict, OrderedDict
|
||||
import json, os
|
||||
import json
|
||||
import os
|
||||
|
||||
import fiona
|
||||
import numpy as np
|
||||
from pandas import DataFrame
|
||||
from shapely.geometry import mapping, shape
|
||||
|
||||
from geopandas import GeoSeries
|
||||
from plotting import plot_dataframe
|
||||
|
||||
import numpy as np
|
||||
from geopandas.plotting import plot_dataframe
|
||||
|
||||
|
||||
class GeoDataFrame(DataFrame):
|
||||
|
||||
@@ -1,27 +1,24 @@
|
||||
from warnings import warn
|
||||
from functools import partial
|
||||
from warnings import warn
|
||||
|
||||
import fiona
|
||||
from fiona.crs import from_epsg
|
||||
import numpy as np
|
||||
from pandas import Series, DataFrame
|
||||
|
||||
import pyproj
|
||||
from shapely.geometry import shape, Polygon, Point
|
||||
from shapely.geometry.collection import GeometryCollection
|
||||
from shapely.geometry.base import BaseGeometry
|
||||
from shapely.ops import cascaded_union, unary_union, transform
|
||||
import shapely.affinity as affinity
|
||||
import fiona
|
||||
from fiona.crs import from_epsg
|
||||
|
||||
from plotting import plot_series
|
||||
from geopandas.plotting import plot_series
|
||||
|
||||
EMPTY_COLLECTION = GeometryCollection()
|
||||
EMPTY_POLYGON = Polygon()
|
||||
EMPTY_POINT = Point()
|
||||
|
||||
|
||||
|
||||
|
||||
def _is_empty(x):
|
||||
try:
|
||||
return x.is_empty
|
||||
|
||||
Reference in New Issue
Block a user