{"id":102,"date":"2015-12-20T18:50:17","date_gmt":"2015-12-21T00:50:17","guid":{"rendered":"http:\/\/justinmeade.net\/?p=102"},"modified":"2018-02-23T12:09:14","modified_gmt":"2018-02-23T18:09:14","slug":"extentpdf","status":"publish","type":"post","link":"https:\/\/justinmeade.net\/wordpress\/extentpdf\/","title":{"rendered":"Automating Data Driven Pages with Esri&#8217;s ArcPy Site Package"},"content":{"rendered":"<p>I&#8217;ve spent some time hacking my way through Esri&#8217;s ArcPy site package lately, and I&#8217;ve completed my first proper tool. While working with data from several municipalities across central Ohio, I found myself needing to create and update maps of several different jurisdictions. The\u00a0new tool does it automatically. What once took 3 hours can now be done in 6 minutes.<\/p>\n<p>Using an existing .mxd, I am able to:<\/p>\n<p style=\"padding-left: 30px;\">Automatically extent the boundaries of each feature within a feature class or shapefile, then zoom out ten percent<\/p>\n<p style=\"padding-left: 30px;\">Update the title block based upon a specified field<\/p>\n<p style=\"padding-left: 30px;\">Export the new map as a pdf.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The two outputs below were created automatically.<\/p>\n<p><a href=\"http:\/\/165.227.33.172\/wordpress\/wp-content\/uploads\/2016\/01\/BEXLEY-page-001.jpg\" rel=\"attachment wp-att-135\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-135\" src=\"http:\/\/165.227.33.172\/wordpress\/wp-content\/uploads\/2016\/01\/BEXLEY-page-001.jpg\" alt=\"BEXLEY-page-001\" width=\"511\" height=\"662\" srcset=\"https:\/\/justinmeade.net\/wordpress\/wp-content\/uploads\/2016\/01\/BEXLEY-page-001.jpg 2550w, https:\/\/justinmeade.net\/wordpress\/wp-content\/uploads\/2016\/01\/BEXLEY-page-001-232x300.jpg 232w, https:\/\/justinmeade.net\/wordpress\/wp-content\/uploads\/2016\/01\/BEXLEY-page-001-768x994.jpg 768w, https:\/\/justinmeade.net\/wordpress\/wp-content\/uploads\/2016\/01\/BEXLEY-page-001-791x1024.jpg 791w\" sizes=\"(max-width: 511px) 100vw, 511px\" \/><\/a><a href=\"http:\/\/165.227.33.172\/wordpress\/wp-content\/uploads\/2016\/01\/SUNBURY-page-001.jpg\" rel=\"attachment wp-att-134\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-134\" src=\"http:\/\/165.227.33.172\/wordpress\/wp-content\/uploads\/2016\/01\/SUNBURY-page-001.jpg\" alt=\"SUNBURY-page-001\" width=\"511\" height=\"662\" srcset=\"https:\/\/justinmeade.net\/wordpress\/wp-content\/uploads\/2016\/01\/SUNBURY-page-001.jpg 2550w, https:\/\/justinmeade.net\/wordpress\/wp-content\/uploads\/2016\/01\/SUNBURY-page-001-232x300.jpg 232w, https:\/\/justinmeade.net\/wordpress\/wp-content\/uploads\/2016\/01\/SUNBURY-page-001-768x994.jpg 768w, https:\/\/justinmeade.net\/wordpress\/wp-content\/uploads\/2016\/01\/SUNBURY-page-001-791x1024.jpg 791w\" sizes=\"(max-width: 511px) 100vw, 511px\" \/><\/a><\/p>\n<p>I plan to integrate this tool into model builder scripts, but it works well enough as a standalone tool that\u00a0I&#8217;ve provided it here for download. Please note that it has only been tested with polygon features, but I see no reason that it would not with linear or multi-part features.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/165.227.33.172\/wordpress\/wp-content\/uploads\/2015\/12\/ExtentPDF.zip\" rel=\"\">ExtentPDF<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve spent some time hacking my way through Esri&#8217;s ArcPy site package lately, and I&#8217;ve completed my first proper tool. While working with data from several municipalities across central Ohio, I found myself needing to create and update maps of several different jurisdictions. The\u00a0new tool &hellip; <a href=\"https:\/\/justinmeade.net\/wordpress\/extentpdf\/\" class=\"more-link\"><span>Continue reading<span class=\"screen-reader-text\">Automating Data Driven Pages with Esri&#8217;s ArcPy Site Package<\/span><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":101,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/justinmeade.net\/wordpress\/wp-json\/wp\/v2\/posts\/102"}],"collection":[{"href":"https:\/\/justinmeade.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/justinmeade.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/justinmeade.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/justinmeade.net\/wordpress\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":1,"href":"https:\/\/justinmeade.net\/wordpress\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":365,"href":"https:\/\/justinmeade.net\/wordpress\/wp-json\/wp\/v2\/posts\/102\/revisions\/365"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/justinmeade.net\/wordpress\/wp-json\/wp\/v2\/media\/101"}],"wp:attachment":[{"href":"https:\/\/justinmeade.net\/wordpress\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/justinmeade.net\/wordpress\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/justinmeade.net\/wordpress\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}