arcgis runtime sdk for .net 读取json文件时,json文件过大,出现内存超限问题。
arcgis runtime sdk for .net 读取json文件时,json文件过大(500多mb),出现内存超限问题。
具体代码如下:
path是json文件路径
public FeatureSet createWindTurbinesFeatureSet(String path)
{
string strJson = File.ReadAllText(path);
FeatureSet fs = null;
fs = FeatureSet.FromJson (strJson);
catch (Exception e)
{
MessageBox.Show(e.Message);
}
return fs;
}
具体代码如下:
path是json文件路径
public FeatureSet createWindTurbinesFeatureSet(String path)
{
string strJson = File.ReadAllText(path);
FeatureSet fs = null;
fs = FeatureSet.FromJson (strJson);
catch (Exception e)
{
MessageBox.Show(e.Message);
}
return fs;
}
0 个回复