[gdal-dev] OgrInfo ShapeFile Extents Report

David Baker (Geoscience) david.m.baker at chk.com
Mon Mar 8 19:53:51 EST 2010


Frank,

Thanks...  Is there a method in org that scans all geometries or will I have to iterate through myself?

David

David M. Baker
Senior Geologist - Chief Technology Advisor
Chesapeake Energy Corporation
405-935-3715 office
405-496-5373 cell
david.m.baker at chk.com


-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com]
Sent: Monday, March 08, 2010 6:51 PM
To: David Baker (Geoscience)
Cc: 'gdal-dev at lists.osgeo.org'
Subject: Re: [gdal-dev] OgrInfo ShapeFile Extents Report

David Baker (Geoscience) wrote:
> List,
>
>
>
> Does OgrInfo report the actual extents of the geometries in a ShapeFile
> or just the extents reported in the header of the ShapeFile?

David,

GetExtent() is optimized by the shapefile driver to report the extents
from the file header rather than scanning the data as most drivers do.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent


This email (and attachments if any) is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law.  If the reader of this email is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this communication in error, please notify the sender immediately by return email and destroy all copies of the email (and attachments if any).


More information about the gdal-dev mailing list