Skip to content

with arcpy opens desired .mxd and zoom to selected records based in criteria and iterate through records get & save screenshot.

License

Notifications You must be signed in to change notification settings

ctnkyrd/esri-mxd2png

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esri-mxd2jpg

choose your mxd file with layers and zoom to selected records based in criteria and iterate through records get & save screenshot.

required parameters are, ###mxd2jpg class

  • mxdPath: path to the valid mxd file
  • images path: folder at which the images installed
  • pk: primary key (objectid) of the layer's table (deafult: "OBJECTID")
  • widht: px witdh of the images (default: 363)
  • height: px height of the images (default: 300) ###mxd2jpg.selectLayer def
  • layerName: name of the layer which is valid at the dataframe
  • whereClause: arcgis select layerByAttribute like where clauses (default: "")
    • example whereClause: "AREA > 300"

latest version 1.0.1

installation

-pip install mxd2jpg
-python -m pip install mxd2jpg

dependencies

Please ensure that you need to have ArcGIS 10.x installed on your computer in order to use this module.

usage

import mxd2jpg

mxdj2jpgObject = mxd2jpg.mxd2jpg(r'A:\buildings.mxd', 'A:\exported-images', pk="OBJECTID")
mxdj2jpgObject.selectLayer("BUILDING")

print "DONE!"

screenshots

PARSEL_ESKI_71

mxd2jpg_imagesfolder

About

with arcpy opens desired .mxd and zoom to selected records based in criteria and iterate through records get & save screenshot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages