Developers Questions topics //www.gamepadva.com/t5/developers-questions/bd-p/developers-questions Developers Questions topics Fri, 03 Feb 2023 10:15:45 GMT developers-questions 2023-02-03T10:15:45Z Front-end developer interview questions //www.gamepadva.com/t5/developers-questions/front-end-developer-interview-questions/m-p/1254220#M6485 < P data-unlink = " true " >有很多良好的强度rview questions (even "puzzles") for software developers  in Stack Overflow(https://stackoverflow.com) and other places, but I was wondering if anyone had some good questions for a front-end developer position. We're looking for someone who knows HTML+CSS+JS.

Some of the obvious questions:

  • Have you worked with Javascript libraries? - follow-up: which, and why that one over others?
  • Are you following the development of HTML5 and CSS3? - follow-up: Which features are you looking forward to the most, and why?

Do you know any good "puzzles" for a front-end developer? Maybe a JS fizz-buzz?

edit: changed the two questions to be a bit more open.

Thu, 02 Feb 2023 07:16:27 GMT //www.gamepadva.com/t5/developers-questions/front-end-developer-interview-questions/m-p/1254220#M6485 weithy 2023-02-02T07:16:27Z
In C, going to create a new long nested structures //www.gamepadva.com/t5/developers-questions/in-c-going-to-create-a-new-long-nested-structures/m-p/1252861#M6484 < P >什么是最好的开始(在/清洁方法a local function) a lengthy chain of nested structures where each structure just holds pointers to other structures, as seen below:

typedef struct A{ struct B{ struct C *c /* OPTIONAL */; struct D *d /* OPTIONAL */; struct E *e /* OPTIONAL */; struct F *f /* OPTIONAL */; } *b; struct G{ struct F *f /* OPTIONAL */; struct D *d /* OPTIONAL */; struct H *h /* OPTIONAL */; struct F *f /* OPTIONAL */; } *g; } a;

 

Each of the references to the nested structures link to structures that contain pointers to other nested structures (I know, it's weird!)

I believe I need to define a tmp pointer for each struct member and allocate memory for it, as well as a tmp struct variable and point the former to the latter:

B *b_ptr = CALLOC(1,sizeof(b_ptr)); B b_tmp; b_ptr = &b_tmp; b_tmp.itsMember1 = CALLOC(1,sizeof(itsMember1)); TypeOfItsMember1 itsMember1_tmp; .. ..

This will necessitate a plethora of local variables and excruciatingly repetitious code. Is there a better method to thoroughly initialise the parent struct? 

Mon, 30 Jan 2023 14:32:33 GMT //www.gamepadva.com/t5/developers-questions/in-c-going-to-create-a-new-long-nested-structures/m-p/1252861#M6484 hectorsalamanca 2023-01-30T14:32:33Z
ArcPro Multivalue parameter keeps sorting in python script tool, is this a bug? //www.gamepadva.com/t5/developers-questions/arcpro-multivalue-parameter-keeps-sorting-in/m-p/1252646#M6479

I am developing a suite of geoprocessing tools in Python in the new ArcPro 3.0.1 toolbox (atbx).  One of my parameters is a multivalue parameter of fields which is dependent upon a previous parameter selection (the layer the fields are coming from).

DuncanHornby_0-1674946265004.png

This creates the desired ability to choose one or more fields from the layer. But during testing I have noticed an odd behaviour which I don't want and am unsure if this a property that can be fixed through coding or its a bug, or (unwanted) behaviour baked in by esri?

So.. If I run the tool, set the layer, I can choose my fields; if I select them via the drop down then they are displayed in order as they are in the attribute table as shown below:

DuncanHornby_1-1674946571508.png

The fields are displaying in the order as they are found in the attribute table (i.e. unsorted)

 

But if I use the add many fields button the list is displayed in name sort order as shown below:

DuncanHornby_2-1674946702180.png

Fields in drop down are presented in name sort order

How do I stop/correct it from sorting by name order?

Sat, 28 Jan 2023 23:02:38 GMT //www.gamepadva.com/t5/developers-questions/arcpro-multivalue-parameter-keeps-sorting-in/m-p/1252646#M6479 DuncanHornby 2023-01-28T23:02:38Z
Final Java classes that should not be final, or vice versa? //www.gamepadva.com/t5/developers-questions/final-java-classes-that-should-not-be-final-or/m-p/1252111#M6478

In a recent interview, I was asked the following question:

Can you think of any classes in the Java API that should not be final or that should be but aren't'?

I couldn't come up with any. The question suggests that I should know all of the API classes like the back of my hand, which I don't think any Java developer should.

Please offer examples if you know of any such classes.

Thu, 26 Jan 2023 21:29:52 GMT //www.gamepadva.com/t5/developers-questions/final-java-classes-that-should-not-be-final-or/m-p/1252111#M6478 hectorsalamanca 2023-01-26T21:29:52Z
Is it a good idea to run ArcPy in .Net App //www.gamepadva.com/t5/developers-questions/is-it-a-good-idea-to-run-arcpy-in-net-app/m-p/1251080#M6476

Hey guys, 

I need to create an app to:

1. set arcGIS Server1 (no portal or webAdapter) to maintenance mode

2. publish MapServer, GeoCodingServer, NetworkAnalyst for routing to Server 1

I found that ArcGIS REST API will allow me to set Machine (Server1) to maintenance mode.
However, I don't think I can publish SD using REST API. I was thinking to make .NET App to build GUI and access REST API.

As the result, I need to use ArcPy.
However, when I search for "execute arcPy from .NET" I get answers to use ArcGIS SDK for .NET. I couldn't find the way to publish SD using SDK in the documentation.

 

Please direct me.

Thank you very much!

Alex.

Tue, 24 Jan 2023 23:35:14 GMT //www.gamepadva.com/t5/developers-questions/is-it-a-good-idea-to-run-arcpy-in-net-app/m-p/1251080#M6476 AlexBykov 2023-01-24T23:35:14Z
Is it possible to create a VM with a sandbox environment to mimic a production server? //www.gamepadva.com/t5/developers-questions/is-it-possible-to-create-a-vm-with-a-sandbox/m-p/1250369#M6469

I was recently tasked at my company to create a VM with a sandbox environment that mimics our production server. I don't know if this is possible, but I came across some ideas such as using cloud infrastructure to do it (Azure, AWS, etc). Has anyone used those platforms to mimic a server or another method, and if so, how can this be done? Any advice is appreciated.   

Mon, 23 Jan 2023 14:21:49 GMT //www.gamepadva.com/t5/developers-questions/is-it-possible-to-create-a-vm-with-a-sandbox/m-p/1250369#M6469 matttrenk 2023-01-23T14:21:49Z
Using Arcade Attribute Rule To Insert Lines after Points //www.gamepadva.com/t5/developers-questions/using-arcade-attribute-rule-to-insert-lines-after/m-p/1248793#M6463

Hello Esri Community,  It seems like Arcade is a good option to use in this scenario below:

1. Currently, I have water lines that end at a valve point

2. I'm looking for a way in Arcade to insert a 2ft Service Lateral from those valve points on the downstream side. (opposite side of existing water line that terminate at valve / the clear side)

3. Once Arcade inserts the newly generated 2ft laterals after the valve points, then add a plug to the end point of the new lateral lines.

Is anyone familiar with how to accomplish the above using an Arcade Attribute Rule in ArcGIS Pro 2.9.5?

Thank you for any feedback!

星期二,2023年1月17日17:24:27格林尼治时间 //www.gamepadva.com/t5/developers-questions/using-arcade-attribute-rule-to-insert-lines-after/m-p/1248793#M6463 CME 2023-01-17T17:24:27Z
How to login in to ArcGIS Online programmatically from an Exp. Builder application. //www.gamepadva.com/t5/developers-questions/how-to-login-in-to-arcgis-online-programmatically/m-p/1248178#M6462

I created an Experience Builder Developer application that will be hosted on a secure server with restricted access. Most of the staff who will be using the app do not have an ArcGIS online account so using the users login credentials isn't an option. I looked at application login as a possibility, but from my understanding of the documentation it doesn't appear that this supports web maps and that it also requires a proxy file. 

Integrated Windows Authentication looks promising, but from the docs it's hard to tell if we need to have portal installed on our server or if it works with ArcGIS online portal. 

Also, there doesn't appear to be a way to bring a map service directly into an EXB app and view the data on a basemap like in WAB developer. This would solve my problem and avoid the Web map access issue, so if I am missing something please let me know.

Fri, 13 Jan 2023 19:07:12 GMT //www.gamepadva.com/t5/developers-questions/how-to-login-in-to-arcgis-online-programmatically/m-p/1248178#M6462 FranklinAlexander 2023 - 01 - 13 t19:07:12z
Changing Python Script in ArcGIS Pro SDK Example //www.gamepadva.com/t5/developers-questions/changing-python-script-in-arcgis-pro-sdk-example/m-p/1248128#M6460

I successfully ran the code from this example provided by ESRI and want to change the Python script with one of my own. Would anyone be able to point me to the files in the folder I would need to update in order to change the name of the button and reference the path of my Python script?

Fri, 13 Jan 2023 17:28:42 GMT //www.gamepadva.com/t5/developers-questions/changing-python-script-in-arcgis-pro-sdk-example/m-p/1248128#M6460 NathanUrban3 2023-01-13T17:28:42Z
Using Fixed Speeds from World Traffic Service //www.gamepadva.com/t5/developers-questions/using-fixed-speeds-from-world-traffic-service/m-p/1246946#M6455 < P >我正在参与一个项目的地方necessary to obtain (raster or vector) datasets wide average road speeds of an individual country. I saw the World Traffic Service has fixed speeds available for many countries, but it is unclear on using them as larger scale machine learning datasets. Is it possible to get raster tiles, geojsons, shapefiles or something that can be analyzed with our own models at scale with one of the APIs here (either paid or unpaid)?

Tue, 10 Jan 2023 18:55:37 GMT //www.gamepadva.com/t5/developers-questions/using-fixed-speeds-from-world-traffic-service/m-p/1246946#M6455 chansonvf 2023-01-10T18:55:37Z
Forrest of trees .net //www.gamepadva.com/t5/developers-questions/forrest-of-trees-net/m-p/1246691#M6454 < P >你好,< / P > < P >, < / P > < P >我看creating a forest of trees in my 3D scene. To do this I have created a feature layer with a simple render and applied an extrusion. But the extrusion apply 1 block of color where as I'd like to apply a picture to wrap the extrusion.

Next, I've used a PictureMarkerSymbol and SimpleRenderer; this is close to the effect I would like but PictureMarkerSymbol resizes with the zoom and I would like the trees to be fixed size.

I have also tried ModelSceneSymbol for a 3d object but this causes the .net application to crash.

I like to have a similar effect to the trees in (https://doc.arcgis.com/en/arcgis-online/reference/scene-layers.htm).

 

Are you able to provide any advice?

Tue, 10 Jan 2023 09:26:06 GMT //www.gamepadva.com/t5/developers-questions/forrest-of-trees-net/m-p/1246691#M6454 Col36 2023-01-10T09:26:06Z
Python script with project pathname does not do anything //www.gamepadva.com/t5/developers-questions/python-script-with-project-pathname-does-not-do/m-p/1246142#M6453

I have several python scripts that I would like to have run outside of ArcGIS Pro. Its mainly to export map series weekly without having to manually open the project. I keep hitting a dead end because most of my python scripts do nothing even when ran in the project if I set arcpy.mp.ArcGISProject to reference the path of the project. All of my scripts work if I change the pathname to ("Current") but obviously that can't be run outside of Pro. Here are two samples of python scripts I am trying to get to work. 

## BLOCK DETAILS TO BLOCK NAMES ## aprx = arcpy.mp.ArcGISProject("C:\\GIS Local Directory\\RanchMaps.aprx") for m in aprx.listMaps("Default Map"): lyr = m.listLayers("Block Boundary")[0] z = ["default"], ["details open"], ["Ranches Zoomed In"], ["Center Unlocked"], ["Center Locked"], ["Center Left Locked"] for i in z: if lyr.supports("SHOWLABELS"): lblClass = lyr.listLabelClasses(i[0])[0] lblClass.visible = False if lyr.supports("SHOWLABELS"): lblClass = lyr.listLabelClasses("block name")[0] lblClass.visible = True import arcpy aprx = arcpy.mp.ArcGISProject("C:\\GIS Local Directory\\RanchMaps.aprx") m = aprx.listMaps("Default Map")[0] lyrList = m.listLayers() for lyr in lyrList: if lyr.longName == "Ranches (Sun Pacific)\\Block Details": lyr.visible = False if lyr.longName == "Ranches (Sun Pacific)\\Block Names": lyr.visible = True aprx.save() del aprx

 

Again they both work as intended if I change the project path name to ("CURRENT")

 

Thanks for any help

 

 

 

Fri, 06 Jan 2023 19:10:59 GMT //www.gamepadva.com/t5/developers-questions/python-script-with-project-pathname-does-not-do/m-p/1246142#M6453 GeorgeBunkall 2023-01-06T19:10:59Z
Loaded Images from the service in the runtime application is not visible after a system screen lock //www.gamepadva.com/t5/developers-questions/loaded-images-from-the-service-in-the-runtime/m-p/1244500#M6448

I am adding the images from the image service in the ArcGIS runtime application [WPF] using C#. After adding the images, it loaded without any issues.

When I lock the system using WIN+L and opens it back means the loaded images are visible.  I checked the operational layer list of the map, the images are in the list.

But I am not able to visualize it. Kindly do the needful.

Fri, 30 Dec 2022 08:21:38 GMT //www.gamepadva.com/t5/developers-questions/loaded-images-from-the-service-in-the-runtime/m-p/1244500#M6448 KURINJINATHAN 2022-12-30T08:21:38Z
Looking for a developer for project //www.gamepadva.com/t5/developers-questions/looking-for-a-developer-for-project/m-p/1243693#M6446

I have a project that I need a developer to help with and am hoping somebody can’t point me in the right direction to find somebody who can help. I’d like to be able to draw a polygon and then have it fill it with solar panels based on the size of the panel type, desired spacing, orientation, etc. I have all the panel attributes and have the basic logic for determining how many, but need help getting all the way to something that works. I apologize if this is the incorrect place, but unappreciated any help you can provide.

 

thanks!

Mon, 26 Dec 2022 03:42:52 GMT //www.gamepadva.com/t5/developers-questions/looking-for-a-developer-for-project/m-p/1243693#M6446 CkRuss 2022-12-26T03:42:52Z
How to filter out 'null' geometry in ArcGIS REST Services FeatureService query? //www.gamepadva.com/t5/developers-questions/how-to-filter-out-null-geometry-in-arcgis-rest/m-p/1240530#M6440

Hi,

I am trying to Query a FeatureService in which 'null' geometries causes errors. In the Query user interface, how is it possible to filter out 'null' geometries?

Thanks

Query.png

Tue, 13 Dec 2022 11:01:39 GMT //www.gamepadva.com/t5/developers-questions/how-to-filter-out-null-geometry-in-arcgis-rest/m-p/1240530#M6440 VincentLaunstorfer 2022-12-13T11:01:39Z
Is there any mechanism for knowing the links for the corresponding formatted text after the text has been formatted? //www.gamepadva.com/t5/developers-questions/is-there-any-mechanism-for-knowing-the-links-for/m-p/1238117#M6436

If I have a bunch of links that AttributedMarkdown is to parse, such as GitHub(https://github.com/), is there any mechanism for linking the formatted text that just becomes "GitHub", to the URL it's linked to?

Basically, I'm building a system allowing you to tap on the formatted text to open the corresponding URL, but I'm not sure how to get this URL once the text has been formatted.

Are there any recommendations for doing so?

(Apologies if this isn't actually an "issue", so to speak.)

Tue, 06 Dec 2022 07:09:58 GMT //www.gamepadva.com/t5/developers-questions/is-there-any-mechanism-for-knowing-the-links-for/m-p/1238117#M6436 weithy 2022-12-06T07:09:58Z
Arcade: GetFeatureSetInfo function not defined error //www.gamepadva.com/t5/developers-questions/arcade-getfeaturesetinfo-function-not-defined/m-p/1236661#M6430

No matter the profile I use the GetFeatureSetInfo function returns a function not defined error in ArcGIS Online and the Arcade play ground.

JustinReynolds_0-1669853023893.png

Thu, 01 Dec 2022 00:05:55 GMT //www.gamepadva.com/t5/developers-questions/arcade-getfeaturesetinfo-function-not-defined/m-p/1236661#M6430 JustinReynolds 2022-12-01T00:05:55Z
Apps in Cloud Store //www.gamepadva.com/t5/developers-questions/apps-in-cloud-store/m-p/1236611#M6429

We currently create many of our apps using the developer edition of WAB or ExB and then place the downloaded app on our own web server.  

We are looking to potentially start putting our apps in a cloud store in order to get them off our local infrastructure.  I'm wondering if this is as simple as creating something like an Amazon S3 bucket and copying over the WAB/ExB app folder?

I haven't put in too much effort to research the various cloud stores, so any suggestions/tips/pointers are welcome as well as any best practices others have found to be useful.

Thanks!

Wed, 30 Nov 2022 21:30:45 GMT //www.gamepadva.com/t5/developers-questions/apps-in-cloud-store/m-p/1236611#M6429 mpboyle 2022-11-30T21:30:45Z
Arcade causing text to appear twice //www.gamepadva.com/t5/developers-questions/arcade-causing-text-to-appear-twice/m-p/1236599#M6428

Greetings,

I currently have an Arcade code that displays a string in a map layout. It calls a field in a feature layer and the field is binary.

IIf($feature.field > 0, 'Text I want displayed, ','')

If there is a 1 in the field, the text should display and if 0, then no text. The text displays twice for some reason and I just can't figure out why.

 

Thanks!

Wed, 30 Nov 2022 21:18:07 GMT //www.gamepadva.com/t5/developers-questions/arcade-causing-text-to-appear-twice/m-p/1236599#M6428 Akaelda 2022-11-30T21:18:07Z
Difference between Velocity and Insights //www.gamepadva.com/t5/developers-questions/difference-between-velocity-and-insights/m-p/1236012#M6427

What are the main differences between ArcGIS Velocity and Insights.  They both appear to work with big data, query, analyze etc.  Just trying to wrap my head around them....Any thoughts would be helpful

Tue, 29 Nov 2022 16:44:40 GMT //www.gamepadva.com/t5/developers-questions/difference-between-velocity-and-insights/m-p/1236012#M6427 kapalczynski 2022-11-29T16:44:40Z