POST
|
Good Morning Everyone, I am working on a project and i am making a desktop based application using Python. I have made models with ArcGIS 10 and with Tkinter i am making GUI. I wanted to display a shapefile when i click on submit button. How can i display a shapefile with python code? With Python Shapefile Library we can read and write into the shapefile, but that is not i want. Please help me with this. Regards Pratik Mehta
... View more
10-28-2012
09:14 PM
|
0
|
2
|
11037
|
POST
|
Hello, i have written a javascript code for closest facility, but in my code if i add 10 facilities it is working perfectly but after adding one more facility it is not showing me any route. I have around 430 facilities and i will have to add them all. What should i do? Pratik Mehta
... View more
07-17-2012
09:39 AM
|
0
|
1
|
2315
|
POST
|
Hello, I have attached code here, it is sample for closest facility. I dont get route from incident to facility. My closest facility service works perfectly in service directory. I get this message dojo.io.script.jsonp_dojoIoScript3._jsonpCallback({"error":{"code":500,"message":"Error solving closest facility","details":["Time attribute specified for directions engine does not exist in network dataset."]}}); Now how to overcome with this problem? Please note that i do not have time data in my network, i am using only length. Please help me as fast as you can. Pratik M
... View more
07-02-2012
02:33 AM
|
0
|
1
|
2663
|
POST
|
Hello, I have attached code here, it is sample for closest facility. I dont get route from incident to facility. My closest facility service works perfectly in service directory. I have uploaded "proxy.ashx" also on my local .NET server. I do not get any errors, only warnings i get. Whenever i click i can see incident and by putting alert() i can get X,Y of that point too. Please help me with this. Pratik M
... View more
06-28-2012
10:08 PM
|
0
|
0
|
552
|
POST
|
Hello Shreyans, I am developing same thing with ArcGIS Javascript API. Your code is very helpful but i wanted to know that did you solve this problem? (Means for >3 places?) Can you please mail me on pratik_s_mehta@yahoo.co.in? I need some help from you. I am not able to send you direct message here so. Please, i am getting some difficulty in your code. And i need to finish this by 1st of July. Please send me your email id so that i can contact you. Pratik M.
... View more
06-27-2012
01:57 AM
|
0
|
0
|
120
|
POST
|
Hello everyone, I just wanted to know that can we add two network layers [New Closest Facility and New Route] in single .mxd file and if we load it as map service then will it work? Or we must have only one network layer in .mxd file? Pratik M
... View more
06-26-2012
08:56 PM
|
0
|
1
|
587
|
POST
|
Hello, I get following warnings when i load my HTML page which contains address locator javascript code. If there any problem with my javascript api or dojo? I am using <style type="text/css"> @import "http://serverapi.arcgisonline.com/jsapi/arcgis/2.0/js/dojo/dijit/themes/tundra/tundra.css"; </style> for theme. I have also downloaded JavaScript Api 3.0 but i havent used it locally yet. Please help me. Expected declaration but found '#zoom'. Skipped to next declaration. Expected declaration but found '#display'. Skipped to next declaration. Expected declaration but found '#vertical-align'. Skipped to next declaration. Expected declaration but found '#zoom'. Skipped to next declaration. Expected declaration but found '#display'. Skipped to next declaration. Unknown property 'box-sizing'. Declaration dropped. Expected declaration but found '#zoom'. Skipped to next declaration. Expected declaration but found '#display'. Skipped to next declaration. Expected declaration but found '#vertical-align'. Skipped to next declaration. Unknown property 'zoom'. Declaration dropped. Expected declaration but found '#overflow'. Skipped to next declaration. Expected declaration but found '#overflow'. Skipped to next declaration. Expected declaration but found '#vertical-align'. Skipped to next declaration. Expected color but found 'auto'. Expected color but found '-webkit-focus-ring-color'. Expected end of value but found '-webkit-focus-ring-color'. Error in parsing value for 'outline'. Declaration dropped. Error in parsing value for 'filter'. Declaration dropped. Error in parsing value for 'filter'. Declaration dropped. Unknown property '-moz-opacity'. Declaration dropped. Error in parsing value for 'filter'. Declaration dropped. Unknown property '-moz-border-radius'. Declaration dropped. Error in parsing value for 'filter'. Declaration dropped. Error in parsing value for 'padding'. Declaration dropped. Expected declaration but found '#zoom'. Skipped to next declaration. Expected declaration but found '#display'. Skipped to next declaration. Error in parsing value for 'filter'. Declaration dropped. Error in parsing value for 'top'. Declaration dropped. Error in parsing value for 'filter'. Declaration dropped. Unknown property '-moz-border-radius'. Declaration dropped. Unknown property '-moz-opacity'. Declaration dropped. Error in parsing value for 'filter'. Declaration dropped. Expected declaration but found '#background'. Skipped to next declaration. Expected declaration but found '#display'. Skipped to next declaration. Expected declaration but found '#background-image'. Skipped to next declaration. Expected declaration but found '#background'. Skipped to next declaration. Error in parsing value for 'filter'. Declaration dropped. Unknown property 'zoom'. Declaration dropped. Expected color but found 'invert'. Expected end of value but found 'invert'. Error in parsing value for 'outline'. Declaration dropped. Expected color but found 'none'. Error in parsing value for 'background-color'. Declaration dropped. Unknown property 'zoom'. Declaration dropped. Unknown property '-moz-border-radius'. Declaration dropped. Error in parsing value for 'top'. Declaration dropped. Unknown property '-moz-border-radius'. Declaration dropped. Unknown property 'zoom'. Declaration dropped. Error in parsing value for 'margin-left'. Declaration dropped. Expected declaration but found '#zoom'. Skipped to next declaration. Error in parsing value for 'filter'. Declaration dropped. Unknown property '-moz-border-radius'. Declaration dropped. Unknown property '-moz-box-shadow'. Declaration dropped. Unknown property '-moz-border-radius'. Declaration dropped. ...rder-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-ra... jsapi.css (line 39, col 45) Unknown property '-moz-border-radius'. Declaration dropped. -moz-border-radius: 9px; jsapi.css (line 55, col 22) Unknown property '-moz-box-shadow'. Declaration dropped. -moz-box-shadow: 0 0 0.5em #BBBBBB; -webkit-box-shadow: 0 0 0.5em #BBBBBB; jsapi.css (line 58, col 19) Use of getAttributeNode() is deprecated. Use getAttribute() instead. Use of attributes' specified attribute is deprecated. It always returns true. Error in parsing value for 'width'. Declaration dropped. Expected end of value but found 'height'. Error in parsing value for 'height'. Declaration dropped.
... View more
06-25-2012
11:08 PM
|
0
|
1
|
3894
|
POST
|
"NetworkError: 503 Service Unavailable - http://gise-lab-int1:8399/arcgis/rest/services/Test3/MapServer?f=json&dpi=96&transparent=true&format=png8&callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback" MapSer...allback dojo.io.script error undefined I am getting this error when i click on button.
... View more
06-25-2012
06:27 AM
|
0
|
0
|
146
|
POST
|
Hello, i am using this code, which shows me my map layer and other layouts too. But when i click on button nothing happens. I am not getting any error either.. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=7, IE=9" /> <title>Find Address</title> <style type="text/css"> @import "http://serverapi.arcgisonline.com/jsapi/arcgis/2.6/js/dojo/dijit/themes/tundra/tundra.css"; </style> <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.6"></script> <script type="text/javascript"> dojo.require("esri.map"); dojo.require("esri.tasks.locator"); var map, locator; function init() { map = new esri.Map("map", { extent: new esri.geometry.Extent(72.711194, 18.901901, 73.223254, 19.316618, new esri.SpatialReference({wkid:4326})) }); var DynamicMapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://gise-lab-int1:8399/arcgis/rest/services/Test3/MapServer"); map.addLayer(DynamicMapServiceLayer); locator = new esri.tasks.Locator("http://gise-lab-int1:8399/arcgis/rest/services/BusStops1/GeocodeServer"); dojo.connect(locator, "onAddressToLocationsComplete", showResults); } function locate() { map.graphics.clear(); var address = {"SingleLine":dojo.byId("address").value}; var options = { address:address, searchExtent: map.extent } locator.outSpatialReference= map.spatialReference; locator.addressToLocations(options); } function showResults(candidates) { var candidate; var symbol = new esri.symbol.SimpleMarkerSymbol(); var infoTemplate = new esri.InfoTemplate("Location", "Address: ${address}<br />Score: ${score}<br />Source locator: ${locatorName}"); symbol.setStyle(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE); symbol.setColor(new dojo.Color([153,0,51,0.75])); //var points = new esri.geometry.Multipoint(map.spatialReference); for (var i=0, il=candidates.length; i<il; i++) { candidate = candidates; if (candidate.score > 70) { var attributes = { address: candidate.address, score: candidate.score}; var graphic = new esri.Graphic(candidate.location, symbol, attributes, infoTemplate); map.graphics.add(graphic); map.graphics.add(new esri.Graphic(candidate.location, new esri.symbol.TextSymbol(attributes.address).setOffset(0, 8))); points.addPoint(candidate.location); } } map.setExtent(points.getExtent().expand(3)); } dojo.addOnLoad(init); </script> </head> <body class="tundra"> Address : <input type="text" id="address" size="60" value="Backbay Depot, Hiranandani Estate (Thane)" /> <i>(Point1, Point2)</i> <input type="button" value="Locate" onclick="locate()" /><br /> <br /> <div id="map" style="width:800px; height:600px; border:1px solid #000;"></div> </body> </html> I am using ArcGIS Server 10. To see where i am getting problem i was using alert() and i found that it doesnt go in loop. Please i need to solve it in 2-3 days only. please help me fast.. Pratik M
... View more
06-25-2012
06:04 AM
|
0
|
1
|
502
|
POST
|
Hello, I have already created web application with ArcGIS Manager. It has Network Layer also. I want to develop application using java script API. I want to try my services in sample Javascript API codes for New Route. I copy my MapServer and NAServer there but i do not get any result. Can anyone help me where to paste our services so that we can get results? "http://gise-lab-int1:8399/arcgis/sdk/rest/services/Test1/MapServer/NAServer/Route" This is my address for NAServer. please help me if you can. Pratik M
... View more
06-18-2012
03:54 AM
|
0
|
0
|
685
|
POST
|
Hello: I am making one web based application for bus routes which should be accessed from browser. I have already made network dataset and address locator which works perfectly with in built functionality of network analyst extension. I have not used ArcGIS Server, but i read somewhere that from arcCatalog we can upload our .mxd and locator on server. I am planning to use Javascript API for development. Can anyone suggest me the steps to do after uploading resources in ArcGIS Server? Thank you in advance. Pratik Mehta
... View more
06-04-2012
10:39 PM
|
0
|
0
|
408
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|