I have a dbf file, which contained a list of coordinate information as shown in below. It also could be thought as a catalog file. Example:

ID   XMIN       YMIN      XMAX       YMAX
1  -52800.0   -63000.0  -52000.0   -62400.0
2  -48800.0   -60600.0  -48000.0   -60000.0
3  -48800.0   -61200.0  -48000.0   -60600.0
4  -49600.0   -61800.0  -48800.0   -61200.0
5  -48800.0   -61800.0  -48000.0   -61200.0

So, how can i extract these information to create shapes or a map book as the picture shown in below. Using Python.

enter image description here

closed as off-topic by PolyGeo Jun 22 '16 at 8:02

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.


Most, probably all, of the code that you will need to do this plus some more is available in my answer to Transform bookmarks to data driven pages in ArcGIS Desktop?

If it does not help you get all the way there, then I recommend posting a code snippet that works up to where you are stuck.

  • Yes, thanks, it seems useful, but the method of bookmark is a little difficult to make sense. Otherwise, how can i create a polygon with coordinate of XMIN, YMIN, XMAX, YMAX automatically through Python? – King-Zhao Aug 11 '15 at 9:26
  • That sounds like a much simpler question that I think you should research/ask separately. First work out how to read the values from the DBF using a search cursor and simply print them. Separately work out how to write one set of coordinates to a polygon feature class. Finally, put the two halves together by incorporating an insert cursor to write multiple polygons. – PolyGeo Aug 11 '15 at 9:31
  • Yes, this make sense, u r incredible right! So, to write coordinates to a polygon feature, insert cursor will be enough? Ok, i'll try, thank you very much! – King-Zhao Aug 11 '15 at 9:40

Not the answer you're looking for? Browse other questions tagged or ask your own question.