Jump to content

 
Photo

shapefiles to nice Bézier curves

- - - - -

  • Please log in to reply
9 replies to this topic

#1
Dennis McClendon

Dennis McClendon

    Hall of Fame

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

I'm starting a new street mapping project and there's nice local GIS data available. But it's a modern suburban area with lots of gently curving streets, so I hate to have Illustrator lines with 300 points instead of nice smooth Bézier curves with three points. How do I proceed? Can Indiemapper help?
Dennis McClendon, Chicago CartoGraphics
chicagocarto.com

#2
Charles Syrett

Charles Syrett

    Ultimate Contributor

  • Validated Member
  • PipPipPipPipPipPip
  • 537 posts
  • Canada

I'm curious too, since I'm planning to start shifting to Ily soon. (In FH it's a no-brainer: use Smooth Xtra to add beziers, then simplify lines.) How are people doing this with MAPublisher, and without it?

Charles Syrett
Map Graphics
http://www.mapgraphics.com

#3
Dennis McClendon

Dennis McClendon

    Hall of Fame

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

Well, I'm actually using FreeHand. But where is the Smooth Xtra?
Dennis McClendon, Chicago CartoGraphics
chicagocarto.com

#4
David Medeiros

David Medeiros

    Hall of Fame

  • Validated Member
  • PipPipPipPipPipPipPip
  • 1,089 posts
  • Gender:Male
  • Location:Redwood City CA
  • Interests:Cartography, wood working, wooden boats, fishing, camping, overland travel, exploring.
  • United States

Illustrator will convert your straight lines to bezier curve when you use the simplify command [object] > [path] > [simplify]

Use a very high curve precision like 99% to maintain the most accuracy while converting hard edges to smooth curves. Do not check the straight lines option. Simple.

If you have lines or polygons of different overall shape and size that share an edge be aware that the Illy simplify command will change the paths such that they no longer match each other, especially if you go lower than 99% 98% precision. You can maintain topology and get more smoothing if you have MAPublisher. Use the MAPub simplify command to weed out the extra points and then use a 99% Illy simplify to convert to bezier curve.

GIS Reference and Instruction Specialist, Stanford Geospatial Center.

 

www.mapbliss.com

 


#5
Charles Syrett

Charles Syrett

    Ultimate Contributor

  • Validated Member
  • PipPipPipPipPipPip
  • 537 posts
  • Canada

Well, I'm actually using FreeHand. But where is the Smooth Xtra?


Courtesy of Pat Dunlavey: http://www.pdcarto.com/freehand.html

Charles Syrett
Map Graphics
http://www.mapgraphics.com

#6
oldtoby

oldtoby

    Contributor

  • Validated Member
  • PipPip
  • 37 posts
  • United States

Well, I'm actually using FreeHand. But where is the Smooth Xtra?


Courtesy of Pat Dunlavey: http://www.pdcarto.com/freehand.html

Charles Syrett
Map Graphics
http://www.mapgraphics.com



Sounds like the Simplify command in FH MX

#7
Charles Syrett

Charles Syrett

    Ultimate Contributor

  • Validated Member
  • PipPipPipPipPipPip
  • 537 posts
  • Canada

Sounds like the Simplify command in FH MX


Not quite. The Simplify command on its own will put some Beziers in, but not necessarily on every point. The Smooth Xtra ensures that every point has handles first. The difference is subtle.

Charles Syrett
Map Graphics
http://www.mapgraphics.com

#8
razornole

razornole

    Legendary Contributor

  • Validated Member
  • PipPipPipPipPip
  • 452 posts
  • Gender:Male
  • Location:Ozark Plateau, Arkansas
  • Interests:Photography, Cartography, Down-river canoeing, Backpacking, Cross country biking, Geomorphology, Ornithology, Ecology, Quaternary, and last but first; drinking beer on the beach.
  • United States

Illustrator will convert your straight lines to bezier curve when you use the simplify command [object] > [path] > [simplify]

Use a very high curve precision like 99% to maintain the most accuracy while converting hard edges to smooth curves. Do not check the straight lines option. Simple.

If you have lines or polygons of different overall shape and size that share an edge be aware that the Illy simplify command will change the paths such that they no longer match each other, especially if you go lower than 99% 98% precision. You can maintain topology and get more smoothing if you have MAPublisher. Use the MAPub simplify command to weed out the extra points and then use a 99% Illy simplify to convert to bezier curve.


I do this at 99%, and then repeat at 99% 10-15 times if necessary, or Ctrl+d over and over until I get the smooth flow that I want.

Oh yeah, I also use Swiss Cartography script/plug-in when I finish simplifying the path. I think the command is fix bezier curves and curves.
kru
"Ah, to see the world with the eyes of the gods is geography--to know cities and tribes, mountains and rivers, earth and sea, this is our gift."
Strabo 22AD

#9
ceicher

ceicher

    Contributor

  • Validated Member
  • PipPip
  • 44 posts
  • Gender:Male
  • Location:Charlottesville, Virginia
  • United States

You can also do this processing in ArcGIS (via Geoprocessing tools).

For lines, use Simplify Line to thin vertices then Smooth Line to convert to Beziers.

For polygons, use Simplify Polygon, then Smooth Polygon.

To use these tools, you need at least an ArcEditor license. Here are the ArcGIS 9.3.1 Help Links:

Simplify Line
Smooth Line
Simplify Polygon
Smooth Polygon

ALSO, we've developed some ArcGIS tools here in Zurich to make it very easy to do this processing interactively (and without Geoprocessing). As pointed out above, different features can require different simplify/smooth parameters, and it can be an interactive process. The Line-to-Curve tool makes it easy and fast to simplify/smooth one, several, or many lines/polygons.

We have tools that go in the reverse direction (Curve-to-Line and Densify-Line). Our Swiss cartographer customers use the tools to work with line/polygon geometry in "bezier mode", and then convert back to simple line geometry. Some GIS DBAs don't like curves in their data!

-Cory (ESRI Switzerland)

#10
gregory

gregory

    Key Contributor

  • Validated Member
  • PipPipPip
  • 96 posts
  • Gender:Male
  • Location:Cracow
  • Poland

Have a look at those plugins:
http://www.ika.ethz....umentation.html
especially:
http://www.ika.ethz....spiele/Bsp2.zip

G.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->