Jump to content

 
Photo

Extracting design specis from an mxd file

- - - - - ArcGIS

  • Please log in to reply
6 replies to this topic

#1
rudy

rudy

    Ultimate Contributor

  • Validated Member
  • PipPipPipPipPipPip
  • 778 posts
  • Gender:Male
  • Location:Canada
  • Canada

Hello all -

 

I have two mxd files that contain numerous layers and need to extract the design specifications for each layer, including fill and outline colours, outline thickness, patterns used, classifications, type placement, fonts used, etc. To go throughh manually would be a time consuming process.Does anyone know of a script or tool that will extract all ths information from an mxd and wite it to a text document or a spreadsheet? I am using ArcGIS 10.2.



#2
tangnar

tangnar

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 137 posts
  • Gender:Male
  • Location:South Carolina
  • Interests:Rivers, Urban Design, Geomorphology, Bicycling, Outdoors
  • United States

You might try something in ArcPy 'Mapping' module.  I see some things about getting symbology types here (http://resources.arc...00000008000000/) from Layer objects in this module.  Looks like the .mxd can be set as a Layer object. 

 

I'm not sure if you'll be able to pull exactly that type of information (line thickness, etc) but it may be a good place to start. If ArcPy can give you what you need already, then it shouldn't be too hard to build a script. 

 

Good luck, please repost if you find a solution!



#3
tangnar

tangnar

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 137 posts
  • Gender:Male
  • Location:South Carolina
  • Interests:Rivers, Urban Design, Geomorphology, Bicycling, Outdoors
  • United States

More possible solutions here by converting .lyr files to SLD, which is an XML structure.... I ran across this looking for a way to get some symbology from Arc in to QGIS.  Doesn't look like a simple task, though. 

 

http://gis.stackexch...riptor-sld-file



#4
Matthew Hampton

Matthew Hampton

    Hall of Fame

  • Moderator
  • PipPipPipPipPipPipPip
  • 1,408 posts
  • Gender:Male
  • Location:Portland, Oregon
  • Interests:Playing in the mountains and rivers.
  • United States

Another tool that might work is esri's X-Ray for ArcMap which provides detailed information on each layer in an MXD.    I can't remember if specific symbol styles are exported to a table, but labeling information, scale-dependant settings and other metadata are provided.  You can also use the tool to compare different versions of MXD's for change/consistencies.

 


co-cartographic creator of boringmaps.com


#5
rudy

rudy

    Ultimate Contributor

  • Validated Member
  • PipPipPipPipPipPip
  • 778 posts
  • Gender:Male
  • Location:Canada
  • Canada

Thanks for all the suggestions. We've decided to develop a Python script to extract all the design specs. When it is developed and tested, I'll post a link here for others to download.



#6
tangnar

tangnar

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 137 posts
  • Gender:Male
  • Location:South Carolina
  • Interests:Rivers, Urban Design, Geomorphology, Bicycling, Outdoors
  • United States

I hadn't heard of the X-ray thing, that could be helpful.

 

Thanks for being willing to share the script, rudy. 



#7
Matthew Hampton

Matthew Hampton

    Hall of Fame

  • Moderator
  • PipPipPipPipPipPipPip
  • 1,408 posts
  • Gender:Male
  • Location:Portland, Oregon
  • Interests:Playing in the mountains and rivers.
  • United States

X-ray for ArcMap is indeed helpful (here's an intro video). and it would be even more helpful if it could document the visual variables as well.  

 

Thanks in advance Rudy.  Go Canada!


co-cartographic creator of boringmaps.com






Also tagged with one or more of these keywords: ArcGIS

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->