Tag Info

Hot answers tagged

2

AddFeatures is an endpoint on feature services in both local Server and hosted Portal (arcgis.com) You can see from this blog and associated script that I call both addFeautres and updateFeatures. You'll only see the addFeatures/updateFeautes/deleteFeatures, etc endpoints on the REST page if you have editing turned on for that service. If editing has NOT ...


2

When you say embedding, I'm presuming you mean this approach? http://resources.arcgis.com/en/help/main/10.2/index.html#//005700000017000000 If so, short answer is no. Embedding scripts is a nice way to minimize the number of files you have to pass around or just to hide/encrypt your work. You could embed your utilities as long as your utility functions ...


2

You need the spatial analyst extension to run spatial analyst tools on Server. You'd see an entry like: spatialserver,100,ecp..... You can see the license matrix here. If you believe you should have spatial analyst based on what license/extensions you should have, but dont see it in that file, you should contact either Esri Customer Service or your ...


2

Options that we have used is to create a list in Microsoft SharePoint that is connected to the database that is being used by the web mapping system. In our case that has been SDE running on MS SQL, but we have also done it connected directly to MS SQL Spatial, and avoiding Esri. This gives the user a non-map based interface that looks like an spreadsheet. ...


2

I asked too quick. According to this thread, the 1411380301000 value is: ...presented as epoch milliseconds since 01/01/1970 GMT. And I used the following code to convert it: import time value = 1411380301000 date = time.strftime('%m/%d/%Y %H:%M:%S', time.gmtime(value/1000.0)) print date >>> 09/22/2014 10:05:01


2

You could loop through map.layerIds to obtain the id of each layer already in the map and compare the id values directly. Or compare a distinctive property (like the url) to the layer you intend to add. To get that property, you would first call the method map.getLayer() to get the layer, then you can access the the url property. var existingLayer = ...


1

Use your DBMS tools to edit the SERVER_CONFIG system table, parameter named CONNECTIONS. The SERVER_CONFIG (sde_server_config in SQL Server and PostgreSQL) table contains initialization parameters and values that define how an enterprise geodatabase uses memory. The parameters and their default values are listed in the "Initialization parameters" ...


1

It isn't strictly required to alter the services or services.sde file with SQL-Server, and if you don't specify a port or mnemonic with the -i flag at step 1, then step 2 is completely unnecessary (since it's too late to change from the default of esri_sde 5151/tcp). In fact, best practice is to add non-standard services entries before sdeservice -o create. ...


1

5151 is the standard. you are welcome to select any port that is open by editing the services.sde file and adding it, or alternatively remove the comment mark # from the default entry. Help can be found on the esri website. 10.1 MS SQL Server help


1

As noted in the API reference, the measurement widget does not make event listeners available for the placement of individual nodes. that being said, our new geometryEngine can help you do calculations like this entirely on the clientside. i was able to whip up a simple sample in which i listen for both map 'click' and 'mouse-move' and create new polylines ...


1

It sounds like you have a license for the ArcGIS Desktop Spatial Analyst Extension, but not ArcGIS Spatial Analyst for Server. You will need to purchase one to use that functionality.


1

The message is saying you need to specify some output fields so if you are using the browser to test there should be an Out Fields text input. You can either put in a comma separated list of attributes names or use * for all. Via the REST API you set this as the outFields parameter.


1

In the past I've had to distribute a toolbox (.tbx) with many tools, each with their own script but many of which shared the same functions. I believe this is the same issue you are dealing with. In my case I solved the packaging issue with this file structure: top_folder/ tools.tbx scripts/ tool1.py module_name/ ...


1

come across and solved the problem just now cause RouteParameters 's default value of UseHierarchy is True just set UseHierarchy to False RouteParameters parameters = new RouteParameters(); parameters.Stops = stopsGraphicsLayer; parameters.OutSpatialReference = MyMap.SpatialReference; parameters.UseHierarchy = false; routeTask.SolveAsync(parameters);


1

Restarting ArcGIS service involves using ArcGIS Rest Admin API and ability to authenticate using token-based authentication with ArcGIS server. One way to do it is to write a script/program to monitor the ArcGIS Service and in the event service is found stopped restart it , schedule it to run periodically. But it gets cumbersome when you have to monitor more ...


1

I've just experienced this problem too, in ArcGIS Server 10.3. As @rdeschain suspected, it's to do with the token timeout, so one option is to increase that value. I tested this by reducing it to 2 minutes and restarting the service, and sure enough, it stopped working after 2 minutes. The other thing you can do is decrease the recycle interval for the ...


1

Per @matt wilkie Suggestions, you should use python toolbox (.pyt) instead of a custom (.tbx) toolbox. However with python toolboxes you cannot have models. So if you have any models in your custom toolbox, then you have two options: to export those models to python script tools. to call tools in other toolboxes from within the Python toolbox code Here ...



Only top voted, non community-wiki answers of a minimum length are eligible