softwareunderground / subsurface

Core data exchange library for subsurface science and engineering
Apache License 2.0
59 stars 19 forks source link

Loading GIS data #19

Open Leguark opened 3 years ago

Leguark commented 3 years ago
Leguark commented 3 years ago

@AlexanderJuestel of these formats which ones are you already able to read in gemgis?

AlexanderJuestel commented 3 years ago

Hey,

shp - shape format - the feature geometry itself shx - shape index format - a positional index of the feature to allow seeking forwards and backwards quickly dbf - attribute format - columnar attributes for each shape cpg - used to specify the code page prj - projection description

Here how one set of files look like image

Leguark commented 3 years ago

So technically we "only" need geopandas for this formats? For subsurface I am trying to keep all those libraries optional (i.e. you only need to install them if you want to load that specific type of data).

@AlexanderJuestel if I prepare you the module and test do you want to give a go to this issue?

AlexanderJuestel commented 3 years ago

Sorry for the late reply.

Geopandas should be sufficient. Lately, I have worked much more with shapely though. Each GeoSeries in a GeoDataFrame consists of a shapely object and you can do all sorts of operations on these objects. The data is usually opened with Fiona. So what I usually do now is to build a GeoDataFrame as last step of each working process to have a better visualization for the user :)