SimplifyLine ( inCoastlineFeatures, simplifiedFeatures, "POINT_REMOVE", 50, "RESOLVE_ERRORS", "KEEP_COLLAPSED_POINTS", "CHECK", barriers ) # Smooth coastlines. workspace = "C:/data/Portland.gdb/Hydrography" # Set local variables inCoastlineFeatures = "coastlines" barriers = "C:/data/Portland.gdb/Structures/buildings" simplifiedFeatures = "C:/data/PortlandOutput.gdb/coastlines_simplified" smoothedFeatures = "C:/data/PortlandOutput.gdb/coastlines_smoothed" # Simplify coastlines. # Name: SmoothLine_Example2.py # Description: Simplify and then Smooth coastlines # Import system modules import arcpy import arcpy.cartography as CA # Set environment settings arcpy. See Generalizing large datasets using partitions for more information. The resulting feature class will be seamless and consistent at Portions of the data,ĭefined by partition boundaries, will be processed sequentially. Partition by identifying a relevant polygon feature class in theĬartographic Partitions environment setting. Prepare to remove tens of nodes per a letter. By default Inkscape tries to keep the curves as nearly original as possible with less nodes. If you simply remove the excessive path nodes with the node tool you get smoother curves. Apply Path > Object to Path to make the written text to vector drawing. In such cases, consider processing input data by If you have the font, use it in Inkscape. Processing large datasets may exceed memory Barrierįeatures can be points, lines, or polygons. Use the Input barrier layers parameter to identifyįeatures that must not be crossed by smoothed lines. The Bezier interpolation method ( BEZIER_INTERPOLATION in Python) smooths lines without using a tolerance by creatingĪpproximated Bezier curves to match the input lines. The shorter the length, the more detail that will be preserved and the longer the processing time. The Smoothing Tolerance parameter controls the length of a moving path used in calculating the new vertices. Each smoothed line may have more vertices than its source line. The Polynomial Approximation with Exponential Kernel (PAEK) method ( PAEK in Python) smooths lines based on a smoothing tolerance.There are two smoothing methods available: Illustration The sharp angles of a line can be smoothed using either the PAEK or the Bezier interpolation method. Smooths sharp angles in lines to improve aesthetic or cartographic quality.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |