本文整理汇总了C#中Writer.WritePoint方法的典型用法代码示例。如果您正苦于以下问题:C# Writer.WritePoint方法的具体用法?C# Writer.WritePoint怎么用?C# Writer.WritePoint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Writer
的用法示例。
在下文中一共展示了Writer.WritePoint方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Test_WriteT
private static void Test_WriteT()
{
// read in all the points from A, and write out to a temp file that looks like B
ReaderFactory factory = new ReaderFactory();
SWIGTYPE_p_std__istream ifs = Liblas.ReaderFactory.FileOpen(fileB);
SWIGTYPE_p_std__ostream ofs = Liblas.WriterFactory.FileCreate(fileT);
using (Reader reader = factory.CreateWithStream(ifs))
{
Header rHeader = reader.GetHeader();
{
Header wHeader = new Header(rHeader);
{
wHeader.SetSystemId("liblas test");
wHeader.SetSoftwareId("swig test");
wHeader.SetCompressed(true);
guid g = new guid("D59B08E7-79EE-47E4-AAE1-2B8DE4B87331");
wHeader.SetProjectId(g);
wHeader.SetCreationYear(2011);
wHeader.SetCreationDOY(12);
}
{
using (Writer writer = new Writer(ofs, wHeader))
{
while (reader.ReadNextPoint())
{
Point pt = reader.GetPoint();
bool ok = writer.WritePoint(pt);
Debug.Assert(ok);
}
}
}
}
}
Liblas.WriterFactory.FileClose(ofs);
Liblas.ReaderFactory.FileClose(ifs);
}