|
POST
|
Found the solution (with a little help from my friends) List<Feature> fList = new List<Feature>(); for (int i = 0; i < _inputOverlay.Graphics.Count; i++) { fList.Add(_inputOverlay.Graphics as Feature); } FeatureSet fs = new FeatureSet(fList);
... View more
05-16-2016
10:06 PM
|
0
|
0
|
630
|
|
POST
|
I am running a gp tool with point feature set as input parameter. I would like to user to click on a few points and send it as a parameter. I can easily do it with one point: var inputPoint = await MyMapView.Editor.RequestPointAsync(); parameter.GPParameters.Add(new GPFeatureRecordSetLayer("observer", inputPoint)); I created a GraphicsOverlay and put all the points the user entered. How do I send this as a parameter? The constructor of GPFeatureRecordSetLayer can get a FeatureSet but I found no way to create it from the GraphicsOverlay Thanks
... View more
05-15-2016
10:55 PM
|
0
|
1
|
3733
|
|
POST
|
Solved it The python script did not get the input point for the observer so the layer was empty and the cursor retun nothing but did not fail. When I translate everything to web mercator it all works. I think you should write a paper about using local projection, this is needed in many local application that does not use AGOL. Thanks
... View more
05-11-2016
12:15 AM
|
1
|
0
|
1188
|
|
POST
|
Hi Mike Thanks for the response; I was hoping to get your attention My code do basic Viewshed operation but later on I will add more functionality to intersect with some polyline/polygon and determine the overlap area. In my code I need to get the point coordinate to set the extent (works much quicker). You can see the code that does not work in comment and the work around I found. Even with this workaround it still does not work. It gives me error message about Desktop 10.2 that was installed once on my machine but now I have 10.3.1 I wonder if the cursor should work. Thanks import arcpy
obs = arcpy.GetParameterAsText(0)
rad = arcpy.GetParameter(1)
# constants
arcpy.env.overwriteOutput = True
dtm = r"C:\demos\RtGp\dem_itm.tif"
# temporary names
outRaster = arcpy.env.scratchFolder + r"\visRas.tif"
outVector = r"in_memory\visVec"
# set extent of operation
#with arcpy.da.SearchCursor(obs, "SHAPE@XY") as cursor:
# for row in cursor:
# p = row[0]
desc = arcpy.Describe(obs)
arcpy.env.extent = "%s %s %s %s" % (desc.extent.XMin - rad,desc.extent.YMin - rad,desc.extent.XMin + rad,desc.extent.YMin + rad)
#arcpy.env.extent = "%s %s %s %s" % (p[0] - rad,p[1] - rad,p[0] + rad,p[1] + rad)
# prepare observer
arcpy.AddField_management(obs,"OFFSETA","LONG")
arcpy.AddField_management(obs,"RADIUS2","LONG")
arcpy.CalculateField_management(obs,"OFFSETA",7, "PYTHON_9.3")
arcpy.CalculateField_management(obs,"RADIUS2",3000 , "PYTHON_9.3")
# start process - visibility
arcpy.Viewshed_3d(dtm,obs,outRaster)
... View more
05-10-2016
10:16 PM
|
0
|
0
|
1188
|
|
POST
|
Hello I created a tool based on python script and pack it into gpk. When I try to run it from RT SDK for .net as local service it does not work. After the line "p = row[0]" I get the error that p is not defined. I am trying to read the coordinate of a layer that was created in the tool. I tried both "old" cursors and the da cursor. Is this a known limitation? How can I get the value of some records in the results (I would like to return it as a string). Thanks
... View more
05-09-2016
10:44 PM
|
0
|
3
|
3160
|
|
POST
|
Hi You should first Append (GP tool) them into on layer and then use merge.
... View more
05-04-2016
09:52 PM
|
1
|
0
|
2758
|
|
POST
|
What about moving the problem into the sql world (since it is points only). Use Add XY to create a coordinate field. You can then round this field to the closest 1 meter or any other value that you like. Then concat the values into one field and use simple SQL to find the differences. It will work very quick.
... View more
05-03-2016
11:51 PM
|
1
|
0
|
5022
|
|
POST
|
Hi Peter Thanks for the response, as always I can learn new stuff from your answers. I understand that the function that should give the best solution is the stretch function (I tried the contrast and brightness). Is there any reason to apply the function only on some rasters (with Batch Edit Raster) and not on all the rasters? Can I just apply a stretch function on the entire mosaic or do I have to insert it on every raster separately (with the same parameters)? I understand that if you apply stretch with the same parameters it will stretch each raster in a different way but all of them will have more or less the same histogram on the output (so they look similar). The mosaic is already built but rasters are going to be added later on. I could not find Raster Template in AddRasters but I found a stretch option in the raster type. What is the best way here? Thanks
... View more
05-03-2016
10:17 PM
|
0
|
0
|
4880
|
|
POST
|
I have two tiff rasters 3 bands true color. One of them is a little darker than the other (Mean pixel about 110 and 125 for the other one). When I just display them in ArcMap there is a little different in the display. When I build a mosaic dataset on them (with no overviews) the rasters are displayed differently and the difference in color is bigger. I am aware that the default display for mosaic and rasters are different. I checked all the properties in the display and symbology tabs for the layer properties to be the same. Both are displayed with none stretch, same gamma, same resample method etc. It still looks different, why? What is the best way to give a smooth look in this case? Should I use color balance? Should I change the Mosaic operator to bland? Should I add a function for brightness to the dark rasters? I cannot share screen shots, sorry. Thanks
... View more
05-02-2016
09:57 PM
|
0
|
5
|
10231
|
|
POST
|
Hi Check registry in HKEY_CURRENT_USER\Software\ESRI\ArcGISPro\Licensing I think all the information is there. I do not see it in the docs so it might change in the next version... Have fun
... View more
04-30-2016
11:10 PM
|
0
|
1
|
2817
|
|
POST
|
Hi When you publish a python base tool the publishing change the script and copy it to the server directory (as you can see in the error). Line 103 in the changed script might be different then line 103 in the original script. Take a look in the changed script (but do not edit it) to try to understand the problem.
... View more
04-03-2016
10:34 PM
|
0
|
0
|
1111
|
|
POST
|
Hello We have portal 10.4 (no internet connection) and all our data (DTM, Images, vectors) are in Geo Wgs1984. We would like to see 3D (include raster /vector on 3D surface and extruded building) in WAB or JavaScript (4.0) The tiles of the cached services are not on-line but somthing like 4000,8000,16000 etc. What is the best way to do it? Do we need to translate any data into web Mercator or can we keep everything in geo? Should we create local web scene (since we are not in web Mercator)? We have a big area (40000 square km), is there any problem with local web scene for such area? Thanks Mody
... View more
04-03-2016
03:22 AM
|
0
|
0
|
3192
|
|
POST
|
I would try to create a view in the database then make this view a query table.
... View more
03-22-2016
10:43 PM
|
0
|
1
|
3508
|
|
POST
|
I see it in ArcMap in the layer properties in symbolgy tab. Not sure how to do it in code. Maybe get IRasterStretch from the renderer.
... View more
03-22-2016
02:28 AM
|
0
|
0
|
1544
|
|
POST
|
Hi Check the stretch on the lyr file. It might change the colors
... View more
03-21-2016
11:29 PM
|
0
|
1
|
1544
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-06-2026 09:35 PM | |
| 1 | 05-06-2026 09:43 PM | |
| 1 | 11-25-2024 06:09 AM | |
| 1 | 01-21-2026 09:53 PM | |
| 1 | 12-15-2025 10:07 PM |
| Online Status |
Online
|
| Date Last Visited |
Wednesday
|