Tag Info

Hot answers tagged

6

You should have a look at the REST Help for GP Task To run the geoprocessing task, you need to provide an input. If your GP Service is Synchronous, then you need to call the Execute Operation. If your service is Asynchronous, then you need to call the SubmitJob Operation. Both of them take their input parameter in JSON Format. In the case of a Synchronous ...


6

Please have a look at How ArcGIS Server Security works. Basically, you will need to make users and groups, and give a particular User rights over certain services. Once you have done that, then you need to use Token based security in your JavaScript Application. What this means is that, you ask the User for their UserName & password. That is sent to ...


4

I finally found what I was looking for: a proper ArcGIS Server web endpoint that I could use to generate tokens! The call is this: GET http://<arcgisserver_host:port>/arcgis/tokens?request=getToken&username=<usr>&password=<usr>&expiration=<token_lifespan> which gives back the token into the HTTP response body, and one ...


4

Use esri.request() to hit each layer's REST endpoint to get info about fields. Here's a simple example: <html> <head> <script type="text/javascript">var djConfig = {parseOnLoad: true};</script> <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.4"></script> <script ...


4

If you use Fiddler when you are firing a token authentication you can see the response (403 Forbidden etc). I used this when first setup FME Server with security - this uses the same Token method and is not unique to ArcGIS REST but REST with security. It is likely to be either software security issues or the webserver refusing the users request. This ...


4

I used Fiddler and now I know the service that you added is from: http://gis.ventura.org/ArcGIS/rest/services/MSDs/Basemap/MapServer There are a few other tools like Fiddler that captures HTTP traffic (request and responses from client to server) and logs it for the user to review. If you really need to hide your url's, use the HTTPS protocol. Using HTTPS ...


4

You can use the Identify Operation on the Mapservice to get the pixel values from the raster. Using the Identify Operation on a map service with Rasters, I can get both the Pixel value, as well as the stretched values:


4

What you need to do, is to query your ArcGIS Server REST Endpoint via JSON, and then Parse the Result. Let us take the example of the ArcGIS Online Sample Server that you are using. You normally use http://sampleserver3.arcgisonline.com/ArcGIS/rest/services as the url in your browser. But if you append an ?f=json at the end of it, the server responds in ...


3

In addition to my comment, the main issue is converting the EsriJSON to GeoJSON for your data. There have been a handful of projects that can do this, but Esri recently released their esri-leaflet library that can interact directly with ArcGIS Server services. For your vector data, you can do this manually by trying this esri util to convert EsriJSON to ...


3

You need to look at the documentation for the GeoProcessor. Basically, you will create a new geoprocessor object like this: gp = new esri.tasks.Geoprocessor("http://YourServer/ArcGIS/rest/services/foo/GPServer/bar"); Then you will need to create a parameter object, with the two required parameters. for this, I'm assuming you will need to take the user's ...


3

It looks like either the Query or the Identify tasks will do the trick. I successfully adapted this sample to prototype this functionality using the ArcGIS JavaScript API: var qt1="http://localhost:6080/arcgis/rest/services/simple_ny_outline/MapServer/0" var queryTask = new esri.tasks.QueryTask(qt1); var query = new esri.tasks.Query(); ...


3

It's fairly easy with urllib2. Say you've got a gigantic url like this: http://myserver/path/to/a/thing?json1={"data":[1,2,3,4,5]}&json2={"data":[1,2,3,4,5]}&json3={"data":[1,2,3,4,5]} All you need to do is take the query (everything after the ?) and jam it in the data argument to urlopen. import urllib2 import urlparse # GET return_data = ...


3

If you set transparency only on one layer in your ArcMap file you should save it as MSD () and NOT mxd and in javascript init ArcGISDynamicMapServiceLayer with imageParameters.format = "png32"; Here are some links to similair posts on ESRI forum: http://forums.arcgis.com/threads/27413-layer-transparency-not-working ...


3

I get no results when I search the GeoServices REST Specification Version 1.0 whitepaper for "transformation". It looks like Esri exposed IGeometry.Project but not IGeometry5.ProjectEx5 (for REST). Implementing this would be complicated. AFAIK there are no WkID's for geotransformations. IGeoTransformation.Name is not an industry standard (?) so using ...


3

Representational State Transfer (REST) is based on the HTTP protocol and it uses HTTP verbs (GET, POST, DELETE, etc) to transfer representations of resources. The World Wide Web itself is actually a good example of a REST architecture in that you make a request for a resource (a web page) and the system returns a representation of that resource (HTML). As ...


3

This answer might not be the final solution, but I can provide some ideas about this question. First, switch the Date to time format, according to: http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Query_Map_Service_Dynamic_Layer/02r3000000z6000000/ (Parameter 'time') Then compare all the time data and pick the biggest number by using the ...


2

In the ArcGIS API for JavaScript, there's a widget called the Identity Manager that addresses exactly what you want to do. Check out samples that use the identity manager to see how it works. The sample linked by Devdatta, while valid, is the pre-Identity Manager way of doing this and involves a lot more code that is necessary now that authentication for ...


2

Not directly, no (see Sean Gillies Blog for some reasons why). To do what you're after the easiest way is to convert from ESRI JSON to geoJSON with some intermediate script/service. See the How to convert ArcGIS Server JSON to GeoJSON? question on this site for a variety of different ways to do this.


2

Carto Vista (using Flash/Flex) is a good example of what can be done with your existing data. "CartoVista is an innovative web-based mapping solution to share and publish statistical data. " http://www.cartovista.com/CartoVista3/2011CanadianPopulation.aspx Geospatial Relational Database Management System (RDBMS) Support The CartoVista Publisher 3.7 ...


2

Are you publishing or want to publish asynchronous service/geo-processing service, that will not show the response in the form of json by calling the service or pasting the url in the browser. If you publish the synchronous service your URL paste in the browser and even the call from JavaScript thorough the calling mechanism will send response to the ...


2

The only time I have had problems with relationship classes that exist in SDE not being automatically published in a map service was because there is a problem with permissions on the account I was publishing with to see the related table in SDE. How are you adding related feature classes/ tables to the .mxd? Is it the same user/version as the key feature ...


2

Working under the assumption you are using the latest ArcGIS JS API (3.5) with Dojo 1.8, you could use dojo/on and dojo/query to listen to the "change" event of the element. require(['dojo/on', 'dojo/query'], function(on, query) { on(query('#myList'), 'change', function(e){ var gpURL = e.target.value; console.log('list changed', gpURL); ...


2

with the rest interface it doesn't understand time in human form. It has to be in milliseconds, there's more information in the help section in your rest catalog, but specifically: time Description: The time instant or the time extent to query. Time instant Syntax: time= Example: time=1199145600000 (1 Jan 2008 00:00:00 GMT) Time extent Syntax: ...


2

Yes, ArcGIS services will cost money in production. According to the World Geocoding Service's documentation, you will need an ArcGIS Online Subscription to use them. Limitations are rated on the number of requests made, not on any throughput. It will cost 40 credits per 1000 geocodes.


1

If you wanna to get only 1 record try use TOP statement. ie: OBJECTID IN (SELECT TOP 1 OBJECTID FROM 'customers' ORDER BY OBJECTID)) but you have note that this is bypass because TOP and LIMIT arent supported by geodatabase http://forums.arcgis.com/threads/68997-TOP-100 EDIT I digged deeper cause this subject seems to me as interesting, and I found this ...


1

I don't know ArcGIS very well, a possible solution is using an http proxy: your client sends the requests to a proxy which add the token in the url. With this solution, the clients doesn't know about the token client --> (/rest/resource) --> | PROXY | --> (/rest/resource?token=xxx) --> arcgis Some documentation can be found Working with ...


1

My question is: how do I parse the binary data in Java and convert it to a set of coordinates? Tutorial URL xmlURL = new URL("http://www.cse.lk/listedcompanies/overview.htm?d-16544-e=3&6578706f7274=1"); InputStream xml = xmlURL.openStream(); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = ...


1

It's a good question. I was listening to an Esri presentation about marketplace and oauth2 yesterday and they kept talking about one step vs two Step authorization. See two step here https://developers.arcgis.com/en/authentication/user-ios-etc.html One step authorization being for javascript, flex apps that will expire shortly, and you don't get a refresh ...


1

default_date The parameter value should be specified as a numeric value representing the milliseconds since midnight January 1, 1970. Default is in minutes: Use this parameter to specify the time units for all time-based attribute values specified with different parameters. The parameter is specified using one of the following values: ...


1

If you need to convert the EsriJSON into a FileGDB format from the service, you could take this little project I made called GeoScraper and tweak it to handle the ArcGISOnline data. It just converts EsriJSON to GeoJSON and then to a FileGDB you can use. It's configured to pull data from a map service query end point and I don't have it set up to handle ...



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