How to display a local shapeFile format file?

1276
4
05-08-2017 10:18 PM
YanQiJiao
New Contributor

I have a file with '.shp' suffix, I have read the documentation, but I haven't find how to do it.

Tags (1)
0 Kudos
4 Replies
BaocaiZhang1
New Contributor

you can use  shapeLib to read the file

Shapefile C Library 

0 Kudos
DiveshGoyal
Esri Regular Contributor

We currently do not support directly reading shapefile from disk. This is planned for a future version.

In the meantime you can upload the shapefile to ArcGIS Online or Portal and create a webmap from it. Then that webmap can be displayed easily using the runtime.

YanQiJiao
New Contributor

Thank you very much!  I have resolve this problem, I take the shapeFile above the baseMap in ArcGis Pro, then I used tool named "creat map tiled package" ,it can change the map to ".tpk" format. It is simple to display it on iPhone.

I have another request, I only find the iOS runTime SDK samples that code with Swift language, can you provide another coded with OC language?

0 Kudos
YueWu1
by Esri Regular Contributor
Esri Regular Contributor

Hi YanQi Jiao,

Here is the Objectic-C version of sample code to load the .tpk file:

arcgis-runtime-samples-ios/LocalTiledLayerSample/objective-c at 10.2.5-to-quartz · Esri/arcgis-runti... 

Hope this can help

0 Kudos