def sanitize_aois_html(self, style=None): aois_query = self.hulls_query() aois_query = self.query_generator.without_water_query(aois_query) aois_query = self.query_generator.sanitize_aois_query(aois_query) aois = query_geometries(aois_query) return generate_map_html(self.location, aois, style=style)
def already_generated_aois_html(self): aois = gpd.read_file("static/aois.geojson") aois = aois[aois.geometry.notnull()] return generate_map_html([47.372, 8.541], aois, style='final')
def without_water_html(self): query = self.query_generator.without_water_query(self.hulls_query()) hulls = query_geometries(query) return generate_map_html(self.location, hulls, style=None)
def extended_hulls_html(self): hulls = query_geometries(self.query_generator.extended_hulls_query()) return generate_map_html(self.location, hulls, style=None)
def network_centrality_html(self): network_centrality = query_geometries( self.query_generator.network_centrality_query()) return generate_map_html(self.location, network_centrality, style='network')
def clusters_and_hulls_html(self): clusters_and_hulls = query_geometries( self.query_generator.clusters_and_hulls_query()) return generate_map_html(self.location, clusters_and_hulls)
def polygons_html(self): polygons = query_geometries(self.query_generator.polygons_query()) return generate_map_html(self.location, polygons, style=None)