change reverse_geocoder for openmaps api call

This commit is contained in:
Guille Gutierrez 2020-06-29 17:24:05 -04:00
parent 160ca22754
commit 79a8b9f9d6
4 changed files with 5 additions and 4 deletions

View File

@ -67,7 +67,6 @@ class Polyhedron:
for point in points: for point in points:
face.append(self._position_of(point)) face.append(self._position_of(point))
self._faces.append(face) self._faces.append(face)
#self._faces = np.asarray(self._faces)
return self._faces return self._faces
@property @property

View File

@ -381,7 +381,9 @@ class Surface:
if self._is_projected: if self._is_projected:
return self return self
if self._projected_surface is None: if self._projected_surface is None:
self._projected_surface = self._polygon_to_surface(self.shapely) shapely = self.shapely
if shapely is not None:
self._projected_surface = self._polygon_to_surface(shapely)
return self._projected_surface return self._projected_surface
def intersect(self, surface) -> Union[Surface, None]: def intersect(self, surface) -> Union[Surface, None]:

View File

@ -135,7 +135,6 @@ class CityGml:
ground = ground and self._geometry.almost_equal(row, ground_point) ground = ground and self._geometry.almost_equal(row, ground_point)
if ground: if ground:
ground_points = self._geometry.to_points_matrix(ground_points) ground_points = self._geometry.to_points_matrix(ground_points)
# Do i need to remove the duplicated?
terrains.append(ground_points) terrains.append(ground_points)
return surfaces return surfaces

View File

@ -20,7 +20,8 @@ class GeometryHelper:
def __init__(self, delta=0.5): def __init__(self, delta=0.5):
self._delta = delta self._delta = delta
def adjacent_locations(self, location1, location2): @staticmethod
def adjacent_locations(location1, location2):
""" """
Determine when two buildings may be adjacent or not based in the dis Determine when two buildings may be adjacent or not based in the dis
:param location1: :param location1: