private static byte[] ToChristianSchwarzWkb(Wkx.Geometry wkxGeometry) { WkbSerializer serializer = new WkbSerializer(); MemoryStream stream = new MemoryStream(); serializer.Serialize(wkxGeometry, stream); return(stream.ToArray()); }
private static byte[] ToChristianSchwarzWkb(IPoint point) { Point wkxPoint = (GeometryUtils.IsZAware(point)) ? new Point(point.X, point.Y, point.Z) : new Point(point.X, point.Y); WkbSerializer serializer = new WkbSerializer(); MemoryStream stream = new MemoryStream(); serializer.Serialize(wkxPoint, stream); return(stream.ToArray()); }