POST
|
Hi All, I am about to develop a simple map application for an organization on a pro bono basis. The organization is under the category of Trust / Society / NGO with reference to 80G of the Income Tax Act, 1961 of India. I am planning to develop the web map by using ESRI Java script API + Database +Django Rest framework. Plz note: 1. The NGO does not own an ArcGIS Server and is not intending to buy one. 2. I am from India and its an Indian NGO. 3. The website is not for any commercial purpose. 4. The web map is just a small component in the website - for data visualization. Given these conditions, is it legal to develop the web application using ESRI Java script API ? Recommendations / answers from ESRI's representatives would be highly appreciated.
... View more
07-25-2016
12:18 PM
|
0
|
1
|
1195
|
POST
|
Hi Everyone ! We are facing some issues with our application. Technology stack involved: ArcGIS Server 10.3 Esri js api 3.13 The legend that comes with our print task is not dynamic. We are using a specific template for our print task. Ex: This is the result from print task. The Extent at which the print task was triggered: We tried fixing this issue by setting legend properties in the items tab by enabling the option --"Only show classes that are visible in the current map extent" . But, the option gets disabled automatically. Kindly suggest your opinion / work around in fixing this issue.
... View more
08-11-2015
03:43 AM
|
0
|
1
|
3507
|
POST
|
Hi Amal, If your requirement is to see the bounds & attributes information in a readable way , i would suggest you to convert from SHP to geojson. If that is the case, you dont really need arcobjects , a simple web application would do.
... View more
07-29-2015
05:53 AM
|
0
|
0
|
3003
|
POST
|
Hi Nigel, You can use the reorderLayer() method of the map class.
... View more
07-29-2015
05:47 AM
|
1
|
2
|
1099
|
POST
|
As mentioned by Jayanta Poddar , You can query the REST Services using Query Related tables. Ex: Query RelatedRecords Example Query performed on the REST Service. and the Relationship query can be performed in the js api using the "RelationshipQuery" class
... View more
05-29-2015
06:23 AM
|
1
|
0
|
204
|
POST
|
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/> <title>Simple Map</title> <link rel="stylesheet" href="http://js.arcgis.com/3.13/esri/css/esri.css"> <style> html, body, { height: 100%; width: 100%; margin: 0; padding: 0; } body { background-color: #FFF; overflow: hidden; font-family: "Trebuchet MS"; } </style> <script src="http://js.arcgis.com/3.13/"></script> <script> var map; var ImgService; var ImgParams; var GPoint; var config = { "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Toronto/ImageServer":[-79.40, 43.64] }; require([ "esri/map", "esri/layers/ArcGISImageServiceLayer", "esri/layers/ImageServiceParameters", "esri/geometry/Point", "dojo/domReady!"], function (Map, ArcGISImageServiceLayer,ImageServiceParameters,Point) { ImgService = ArcGISImageServiceLayer; ImgParams = ImageServiceParameters; GPoint = Point; map = new Map("map", { basemap: "topo", center: [79.267180899999970000, 17.052389000000000000]}); // longitude, latitude }); var demographicsLayer = false; function myFunction() { var layerUrl = document.getElementById("mySelect").value; if(layerUrl != "000"){ if(demographicsLayer){ map.removeLayer(demographicsLayer); } var params = ImgParams(); var demographicsLayer = new ImgService(layerUrl,{ imageServiceParameters: params }); map.addLayer(demographicsLayer); var mapPoint = new GPoint(config[layerUrl]); map.centerAndZoom(mapPoint, 12); } } </script> </head> <body> <div> <div id="map"></div> <select id="mySelect" onchange="myFunction()"> <option value="000">Choose option</option> <option value="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Toronto/ImageServer">test</option> </select> </div> </body> </html>
... View more
05-23-2015
06:22 AM
|
0
|
0
|
583
|
POST
|
Try this code: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/> <title>Simple Map</title> <link rel="stylesheet" href="http://js.arcgis.com/3.13/esri/css/esri.css"> <style> html, body, { height: 100%; width: 100%; margin: 0; padding: 0; } body { background-color: #FFF; overflow: hidden; font-family: "Trebuchet MS"; } </style> <script src="http://js.arcgis.com/3.13/"></script> <script> var map; var Fl; require([ "esri/map", "esri/layers/FeatureLayer", "dojo/domReady!"], function (Map, FeatureLayer) { Fl = FeatureLayer; map = new Map("map", { basemap: "topo", center: [79.267180899999970000, 17.052389000000000000]}); // longitude, latitude }); function myFunction() { var layerUrl = document.getElementById("mySelect").value; var demographicsLayer = new Fl(layerUrl); map.addLayer(demographicsLayer); alert('hello'); } </script> </head> <body> <div> <div id="map"></div> <select id="mySelect" onchange="myFunction()"> <option value="http://localhost:6080/arcgis/rest/services/new/FeatureServer/7">Boundary</option> <option value="http://localhost:6080/arcgis/rest/services/rasterD/sde_sde_f_distr/ImageServer">Fluorine</option> <option value="http://localhost:6080/arcgis/rest/services/rasterD/sde_sde_p_distr/ImageServer">Population</option> <option value="http://localhost:6080/arcgis/rest/services/rasterL/sde_sde_streams/ImageServer">Streams</option> </select> </div> </body> </html>
... View more
05-23-2015
04:08 AM
|
0
|
2
|
583
|
POST
|
Hi Wi, This is a sample code , that does the job . You can still modify it , to make things efficient import arcpy
from arcpy import env
#Configuration goes here
vill_fields = ['Shape_area']
town_fields = ['Sum_area']
env.workspace = r'D:\Geonet\geodbase\village.gdb'
village_List = arcpy.ListFeatureClasses() #pushing all the fc's into a list
town = r'D:\Geonet\geodbase\town.gdb\base'
def findTotalArea(fc):
with arcpy.da.SearchCursor(fc,vill_fields) as cursor:
varea = 0
for row in cursor:
varea = varea+row[0]
return varea
for fc in village_List:
farea = findTotalArea(fc)
with arcpy.da.UpdateCursor(town,town_fields,"town_name = '" + fc + "'" ) as cursor:
for row in cursor:
row[0] = farea
cursor.updateRow(row)
... View more
05-17-2015
11:00 PM
|
1
|
1
|
879
|
POST
|
Hi Shikhar, Case 1: If the services that you are accessing are known to you , you will probably know the services that are published. So , you can query them using urllib/ urllib2 like : import urllib2
url = "http://YourUrl/rest/services/sample/MapServer/0/query?where=1%3D1&f=pjson"
data = urllib2.urlopen(url).read()
print data If you are getting results , then it is not secured. If you are getting result as '{\n "error": {\n "code": 499,\n "message": "Token Required",\n "details": []\n }\n}' , or any such error , then it is secured. Case 2: If the services that you are accessing is not known to you and you can do a simple analysis using the following URL: http://YourURL/rest/services/?f=pjson and conclude if the services are secure or not secure.
... View more
05-15-2015
04:22 AM
|
2
|
0
|
405
|
POST
|
If you can share the code , we can try to figure out whats going wrong...
... View more
05-10-2015
02:43 AM
|
0
|
2
|
410
|
POST
|
I am really sorry , the above mentioned code will work only if you are creating your own application. Assuming that you are using AGOL with an organisational account, you can set the hyperlink to a specific layer by the following method while creating the specific web map. Step 1: After adding the respective layer while creating the web map , Select the specific layer and choose configure pop-up Step 2: - Select "A Custom attribute display" under display. - click configure Step 3: - select the hyperlink option. - set the URL with the specific field ( http://www.yourwebsite.com/{specificField} ) - set the description , click ok - Save the Pop-up. Now , your popup will have the specific hyperlink.
... View more
05-07-2015
11:32 PM
|
0
|
3
|
3485
|
POST
|
Hi Chukwuemeka, From the comparing the input table and output table , it is hard for me to find a condition using which the output table is generated. If you can explain the condition & logic involved in detail , it will be helpful.
... View more
05-07-2015
10:31 PM
|
0
|
0
|
641
|
POST
|
additionally you can cross check by : with arcpy.da.SearchCursor("SR2",['SHAPE@X','SHAPE@Y']) as cursor:
for row in cursor:
print row[0]
print row[1] It will print : -4.810426852 52.654352152
... View more
05-07-2015
02:53 AM
|
1
|
0
|
7123
|
POST
|
Hi Chris, try the following code : import arcpy
inputSRS = 'Projected Coordinate Systems/National Grids/Europe/British National Grid' # Projected
outputSRS = 'Geographic Coordinate Systems/World/WGS 1984' # Geographic
trsOut = 'OSGB_1936_To_WGS_1984_Petroleum'
srIn = arcpy.SpatialReference(inputSRS)
srOut = arcpy.SpatialReference(outputSRS)
pt = arcpy.Point()
ptGeoms = []
pt.X = 210000
pt.Y = 310000
ptGeoms.append(arcpy.PointGeometry(pt,srIn ))
arcpy.CopyFeatures_management(ptGeoms, 'base')
arcpy.Project_management('base',trsOut, srOut) It will first create a Feature named 'base' with input SRS and then creates your output feature with output SRS. You can set the environment to save the output in a specific location.
... View more
05-07-2015
02:48 AM
|
1
|
3
|
7123
|
POST
|
Hi Chukwuemeka, If these are the attributes of a feature class , the following code might help : import arcpy
fc = "c:/data/base.gdb/construct"
fields = ('TestDate', 'Construction')
with arcpy.da.UpdateCursor(fc, fields) as cursor:
for row in cursor:
if row[0] < row[1]:
cursor.deleteRow () Hope you would find this useful.
... View more
05-07-2015
12:52 AM
|
1
|
1
|
641
|
Title | Kudos | Posted |
---|---|---|
1 | 05-29-2015 06:23 AM | |
1 | 05-06-2015 07:38 AM | |
1 | 07-29-2015 05:47 AM | |
1 | 05-07-2015 02:48 AM | |
1 | 05-07-2015 02:53 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|