POST
|
Hi Shiva, Can you please help me to setup development environment using Angular 6 and 3.X ArcGIS API for javascript in a step by step points.
... View more
08-06-2020
12:35 AM
|
0
|
0
|
501
|
POST
|
Along with downloaded data, it was mentioned that the projection is 27700 projection. i am sure about this.
... View more
05-30-2019
04:07 AM
|
0
|
0
|
2144
|
POST
|
Thanks Dan Patterson and Sangeet Mathew for your response. I appreciate that. It's not working for me.may be i am doing something wrong while creating mosaic dataset. I am using ArcGIS Pro 2.3.3. I downloaded images(15 images) and building footprints from Ordinance Survey, for UK Location. these images are freely available. Original downloaded images were in ECW formats. So converted them into .tif. and then made mosaic dataset. after this i am trying to create training dataset using this mosaic dataset. But i am able to create training dataset from individual .tif files. since i have 15 images, so i thought to mosaic them, into one, then at one go i would create training dataset, but it did not succeed. When I create training dataset from individual .tif files, it will generate into 15 diff folder, so then later if i want to combine all training dataset into one, naming convention and their meta data i will have to manually do it. Projection - 27700.prj used. there was no projection defined to images and vector data. so i defined the projection from Define_Projection tool. If there is anything wrong here, in my process, please point me to correct one. Thanks.
... View more
05-30-2019
12:44 AM
|
0
|
2
|
2144
|
POST
|
Hi Folks, I am trying to create training data set for deep learning, using "Export Training Data For Deep Learning" tool. Input raster - i am giving in this tool is Raster Mosaic Dataset (created by referencing tiff images located at location in my machine). This mosaic dataset in created inside FileGeodatabase. Input Feature Class - is polygon feature class - which has building footprints. Output image format - TIFF Meatadata format - PASCAL Visual Object Classes. This tool run successful without any error. at output folder location it creates following folder structure also, images labels esri_model_definition.emd esri_tile_lines.json stats.txt But there are images inside 'images' folder and there are no xml files inside 'labels' folder. Where as in other scenario, where If i give input Raster - as single tif file. it works properly, and creates image chips and labels. What might be the reason? doesn't this tool support Mosaic Dataset ? I have large areas, so i mosaic-ed the images and then i am trying to create training data set. Do i have to run this tool multiple times for multiple raster images? Sangeet Mathew Thanks. -- Ravindra Singh
... View more
05-29-2019
02:05 AM
|
0
|
8
|
2797
|
POST
|
Hi Shankar, I have few queries: Can i create custom GUI for my custom Checks. Is there any other ways to use my custom checks other then first registering .dll and then every time user wants to use, he has to know the GUID of that custom check to mention in custom UI. - Why i am asking this because, in some of end user does not have Admin rights, so they can not register the .dlls. why can't cusotom checks be used like the way esri supports custom Addins? - Thanks Ravindra singh
... View more
03-10-2019
03:02 AM
|
0
|
0
|
476
|
BLOG
|
Does ArcGIS API for JavaScript 4.9 supports DOJO2? Can we use / install Dojo 2/3/4 Typings? if not what is the plan in future. if yes, is there any link for getting started using DOJO2.
... View more
10-19-2018
12:25 PM
|
0
|
0
|
459
|
POST
|
I am using ArcGIS-Runtime-SDK-iOS', '100.2.1' XCode 9.4.1 iOS 11.4 Simulator I am trying to perform GeoCode using - https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer using below Code - (code is copied from ESRI-GitHub Sample Codes ) func testGeoCode(){ // Try to query MapService let locatorURL = "http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer" let locatorTask:AGSLocatorTask = AGSLocatorTask(url: URL(string: locatorURL)!) let geocodeParameters:AGSGeocodeParameters = AGSGeocodeParameters() geocodeParameters.resultAttributeNames.append(contentsOf: ["*"]) geocodeParameters.minScore = 75 //perform geocode with text locatorTask.geocode(withSearchText: "California", parameters: geocodeParameters, completion: { (results:[AGSGeocodeResult]?, error:Error?) -> Void in if let error = error { print("testGeoCode Error::: \(error)") } else { if let results = results , results.count > 0 { print("GeoCode Result found::: \(results.count)") //create a graphic for the first result and add to the graphics overlay _ = AGSGraphic(geometry: results[0].displayLocation!, symbol: nil, attributes: results[0].attributes as [String : AnyObject]?) // let graphic = self?.graphicForPoint(results[0].displayLocation!, attributes: results[0].attributes as [String : AnyObject]?) // self?.graphicsOverlay.graphics.add(graphic!) } else { //provide feedback in case of failure print("No GeoCode Result found.......)") } } }) } but this above code never gives result. and ends up with below error: Some Times This:: testGeoCode Error::: Error Domain=NSCocoaErrorDomain Code=3072 "User canceled error" UserInfo={NSLocalizedDescription=User canceled error} 2018-09-02 13:12:36.204621+0300 ERS[8764:217712] Task <9EC69EBF-C7BE-45AF-8564-F6B607856D45>.<185> finished with error - code: -999 2018-09-02 13:12:36.204795+0300 ERS[8764:218992] Task <A6812BF2-37CC-4470-B0D0-5C53E5BD7FFD>.<184> HTTP load failed (error code: -999 [1:89]) 2018-09-02 13:12:36.205268+0300 ERS[8764:217712] Task <A6812BF2-37CC-4470-B0D0-5C53E5BD7FFD>.<184> finished with error - code: -999 Some Times:: 2018-09-02 13:20:07.760707+0300 ERS[9134:225343] Task <3C0CE309-4E55-4A3F-B62F-AD54EB132FA6>.<203> HTTP load failed (error code: -999 [1:89]) I am also performing Query:: using below Code:: - (code is copied from ESRI-GitHub Sample Codes- for Query ) func testQueryOnLayer(){ let featureTable = AGSServiceFeatureTable(url: URL(string: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/2")!) let featureLayer = AGSFeatureLayer(featureTable: featureTable) featureLayer.selectionWidth = 5 let searchText = "California" let queryParams = AGSQueryParameters() queryParams.whereClause = "upper(STATE_NAME) LIKE '%\(searchText.uppercased())%'" featureTable.queryFeatures(with: queryParams, completion: { (result:AGSFeatureQueryResult?, error:Error?) -> Void in if let error = error { print("testQueryOnLayer Error::: \(error)") } else if let features = result?.featureEnumerator().allObjects { if features.count > 0 { print("GeoCode Result found::: \(features.count)") //mapView.setViewpointGeometry(features[0].geometry!, padding: 80, completion: nil) } else { print("No query Result found.......)") } } }) } This above code executes, neither gives error nor gives result. NOTE:: I have already made changes into my info.plist file. to avoid ATS as below:: <key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> <dict> <key>arcgis.com</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key> <true/> </dict> <key>arcgisonline.com</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key> <true/> </dict> <key>esri.com</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key> <true/> </dict> </dict> </dict> Any Leads please.
... View more
09-02-2018
03:30 AM
|
0
|
1
|
573
|
POST
|
Putting Code for creating two sided arrow symbol in a line. hope this shall help some one. /// <summary> /// Crates MultiLayerLineSymbol with Two Sided arrow. /// </summary> /// <returns></returns> private ISymbol Create_MultiLayerLineSymbol() { // Create Arrow Marker Symbol IArrowMarkerSymbol pAMS = new ArrowMarkerSymbolClass(); pAMS.Style = esriArrowMarkerStyle.esriAMSPlain; pAMS.Length = Constants.AMS_LENGTH; pAMS.Width = Constants.AMS_WIDTH; // Line Decoration Element SimpleLineDecorationElementClass sldElement = new SimpleLineDecorationElementClass(); sldElement.AddPosition(1); sldElement.FlipFirst = true; sldElement.FlipAll = false; sldElement.Rotate = true; sldElement.MarkerSymbol = (IMarkerSymbol)pAMS; sldElement.PositionAsRatio = true; // Line Decoration LineDecoration ld = new LineDecorationClass(); ld.AddElement(sldElement); // Cartographic Line Symbol CartographicLineSymbolClass cls = new CartographicLineSymbolClass(); // Line Properties. In order to set additional properties like offsets and dash patterns we must create an ILineProperties object ILineProperties lp = cls as ILineProperties; //QI lp.Offset = Constants.CLS_LINE_PROP_OFFSET; //lp.Flip = true; lp.LineDecoration = ld; cls.Cap = esriLineCapStyle.esriLCSButt; cls.Join = esriLineJoinStyle.esriLJSRound; cls.Width =Constants.CLS_WIDTH; //---[START]--------------------------- 2nd CartographicLineSymbolClass ---------------------------- // for putting the arrow marker at opposite end of the line. // Line Decoration Element SimpleLineDecorationElementClass sldElement1 = new SimpleLineDecorationElementClass(); sldElement1.AddPosition(0); sldElement1.FlipFirst = true; sldElement1.FlipAll = false; sldElement1.Rotate = true; sldElement1.MarkerSymbol = (IMarkerSymbol)pAMS; sldElement1.PositionAsRatio = true; // Line Decoration LineDecoration ld1 = new LineDecorationClass(); ld1.AddElement(sldElement1); // Cartographic Line Symbol CartographicLineSymbolClass cls1 = new CartographicLineSymbolClass(); // Line Properties. In order to set additional properties like offsets and dash patterns we must create an ILineProperties object ILineProperties lp1 = cls1 as ILineProperties; //QI lp1.Offset =Constants.CLS_LINE_PROP_OFFSET; //lp.Flip = true; lp1.LineDecoration = ld1; cls1.Cap = esriLineCapStyle.esriLCSButt; cls1.Join = esriLineJoinStyle.esriLJSRound; cls1.Width = Constants.CLS_WIDTH; //---[END]--------------------------- 2nd CartographicLineSymbolClass ------------------------------ IMultiLayerLineSymbol multiLayerLineSymbol = new MultiLayerLineSymbolClass(); multiLayerLineSymbol.AddLayer((ILineSymbol)cls); multiLayerLineSymbol.AddLayer((ILineSymbol)cls1); return multiLayerLineSymbol as ISymbol; }
... View more
01-23-2018
08:37 PM
|
0
|
0
|
712
|
POST
|
Hi, I have found the solution of my Issue. Sharing the code here, hope, it may help someone. using System; using System.Diagnostics; using Esri.ArcGISRuntime.Geometry; using Xamarin.Forms; using Esri.ArcGISRuntime.Xamarin.Forms; using Esri.ArcGISRuntime.Data; using Esri.ArcGISRuntime.Mapping; using Esri.ArcGISRuntime.Mapping.Popups; using Esri.ArcGISRuntime.UI; namespace GitTrial_Sample { public partial class IndexMapPage : ContentPage { public IndexMapPage() { InitializeComponent(); Title = "Show callout"; Initialize(); } private void Initialize() { // Create a new basemap using the streets base layer Basemap myBasemap = Basemap.CreateStreets(); // Create a new map based on the streets basemap Map myMap = new Map(myBasemap); // Assign the map to the MapView MyMapView.Map = myMap; // Wire up the MapView GeoVewTapped event MyMapView.GeoViewTapped += MyMapView_GeoViewTapped; } private void MyMapView_GeoViewTapped(object sender, GeoViewInputEventArgs e) { // Get the user-tapped location MapPoint mapLocation = e.Location; // Project the user-tapped map point location to a geometry Geometry myGeometry = GeometryEngine.Project(mapLocation, SpatialReferences.Wgs84); // Convert to geometry to a traditional Lat/Long map point MapPoint projectedLocation = (MapPoint)myGeometry; // Format the display callout string based upon the projected map point (example: "Lat: 100.123, Long: 100.234") string mapLocationDescription = string.Format("Lat: {0:F3} Long:{1:F3}", projectedLocation.Y, projectedLocation.X); // Create a new callout definition using the formatted string CalloutDefinition myCalloutDefinition = new CalloutDefinition("Location:", mapLocationDescription); //myCalloutDefinition.DetailText = "This is Detailed text"; myCalloutDefinition.Text = "Header Line Text"; RuntimeImage rtImg = new RuntimeImage(new Uri("https://cdn0.iconfinder.com/data/icons/business-finance-vol-14-2/512/69-128.png")); // Here URI can be any location of the image. I just referred randomly this img. rtImg.LoadAsync(); //myCalloutDefinition.Icon = rtImg; myCalloutDefinition.ButtonImage = rtImg; Action<object> infoWindowButtonClick_Process = infoWindowBtn_Click_Event; myCalloutDefinition.OnButtonClick = infoWindowButtonClick_Process; // Display the callout MyMapView.ShowCalloutAt(mapLocation, myCalloutDefinition); } private async void infoWindowBtn_Click_Event(object message) { Debug.Print("Info window Button Clicked......"); //var selectedAction = await DisplayActionSheet("Came from Infor Window", "OK", null, "You Clicked on Info window Button"); // This also Working await DisplayAlert("Y=Infor window button clicked", "You came from Info Window on Map","OK"); // This also working } } } ------- XAML File------- <?xml version="1.0" encoding="UTF-8"?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:esri="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms" xmlns:mapping="clr-namespace:Esri.ArcGISRuntime.Mapping;assembly=Esri.ArcGISRuntime" xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.UI;assembly=Esri.ArcGISRuntime" xmlns:local="clr-namespace:GitTrial_Sample" x:Class="GitTrial_Sample.IndexMapPage" Title="Welcome to Index Map Page"> <ContentPage.Padding> <OnPlatform x:TypeArguments="Thickness" iOS="0,40,0,0" /> </ContentPage.Padding> <esri:MapView x:Name="MyMapView"> </esri:MapView> </ContentPage> ... I prefer to share full code, so that there is no confusion for newbies to free it. find the is the sc reenshot..
... View more
09-23-2017
04:48 AM
|
2
|
0
|
1951
|
POST
|
thanks Nielsen, this is actually what I thought of. I am here kind of confused and stucked. I am developing Cross platform app. which works on both Droid and iOS, with single code base. for that I am working on Xamarin.Form Components. in ArcGIS runtime SDK 100.1.0 for .NET There are two Namespaces e.g. Esri.ArcGISRuntime.UI.Controls -->Esri.ArcGISRuntime.UI.Controls.MapView. This above one has the property - as CalloutStyle. Esri.ArcGISRuntime.Xamarin.Forms. --> From here I am using, Esri.ArcGISRuntime.Xamarin.Forms.MapView But this doesn't have it. Can you please suggest here, or share some sample code to set the Button inside the Callout on Esri.ArcGISRuntime.Xamarin.Forms.MapView's Tap Event. Best Regards, Ravindra
... View more
09-23-2017
03:27 AM
|
0
|
1
|
1951
|
POST
|
Hi, Can you please share the whole code, to get similar kind of output, I also want to create a callout with Table like GUI and close button at the top of the callout. Thanks.
... View more
09-21-2017
03:54 AM
|
0
|
4
|
1951
|
POST
|
Hi Here is the Solution:: Call this method inside your button click event... private async void LogIn(string username, string password) { btn.IsVisible = false; aiLogin.IsRunning = true; if (string.IsNullOrWhiteSpace(username) || string.IsNullOrWhiteSpace(passw ord)){ ShowError("Invalid username or password"); return; } var url = "https://yourorg.maps.arcgis.com/sharing/rest"; try{ App.UserCredential = await AuthenticationManager.Current.GenerateCredentialAsync(new Uri(url), username.ToLower(), password) as ArcGISTokenCredential; //Connect to the portal ArcGISPortal portal = await ArcGISPortal.CreateAsync(new Uri(url), App.UserCredential, CancellationToken.None); //Get current portal user App.CurrentPortalUser = portal.User; } catch(Exception ex){ string str = ex.ToString(); System.Diagnostics.Debug.Print(str); return; } }
... View more
09-21-2017
03:25 AM
|
0
|
0
|
577
|
POST
|
Please have a look at below discussion.. https://community.esri.com/thread/184362-suggestion-are-required-to-approach-for-mobile-application-development
... View more
10-15-2016
12:26 AM
|
0
|
0
|
327
|
POST
|
Hi Folks, We want to develop Map based Mobile Application for iPhone and Android both. Few functionalities are as below:: Basic Map Navigation Routing Search capabilities on diff layers Security: only authenticated users are allowed to download and install this app. Secured Login into Application Access of secured ArcGIS Map Services Integration with LDAP / Outlook to search employees and their details. NOTE:: There are 2 developers in my team, one has experience in Development in Android based Mobile App. No one has Experience in iOS Dev, We don't have Mac Platform ready as of now (We need to buy if required). There are many options available such as: Go for ESRI AppStudio; and then further customize in QT Editor- We are new to this, we need to learn this. Go for Hybrid App development using (Cordova, PhoneGap etc.)- We are new to this, we need to learn this too. Go for Xamarin for cross platform development.- We are new to this, we need to learn this too. Go for Native Application development separately each for Android and iOS - Here we have one developer who has exp in Android, but - We are new to iOS, so we need to learn this too. I have gone through the GUIDE Line available on the ESRI Blogs Development strategies for targeting Android, iOS, and Windows Phone . So please don't suggest me on broad point of view. e.g. consider your developers skills, targetted users. budget etc. i want suggestion from technical, performance, and future compatibility point of view. Based on the description I have provided you above, suggestion are required from your experiences.
... View more
10-12-2016
01:23 AM
|
0
|
2
|
1508
|
Title | Kudos | Posted |
---|---|---|
2 | 09-23-2017 04:48 AM | |
1 | 12-30-2014 01:24 AM | |
1 | 12-30-2014 01:13 AM |
Online Status |
Offline
|
Date Last Visited |
10-02-2023
06:29 PM
|