Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- # Add intersected polygons to the map
- for polygon in intersected_polygons:
- geojson = folium.GeoJson(
- polygon.__geo_interface__,
- style_function=lambda x: {
- "fillColor": "red",
- "color": "black",
- "weight": 2,
- "fillOpacity": 0.7,
- },
- )
- geojson.add_to(map)
- # Add longest lines for intersected polygons to the map
- for line in longest_lines:
- if line is not None:
- longest_line_geojson = folium.GeoJson(
- line.__geo_interface__,
- style_function=lambda x: {
- "color": "blue",
- "weight": 3,
- "opacity": 0.7,
- },
- )
- longest_line_geojson.add_to(map)
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement