Tag Info

New answers tagged

1

The Try/except does work - the problem here is GP Services have defined inputs and outputs. When you publish it and go look at the REST end point of the service, you'll see how these items are defined. Your service expects an output of a certain type. When your service "fails", it doesn't return whats expected of it and you get that error. If you don't want ...


0

I have a different circumstance where I am dynamically building several dGrids to contain the results of multiple IdentifyTasks on the visible layers in my map (which are in multiple services). Occasionally, there will be fields that contain hyperlinks, so I was happy to come across this thread. From my array of results (contain the promises from each ...


2

I think what you're trying to do would use a combo of the Draw tool and the FeatureLayer applyEdits method. This sample kind of gets you started, but the workflow is use Draw tool, on draw-end event, add drawn graphic using applyEdits method of FeatureLayer. I don't have a solid example on hand, but here is a simple-edit-widget and sample code from my book. ...


0

Layer doesn't have a method called name, but it does have a property called name, so replace this line var updateFeature = featureSet[0].getlayer().name(); with var updateFeature = featureSet[0].getlayer().name;


1

As you said, Esri is just one of many OAuth providers so you'll have to 'roll our own code' in any situation that the individual vendor's samples don't demonstrate exactly what you need to achieve. With regard to whether or not youre missing something basic, i can't really tell from your question. Any authentication you trigger with third party OAuth ...


0

Just ran into this myself using the Extract Data Task. As far as I can tell, this just indicates that the job failed. I'd recommend republishing the service with the Message Level set to 'Info' (see screenshot below). This will print arcpy.AddMessage() statements in your script, and will also help you trace any errors. To see these messages, execute the ...


2

I can understand why its not working, but its difficult to type out and explain the whole reason - so I'll just explain the better way to do what you want to do: Make feature layer isn't required in your workflow. You're using it to help select a featurelayer on something that is already a layer. (You arent making a layer, nor using the expression) Instead ...


1

This problem was "solved" (really more of a workaround) by changing the projection/transformation of the data frame in the map service to Web Mercator (WGS84). This allowed me to not have to reproject data that we have stored in a SDE and still symbolize the points correctly in my web app. Hope this helps someone in the future.


0

The solution on the JavaScript API side is to intercept the request to export map by passing a handler function to esriRequest.setRequestPreCallback like explained here https://developers.arcgis.com/javascript/jsapi/esri.request-amd.html#esrirequest.setrequestprecallback Check if ioArgs.url ends with "MapServer/export" If yes, then set ...


2

I am unsure which Esri Distributor you are referring to, but be aware that each Distributor has their own company policies. I am part of Esri's ArcGIS for Server product management team and my technical focus is on ArcGIS for Server, Portal for ArcGIS, & Web mapping. I am happy to discuss this item further via direct contact.


1

The easiest way is to export your feature classes to feature classes. Esri HowTo: Remove Z- and/or M-values from a feature class 1.Browse to ArcToolbox > Conversion Tools > To Geodatabase. 2.Open the Feature Class to Geodatabase (multiple) tool. 3.Add all the feature classes into the Input Feature Class parameter. 4.Select an Output Geodatabase. ...


1

Have you seen output spatial reference on the geoprocessing endpoint itself? https://developers.arcgis.com/javascript/jsapi/geoprocessor-amd.html#outspatialreference and Output spatial reference (coordinate system)


0

I'm a french GIS guy, so sorry for this english but perhaps I have a solution for you. Can you look at the Windows registry path at: HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\PythonPath. The value should look something like: C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk You must have this string value in your registry. So if it don't ...


1

The 10.2.2 release is a full install, not just a service pack (it need not be applied on top of 10.2 or 10.2.1; it should apply over an existing install, though you generally want to be extra-rigorous about your backups, just in case there are issues). I'd recommend applying the 10.2.2 release, then all the relevant patches in chronological order (reverse ...


0

It is possible! What you need first is a versioned feature class. To be bried, I assume you already know how to create versions and edit them, say using ArcMap or Arcpy. Unfortunately, there is no pre-packaged way to do it in JSAPI (AFAIK in 3.12), however, you can easily create geoprocessing services in Python that will do it though Arcpy and are accessible ...


0

you can add a zoom listener to your map to change the icons at different zoom levels. Here is a simplified example. You can change the conditions and icons to fit your project: <html> <head> <meta charset=utf-8 /> <title>Simple FeatureLayer</title> <meta name='viewport' ...


0

If you are doing it in arcpy, then I think you are looking for Project (Data Management): arcpy.Project_management (in_dataset, out_dataset, out_coor_system, {transform_method}, {in_coor_system}) For model based geoprocessing services, I think there is an alternative, but you might be able to just wrap this into one.


0

If you don't mind trading the dropdown menu with text for a dropdown menu with thumbnail images of the basemaps, the ArcGIS Basemap Gallery Widget can help you with this.


0

Intercept the Print request by using the esri/request setRequestPreCallback method. Parse the WebMap String to convert it to JSON. Change your layer id's and stringify back. esriRequest.setRequestPreCallback(function(ioArgs) { if (ioArgs.content && ioArgs.content.Web_Map_as_JSON){ //Intercept Print Call var webMapAsJson = ...


4

If you have admin access (that is access to the admin REST endpoint, you can get information about the workspace from the manifest). For example: http://SERVER:6080/arcgis/admin/services/SERVICENAME.MapServer/iteminfo/manifest/manifest.json?f=pjson Yields: "databases": [{ "byReference": false, "onServerWorkspaceFactoryProgID": ...


0

I needed to rename the C:\arcgisserver folder name. Found a better error message in the log and found the solution according to that.


0

It looks like you want to use Bootstrap for your dropdown menu. This sample does something similar, only the dropdown ("Maps" in the nav menu) changes the basemap instead of the operational layer: http://esri.github.io/bootstrap-map-js/demo/dojo/maps.html The relevant code is: query("#basemapList li").on(touch.press, function(e) { ...


0

Each coordinate system is defined by a well-known ID (WKID) or a definition string (WKT, Well Known Text). Before ArcGIS Server 10.0, the ArcGIS Server REST API only supported well-known IDs (not definition strings), but as of ArcGIS Server 10.0 both are supported. For a complete list of supported well-known IDs and their corresponding definition strings, ...


2

According to this page the spatial rel enum for intersect: Returns a feature if any spatial relationship is found. Applies to all shape type combinations. and for overlap: Returns a feature if the intersection of the two shapes results in an object of the same dimension, but different from both of the shapes. Applies to Area/Area, Line/Line, ...


0

It appears as though if you can upgrade to 10.3 they have addressed some of the issues of printing a secured service. You can review the ArcGIS 10.3 Issues Addressed List.


0

I think Interset only a part of the first geometry is into the second geometry. Overlap, the first geometry cover completely the second.


0

If the services being returned are all from ArcGIS Server (esri), why not just build a web application (JavaScript API?) to bring all them together. I don't see the need or value gained by ingesting them into your own server and re hosting them that way. I'd generally stay away from cascading services. What happens if one of the services you've ingested ...


1

You cannot capture selecting a feature template and creating a feature on the map using, for instance, with Selenium IDE. This is because those things don't happen at the client side, and the testing software is not aware of JS API and considers editing templates to be just a group of CSS elements. Actually, you can test those kinds of interactions. ...


3

This is accessible via the homepage of your Web App Builder. Highlight your map then hit the ellipsis at the right-hand side of the page, and there's a Download option. Unzip the resulting files into your web server directory (eg C:\inetpub\wwwroot on a PC, /Library/WebServer/Documents on a Mac, etc)


0

This is a template that I created and use as a boilerplate for most of my SOE projects. I hope this helps.


0

Yes.... the link you mentioned explains that to publish you need to do share as>gp service. You need to run the tool first to get a result to publish from. So you depending what your tool does, you'll need to provide some sort of input to run it. The schema from the input and output is used to help define the entire service. If you were to run it on ...


0

Did you ever find a way to solve this? I am trying to do something similar now and have the edit versions set dynamically which I think would solve you're problem. But I can't figure out a way to have those set either by a list or a string. When I create a parameter of the edit versions input, it seems to just set them all.


1

The answer is provided in the following screenshot In Step number 3 " choose a locator" browse and select the published geocoding service from your server.



Top 50 recent answers are included