Questions tagged [ogr]

The OGR Simple Features Library is a C++ open source library (and commandline tools) providing read (and sometimes write) access to a variety of vector file formats including ESRI Shapefiles, S-57, SDTS, PostGIS, Oracle Spatial, and Mapinfo mid/mif and TAB formats. OGR is a part of the GDAL library

The OGR Simple Features Library is a C++ open source library (and commandline tools) providing read (and sometimes write) access to a variety of vector file formats including ESRI Shapefiles, S-57, SDTS, PostGIS, Oracle Spatial, and Mapinfo mid/mif and TAB formats.

OGR is a part of the GDAL library

212 questions
-1
votes
1 answer

Find Max Value in a field of a shapefile

I have a shapefile (mich_co.shp) which I try to find the county with max population. My idea is to use max() function it's not possible. Here is my code so far: from osgeo import ogr import os shapefile = "C:/Users/root/Python/mich_co.shp" driver =…
-1
votes
1 answer

Converting unicode fields into texts

I have a shapefile (.shp) with field names wriiten in Japanese language. I wanted to read the field names in Japanese language using the program below: import ogr infile = r"E:\shp\test.shp" ds = ogr.Open(infile,0); slayer =…
gudlife
  • 460
  • 1
  • 4
  • 11
1 2 3
14
15