POST
|
I was under the impression that all this was handled under the hood, and no real additional coding was necessary. Otherwise you'd have to set a search radius and loop through all the results to show in the popup right? I tried following the demo at http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/widget_popupfl.html and I still don't get paging...but the Popup dijit reference page shows properties "pagingControls" and "pagingInfo" (both default to true), that should elegantly handle the paging, right? Jay
... View more
05-07-2013
07:33 AM
|
0
|
0
|
684
|
POST
|
I have never understood how to implement a paging infoWindow using the Popup class in any of the infoWindows? Now that popups are the default infoWindow for v 3.4 of the JS API, I was wondering if someone could post some code on how to ensure that the infoWindow / popup will have paging options when click on a location with multiple markers. Thanks!
... View more
05-06-2013
12:56 PM
|
0
|
9
|
1670
|
POST
|
If I have some reoccurring scripts that keep appending to a feature class, eventually the objectID field will get too high - for example, over 1000 new records every 30 minutes. Some of the old records are deleted to limit the size of the feature class, but the ObjectID field keeps getting higher and higher. Theoretically, eventually, the ObjectID field will max out at 2,147,483,648. What happens then? Is there any way to reset the field programatically?
... View more
05-03-2013
05:43 AM
|
0
|
5
|
3132
|
POST
|
Thanks everyone, I will try the .bat file idea and let you know how it goes. I am still curious in general if running python scripts (in parallel) that operate on different feature classes in the same file geodatabase could cause some of these phantom errors. I'm aware that operating on the same feature class with two processes wouldn't work because of the lock files, but I just thought different feature classes would be ok, since I assumed the lock file applied to the feature class and not the file geodatabase. Any thoughts here? Thanks, Jay
... View more
04-11-2013
12:55 PM
|
0
|
0
|
621
|
POST
|
I have about 5 Python scripts running through Windows Task Scheduler (2008 R2) - they run at varying intervals but will occasionally kick off at the same time (for instance if one is on a 10 min internal, the other 30, and the other 60). They operate on separate feature classes in the same file geodatabase, performing a combination of projections and appends. I regularly but not predictably (or reproducibly) get errors relating to an inability to access a certain feature class (even though it exists). Sometimes there is a lock, sometimes the script says it just can't find it (even though it is most certainly there and no other script is operating on the feature class). Anyway, is there any known issues with multiple python scripts running at once on different feature classes in the same geodatabase. I can't for the life of me reproduce or figure out why these errors are occurring (granted they only occur about 7% of the time, but still, on 10 minute intervals this ends of being a lot of errors).
... View more
04-08-2013
07:02 AM
|
0
|
7
|
987
|
POST
|
According to "Testing access to secured services" section on this page, Carolyn's test should work. I'm however having the same problem and lack of clarification on the issue is frustrating. First, all Esri's documentation points to the token page as http://myserver:6080/arcgis/tokens where as the actual url is http://myserver:6080/arcgis/admin/generateToken. You need to update this in your documentation, and fix the link in the REST services page. Secondly, if I put at the HTTP referrer http://myserver:8080/arcgis/services/myfolder/myservice/MapServer, and generate a token for a user that has access to that map server, I should be able to go to http://myserver:8080/arcgis/services/myfolder/myservice/MapServer?token=mytoken and gain access to the page according to Esri's documentation. As Carolyn pointed out, this doesn't work. If it's not supposed to, fix the "Testing access to secured services" section in your documentation. If I'm not supposed to be using the HTTP Referrer in this way, please let me know and I can use the client IP address instead. Thanks! Jay
... View more
03-12-2013
09:45 AM
|
0
|
0
|
1070
|
POST
|
I spoke too soon - I found it. The geodatabase, msd, and mxd file is located in the arcgis server directory: arcgisserver\directories\arcgissystem\arcgisinput\FolderName\ServiceName.MapServer\extracted\v101. If I delete the server, the data is deleted too.
... View more
02-28-2013
06:07 AM
|
0
|
0
|
524
|
POST
|
I recently published a map from my desktop to my server, and went through the whole "Layer's data source is not registered with the server and data will be copied to the server" thing. This is fine because I'm not using an enterprise geodatabase, and just have a bunch of file geodatabases in a registered folder on my server. The data being copied over was itself a file geodatabase. My question is where is the geodatabase placed when it's copied to the server. I couldn't find it in my registered folder, so is it somewhere else? Is it possible to specify where the geodatabase is placed when copied to the server? I'm trying to keep my server clean, so if I choose to delete the map service, I also want to delete the source data on the server. Thanks, Jay
... View more
02-28-2013
06:01 AM
|
1
|
1
|
1330
|
POST
|
I would like to set up a development environment from our current production environment server (WS 2008 R2, ArcGIS for Desktop Advanced SP1, ArcGIS for Server 10.1 SP1). We installed the Esri software using client provisioning files. I was curious if ArcGIS software is amenable to sysprep and cloning, then readding the new server to the same domain. Will this cause any licensing bug at all? Thanks
... View more
02-21-2013
05:23 AM
|
0
|
3
|
2857
|
POST
|
I would like some assistance on best practices for programmatic (python) geocoding. I have some python scripts that parse various text files (csv, tsv, etc) and/or web pages, and create point feature classes from address information contained therein (currently using Google's geocoding). What would be the best method to problematically using Esri's world geocoder (preferably through creating a Python function) if I have an ArcGIS for Org portal account. All the examples I've seen refer to web applications Here are my thoughts/options: 1. Call http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer for each record I want to geocode. Will I bump up against a rate limit if I try to say, geocode, 1000 records in a script that runs over 30 seconds or so? 2. Generate a token and use that to batch geocode (although I'll still be calling the geocode service once per geocode). How would I do this step? Would I first get the token from this: https://www.arcgis.com/sharing/generateToken?username=yourUserName&password=yourPassword&referer=http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer&expiration=15&f=json or do I have to get a token from my portal URL? and then use the token to call this - through a python POST request: http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?text=searchAddress&f=pjson&token=myToken 3. Would it be better to scratch single geocodes, and just format my addresses into a json string and use esri's batch geocoding functionality? Would that be the same general process as outlined in step 2 except just using "SingleLine" input field? Thanks for your input! Jay
... View more
02-12-2013
06:51 AM
|
0
|
1
|
3719
|
POST
|
Yes, so the method of using the client IP to generate the token and then only the client with that IP can use the token to access secured services worked. However, this isn't an ideal solution if you say want to share the token with others, which is why I'd like to use the HTTP Referrer parameter, but I couldn't get it to work. I was hoping to embed the token in a KML network link (pointing to generateKML on a feature layer) on a Google Earth Enterprise server so people that authenticate to our globe can access the network link (which accesses secure services). Does that make sense? Is there any known problem with the HTTP Referrer parameter for generating tokens? Thanks, Jay
... View more
02-11-2013
05:05 AM
|
0
|
0
|
2505
|
POST
|
So I have tried to generate a token at http://<myserver>:6080/arcgis/admin/generateToken, using the HTTP Referrer parameter, passing it the REST endpoint http://<myserver>:6080/arcgis/rest/services/<myfolder>/<myservice>/MapServer and setting the Expiration field to 30. This REST endpoint is only accessible with the same credentials I used when generating the token. Immediately after getting the token, I tried to test my token by using a web browser and entering http://<myserver>:6080/arcgis/rest/services/<myfolder>/<myservice>/MapServer?f=json&token=<mytoken> The response I get back is {"error":{"code":498,"message":"Invalid Token","details":[]}} However, I was able to get this to work using the Request IP parameter when generating the token. The problem is I would like other folks to access my service with the token. Any advice? Thanks, Jay
... View more
02-08-2013
10:13 AM
|
0
|
3
|
8951
|
POST
|
One question I have about this: is there any way to configure a cluster layer for a feature service so it isn't limited by the 1000 feature return limit on Server? It seems that one of the benefits of clustering would be being able to visualize total number of events in an area, even if the total events are greater than 1000. Jay
... View more
02-01-2013
05:26 AM
|
0
|
0
|
623
|
POST
|
Kelly - unfortunately the app isn't public, but I was able to reproduce on my end using this using Chrome and Firefox. Zooming to the second location (in either order) takes a while to update the tiles. If you look at the NET calls using dev console, you can see it loading tons of tiles... Thanks! <!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" />
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>FeatureLayer On Demand</title>
<link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/esri/css/esri.css">
<style>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
#header {
margin: 2px;
border: solid 4px #224a54;
color:black; font-size:12pt;
text-align:left; font-weight:bold; height:40px;
}
</style>
<script type="text/javascript">var djConfig = {parseOnLoad: true};</script>
<script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.3"></script>
<script type="text/javascript">
dojo.require("esri.map");
dojo.require("esri.layers.FeatureLayer");
dojo.require("dijit.form.Button");
dojo.require("dijit.Dialog");
var map;
function init() {
//Instantiate Map
map = new esri.Map("map", {
basemap: "gray",
center: [-97, 38],
zoom: 5,
navigationMode: "classic"
});
}
function zoomToCA(){
map.centerAndZoom([-118.4075, 33.9424], 18);
}
function zoomToDC(){
map.centerAndZoom([-77.038472, 38.85188],18);
}
dojo.addOnLoad(init);
</script>
</head>
<body class="claro">
<div style="position:relative;float:left; width:100%;height:100%;">
<div id="header" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'top'">
<button data-dojo-type="dijit.form.Button" data-dojo-props="onClick:function(){zoomToCA();}">Zoom to CA</button>
<button data-dojo-type="dijit.form.Button" data-dojo-props="onClick:function(){zoomToDC();}">Zoom to DC</button>
</div>
<div id="map" style="width:100%;height:100%;">
</div>
</div>
</body>
</html>
Jay is your app public? If so can you send the url so I can test? I can't reproduce the issue with my simple test app.
... View more
01-16-2013
04:43 AM
|
0
|
0
|
560
|
POST
|
It's featureLayer.refresh() not map.refresh(). Does that work for you? hmmm, refresh() doesn't seem to do anything. map.refresh(); Or am I using the incorrect syntax ?
... View more
01-15-2013
01:48 PM
|
0
|
0
|
2083
|
Title | Kudos | Posted |
---|---|---|
1 | 09-14-2022 06:39 AM | |
2 | 07-21-2023 07:11 AM | |
1 | 06-23-2022 07:46 AM | |
1 | 12-21-2023 10:59 AM | |
1 | 11-07-2023 08:32 AM |
Online Status |
Offline
|
Date Last Visited |
Tuesday
|