POST
|
I know this is an old post, but i am trying to do this myself. However, no matter what I do, the geotiff is not loading properly into a GIS app (ArcGIS Pro). I know the modeltiepoint values are being written to the file, as i am able to read them back in with System.Drawing.Imaging.PropertyItem. Do you have any sample code that shows exactly what you did with the tiePoints (as you mention in your pseudo-code)? Also, do you need to set a projection anywhere? I have seen and used the info here: http://geotiff.maptools.org/spec/geotiff2.6.html , but still no luck. //Populate the modelTilePoint array // modelTilePoint[0] = someValue; //...
... View more
04-11-2019
05:59 AM
|
0
|
0
|
19
|
POST
|
Thanks for your reply! Could you explain a little further: you mentioned that "The capability of generating elevation profile from an existing file is currently supported in ArcGIS Earth (the latest version 1.9).". I just upgraded from 1.8 to 1.9 and can't seem to find this. I can see how to generate an elevation profile from a drawn line, OR by using the interactive analysis (button looks like a cube), but i can't see how to import a line (either from KML or CSV) and THEN generate an elevation profile from it. Thanks in advance.
... View more
03-12-2019
06:06 AM
|
0
|
1
|
10
|
POST
|
Currently i can draw a line and generate an elevation profile from that line (by right clicking in the TOC). Is there ANY way to IMPORT a line for doing this? If i pull in a kml line, there is not option (that i can find) for generating an elevation profile. I would also be fine importing points, then making a line from those points. However, i can't find a way to do this either. Basically, i would like ANY ability to import a line from an existing file (preferably not a shapefile) and THEN generate an elevation profile for that line. Any help would be greatly appreciated.
... View more
03-11-2019
02:13 PM
|
0
|
3
|
84
|
POST
|
OK, So i used the geoprocessing/viewshed example to come up with the code below. It makes the call and receives a reply. However, the geometry that gets returned is only a polyline, and not a polylineZ (containing z values of the ground). Does anyone have an idea why it does not appear to be working? I thought it was something in the fieldlist but i tried multiple things there (including none), but nothing seemed to change the returned result. var myProfileTask = await GeoprocessingTask.CreateAsync(new Uri(_viewshedUrl)); List<Field> fieldList = new List<Field>(); fieldList.Add(new Field(FieldType.OID, "ObjectID", "ObjectID", 10)); fieldList.Add(new Field(FieldType.Float64, "Shape_Length", "Shape_Length", 10)); var myInputFeatures = new FeatureCollectionTable(new List<Field>(), GeometryType.Polyline, SpatialReferences.WebMercator); Feature myInputFeature = myInputFeatures.CreateFeature(); _selectedGraphics[0].Attributes.Add("ObjectID", 1); _selectedGraphics[0].Attributes.Add("Shape_Length", GeometryEngine.LengthGeodetic(_selectedGraphics[0].Geometry,LinearUnits.Meters,GeodeticCurveType.Geodesic)); myInputFeature.Geometry = _selectedGraphics[0].Geometry; await myInputFeatures.AddFeatureAsync(myInputFeature); GeoprocessingParameters myProfileParameters = new GeoprocessingParameters(GeoprocessingExecutionType.SynchronousExecute); myProfileParameters.OutputSpatialReference = SpatialReferences.WebMercator; ; myProfileParameters.Inputs.Add("InputLineFeatures", new GeoprocessingFeatures(myInputFeatures)); var myViewshedJob = myProfileTask.CreateJob(myProfileParameters); try { GeoprocessingResult myAnalysisResult = await myViewshedJob.GetResultAsync(); GeoprocessingFeatures myProfileResultFeatures = myAnalysisResult.Outputs["OutputProfile"] as GeoprocessingFeatures; // Add all the results as a graphics to the map IFeatureSet myViewshedAreas = myProfileResultFeatures.Features; foreach (var myFeature in myViewshedAreas) { _resultOverlay.Graphics.Add(new Graphic(myFeature.Geometry)); } } catch (Exception ex) { // Display an error message if there is a problem //if (myViewshedJob.Status == JobStatus.Failed && myViewshedJob.Error != null) // _userViewModel.UserMessage="Executing geoprocessing failed. " + myViewshedJob.Error.Message, "Geoprocessing error"; //else // MessageBox.Show("An error occurred. " + ex.ToString(), "Sample error"); } finally { // Indicate that the geoprocessing is not running //SetBusy(false); }
... View more
03-01-2019
02:16 PM
|
0
|
3
|
11
|
POST
|
Any good pointers or examples to help with the call and return data of this task from .Net code? Task: Profile https://elevation.arcgis.com/arcgis/rest/directories/arcgisoutput/Tools/ElevationSync_GPServer/Tools_ElevationSync/Profi…
... View more
02-27-2019
02:48 PM
|
0
|
4
|
278
|
POST
|
Is it possible to get a raster value given a specific x,y location using runtime 100.2? If so, what is the best direction. Thanks in advance.
... View more
11-27-2018
03:00 PM
|
0
|
1
|
220
|
POST
|
Thanks Morton. After my post i realized that the Pro and Runtime backgrounds defaulted differently (white vs grey with grid). I did not realize i could change that background and had overlooked that option to do so. Thanks!
... View more
10-04-2018
12:00 PM
|
0
|
0
|
14
|
POST
|
There are a couple of vector tile basemaps that appear to have issues in Runtime (100.2 or 100.3), but work fine in ArcGIS Pro. The problem is that certain vector tile layers/basemaps with a little transparency show the blank, grey-gridded background behind them (see below.) I am wanting to use the Charted Territory basemap in Runtime . I've modded your GITHUB sample (arcgis-runtime-samples) under 'Layers/ArcGisVectorTiledLayer' as shown below and the resulting image is also below. The same result occurs if I use the direct .json ref to the layer (https://www.arcgis.com/sharing/rest/content/items/1c365daf37a744fbad748b67aa69dac8/resources/styles/root.json) Does anyone know any fixes for this? Code mod: Result:
... View more
10-04-2018
09:40 AM
|
0
|
2
|
202
|
POST
|
Has anyone had this issue and been able to resolve it? I get this error on any dataset I run (esri sample datasets, pix4d sample datasets, my own datasets). I get this error everytime I try to generate a dsm or dtm and have tried changing multiple settings but still get the same error.
... View more
05-29-2017
05:45 AM
|
0
|
0
|
9
|
POST
|
I am trying to create a layer package programmatically with an ArcEngine (.Net) application. The documentation has good information on how to open a package here: http://help.arcgis.com/en/sdk/10.0/Arcobjects_net/conceptualhelp/index.html#//000100000nv8000000 . However, I can't find ANYTHING anywhere showing how to create a layer package. My thought was to use the PackageLayer_management call from a geoprocessor object, but I can not get that to work either. Here is my code for a simple test (I've tried multiple variations with no luck). I am starting to wonder if PackageLayer_management is even available to ArcEngine. I am using other ArcToolbox calls following a similiar approach to that below and those work fine. Any suggestions/examples would be greatly appreciated. public void CreatePackageLayerTest(ILayer SourceLayer, string outputFile, string GeoDBAbsFileName) { _geoProcessor.SetEnvironmentValue("Workspace", GeoDBAbsFileName); _gpParams.Add(SourceLayer); _gpParams.Add(outputFile); _gpParams.Add("CONVERT"); try { _geoProcessor.Execute("PackageLayer_management", _gpParams, null); } catch (Exception ex) { MessageBox.Show("There was a GeoProcessing Error." + ex.ToString()); returnMessages(_geoProcessor); } _gpParams.RemoveAll(); }
... View more
12-12-2013
08:41 AM
|
0
|
2
|
751
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|