|
POST
|
You can check results window from Geoprocessing menu in Arcmap to get descriptive error. also you can set Overwrite Output property to True as the default output is your Default.gdb ESRI.ArcGIS.Geoprocessor.Geoprocessor GP = new ESRI.ArcGIS.Geoprocessor.Geoprocessor();
GP.AddOutputsToMap = false;
GP.OverwriteOutput = true;
To get the result in InMemory FC you should add "in_memory" before your FC name. DissolveDS.out_feature_class = "in_memory\\" + OutputName;
... View more
03-10-2014
02:16 AM
|
0
|
0
|
698
|
|
POST
|
Hi, I have to evaluate the ArcGIS Runtime WPF SDK for a new project. Therefore this topic is really new to me. It is required that the WPF Application will run in an offline environment. I have to load a local .tpk File and draw lines and polygons from two shapefiles. I came accross the "Create Features From Shapefile" example in the runtime samples. The sample project worked for me with a local shapefile and seems exactly what I need but it uses the ArcGIS Portal REST API (http://www.arcgis.com/sharing/rest/content/features/generate) for generating the features. Is there a way to do this in an offline scenario without the REST API? I discovered the LocalFeatureService. Can I use them to generate the features from the shapefiles? Many thanks in advance 🙂 The sample illustrates how to use the ArcGISWebClient class to post multi-part content (e.g. file) to a service\operation as mentioned in its description. If you want just to load local shapefile to your map at runtime you can check "Add Shapefiles and Raster" sample as It will load your content as ArcGISLocalDynamicMapServiceLayer.
... View more
03-08-2014
08:49 PM
|
0
|
0
|
875
|
|
POST
|
you can set ShowOnlyVisibleLayers property to False in your XAML file or from code behind.
... View more
03-08-2014
07:36 PM
|
0
|
0
|
349
|
|
POST
|
You can change default symbology settings such as Default Color Ramp or Marker Size using "Advanced ArcMap Settings dialog box". You can find this tool under "C:\[Arcmap Install directory]\Utilities" For a single symbol you can save a style with name similar to Layer name and it will be the default symbology every time you load the layer in Arcmap. Check this for more information: http://support.esri.com/es/knowledgebase/techarticles/detail/20880
... View more
03-08-2014
07:24 PM
|
0
|
0
|
336
|
|
POST
|
Hello ahmed sir i have used your code and the direction to unchecked lock loader after doing all this i run my project again but it will display another error which i have attached image of error please give me some reply for this. and also write error details error=" R6034 an application has made an attempt to load the c runtime library incorrectly. please contact the application's support team for more information" Thanks and regards Aniket Babar You can check this post it should help you. http://gis.stackexchange.com/questions/72506/how-to-fix-runtime-error-r6034-an-application-has-made-an-attempt-to-load-th-c
... View more
03-08-2014
06:44 PM
|
0
|
0
|
1154
|
|
POST
|
You can set Map Minimum Resolution in your XAML or by code.
... View more
03-05-2014
07:56 PM
|
0
|
0
|
357
|
|
POST
|
Basically any failure for projecting any point in your list will return Its Coordinates with NaN so you can rely on order but this is not mentioned in REST Api. Check REST API for more information If you need another workaround, My first choice here is to project points locally on client side but this depend on your input and output Spatial reference. I had a business case before to project list of points from different UTM zones to GCS_wgs_1984 which can't be done by Geometry Service with single request and also have a list order concern, so I got some equations to convert them on client side. another approach is go for your custom GP service for projection and preserve your attributes.
... View more
03-05-2014
07:05 PM
|
0
|
0
|
801
|
|
POST
|
You can try to Refresh your display after adding features to your featureclass. pMap.PartialRefresh(esriViewGeography, pLayer, null); for permanent Graphics on Map you can use AddGraphicToMap Snippet then Refresh your map. Regards,
... View more
03-05-2014
12:20 AM
|
0
|
0
|
673
|
|
POST
|
hello sir, i am creating some code like Geoprocessor gp = new Geoprocessor(); gp.OverwriteOutput = true; ESRI.ArcGIS.AnalysisTools.MultipleRingBuffer multibuff = new ESRI.ArcGIS.AnalysisTools.MultipleRingBuffer(layer,@""+txtOutputPath.Text+"",multibufferdistance.ToArray()); IGeoProcessorResult results = (IGeoProcessorResult)gp.Execute(multibuff, null); when i excute this code i got this error "LoaderLock was Detected" error Description=" Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang." i did'nt get the details of this error nor find any suggestion . if you have any solution or sample code for this sent me link. Thanks and regards Aniket Babar Regarding this error can check this Solution, you should uncheck LoaderLock from exception item in Debug menu in your Visual Studio. For running MultipleRingBuffer tool, this sample should work for you Geoprocessor gp = new Geoprocessor();
gp.OverwriteOutput = true;
ESRI.ArcGIS.AnalysisTools.MultipleRingBuffer multibuff = new ESRI.ArcGIS.AnalysisTools.MultipleRingBuffer();
multibuff.Buffer_Unit = "Meters";
multibuff.Distances = "10;20;30"; //string.Join(";",multibufferdistance.ToArray());
multibuff.Input_Features = layer;
multibuff.Output_Feature_class = @""+txtOutputPath.Text+"";
IGeoProcessorResult results = (IGeoProcessorResult)gp.Execute(multibuff, null);
Regards,
... View more
03-04-2014
11:49 PM
|
0
|
0
|
1154
|
|
POST
|
You can add python addin Button as normal button to existing toolbar in ArcMap. Get Your Toolbar using ESRI sample Code: public ESRI.ArcGIS.Framework.ICommandBar GetToolbarByName(ESRI.ArcGIS.Framework.IApplication application, System.String toolbarName)
{
ESRI.ArcGIS.Framework.ICommandBars commandBars = application.Document.CommandBars;
ESRI.ArcGIS.esriSystem.UID barID = new ESRI.ArcGIS.esriSystem.UIDClass();
barID.Value = toolbarName; // Example: "esriArcMapUI.StandardToolBar or TestAddin__Custom_Toolbar"
ESRI.ArcGIS.Framework.ICommandItem commandItem = commandBars.Find(barID, false, false);
if (commandItem != null && commandItem.Type == ESRI.ArcGIS.Framework.esriCommandTypes.esriCmdTypeToolbar)
{
return (ESRI.ArcGIS.Framework.ICommandBar)commandItem;
}
else
return null;
} Then you get your Button By Its id and Add it to the toolbar: ESRI.ArcGIS.Framework.ICommandBar myToolbar=GetToolbarByName(m_Application,"TestAddin__Custom_Toolbar");
UID CommandUid = new UIDClass();
//Get Your Button
CommandUid.Value ="TestAddin_addin.button";
//Add your command or button
myToolbar.Add(CommandUid); Regards,
... View more
03-04-2014
10:56 PM
|
0
|
0
|
485
|
|
POST
|
Geometry Service will return geometries only and they will be in the same order as input graphics. In Project Completed Handler you can assign your attributes (or modify the geometry)with the same index. Check this post: http://forums.arcgis.com/threads/98623-Geometry-Service-Attribute-Retention
... View more
03-04-2014
08:11 PM
|
0
|
0
|
801
|
|
POST
|
You can customize your maptip template to show image from a field. You should add Image control to your template and bind the source to your filed as the following:
<esri:FeatureLayer.MapTip>
<Grid Background="Blue">
<StackPanel Margin="5">
<Image Source="{Binding [img]}" Height="150" Width="150"/>
</StackPanel >
</Grid>
</esri:FeatureLayer.MapTip> Just make sure to add your "img" field to your featurelayer OutFields property. also you can check the following sample for more information: https://developers.arcgis.com/silverlight/sample-code/start.htm#FeatureLayerMapTips
... View more
03-02-2014
01:51 AM
|
0
|
0
|
362
|
|
POST
|
You can initialize a new instance form GeometryServic each time you call it. Also you can send userToken with your request so you can make sure you display the latest request only. GeometryService myGeomSer; string currentUserToken; private void ProjectGraphics(List<Graphic> myListOfPoints) { if (myGeomSer != null && myGeomSer.IsBusy) { myGeomSer.CancelAsync(); } myGeomSer = new GeometryService(serviceURL); myGeomSer.ProjectCompleted += geometryService_ProjectCompleted; myGeomSer.Failed += GeometryService_Failed; currentUserToken = Convert.ToString(DateTime.Now.Ticks); //use any unique value like GUID myGeomSer.ProjectAsync(myListOfPoints, mapControl1.map1.SpatialReference, currentUserToken); } private void geometryService_ProjectCompleted(object sender, GraphicsEventArgs e) { if (Convert.ToString( e.UserState)==currentUserToken) { // } }
... View more
02-25-2014
07:50 PM
|
0
|
0
|
553
|
|
POST
|
You can try to implement your own sort method via ITableSort Interface. also you have IQueryFilterDefinition2 which can extend your where clause with Postfix Clause.
... View more
02-23-2014
12:06 AM
|
0
|
0
|
691
|
|
POST
|
Hi Bjorn, Sadly that makes sense - I thought I was perhaps asking too much of it. Would you be able to point me in the right direction on what information I need to pass in about the environment to a script? I'm assuming I need to pass this information as parameters. Most (but not all) of our data is contained in an MPK file loaded into the application - could I somehow point the script to the same MPK file? Thanks for your help. Gary you can query your layers through Query Task You should check Runtime samples installed with runtime SDK as It covers alot of concepts. If you want to pass features to your GP tool you can use FeatureSet or RecordSet to pass a specific layer/table to your script. It's similar to Silverlight API. http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/Geoprocessing_task_parameters/01700000009s000000/ https://developers.arcgis.com/silverlight/sample-code/start.htm#ClipFeatures
... View more
02-22-2014
11:50 PM
|
0
|
0
|
820
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-22-2015 06:50 AM | |
| 1 | 04-01-2014 10:01 PM | |
| 1 | 04-07-2014 11:18 PM | |
| 1 | 04-08-2014 09:19 PM | |
| 1 | 11-26-2014 07:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|