예제 #1
0
        // Mirrors wkt
        private static void PointText_(int precision, bool bFixedPoint, bool b_export_zs, bool b_export_ms, com.epl.geometry.AttributeStreamOfDbl zs, com.epl.geometry.AttributeStreamOfDbl ms, com.epl.geometry.AttributeStreamOfDbl position, int point, com.epl.geometry.JsonWriter json_writer
                                       )
        {
            double x = position.ReadAsDbl(2 * point);
            double y = position.ReadAsDbl(2 * point + 1);
            double z = com.epl.geometry.NumberUtils.NaN();
            double m = com.epl.geometry.NumberUtils.NaN();

            if (b_export_zs)
            {
                z = (zs != null ? zs.ReadAsDbl(point) : com.epl.geometry.VertexDescription.GetDefaultValue(com.epl.geometry.VertexDescription.Semantics.Z));
            }
            if (b_export_ms)
            {
                m = (ms != null ? ms.ReadAsDbl(point) : com.epl.geometry.VertexDescription.GetDefaultValue(com.epl.geometry.VertexDescription.Semantics.M));
            }
            PointText_(precision, bFixedPoint, b_export_zs, b_export_ms, x, y, z, m, json_writer);
        }