{ "info": { "author": "Lars Claussen, Thijs Creemers", "author_email": "lars.claussen@and.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 2.7", "Topic :: Scientific/Engineering :: GIS" ], "description": "===========\nogr_utils\n===========\n\nogr_utils is a small wrapper around the GDAL/ogr module. Basically it\nis an abstraction layer that adds some convience to reading, writing\nand manipulating geographic data formats.\nIt provides three modules: geometry, research and copy_helper.\n\n**Important!** Obviously GDAL is required. As installation can be troublesome it is not including as a requirement in this distribution. Please install manually.\n\nExample one. Save a layer based on a query to a new shapefile::\n\n #!/usr/bin/env python\n\n from ogr_utils.copy_helper import CopyHelper\n c = CopyHelper()\n f = '/home/.../border_segs.shp'\n shp =ogr.Open(f,0)\n lyr = shp.GetLayer()\n lyr.GetFeatureCount()\n >>> 13411\n c.lyr_2_shp(lyr,f,'line')\n lyr_sel = shp.ExecuteSQL(\"select * from 'border_segs' where 'FID' < 100 \")\n lyr_sel.GetFeatureCount()\n >>> 100\n c.lyr_2_shp(lyr_sel,f,'line')\n\nExample two. Save a set of geo objects to a shapefile (or any other file format supported by ogr)::\n\n #!/usr/bin/env python\n\n from ogr_utils.geometry import Geometry\n g = Geometry( [(xy),], [(fieldname_1, type),(fieldname_2, type),], [(value_field_1,...),(value_field_2,...)] )\n f = '/home/.../outfile.shp'\n g.make_points(f)\n\n\nExample three. Get the geomtry of an evelope by it's lower left and upper right corner::\n\n #!/usr/bin/env python\n\n from ogr_utils.research import Research\n prof = Research()\n xy1 = (4.84692,52.3706) \n xy2 = (4.84397,52.36611)\n bb = prof.get_bounding_box( [xy1,xy2] )", "description_content_type": null, "docs_url": "https://pythonhosted.org/ogr_utils/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.and.com/", "keywords": "org utility", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "ogr_utils", "package_url": "https://pypi.org/project/ogr_utils/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ogr_utils/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.and.com/" }, "release_url": "https://pypi.org/project/ogr_utils/1.2/", "requires_dist": null, "requires_python": null, "summary": "conveniance utilities for ogr", "version": "1.2" }, "last_serial": 1204000, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "4f78eb4aafd24e6eec67343de0891afb", "sha256": "48bb6d28c0611e6601654f28bbe44a16b5b24965296d107e48475e69e38435b8" }, "downloads": -1, "filename": "ogr_utils-1.0.tar.gz", "has_sig": false, "md5_digest": "4f78eb4aafd24e6eec67343de0891afb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8465, "upload_time": "2014-06-19T11:23:26", "url": "https://files.pythonhosted.org/packages/4f/fe/f7f99963394b573c2d164b0297faaf0e5537b01761443c74b1d7433009a0/ogr_utils-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "a37f1b8313334336966c2095ea235eb1", "sha256": "f4c20aa2236168864e86c16447a38d8a4176e443681a3cf98fcd905cfc974fde" }, "downloads": -1, "filename": "ogr_utils-1.1.tar.gz", "has_sig": false, "md5_digest": "a37f1b8313334336966c2095ea235eb1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8509, "upload_time": "2014-07-31T09:32:34", "url": "https://files.pythonhosted.org/packages/b3/f4/26429881e4554c9b62e971262256ec993019f49eef627057fb4c5308e40e/ogr_utils-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "6210295065af14771577895d7a0f8d62", "sha256": "25f7f777ff0b7b49c20f2697e778c6a9538a3c27cdf94674c725ddea11810c3e" }, "downloads": -1, "filename": "ogr_utils-1.2.tar.gz", "has_sig": false, "md5_digest": "6210295065af14771577895d7a0f8d62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9027, "upload_time": "2014-08-27T12:35:43", "url": "https://files.pythonhosted.org/packages/7e/27/6ee6fd8f4ee2d462b4476dca9886c1c4f0250ce06364e52595d96e8ae064/ogr_utils-1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6210295065af14771577895d7a0f8d62", "sha256": "25f7f777ff0b7b49c20f2697e778c6a9538a3c27cdf94674c725ddea11810c3e" }, "downloads": -1, "filename": "ogr_utils-1.2.tar.gz", "has_sig": false, "md5_digest": "6210295065af14771577895d7a0f8d62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9027, "upload_time": "2014-08-27T12:35:43", "url": "https://files.pythonhosted.org/packages/7e/27/6ee6fd8f4ee2d462b4476dca9886c1c4f0250ce06364e52595d96e8ae064/ogr_utils-1.2.tar.gz" } ] }