POST
|
Hi Guys, I got answer to my question. According to the link : Query map with geoprocessing result | ArcGIS API for JavaScript 3.17 if the link is more than 2000 characters then browser uses proxy. Thus proxy has to be properly configured using Query map with geoprocessing result | ArcGIS API for JavaScript 3.17 to process such links.
... View more
09-20-2016
07:34 AM
|
0
|
0
|
338
|
POST
|
Hey Shaun, Thanks to your sample I am able to use it for my routing with async call...it works well for 9 points but as soon as I use provide more than 9 points to async call... my calls starts through proxy. Did you face similar issue for more no. of points.
... View more
09-19-2016
08:36 AM
|
0
|
0
|
545
|
POST
|
I am trying to generate a route for more than 150 points with service - http://logistics.arcgis.com/arcgis/rest/ with a asynchronous call. I am successful with around 1-9 points but after 9 points it starts using proxy (appends proxy link) because of which I am not able to get results. Can someone help me with this?
... View more
09-19-2016
08:28 AM
|
0
|
1
|
943
|
POST
|
Hi All, Even i am struggling with similar thing. I am not able to register using wix. can you share your wix files for reference? did it run on windows 7? regards, sameer
... View more
12-10-2013
01:24 AM
|
0
|
0
|
986
|
POST
|
Thanks for your reply. I tried the code without if(). But, the attribute table value did not change. I have 2 shapes in directory "D:\Shape\" . Shape1 and Shape2. I need change values of Shape1. IWorkspaceEdit wrkspcedit = pFeatWorkspace as IWorkspaceEdit; But here wrkspcedit don't show Shape1. I tried the code below, but have an error.(NullReferenceException was unhandled) WorkspaceEdit wrkspcedit = myTable as IWorkspaceEdit; wrkspcedit.StartEditing(false); // NullReferenceException was unhandled wrkspcedit.StartEditOperation(); myTable.GetRow(5).set_Value(8,"anyvalue"); wrkspcedit.StopEditOperation(); wrkspcedit.StopEditing(true); What can I do? Hi, Found out! Please read this http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00250000089m000000 you havent called store() on to this row to commit changes to the shapefile. do it this way replace myTable.GetRow(5).set_Value(8,"anyvalue"); with IRow pRow = myTable.GetRow(5); pRow.set_Value(8,"anyvalue"); pRow.store(); and this will work! Regards, Sameer Puppal
... View more
09-27-2013
02:36 AM
|
0
|
0
|
580
|
POST
|
Hi, I have suggestions 🙂 ! try doing this one by one. 1. For shapefile first try without doing startediting and stopediting. 2. trying using same code without starteditoperation and stopeditoperation coz this is used for SDE. 3. try using IEditor instead of workspaceedit. 4. trying using Ifeatureclass.search instead of update. something outta this should work! Regards, Sameer
... View more
09-27-2013
02:31 AM
|
0
|
0
|
580
|
POST
|
Hi, What exactly do you need? .. I was not able to understand! regards, sameer
... View more
09-27-2013
02:18 AM
|
0
|
0
|
177
|
POST
|
Sameer, Whilst I agree that the help for this Class is missing basic examples on how to implement the tool and is something that ESRI should rectify, a simple search on this forum for "RasterCalculator" will find you enough code examples to work out how to use it. Finally did it! posting so that this might be helpful for someone like me. and someone may find it by searching "RasterCalculator" as you suggested... Public Sub ExecuteRasterCalc() Dim expression As String = "'D:\Clip2.img'*'D:\Clip3.img'" Dim outputpath As String = "C:\Default.gdb\rastercalc7" Dim geoprocessor = New ESRI.ArcGIS.Geoprocessor.Geoprocessor() Dim ToolRasterCalc As New ESRI.ArcGIS.SpatialAnalystTools.RasterCalculator(expression, outputpath) geoprocessor.OverwriteOutput = True geoprocessor.AddOutputsToMap = True Dim result As IGeoProcessorResult = geoprocessor.Execute(ToolRasterCalc, Nothing) End Sub Regards, Sameer Puppal
... View more
09-27-2013
02:05 AM
|
0
|
0
|
290
|
POST
|
Do you need something specific? There is pretty good explanation of how to run a Geoprocessor tool here: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Using_geoprocessing/0001000004mm000000/ And the Raster Calculator: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Members/004700002782000000/ Finally did it! posting so that this might be helpful for someone like me. Public Sub ExecuteRasterCalc() Dim expression As String = "'D:\Clip2.img'*'D:\Clip3.img'" Dim outputpath As String = "C:\Default.gdb\rastercalc7" Dim geoprocessor = New ESRI.ArcGIS.Geoprocessor.Geoprocessor() Dim ToolRasterCalc As New ESRI.ArcGIS.SpatialAnalystTools.RasterCalculator(expression, outputpath) geoprocessor.OverwriteOutput = True geoprocessor.AddOutputsToMap = True Dim result As IGeoProcessorResult = geoprocessor.Execute(ToolRasterCalc, Nothing) End Sub Regards, Sameer Puppal
... View more
09-27-2013
02:02 AM
|
0
|
0
|
906
|
POST
|
Sameer, Whilst I agree that the help for this Class is missing basic examples on how to implement the tool and is something that ESRI should rectify, a simple search on this forum for "RasterCalculator" will find you enough code examples to work out how to use it. Duncan, I have done quite research before posting it here. while i don't think you can find 'enough' codes just by searching "RasterCalculator". I do not want to use RasterMapAlgebraOp and RasterModel is my basic criteria. when i search as you suggested then 99pc of the code are done by using RasterMapAlgebraOp / RasterModel. let me know if you can help! Sameer
... View more
09-27-2013
01:10 AM
|
0
|
0
|
290
|
POST
|
Hi, We just upgraded from ArcEngine 10 to 10.1 and now the raster calculator does not seem to work anymore. Whenever I execute the geoprocesing tool, we get a LoaderLock was detected error and we are unable to continue. If I turn off the Loader Lock exception in Visual Studio, it get's a bit further and the application throws a C++ Runtime Error R6034 (Application has made an attempt to load the C run time library incorrectly). If I check the geoprocessing message logs I see a ERROR 000539: Runtime error (AttributeError: 'geoprocessing sys.stdout object' object has no attribute 'write') When I try to run the same thing in ArcMap's Raster Calculator it works fine. Any idea what going on? Thanks. Niro I'm using the following code to execute the raster calculator: String expression = @"'C:\Temp\RasterCalc\dem_pre' * 10";
String outputPath = @"C:\Temp\FloodPlain24";
Geoprocessor processor = new Geoprocessor();
RasterCalculator RasterCalc = new RasterCalculator(expression, outputPath);
FileInfo fileInfo = new FileInfo(outputPath);
try
{
if (!fileInfo.Directory.Exists) fileInfo.Directory.Create();
processor.OverwriteOutput = true;
processor.Execute(RasterCalc, null);
}
catch (Exception ex)
{
Debug.Assert(false, ex.ToString());
Debug.Write(GetMessages(processor));
} The full geoprocessing log is as follows: Executing: RasterCalculator "'C:\Temp\RasterCalc\dem_pre' * 10" C:\Temp\FloodPlain24
Start Time: Wed Apr 03 09:52:45 2013
Raster(r'C:\Temp\RasterCalc\dem_pre') * 10
ERROR 000539: Runtime error
Traceback (most recent call last):
File "C:\Python27\ArcGIS10.1\Lib\warnings.py", line 29, in _show_warning
file.write(formatwarning(message, category, filename, lineno, line))
AttributeError: 'geoprocessing sys.stdout object' object has no attribute 'write'
Failed to execute (RasterCalculator).
Failed at Wed Apr 03 09:54:26 2013 (Elapsed Time: 1 minutes 41 seconds) Hi, Did you made this work? Actually i am struggling with a similar code in VB.NET in 10.1, would really appreciate if you could help. Regards, Sameer Puppal
... View more
09-27-2013
01:03 AM
|
0
|
0
|
327
|
POST
|
Hi, how to execute raster calculator from vb.net? there is help or equivalent sample to do that. following is link :- http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Members/004700002782000000/ ESRI guys please help! Regards Sameer
... View more
09-26-2013
02:43 AM
|
0
|
3
|
2073
|
POST
|
[HTML]http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Members/004700002782000000/[/HTML] Can anyone help me to use this raster calculator in vb.net. specially how to set the expression.
... View more
09-26-2013
02:37 AM
|
0
|
0
|
906
|
POST
|
Do you need something specific? There is pretty good explanation of how to run a Geoprocessor tool here: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Using_geoprocessing/0001000004mm000000/ And the Raster Calculator: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Members/004700002782000000/ Hi, yes specifically i want to (raster1 + raster2) in the expression or such similar operations. I dont want to use RasterMapAlgebraOp and RasterModel instead want to use GP. I am not able to figure out how to execute gp - rastercaclulator from Arcobjects . I have seen the first link you shared before but still confused how to use this snippet to execute. I would really appreciate if you help me out with this. Regards, Sameer
... View more
09-22-2013
10:38 PM
|
1
|
0
|
906
|
POST
|
Hi, I have a polygon shapefile containing several land parcels. I would like to identify which of these parcels would intersect to my other polygon shapefile by creating a single button. Steps on customization are mostly understood by me. But since I'm new to programming, its difficult for me to create the VBA code for this. Any suggestion?? A already constructed code would be very much appreciated. Thanks! You can use Iquerybylayer interface for doing this... you can also go through some of the forums like :- http://forums.esri.com/Thread.asp?c=93&f=993&t=160044 pQueryByLayer = new QueryByLayerClass();
pQueryByLayer.FromLayer = pFeatureLayer;
pQueryByLayer.ByLayer = pFeatureLayer;
pQueryByLayer.UseSelectedFeatures = true;
pQueryByLayer.LayerSelectionMethod = esriLayerSelectionMethod.esriLayerSelectBoundaryTouches;
IFeatureSelection pFr = pFeatureLayer as IFeatureSelection;
pFr.SelectionSet = pQueryByLayer.Select();
here from and by layer have been given the same featurelayer you can change it according to you.
... View more
09-20-2013
01:28 AM
|
0
|
0
|
170
|
Title | Kudos | Posted |
---|---|---|
1 | 09-22-2013 10:38 PM | |
1 | 09-19-2013 10:51 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|