Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading GIS data #19

Open
7 tasks
Leguark opened this issue Sep 17, 2020 · 4 comments
Open
7 tasks

Loading GIS data #19

Leguark opened this issue Sep 17, 2020 · 4 comments
Assignees

Comments

@Leguark
Copy link
Collaborator

Leguark commented Sep 17, 2020

@Leguark Leguark created this issue from a note in Subsurface Backlog (Scheduled Backlog) Sep 17, 2020
@Leguark
Copy link
Collaborator Author

Leguark commented Sep 17, 2020

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

@AlexanderJuestel
Copy link

AlexanderJuestel commented Sep 17, 2020

Hey,

  • cpg, dbf, prj, shx und shp are vector files and belong together. What we read with geopandas is the shape file (shp) with all associated files.

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

  • ers - have not tested them yet as I did not have sample data in that format. But as rasterio is based on GDAL, it should be able to read it.

@Leguark
Copy link
Collaborator Author

Leguark commented Sep 21, 2020

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
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Subsurface Backlog
  
Scheduled Backlog
Development

No branches or pull requests

2 participants