打算把 proj.net 移植到silverlight上,发现居然不认识手动写的WKT,查了很多资料,原来是不认unicode.

改成unicode后才解决。

操作步骤:

将StreamTokenizer.cs文件中的

#if SILVERLIGHT
   Encoding AE = System.Text.Encoding.Unicode;
#else
            ASCIIEncoding AE = new ASCIIEncoding();
#endif

改成

#if SILVERLIGHT
   Encoding AE = System.Text.Encoding.UTF8;
#else
            ASCIIEncoding AE = new ASCIIEncoding();
#endif

 

参考文档

http://projnet.codeplex.com/Thread/View.aspx?ThreadId=80040

相关文章:

  • 2021-12-27
  • 2022-02-13
  • 2022-12-23
  • 2021-08-04
  • 2021-07-21
  • 2021-07-16
  • 2021-07-06
  • 2021-05-21
猜你喜欢
  • 2022-12-23
  • 2022-02-18
  • 2021-07-26
  • 2021-12-08
  • 2022-12-23
  • 2021-12-10
  • 2021-11-18
相关资源
相似解决方案