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
|
863
|
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
|
279
|
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
|
353
|
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
|
625
|
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
|
892
|
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
|
536
|
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
|
472
|
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
|
660
|
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
|
907
|
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
|
1019
|
POST
|
I want to set the color of my SimpleLineSymbol to a dynamic resource so that the color can be bound to my Window. The xaml below does not work and I can figure out why: <Grid.Resources> <Color x:Key="routeColor">#FF8D8DFB</Color> <SolidColorBrush x:Key="routeColorBrush" Color="{DynamicResource routeColor}" /> <esri:SimpleLineSymbol x:Key="RouteFinalSymbol" Color="{DynamicResource routeColorBrush}" Width="2" /> </Grid.Resources> However, the xaml below is fine and it works, but I can't bind the color to the window. <Grid.Resources> <esri:SimpleLineSymbol x:Key="RouteFinalSymbol" Color="#FF8D8DFB" Width="2" /> </Grid.Resources> Any ideas on what is wrong?
... View more
12-03-2013
05:49 AM
|
0
|
1
|
607
|
POST
|
Alexander, Thanks for the reply. That sounds like the best way (cutting at 180) to do it for us. We are using GCS and also these polygons are global coverages that differ, so there will always need to be a break somewhere, so I don't think using a different projection would work. I do like you break idea, though. In fact, now that I think about it, it think that is what ArcGIS might do when creating a buffer that crosses the dateline. Thanks again!
... View more
08-09-2013
04:54 AM
|
0
|
0
|
285
|
POST
|
I am having issues manually creating a polygon that crosses the dateline (long=180). My x coordinate goes from 178, 179, 180, -179, -178, etc. Anyway, can anyone give me some guidance? I am using ArcEngine 10.0 to do so. I know how to create the polygon via code, but it is the dateline issue I am having problems with. Once it crosses to -179, there is a straight line across the screen. I am familiar with the geodesify option (for polylines) and I saw there is one for elipses, but the polygon I am creating is not an elipse.
... View more
08-07-2013
01:01 PM
|
0
|
2
|
699
|
POST
|
Hello, I am able to use the geometry service buffer functionality on a MapPoint and a List of MapPoints. However, I can not seem to get it to work with a polyline geometry (see code attempt below). It will result into the failed callback with an innerException: "Unable to complete operation". Can we buffer a polyline using the geometry service? If so, any examples on how to do so? I'd prefer not to use a GP tool if possible. My current workaround (although inefficient) is to geodesify the polyline and create a list of graphics from each path's point collection of the geodesified geometry. I then pass that list to the buffer operation and it works fine. Polyline myLine = new Polyline(); PointCollection myPC = new PointCollection(); foreach (MapPoint refMP in myMapPoints) myPC.Add(refMP); myLine.Paths.Add(myPC); Geometry myRoute = _mercator.FromGeographic(myLine); myRoute.SpatialReference = MyMap.SpatialReference; Graphic graphicToBuffer = new Graphic() { Geometry = myRoute, Symbol = LayoutRoot.Resources["RouteLineSymbol"] as LineSymbol }; BufferParameters bufferParams = new BufferParameters() { Unit = LinearUnit.NauticalMile, BufferSpatialReference = new SpatialReference(4326), //WGS 1984 OutSpatialReference = MyMap.SpatialReference, UnionResults=true }; bufferParams.Distances.Add(1000); bufferParams.Features.Add(graphicToBuffer); LocalGeometryService myGS = LocalGeometryService.GetService(); GeometryService myTask = new GeometryService(); myTask.Url = myGS.UrlGeometryService; myTask.BufferCompleted += new EventHandler<GraphicsEventArgs>(myTask_BufferCompleted); myTask.Failed += new EventHandler<TaskFailedEventArgs>(myTask_Failed); myTask.BufferAsync(bufferParams);
... View more
10-02-2012
10:25 AM
|
0
|
0
|
717
|
Title | Kudos | Posted |
---|---|---|
1 | 07-30-2012 10:16 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|