Jump to content

 
Photo

Illustrator - weeding out stray polys

- - - - -

  • Please log in to reply
4 replies to this topic

#1
frax

frax

    Hall of Fame

  • Associate Admin
  • PipPipPipPipPipPipPip
  • 2,310 posts
  • Gender:Male
  • Location:Stockholm, Sweden
  • Interests:music, hiking, friends, nature, photography, traveling. and maps!
  • Sweden

OK, here is an Illustrator challenge: I exported a dataset from ArcMap, and it turns out to be quite dirty - a lot of stray small (closed) paths, but also unclosed two-point paths (even though it should be a polygon layer).

I can use simplify, and I can weed out the unclosed paths easily -- but sometimes I miss any functionality for selecting small polygons.

Is there a way to select paths by area? (Or length?) Related: I had another problem where I needed to know the area of paths, is it possible to get at that?

I guess I should have been better in cleaning it up on the Arc side of things!
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter

#2
Nick Springer

Nick Springer

    CartoTalk Founder Emeritus

  • Moderator
  • PipPipPipPipPipPip
  • 939 posts
  • Gender:Male
  • Location:Crosswicks, NJ
  • Interests:Cartographic Design, Print Maps, Graphic Design, Web Development, Ultimate Frisbee
  • United States

I don't think there is any built in way to do this, but if it's a big enough ongoing problem, the Illustrator Scripting language will enable you to do just about anything.

Nick Springer

Director of Design and Web Applications: ALK Technologies Inc.
Owner: Springer Cartographics LLC


#3
frax

frax

    Hall of Fame

  • Associate Admin
  • PipPipPipPipPipPipPip
  • 2,310 posts
  • Gender:Male
  • Location:Stockholm, Sweden
  • Interests:music, hiking, friends, nature, photography, traveling. and maps!
  • Sweden

i have actually played a little bit with javascript in illustrator, very cool and powerful, although I find the object model lacking a bit.
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter

#4
Hans van der Maarel

Hans van der Maarel

    CartoTalk Editor-in-Chief

  • Admin
  • PipPipPipPipPipPipPip
  • 3,884 posts
  • Gender:Male
  • Location:The Netherlands
  • Interests:Cartography, GIS, history, popular science, music.
  • Netherlands

I would personally use FME for this. It's very easy to weed out non-polygonal features that way. IMHO, this is a GIS problem and should be solved on the GIS side, not on the Illustrator side.
Hans van der Maarel - Cartotalk Editor
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics

#5
Martin Gamache

Martin Gamache

    Ultimate Contributor

  • Associate Admin
  • PipPipPipPipPipPip
  • 980 posts
  • Gender:Male
  • Location:Washington DC
  • Interests:History of Topographic Cartography
    Topographic Mapping
    History of Relief Depiction
    Thematic Cartography
    Demographic Cartography
    Cartographic techniques, methods, and tools
    Orienteering
    Panoramic & Kite Photography
  • United States

IMHO, this is a GIS problem and should be solved on the GIS side, not on the Illustrator side.

I agree.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->