Skip to main content

Timeline for Using ogrinfo in Python script

Current License: CC BY-SA 4.0

17 events
when toggle format what by license comment
Jun 12 at 16:53 answer added Taras timeline score: 1
Jun 12 at 5:59 history edited Taras CC BY-SA 4.0
added 2 characters in body; edited tags; edited title
Jun 6 at 20:35 answer added user30184 timeline score: 4
Nov 18, 2022 at 12:40 comment added linus @dabba293 facing the same question - have you fonud a way to use osgeo library to accomplish this?
Apr 28, 2022 at 13:12 comment added user30184 As usual realpython.com/run-python-scripts/#using-the-python-command python ogrinfo.py followed by the arguments.
Apr 28, 2022 at 12:44 comment added dabba293 @user30184 I'm just unsure how to execute the script properly
Apr 28, 2022 at 12:33 comment added user30184 It implements almost all the same features than the ogr2ogr executable including how to handle the options and error cases. Is there some special piece of information about vector layers that you are interested in?
Apr 28, 2022 at 12:30 comment added dabba293 @user30184 I can't understand that code. Is there not an easier way to execute similar results?
Apr 28, 2022 at 12:25 comment added user30184 See also gis.stackexchange.com/questions/429788/…. The whole ogrinfo is also written as a python script in the code samples github.com/OSGeo/gdal/blob/master/swig/python/gdal-utils/….
Apr 28, 2022 at 11:20 comment added dabba293 @Vince sorry, I've modified the question now
Apr 28, 2022 at 11:20 history edited dabba293 CC BY-SA 4.0
added 174 characters in body
Apr 28, 2022 at 11:13 comment added Vince If you want to use the external binary, then subprocess is the route. If you want to do the equivalent in Python, then you need to rewrite the Question to ask that.
Apr 28, 2022 at 11:10 history edited Vince CC BY-SA 4.0
naming
Apr 28, 2022 at 10:58 comment added dabba293 @gene I had seen this answer, but thought there might be a way to use from osgeo rather than subprocess. Is this not the case?
Apr 28, 2022 at 10:48 comment added gene Duplicate of GDAL/OGR ogrinfo for shapefiles in python ?
S Apr 28, 2022 at 10:03 review First questions
Apr 28, 2022 at 13:44
S Apr 28, 2022 at 10:03 history asked dabba293 CC BY-SA 4.0