POST
|
sorry its variable table only. I tried by all way.. i.e. with r without r. I tried giving path in different way.but not working in cmd.
... View more
12-23-2014
01:49 AM
|
0
|
1
|
1265
|
POST
|
I have posted the functional part which is not working. I have only 1 python installed on my machine. python 2.6 for arcgis 10.0
... View more
12-22-2014
09:33 PM
|
0
|
0
|
1265
|
POST
|
Yes I have already included import arcpy. Its not working in when i run script from command prompt.
... View more
12-22-2014
04:24 AM
|
0
|
7
|
1265
|
POST
|
Hello all, My python script runs well and returns all tables from mdb with arcpy.ListTables() command when i run a script in IDLE(default IDE) or python window from arcmap. But when I try to run the same script from cmd arcpy.ListTables() returns blank list []. What could be the problem?And what is the solution? As I am calling this script in my C# desktop application. import xlrd
import datetime
import os
import sys
#sys.path.append("C:\Program Files\ArcGIS\Desktop10.0\arcpy")
import arcpy
#arcpy.ResetEnvironments()
arcpy.env.workspace = r"D:/Final/gdb_workspace/New Personal Geodatabase.mdb"
#Get and print a list of tables
tables = arcpy.ListTables()
print tables
for table in tables:
print table This is my simple code to list tables.I want to insert data from excel file to a particular table from this personal gdb. When I run this script using cmd(out of arcgis environment) its not returning tables. Is this possible to achieve and how? Or do I need to use any geoprocessing service?Any other way to achieve this? I am able to insert data into mdb if i run the script in IDLE or python window from arcmap. Please tell me the right way to do this task.
... View more
12-22-2014
02:37 AM
|
0
|
12
|
7723
|
POST
|
I have added a separate point layers on my map in silverlight web application.I have two separate point layer s one for image and one for sound data. When user clicks on a particular point(image point layer), corresponding image should get open in different viewer kind of control and user should be able to download that image. When user click on point (point layer for sound) I want to open corresponding sound file. How should I achieve this.Is there any sample?or any libraries?
... View more
12-07-2014
11:21 PM
|
0
|
1
|
2509
|
POST
|
Can anyone plz tell me how to do this exactly.As I tried different methods like using silverPDF and some samples. The problem with silverPDF is that I cant export graphics layer or other UI component. Which is the best way to achieve this? Do I need to use any geoproccessing service or python script?
... View more
12-02-2014
11:47 PM
|
0
|
2
|
3171
|
POST
|
Ken Buja ,Riyas Deen , Here I found the cause of my problem- After clicking identify button I had changed my cursor(custom cursor), thus clicking on map with changed cursor resulted in shifting my original map point. Also if I change my cursor to any of the standard cursor value provided in api, it takes the exact map point. But now the problem is I cant use custom cursor. Any solution for this?
... View more
08-06-2014
02:18 AM
|
0
|
0
|
519
|
POST
|
Riyas Deen yes ..was looking for the similar kind of code,using differed list.
... View more
08-06-2014
02:09 AM
|
0
|
0
|
519
|
POST
|
https://community.esri.com/thread/106054?sr Hello Ken Buja Yes I am not getting the result at exact location where it is clicked. As mentioned by Riyas Deen I tried with different options. Also if I set tolerance value low for getting result form one service,then I dont get results from another service. One service need low tolerance while other need high tolerance. Also I am facing problem with populating results in info-window for multiple services with mutiple feature layers. Plz check the above link,I have posted my code there.
... View more
08-05-2014
10:29 PM
|
0
|
2
|
519
|
POST
|
I m executing identify task on multiple services,thus getting results of all services, i want to combine all results to show in a infowindow. map.on('click',function(event){ var identify_result=[]; var resultDef=[]; var callback_counter=0; var deferred; var counter_res=0; map.setCursor("Default"); if(viewData_clicked){ var def = new dojo.Deferred(); dojo.forEach(layerInfo,function(id){ var url = map.getLayer(id).url; identifyTask = new IdentifyTask(url); identifyParams = new IdentifyParameters(); identifyParams.tolerance=10; identifyParams.returnGeometry = true; identifyParams.layerIds = map.getLayer(id).visibleLayers; identifyParams.layerOption = IdentifyParameters.LAYER_OPTION_VISIBLE; identifyParams.width = map.width; identifyParams.height = map.height; identifyParams.geometry = event.mapPoint; identifyParams.mapExtent = map.extent; deferred = identifyTask //identifyTask .execute(identifyParams) .addCallback(function (response) { console.log("response",response); return arrayUtils.map(response, function (result) { var feature = result.feature; var layerName = result.layerName; // map.infoWindow.setTitle(layerName); var content = "<tr bgcolor='grey'><th><b>Field Name</b></th><th><b>Value</b></th></tr>"; $.each(feature.attributes,function (key,value){ content +="<tr><td>"+ key+"</td><td><b>"+value+"</b></td></tr>"; }); // map.infoWindow.setContent("<table border='1'>"+content+"</table>"); var infotemplate = new InfoTemplate(layerName,"<table border='1'>"+content+"</table>"); feature.setInfoTemplate(infotemplate); return feature; }); });//execute callback_counter++; identify_result.push(deferred); }); //forEach //if(layerInfo.length === callback_counter){ //var def = identifyTask.execute(); var res_features=[]; dojo.require("dojo.promise.all"); dojo.forEach(identify_result,function(i){ counter_res++; var def = dojo.promise.all() def.then(function(result) { //res=result; dojo.forEach(result,function(element){ dojo.forEach(element,function(j){ res_features.push(j); }); }); if((identify_result.length === counter_res) && (res_features.length > 0) ){ console.log("identify_result.length",identify_result.length); console.log("counter_res",counter_res); console.log("result",result); console.log("res_features",res_features); var defrd = new dojo.Deferred(); defrd = deferred; defrd.results=res_features; console.log(defrd); //map.infoWindow.setFeatures([defrd]); //map.infoWindow.show(event.mapPoint); } }); });
... View more
08-05-2014
10:14 PM
|
0
|
2
|
2048
|
POST
|
Hello everyone, After clicking on map ,my identify task doesnt returns result from layers where the exact map point is. Sometimes it works for all feature layers in one service.But mostly it doesnt work as expected. It returns result from some of the feature layers and not from all feature layer whose features are present at click point.
... View more
08-04-2014
09:24 PM
|
0
|
6
|
979
|
POST
|
hello Andy Gup , I wanted to save the whole json string as it is in database. Yes finally I did the same. Thanks for ur reply,now m sure that m going in a correct way.
... View more
08-04-2014
09:12 PM
|
0
|
0
|
483
|
POST
|
Hello Akshay, I tried to add my feature collection to feature layer as per this sample,but the feature layer is not getting displayed on a map, may be I am missing something. It would be better if i use graphics layer.
... View more
07-22-2014
11:29 PM
|
0
|
0
|
179
|
POST
|
I want to get the json response of graphics layer.How do I convert it. if I use JSON.stringify(graphics_layer); I get an error of "converting circular structure to json". Is there any other way or option.
... View more
07-22-2014
12:26 AM
|
0
|
2
|
4143
|
Title | Kudos | Posted |
---|---|---|
1 | 07-15-2014 02:54 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|