23 lines
681 B
C#
23 lines
681 B
C#
using Aspose.Gis.Geometries;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Aspose.GIS.Examples.CSharp.Geometries
|
|
{
|
|
class SpecifyWkbVariantOnTranslation
|
|
{
|
|
public static void Run()
|
|
{
|
|
//ExStart: SpecifyWkbVariantOnTranslation
|
|
IGeometry geometry = Geometry.FromText("LINESTRING (1.2 3.4, 5.6 7.8)");
|
|
byte[] wkb = geometry.AsBinary(WkbVariant.ExtendedPostGis);
|
|
File.WriteAllBytes(Path.Combine(RunExamples.GetDataDir(), "EWkbFile.ewkb"), wkb);
|
|
//ExEnd: SpecifyWkbVariantOnTranslation
|
|
}
|
|
}
|
|
}
|