The sample illustrates how to use the ArcGISWebClient class to post multi-part content (e.g. file) to a service\operation as mentioned in its description. If you want just to load local shapefile to your map at runtime you can check "Add Shapefiles and Raster" sample as It will load your content as ArcGISLocalDynamicMapServiceLayer.
arcGisLocalDynamicMapServiceLayer.GetDetails(dynamicLayerInfo.ID, (featureLayerInfo, exception) => { switch (featureLayerInfo.GeometryType) <-- featureLayerInfo is null { //set renderer [...] } }
Hi, What's the timescale for your project? Cheers Mike
Hi,I have to evaluate the ArcGIS Runtime WPF SDK for a new project. Therefore this topic is really new to me.It is required that the WPF Application will run in an offline environment. I have to load a local .tpk File and draw lines and polygons from two shapefiles. I came accross the "Create Features From Shapefile" example in the runtime samples. The sample project worked for me with a local shapefile and seems exactly what I need but it uses the ArcGIS Portal REST API (http://www.arcgis.com/sharing/rest/content/features/generate) for generating the features.Is there a way to do this in an offline scenario without the REST API? I discovered the LocalFeatureService. Can I use them to generate the features from the shapefiles?Many thanks in advance 🙂
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.