|
POST
|
Hi Xavier, Not sure if there is any readily available tool to do this. Attached script will do this for you. Add a python script with two parameters feature layer and field (derived from feature layer). Point src for the script to attached script.
... View more
09-02-2014
06:47 PM
|
0
|
0
|
571
|
|
POST
|
Hi Ia, Yes when i say attribute it's the column of the feature class that you see in arcmap. There has to be someway of identifying the image against feature. It can be an attribute field or a pattern like the images will have the same name as your feature class OBJECTID and will always be placed at a particular folder. This way you can build a logic around this to get your IMAGEURL.
... View more
09-02-2014
05:25 PM
|
1
|
0
|
357
|
|
POST
|
Hi Mathew, I doubt you can use the elevation profile chart as mediaInfo property. The chart it self is embedded within the widget. If the widget is exactly what you want, then consider my suggestion earlier. create a geoprocessing task with request and response similar to the elevation GP task used in the sample. Only the geprocessing task itself will perform a query on your relationship class and return the response as featureset with Z and M values.
As long as your GP task response is similar to response mentioned here Profile—ArcGIS REST API: Elevation Analysis services | ArcGIS for Developers you should be good.
Hope this helps.
... View more
09-02-2014
05:22 PM
|
0
|
0
|
2310
|
|
POST
|
I prefer storing my images within a folder in my web site and storing relative location URL as an attribute in feature class. This way I have flexibility to update / replace the images anytime without touching my data or code.
... View more
09-02-2014
07:45 AM
|
0
|
2
|
1739
|
|
POST
|
Worked straight away for me. Sharing the whole deck again, including your new shape files. Please be mindful of circleShapeFile @ line 15 in radius of curvature.py, you should point it to location of Circle_project shape file.
... View more
09-02-2014
07:35 AM
|
0
|
2
|
1557
|
|
POST
|
Not a problem at all xavier. This is interesting enough to keep me hooked. Can you send across your shape file?
... View more
09-02-2014
06:47 AM
|
0
|
4
|
1557
|
|
POST
|
Lets make this quick. Can you install team viewer and share your partner id and password to my email id?
... View more
09-02-2014
06:29 AM
|
0
|
6
|
1667
|
|
POST
|
Interesting, Can you confirm your shape file XY_Project contains Shape and NoLigne fields?
... View more
09-02-2014
06:05 AM
|
0
|
8
|
1667
|
|
POST
|
Hi Ia, You need to set mediaInfos in popup template, in the below sample IMAGEURL will be the attribute which contains the url of the associated image for your points.
var template = new PopupTemplate({
title: "Boston Marathon 2013",
description: "{STATE_NAME}: {Percent_Fi} of starters finished",
fieldInfos: [{ //define field infos so we can specify an alias
fieldName: "Number_Ent",
label: "Entrants"
},{
fieldName: "Number_Sta",
label: "Starters"
},{
fieldName: "Number_Fin",
label: "Finishers"
}],
mediaInfos:[{ //define the bar chart
caption: "",
type:"image",
value: {
sourceURL: "{IMAGEURL}"
}
}]
});
... View more
09-02-2014
04:15 AM
|
0
|
1
|
1739
|
|
POST
|
Hi Ahmed, If a user has select privilege on a feature class then arcmap will allow the user to add the FC as layer. If you can add a layer to arcmap then there is nothing preventing the user from exporting the FC out. Exporting a feature class requires select privilege on the FC, which the user already has. Export is nothing but select and insert on new FC.
... View more
09-02-2014
02:23 AM
|
0
|
0
|
2452
|
|
POST
|
Hi Ia, What do you mean by showing image of the point, is it an image associated to the point or image of the point location on the map?
... View more
09-02-2014
02:14 AM
|
0
|
3
|
1739
|
|
POST
|
Hi David, I would recommend having one in clause over multiple or clauses. Replace your build where clause section with below line.
if (erven.length > 0) {
var myWhere = local_Authority_Prefix + "_erf_no in ('" + erven.join("','") + "')";
}
... View more
09-01-2014
07:23 PM
|
0
|
1
|
1010
|
|
POST
|
Hi Xavier, I just noted that the coordinate system you have used for your XY shape file is wrong. You have specified a projected coordinate system while your shapes are actually in geographic coordinates. Please make below correction (you'll need to do this for both your XY and Circle shape file is shared earlier.). Use Define projection to set coordinate system as WGS 1984 (under Geographic Coordinates -> World) Use Project tool to project your data to Canada Lambert Conformal Conic (Under Project coordinate -> Continetal -> North America) Also please replace lines 79 to 81 in the radius of curvature.py i shared earlier with below. Below code will use coordinates from the shape to calculate radius instead of X, Y field. Attaching radius of curvature.py again with corrections.
with arcpy.da.SearchCursor(lyr, ["SHAPE@XY"], "", "","", ["","ORDER BY NoLigne"]) as cursor:
for row in cursor:
Coords.append([row[0][0], row[0][1]])
... View more
09-01-2014
06:37 PM
|
0
|
11
|
1667
|
|
POST
|
Hi Tom, Can you post some code? It'll be easier to analyse the issue with the code.
... View more
09-01-2014
05:09 PM
|
0
|
1
|
2301
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-31-2014 06:04 AM | |
| 1 | 09-25-2014 06:03 PM | |
| 1 | 09-16-2014 06:15 PM | |
| 1 | 10-08-2014 03:50 AM | |
| 1 | 08-25-2014 08:33 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|