POST
|
Hi , I need to find if the given lat, long point is falling under a SDE Polygon featureclass or not using arcpy. I am using SelectLayerByLocation_management. But, it is running slow (4 sec). I need to make this as fast as possible (in milliseconds). Can anyone help me?
... View more
09-13-2017
12:44 AM
|
0
|
0
|
419
|
POST
|
Hi, I am trying to check if my search location is falling under a coverage polygon feature class or not. I want to do this using arcpy and publish as geoprocessing service.?. I am using SelectbyLocation tool, but its performance is slower then actual identify task on the service. Can any one help me?
... View more
08-16-2017
12:02 AM
|
0
|
0
|
558
|
POST
|
Hi, I am opening a widget B from another widget A on a button click. But only if widget B is added to widget menu then only its opening from widget A. I want to make widget B invisible in widget menu and directly open from widget A. Please help me Thanks, Srinivas
... View more
10-07-2015
03:00 AM
|
0
|
0
|
2473
|
POST
|
here i am giving my code djConfig={parseOnLoad:true} dojo.require("esri.map"); dojo.require("esri.tasks.query"); dojo.require("dojox.grid.DataGrid"); dojo.require("dojo.data.ItemFileReadStore"); var map, queryTask, query; var symbol, infoTemplate; var features=[]; var grid, store; function init() { //esri.config.defaults.io.alwaysUseProxy = true; dojo.connect(grid, "onRowClick", onRowClickHandler); //create map map = new esri.Map("mapDiv"); // map = new esri.Map("mapDiv"); // esri.config.defaults.io.proxyUrl = "http://appd04/server/proxy.ashx"; // esri.config.defaults.io.alwaysUseProxy = true; //create and add new layer var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://appd04/ArcGIS/rest/services/IJ/MapServer"); map.addLayer(layer); //Listen for click event on the map, when the user clicks on the map call executeQueryTask function. // dojo.connect(map, "onClick", executeQueryTask); //build query task queryTask = new esri.tasks.QueryTask("http://appd04/ArcGIS/rest/services/IJan/MapServer/7"); //Can listen for onComplete event to process results or can use the callback option in the queryTasks.execute method. //dojo.connect(queryTask, "onComplete", showResults); //build query filter query = new esri.tasks.Query(); query.outSpatialReference=new esri.SpatialReference({wkid:4326}); query.returnGeometry = true; query.outFields = ["OBJECTID","LOCALITY", "PIN"]; //create the infoTemplate to be used in the infoWindow. //All ${attributeName} will be substituted with the attribute value for current feature. infoTemplate = new esri.InfoTemplate("${LOCALITY}", "Pin Code: ${PIN}"); symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT, new dojo.Color([255,0,0]), 2), new dojo.Color([255,255,0,0.5])); } function executeQueryTask() { //onClick event returns the evt point where the user clicked on the map. //This is contains the mapPoint (esri.geometry.point) and the screenPoint (pixel xy where the user clicked). //set query geometry = to evt.mapPoint Geometry // query.geometry = evt.mapPoint; var Locality=null; var pinCode = null var road = null; var query1 = ""; if (document.getElementById('locality').value != "") { if (query1 != "") query1 = query1 + " & " + "LOCALITY='" + document.getElementById('locality').value + "'"; else query1 = "LOCALITY='" + document.getElementById('locality').value + "'"; } else { query1 = query1 + ""; } if (document.getElementById('pin').value != "") { if(query1!="") query1 = query1 + " & " + " PIN=" + document.getElementById('pin').value; else query1 = "PIN=" + document.getElementById('pin').value; } else { query1 = query1 + ""; } if (document.getElementById('road').value) { if (query1 != "") query1 = query1 + " & " + "BLDGROAD='" + document.getElementById('road').value + " '"; else query1 = "BLDGROAD='" + document.getElementById('road').value + "'"; } else { query1 = query1 + ""; } //if (document.getElementById('locality').value != "" && document.getElementById('pin').value != "" && document.getElementById('road').value) { // query.where = "LOCALITY='" + document.getElementById('locality').value + "' && PIN='" + document.getElementById('pin').value + "' && BLDGROAD='" + document.getElementById('road').value + "'"; //} query.where = query1; //Execute task and call showResults on completion queryTask.execute(query, showResults); } function showResults(featureSet) { //remove all graphics on the maps graphics layer map.graphics.clear(); var items = []; //QueryTask returns a featureSet. Loop through features in the featureSet and add them to the map. for (var i=0, il=featureSet.features.length; i<il; i++) { //Get the current feature from the featureSet. //Feature is a graphic items.push(featureSet.features.attributes) features.push(featureSet.features); // var graphic = featureSet.features; // graphic.setSymbol(symbol); // //Set the infoTemplate. // graphic.setInfoTemplate(infoTemplate); //Add graphic to the map graphics layer. //map.graphics.add(graphic); //map.setExtent(graphic.geometry.getExtent(),true); } var data = { identifier: "OBJECTID", //This field needs to have unique values label: "OBJECTID", //Name field for display. Not pertinent to a grid but may be used elsewhere. items: items }; //Create data store and bind to grid. store = new dojo.data.ItemFileReadStore({ data:data }); grid.setStore(store); grid.setQuery({ OBJECTID: '*' }); } function onRowClickHandler(evt){ var clickedTaxLotId = grid.getItem(evt.rowIndex).OBJECTID; var selectedTaxLot; for (var i=0, il=features.length; i<il; i++) { var currentGraphic = features; currentGraphic.setSymbol(symbol); map.graphics.clear(); map.graphics.add(currentGraphic); if ((currentGraphic.attributes) && currentGraphic.attributes.OBJECTID == clickedTaxLotId){ selectedTaxLot = currentGraphic; break; } } var taxLotExtent = selectedTaxLot.geometry.getExtent(); map.setExtent(taxLotExtent); } // dojo.addOnLoad(init); function Hid() { if (map == null) { document.getElementById('parm').style.visibility = 'visible'; document.getElementById('mapDiv').style.visibility = 'visible'; dojo.addOnLoad(init); } } for all browsers i am getting same issue.....
... View more
04-06-2010
09:10 PM
|
0
|
0
|
349
|
POST
|
When I have zoom to a graphic on the map by clicking on a grid row, it is zooming perfectly. but when i zoom in or out with mouse wheel only graphics are showing but map is disappearing. I am attaching the problem screen shots also...... please help me the earliest
... View more
04-06-2010
05:22 AM
|
0
|
2
|
1588
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|