コード例 #1
0
        private static byte[] ToChristianSchwarzWkb(Wkx.Geometry wkxGeometry)
        {
            WkbSerializer serializer = new WkbSerializer();

            MemoryStream stream = new MemoryStream();

            serializer.Serialize(wkxGeometry, stream);

            return(stream.ToArray());
        }
コード例 #2
0
        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());
        }