|
POST
|
It's probably not working as you won't be able to read the featureSet object which is assigned outside the scope of arrayUtil.map function. So you need to pass "this" context using lang.hitch.So add module "dojo/_base/lang" as lang and try following: featureSet = results; var data = arrayUtils.map(results.features, lang.hitch(this,function (feature) { return { "id": feature.attributes[featureSet.fields[0].name], "NAME": feature.attributes[featureSet.fields[1].name] { }));
... View more
01-30-2015
01:04 PM
|
1
|
1
|
1809
|
|
POST
|
ArcMap/ArcCatalog will automatically create a schema.ini. Please look Adding an ASCII or text file table In absence of schema.ini arcpy.TableToTable_conversion tool might give unexpected results especially when are executing a standalon python script. You can provide the field_mapping parameter or consider creating your own schema.ini file.
... View more
01-29-2015
11:06 AM
|
2
|
0
|
1411
|
|
POST
|
Jake, You need to assign the Ids in requestSucceeded function something like : var oid = 0; array.forEach(response.items, function(item) { var attr = {}; oid = oid + 1; attr["description"] = item.description; attr["title"] = item.title ? item.title : "Flickr Photo"; attr["ObjectID"] = oid; var geometry = new Point(item); var graphic = new Graphic(geometry); graphic.setAttributes(attr); features.push(graphic); }); Other then that, please look at Kelly's reply for zoom to point feature.
... View more
01-27-2015
01:54 PM
|
0
|
0
|
1423
|
|
POST
|
It might help us to understand the problem in the script if you could share the exact error that you are getting. Secondly I am not sure if you could call DeleteRow on join. This is what I will try: 1. After Line 13, Update some field with a value that is unique to filter out the records in the table later 2. Remove join and filter the records based on the value that I have updated in step 3. Call DeleteRows to delete the filtered records and proceed with remaining part at Line 22.
... View more
01-26-2015
07:56 AM
|
0
|
1
|
2590
|
|
POST
|
Have you enabled background processing in Geoprocessing Options to make it run in the background? I tested a tool in python toolbox with a popup message. It works nicely only when self.canRunInBackground = True and background processing is enabled.
... View more
01-22-2015
02:21 PM
|
0
|
0
|
4820
|
|
POST
|
It's just an example and can be modified to make sure it doesn't split words. I would stick to label stacking as as a better approach unless I need complex text parsing.
... View more
01-22-2015
06:50 AM
|
0
|
0
|
3231
|
|
POST
|
I am glad that your issue is resolved. I use chrome browser's "Developer Tools" . You can open it by pressing F12 and then go to Network tab. It will list all the request that have been processed. Then you just need to look for the request that you want to investigate. It will give the request and it's response. Other browsers also have more or less similar features.
... View more
01-21-2015
03:06 PM
|
1
|
1
|
2134
|
|
POST
|
If nothing changes in prior year records then you can throw a where clause to delete only current year records. Then follow your process to import the csv.
... View more
01-21-2015
02:46 PM
|
0
|
0
|
2590
|
|
POST
|
I looked at Tim's JS Fiddle sample. On print it's giving following error: {"error":{"code":400,"message":"Unable to complete operation.","details":["Error executing tool.: Layer \"graphicsLayer4\": Unsupported 'style' in symbol: esriSLSShortDashDotDot.\nFailed to execute (Export Web Map).\nFailed to execute (Export Web Map Task)."]}} Changing the circle's line symbol to solid worked. Try it at your end.
... View more
01-21-2015
02:31 PM
|
0
|
3
|
2134
|
|
POST
|
You can try using label expression to break up the resulting text based on some character width. Following is an example script: def FindLabel ( [myField] ):
result = ""
counter = 1
for char in [myField]:
result = result + char
if ( counter % 5 == 0):
result = result + '\n'
counter = counter + 1
return result Please note line 6, in this snippet character width is 5. HTH
... View more
01-21-2015
02:20 PM
|
0
|
2
|
3231
|
|
POST
|
OnActivate will be called when you activate the tool. But if you already have your tool active it won't do anything. So you need to set current tool as null once you are done with your logic. Something like this: protected override void OnMouseDown(MouseEventArgs arg)
{
try
{
//get map coordinate
}
catch(ex)
{
//handle exception
}
finally
{
ArcMap.Application.CurrentTool = null;
}
} Hope that it gives you what you want.
... View more
01-21-2015
01:29 PM
|
2
|
1
|
1651
|
|
POST
|
Generally simple refresh should work for javascript changes, but you can give try to CTRL+F5 try if this works or clearing the browser cache.
... View more
01-20-2015
10:10 AM
|
0
|
0
|
5585
|
|
POST
|
You are calling show message in tool's constructor and it will show only once. You might want to look at OnActivate method/event.
... View more
01-20-2015
09:58 AM
|
0
|
0
|
1651
|
|
POST
|
Each polygon graphic is having attributes information that gives the FacilityID. Which is nothing but the id of the point that you are adding in the facilities. You can add attribute information in point and use that to query it's polygon. Thanks, Mahtab
... View more
12-16-2014
12:16 PM
|
0
|
1
|
2159
|
|
POST
|
Hi Joe, I think it is returning the bookmarkitem ( name and it's extent). Please look Bookmark Widget(Read-only Bookmarks) Thanks, Mahtab
... View more
12-16-2014
10:32 AM
|
0
|
0
|
891
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-15-2015 08:33 AM | |
| 1 | 09-16-2015 06:33 AM | |
| 1 | 09-18-2015 06:46 AM | |
| 1 | 09-10-2015 01:41 PM | |
| 1 | 09-22-2015 07:32 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|