Class DxfUtils
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.DxfUtils
-
public class DxfUtils extends Object
Utils for DXF format.Based on work of: Michael Michaud
- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Field Summary
Fields Modifier and Type Field Description static StringBYLAYERstatic StringCOLORstatic StringELEVATIONstatic StringLAYERstatic StringLINEstatic StringLTYPEstatic StringPOINTstatic StringPOLYLINEstatic intprecisionstatic StringSEQENDstatic StringSUFFIXstatic StringTEXTstatic StringTEXT_HEIGHTstatic StringTEXT_STYLEstatic StringTHICKNESSstatic StringVERTEXstatic StringZERO
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringfeature2Dxf(FeatureMate featureMate, String layerName, String elevationAttrName, boolean suffix, boolean force2CoordsToLine)Write aSimpleFeatureto dxf string.
-
-
-
Field Detail
-
SUFFIX
public static final String SUFFIX
- See Also:
- Constant Field Values
-
ZERO
public static final String ZERO
- See Also:
- Constant Field Values
-
SEQEND
public static final String SEQEND
- See Also:
- Constant Field Values
-
VERTEX
public static final String VERTEX
- See Also:
- Constant Field Values
-
LINE
public static final String LINE
- See Also:
- Constant Field Values
-
POLYLINE
public static final String POLYLINE
- See Also:
- Constant Field Values
-
POINT
public static final String POINT
- See Also:
- Constant Field Values
-
LAYER
public static final String LAYER
- See Also:
- Constant Field Values
-
TEXT_STYLE
public static final String TEXT_STYLE
- See Also:
- Constant Field Values
-
BYLAYER
public static final String BYLAYER
- See Also:
- Constant Field Values
-
LTYPE
public static final String LTYPE
- See Also:
- Constant Field Values
-
ELEVATION
public static final String ELEVATION
- See Also:
- Constant Field Values
-
THICKNESS
public static final String THICKNESS
- See Also:
- Constant Field Values
-
COLOR
public static final String COLOR
- See Also:
- Constant Field Values
-
TEXT_HEIGHT
public static final String TEXT_HEIGHT
- See Also:
- Constant Field Values
-
TEXT
public static final String TEXT
- See Also:
- Constant Field Values
-
precision
public static final int precision
- See Also:
- Constant Field Values
-
-
Method Detail
-
feature2Dxf
public static String feature2Dxf(FeatureMate featureMate, String layerName, String elevationAttrName, boolean suffix, boolean force2CoordsToLine)
Write aSimpleFeatureto dxf string.- Parameters:
featureMate- the feature to convert.layerName- the layer name in case none is in the attributes.elevationAttrName- the attribute defining elevation ornull.suffix-trueif suffix is needed.force2CoordsToLine- iftrue, lines that are composed of just 2 coordinates will be handled as LINE instead of the default which is POLYLINE.- Returns:
- the string representation.
-
-