Jump to content

 
Photo

removing small polygons in Illustrator or FreeHand

- - - - -

  • Please log in to reply
10 replies to this topic

#1
Dennis McClendon

Dennis McClendon

    Hall of Fame

  • Validated Member
  • PipPipPipPipPipPipPip
  • 1,077 posts
  • Gender:Male
  • Location:Chicago
  • Interests:map design, large-scale maps of cities
  • United States

I've got a map of Israel that undoubtedly was created as a large GIS map but came to me via PDF. I have a thousand tiny little polygons for little hamlet settlements, and I want to get rid of the smallest ones. Can anyone think of a clever way to do this in either Illustrator or FreeHand?
Dennis McClendon, Chicago CartoGraphics
chicagocarto.com

#2
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

If you have mapublisher you could georeference the data, export it to a shapefile, calculate the area of each one within a GIS (or maybe Mapublisher can do this) relink the table with areas values or re-import the data and then select the small ones based on a size threshold. It doesnt matter if the area is correct since it is all relative so as long as you can georeference it to a projection that maintains area you should be OK.

mg

#3
CHART

CHART

    Chart

  • Validated Member
  • PipPipPipPipPip
  • 358 posts
  • No Country Selected

As Martin mentioned, MapPublisher would be the tool to use.
... and with MapPublisher you can reselect based on polygon size and delete.
I guest it is all about using the right tools for the job. (But a tool box can become rather expensive).
Chart

#4
frax

frax

    Hall of Fame

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

I have used this script, it has come handy a few times, especially for things that I don't want to go back to GIS for. For instance, I have gotten slivers when doing a bevel trick using trimming duplicated layers. It is not consistent, and you have to play around a little bit with it. I think there is actually a limit on how many paths you can have selected at one time to run this script, try it with a few first to get a feel for how it works:
Clean smaller script from illustrator.hilfdirselbst.ch
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter

#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

I have used this script, it has come handy a few times, especially for things that I don't want to go back to GIS for. For instance, I have gotten slivers when doing a bevel trick using trimming duplicated layers. It is not consistent, and you have to play around a little bit with it. I think there is actually a limit on how many paths you can have selected at one time to run this script, try it with a few first to get a feel for how it works:
Clean smaller script from illustrator.hilfdirselbst.ch



Great find Hugo.

This is by far theasiest way to go if it works.

#6
Dennis McClendon

Dennis McClendon

    Hall of Fame

  • Validated Member
  • PipPipPipPipPipPipPip
  • 1,077 posts
  • Gender:Male
  • Location:Chicago
  • Interests:map design, large-scale maps of cities
  • United States

Thanks. I can't tell from the site if that script is for the PC or Mac.

Interesting site. I see there's a whole section with Tips for FreeHand Users.
Dennis McClendon, Chicago CartoGraphics
chicagocarto.com

#7
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

Dennis,

the java scripts work on both platforms...that is their great advantage.

#8
CHART

CHART

    Chart

  • Validated Member
  • PipPipPipPipPip
  • 358 posts
  • No Country Selected

I download it also (but have not tested it) .
Thanks for the lead.
I guest the ultimate question is. Did it do the job...?
Chart

#9
frax

frax

    Hall of Fame

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

it works great for me - one just have to be careful with the amount, and play with it
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter

#10
frax

frax

    Hall of Fame

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

I was working with that script just now, and fixed an annoyance with it. It is not the amount of paths that was the problems, but the script doesn't like when one selects a whole group.

Now that is fixed, in this revision, with edits by yours truly:
http://dev.oxel.net/...lean_smaller.js
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter

#11
FlatEarth

FlatEarth

    Newbie

  • Validated Member
  • Pip
  • 6 posts
  • Australia

In Freehand you can use the Find palet to select->Object Type->paths and then set it to find poly with 3 points etc.

Cheers,




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->