Geographic lines with holoviews

Hi,
What is the way to display fault lines with holoviews, which are geographic data in shapefile or geojson format ?

regards

1 Like

Hi @Ahmet

Could you provide something tangible like a small, minimum reproducible example to start from? Thanks.

Something like this?
gv.Polygons()
https://geoviews.org/user_guide/Geometries.html#geopandas

2 Likes

Hi,
I did later:

import geopandas as gpd
gdf = gpd.read_file("/usr/local/tr_db/fay0.shp")
# getCoords implementation to get x,y values of LineString
gdf['x'] = gdf.apply(getCoords, geom_col='geometry', coord_type='x', axis=1)
gdf['y'] = gdf.apply(getCoords, geom_col='geometry', coord_type='y', axis=1)


Is there any better way?
regards