主机上使用b |
您所在的位置:网站首页 › lb_link无线连接 › 主机上使用b |
拆解一个Polygon,逐个改变X,Y,并封装回去
枸杞当归羊肉汤: 针对不含弧的Polygon 要素类(IFeatureClass)与EsriJson互转枸杞当归羊肉汤: http://zhihu.geoscene.cn/question/11785 将EsriGeometry转为GeoJson枸杞当归羊肉汤: https://gis.stackexchange.com/questions/202865/serialize-geometry-to-geojson-with-arcobjects [code=plain] var jsonWriter = new JSONWriterClass(); jsonWriter.WriteToString(); // Create a property set to specify format to be GeoJSON IPropertySet props = new PropertySetClass(); props.SetProperty("Format", "GeoJSON"); var jsonSerializer = new JSONSerializerGdbClass(); jsonSerializer.InitSerializer(jsonWriter, props); var recordset = new RecordSetClass(); recordset.SetSourceTable((ITable)featureclass, null); var sr = ((IGeoDataset)featureclass).SpatialReference; int count; ((IExternalSerializerGdb2)jsonSerializer).WriteRecordSetEx2(null, recordset, null, sr, out count); var geoJson = System.Text.Encoding.UTF8.GetString(jsonWriter.GetStringBuffer()); [/code] arcgis IFeature 转 geojson枸杞当归羊肉汤: https://gis.stackexchange.com/questions/300801/arcobjects-convert-feature-to-json 将EsriGeometry转为GeoJsonwater___Wang: 优秀~ |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |