Tag Info

Hot answers tagged

2

A MultiLineString is a list of lines: from shapely.geometry import MultiLineString, mapping, shape coords = [((0, 0), (1, 1)), ((-1, 0), (1, 0))] lines = MultiLineString(coords) print lines MULTILINESTRING ((0 0, 1 1), (-1 0, 1 0)) for line in lines: print line LINESTRING (0 0, 1 1) LINESTRING (-1 0, 1 0) # convert to GeoJSON format: print ...


1

Manage to solve my problem. THis can be done by instantiating OGR and openup a shapefile database, layers etc Afterwhich, create a OGRPoint object with the neccessary lat lon input OGRPoint* pt = new OGRPoint(lat, lon); set a spatial filter based on this point object on the layer next extract the feature based on the filter resu;lt Finally extract the ...



Only top voted, non community-wiki answers of a minimum length are eligible