Loading a local shape file in Runtime sdk for IOS

266
2
Jump to solution
12-09-2020 02:17 AM
manuraphy
New Contributor

I wanted to load a shape file ,which is bundled  along with my ipa , in my ESRI map. But on adding the  AGSFeatureLayer ,created using the AGSShapefileFeatureTable,  in the map's operational layers nothing happens .i used the same approach as in this sample code

https://developers.arcgis.com/ios/latest/swift/sample-code/feature-layer-shapefile/

When i tried the same shape file as a hosted feature layer  and used AGSServiceFeatureTable to create  AGSFeatureLayer it worked correctly.

I only have a developer license and when i tried the loadWithCompletion metod on the feature layer i got an error message  license level has no permission to execute this feature.

 

To load a local shape file do i need any other higher license other than basic developer license ?

 

 

0 Kudos
1 Solution

Accepted Solutions
manuraphy
New Contributor

It is Actually a License related issue  .

https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_shapefile_feature_table.html

In this Link above it mentioned that AGSShapefileFeatureTable class requires a Standard License  for Deployment .

I am not sure why the Map in my app is not showing Developer  water mark even when i use the development  license .

 

View solution in original post

0 Kudos
2 Replies
manuraphy
New Contributor

It is Actually a License related issue  .

https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_shapefile_feature_table.html

In this Link above it mentioned that AGSShapefileFeatureTable class requires a Standard License  for Deployment .

I am not sure why the Map in my app is not showing Developer  water mark even when i use the development  license .

 

View solution in original post

0 Kudos
Nicholas-Furness
Esri Regular Contributor

To run in developer mode and see the watermark (and be able to use the Shapefile), do not set a license at all. I suspect you are actually using your Lite license (which is what you find at the developer dashboard - there is no such thing as a development license key).

0 Kudos