Beispiel #1
0
        public override byte[] AsBinary(DbGeometry geometryValue)
        {
            geometryValue.CheckNull("geometryValue");
            ReadOnlySpatialValues expectedValue = CheckCompatible(geometryValue);

            return(expectedValue.CloneBinary());
        }
Beispiel #2
0
        public override DbGeometryWellKnownValue CreateWellKnownValue(DbGeometry geometryValue)
        {
            geometryValue.CheckNull("geometryValue");
            ReadOnlySpatialValues backingValue = CheckCompatible(geometryValue);

            return(new DbGeometryWellKnownValue()
            {
                CoordinateSystemId = backingValue.CoordinateSystemId, WellKnownBinary = backingValue.CloneBinary(), WellKnownText = backingValue.Text
            });
        }