|
POST
|
you can write similar code to randomize path for every task generate intermediate raster static Random random = new Random();
internal static char GetLetter()
{
// This method returns a random lowercase letter.
// ... Between 'a' and 'z' inclusize.
int num = random.Next(0, 26); // Zero to 25
char let = (char)('a' + num);
return let;
}
IHydrologyOp2 hydrologyOp = new RasterHydrologyOpClass();
IRasterAnalysisEnvironment rasterAnalysisEnvironment = hydrologyOp as IRasterAnalysisEnvironment;
rasterAnalysisEnvironment.DefaultOutputRasterPrefix = Helper.GetLetter() + (Guid.NewGuid().ToString("N")).Substring(0, 3);
so you have : C:\Users\user\AppData\Local\Temp\1\XXXX5694\ (XXXX string random)
... View more
04-02-2021
06:48 AM
|
0
|
0
|
1135
|
|
POST
|
In help you need see class that implement the interface IFeatureClassName You can write similar code: IMapServer mapServer = (IMapServer)serverObjectHelper.ServerObject;
string mapName = mapServer.DefaultMapName;
IMapServerDataAccess dataAccess = (IMapServerDataAccess)mapServer;
IFeatureClass sourceFeatureClass = (IFeatureClass)dataAccess.GetDataSource(mapName, 0);
IDataset sourceDataSet = (IDataset)sourceFeatureClass;
IWorkspace sourceWorkspace = sourceDataSet.Workspace;
IFeatureDataConverter featureDataConverter = new FeatureDataConverterClass();
IWorkspaceFactory targetWorkspaceFactory = new ShapefileWorkspaceFactory();
IWorkspace targetWorkspace = targetWorkspaceFactory.OpenFromFile($@"c:\temp", 0);
IDataset targetWorkspaceDataset = (IDataset)targetWorkspace;
IName targetWorkspaceDatasetName = targetWorkspaceDataset.FullName;
IWorkspaceName targetWorkspaceName = (IWorkspaceName)targetWorkspaceDatasetName;
IFeatureClassName shpFeatureClassName = new FeatureQueryNameClass();
IDatasetName shpDatasetName = (IDatasetName)shpFeatureClassName;
shpDatasetName.WorkspaceName = targetWorkspaceName;
shpDatasetName.Name = $"Test_{Guid.NewGuid()}";
int shapeFieldPosition = sourceFeatureClass.FindField(sourceFeatureClass.ShapeFieldName);
IFields inputFields = sourceFeatureClass.Fields;
IField shapeField = inputFields.get_Field(shapeFieldPosition);
IGeometryDef geometryDef = (IGeometryDef)((IClone)shapeField.GeometryDef).Clone();
IFields outFields = (IFields)((IClone)sourceFeatureClass.Fields).Clone();
featureDataConverter.ConvertFeatureClass((IFeatureClassName)sourceDataSet.FullName, null, null, shpFeatureClassName, geometryDef, outFields, "", 1000, 0);
... View more
03-17-2021
01:03 PM
|
1
|
0
|
3445
|
|
POST
|
If you want use sdk you can use FeatureDataConverter class ( FeatureDataConverter Class (arcgis.com) ) - create a scratch file gdb (try and see if you can use ProConcepts DDL · Esri/arcgis-pro-sdk Wiki · GitHub ) or use a template gdb empty on server - use method convertfeatureclass ( IFeatureDataConverter2 Interface | ArcGIS Enterprise SDK ) - zip gdb - download file (see this samples arcgis-enterprise-sdk-resources/Samples/dot net/SOE/DownloadFileRESTSOE at master · Esri/arcgis-enterprise-sdk-resources · GitHub )
... View more
03-10-2021
04:03 AM
|
2
|
2
|
3486
|
|
POST
|
see also ProConcepts DDL · Esri/arcgis-pro-sdk Wiki · GitHub
... View more
03-10-2021
03:37 AM
|
0
|
0
|
3477
|
|
POST
|
if can be useful you can see my soe https://github.com/nicogis/Factory-Utilities-SOE here you have an operation ('ExtractData') https://github.com/nicogis/Factory-Utilities-SOE/blob/37f3a4868d85435bf03cb3b6648a1a7dedccae40/FactoryUtilities.cs#L218 where if you can pass a featureset from client you can select parameter dataFormat (SHAPEFILE) to dowload file zipped
... View more
03-09-2021
08:08 AM
|
1
|
0
|
3504
|
|
POST
|
If it can be help you I have done a sample (PoC) https://github.com/nicogis/AROpenSky
... View more
12-19-2020
12:04 PM
|
0
|
0
|
1348
|
|
POST
|
You can start from this sample https://github.com/Esri/arcgis-enterprise-sdk-resources/blob/master/Samples/dot%20net/SOI/NetLayerAccessSOI/NetLayerAccessSOI.cs . It filters layers of service and you can filter on layer your fields
... View more
12-19-2020
11:57 AM
|
0
|
0
|
2893
|
|
POST
|
You need use the relate https://pro.arcgis.com/en/pro-app/latest/help/data/tables/joins-and-relates.htm
... View more
12-19-2020
11:48 AM
|
0
|
0
|
799
|
|
POST
|
You can see the request of client and return json filtered. Example if client asks with https://sampleserver6.arcgisonline.com/arcgis/rest/services/NapervilleShelters/MapServer/0?f=json in this json there are info of domain values so then client use it. In soi you intercept these called and manage value of domains. However the client can make called https://developers.arcgis.com/rest/services-reference/query-domains-feature-service-.htm to efficiently work with domains when use feature service (10.5 or superior) so you need see this too.
... View more
12-19-2020
11:44 AM
|
0
|
0
|
1114
|
|
POST
|
... SOEs are only supported for extending map and image services. Because map and image services use a service definition file and do not access a map document (MXD) directly, there are certain classes you should avoid and others you should favor when writing SOEs. Avoid using ArcObjects from the Carto library that are specifically designed for use with MXDs. This includes IMap, ILayer, and items related to data frames and page layouts. Instead, use ArcObjects designed for working with map services, such as MapServer, MapLayerInfos, and MapDescription. Use the interface IMapServerDataAccess to access the datasets underlying each layer in your map. Libraries not directly related to the map document, such as ESRI.ArcGIS.Geometry and ESRI.ArcGIS.Geodatabase for .NET or com.esri.arcgis.geometry and com.esri.arcgis.geodatabase for Java, are always permissible to use in SOEs. ...
... View more
09-24-2020
10:02 AM
|
0
|
1
|
1698
|
|
POST
|
With GISServerConnection you can connect to arcgis server 10.0 (it's in help for connection dcom)
... View more
09-15-2020
03:48 AM
|
0
|
3
|
3418
|
|
POST
|
you dont' need do a connection arcgis server. SOE lives in a service arcgis server. You create a SOE and load in a service and then you call via https:// ....
... View more
09-14-2020
07:37 AM
|
0
|
0
|
2919
|
|
POST
|
you can create a soe (soap or rest) and you can call it via soap or rest . In soe you put custom code arcobjects https://enterprise.arcgis.com/en/sdk/latest/windows/652a31ce-4f02-43b5-bba9-9db26ce231af.html From 10.1 you cannot use dcom
... View more
09-14-2020
07:20 AM
|
0
|
2
|
2919
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-20-2024 11:20 AM | |
| 1 | 05-25-2017 10:11 AM | |
| 1 | 06-20-2023 12:09 AM | |
| 1 | 10-14-2022 05:14 AM | |
| 1 | 06-14-2023 02:00 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-10-2025
05:25 AM
|