コード例 #1
0
    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)
コード例 #2
0
 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')
コード例 #3
0
 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)
コード例 #4
0
 def extended_hulls_html(self):
     hulls = query_geometries(self.query_generator.extended_hulls_query())
     return generate_map_html(self.location, hulls, style=None)
コード例 #5
0
 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')
コード例 #6
0
 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)
コード例 #7
0
 def polygons_html(self):
     polygons = query_geometries(self.query_generator.polygons_query())
     return generate_map_html(self.location, polygons, style=None)