|
POST
|
Hi Nicholas, Thanks for your good suggestion. I will keep in mind your feedbacks in future. A couple of question from you: 1. Actually I am getting only "Staging server" failed message while sharing tpk from ArcGIS Pro. How do I get log file? 2. Our Client generally preferred ArcGIS Online as first it is on cloud and second they can create and publish layer from anywhere without dependent on standalone ArcGIS pro application on single computer so that's why my queries were related to ArcGIS online. There are two reason to purchase streetmap extension is that first to extract basemap from that and to get locator file. 3. There is one question from you I want to get specific borough's from whole NewYork State. Currently I have whole NewYork State Streetmap extension and I want to get five boroughs(Manhattan, Queens , Bronx , Brooklyn , Staten Island) from that Streetmap extension. Is it possible to get that? 4. Another thing is that currently I have whole NewYork State locator file and I want to get only above five boroughs relevant locator file. How do I get that? Thanks, Kamal
... View more
04-09-2017
11:30 PM
|
0
|
7
|
1168
|
|
POST
|
Hi Nicholas, Thanks for the good explanation. Now I understand all possible scenarios to create a feature layer from ArcGIS online. Another thing is that when I try to publish tpk file from ArcGIS Pro to ArcGIS online , it gives me an error "Staging failed". Attached is the screenshot. Last thing is that I am showing vector tile layer through below code in IOS: let localVectorTiledLayer = AGSArcGISVectorTiledLayer(name: "StreetMap_Day") self.map = AGSMap(basemap: AGSBasemap(baseLayer: localVectorTiledLayer)) I want to set initialViewPoint to NewYork City so how i get x,y and scale coordinates? Thanks, Kamal
... View more
04-05-2017
10:29 AM
|
0
|
10
|
1345
|
|
POST
|
Thanks Nicholas for reply. Currently I have one usecase. I want to indicate in map that "42nd street is not accessible in Newyork due to some emergency" so how I indicate that thing in map( should i indicate red line, area or polygon). Is this possible through arcgis online or I have to go with ArcGIS Pro or ArcMap to create shapefile of that thing and publish it to ArcGIS online? That is my main concern. Thanks, Kamal
... View more
04-04-2017
11:05 AM
|
0
|
12
|
1345
|
|
POST
|
Thanks Nicholas for the video sharing and nice explanation. So we have to go with ArcMap or ArcGIS Pro for sharing multiple layers into one service url or to customize shapefile at own level? Thanks, Kamal
... View more
04-04-2017
04:59 AM
|
0
|
14
|
1345
|
|
POST
|
Thanks for the reply. Actually I have two different csv files which contain hospital and fire-hydrant data. I have uploaded them to ArcGIS online from the Add data option. Then it create two layers under content section and I have save them as a separate layer and publish it to ArcGIS online as feature layer so I get two different feature layer urls. So my question is can I publish these two layers as a single like Sync/WildfireSync from ArcGIS online? Another thing is that I have one use case like "42 street is not accessible in newyork city". so how I show that usecase into Arcgis online basemap and publish it as a feature layer. Last thing is that I am bit confuse about "REST to create Replica". How do I use that and how it can be helpful for me in IOS app. Thanks, Kamal
... View more
03-31-2017
11:02 AM
|
0
|
17
|
1345
|
|
POST
|
Thanks Nicholas. Now I am able to get all layer data. There is one question for you. Can I include multiple feature layer url's data into same geodatabase and can use it when offline?. Thanks, Kamal
... View more
03-31-2017
07:30 AM
|
0
|
0
|
1667
|
|
POST
|
Hi Nicholas, I have updated my above code and I am getting below exception: "Geometry cannot be null in generate geodatabase parameters."
... View more
03-30-2017
02:34 AM
|
0
|
0
|
1667
|
|
POST
|
Below is the code which I am using to download feature layer. Right now I am getting exception " Geometry cannot be null in generate geodatabase parameters. ". Actually I want to download all feature layer data automatically in background without user selecting area. private let FEATURE_SERVICE_URL = NSURL(string: "https://services7.arcgis.com/JRY73mi2cJ1KeR7T/arcgis/rest/services/NewYorkHospitalLayer/FeatureServer/0")! private var syncTask:AGSGeodatabaseSyncTask! private var generateJob:AGSGenerateGeodatabaseJob! private var generatedGeodatabase:AGSGeodatabase! override func viewDidLoad() { super.viewDidLoad() self.map = AGSMap(basemap: AGSBasemap.streetsBasemap()) self.syncTask = AGSGeodatabaseSyncTask(URL: self.FEATURE_SERVICE_URL) self.addFeatureLayers() self.mapView.map = self.map self.generateGeodatabase() } func addFeatureLayers() { self.syncTask.loadWithCompletion { [weak self] (error) -> Void in if let error = error { print("Could not load feature service \(error)") } else { guard let weakSelf = self else { return } for (index, layerInfo) in weakSelf.syncTask.featureServiceInfo!.layerInfos.enumerate().reverse() { //For each layer in the serice, add a layer to the map let layerURL = weakSelf.FEATURE_SERVICE_URL.URLByAppendingPathComponent(String(index)) let featureTable = AGSServiceFeatureTable(URL:layerURL!) let featureLayer = AGSFeatureLayer(featureTable: featureTable) featureLayer.name = layerInfo.name featureLayer.opacity = 0.65 weakSelf.map.operationalLayers.addObject(featureLayer) } } } } func generateGeodatabase() { //create AGSGenerateLayerOption objects with selected layerIds var layerOptions = [AGSGenerateLayerOption]() let layerOption = AGSGenerateLayerOption(layerID: 0) layerOption.useGeometry = false layerOptions.append(layerOption) //parameters let params = AGSGenerateGeodatabaseParameters() params.layerOptions = layerOptions params.returnAttachments = true params.attachmentSyncDirection = .Bidirectional //name for the geodatabase let dateFormatter = NSDateFormatter() dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZ" let path = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] let fullPath = "\(path)/\(dateFormatter.stringFromDate(NSDate())).geodatabase" //create a generate job from the sync task self.generateJob = self.syncTask.generateJobWithParameters(params, downloadFileURL: NSURL(string: fullPath)!) //start the job self.generateJob.startWithStatusHandler({ (status: AGSJobStatus) -> Void in SVProgressHUD.showWithStatus(status.statusString(), maskType: .Gradient) }) { [weak self] (object: AnyObject?, error: NSError?) -> Void in if let error = error { SVProgressHUD.showErrorWithStatus(error.localizedDescription) } else { SVProgressHUD.dismiss() Print("Database generated successfully") } } }
... View more
03-29-2017
06:27 AM
|
0
|
2
|
1667
|
|
POST
|
That means for offline searching we have to purchased ArcGIS desktop or ArcGIS Pro application?
... View more
03-27-2017
11:05 AM
|
0
|
0
|
987
|
|
POST
|
Thank you so much for a good explanation. Suppose if I purchase Streetmap Premium, then can I generate tpk file through your code??
... View more
03-27-2017
11:01 AM
|
0
|
0
|
2280
|
|
POST
|
Hi Nicholas, I want tpk file like streetmap premium or Google map. Can we download that kind of basemap as a tpk file from online tool? Thanks, Kamal
... View more
03-27-2017
10:05 AM
|
0
|
2
|
2280
|
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|