POST
|
Hello eveyone, I finally solved the problem after the intervention of an esri archtiect. In the Portal content, someone added a call to the GP service SpatialAnalysisTools When you do that, by default, the Analysis widget will use this content instead of a direct call to the GP service on ArcGIS Server. The problem was this content did not contain the token for identification. The solution : we have deleted this content and everything worked perfectly again
... View more
01-02-2018
05:27 AM
|
3
|
1
|
1692
|
POST
|
Yes, i see : privateHostingServerUrl:"https://XXXXX.XXXX.XX:6443/arcgis" I am able to access this url
... View more
10-24-2017
12:04 AM
|
0
|
0
|
2169
|
POST
|
Thank you for your answers. This problem also occur as a portal administrator. Our data is stored in a SQL server database. I tested with features services and by importing a shapefile directly into the Portal. Everything is on the same network.
... View more
10-20-2017
01:28 AM
|
0
|
0
|
2168
|
POST
|
Hi everyone, We have a problem with the Analysis Widget in WebApp in ArcGIS Portal. In fact, we have : A server with ArcGIS Server 10.5.1 and ArcGIS Data Store 10.5.1 A server with ArcGIS Portal 10.5.1 and two Web Adaptor (Portal and Server) All is configured with a signed certificate and https only We can do analysis in WebMap but in WebApp, we never have the answer of the analysis. In the ArcGIS Server log, we have this error : Error executing tool. CreateBuffers Job ID: j52a644d47a7f43ca943961321856af28 : Invalid value for parameter inputLayer - Details : Portal request computePrivateServiceUrl failed with error ERROR: code:403, You do not have permissions to access this resource or perform this operation. Access to this resource is forbidden, regardless of authorization. Do you have an idea of the problem ? Thanks in advance
... View more
10-19-2017
02:33 AM
|
0
|
19
|
5765
|
POST
|
Hi everyone, I have a question about versioning on SQL Server and ArcGIS. We have two versions : Default and Project_A Is there a way to select certain change from projet_A and post them to the version Default ? ex : ArcMap Add-in, Python Script, SQL Queries,... Thanks in advance
... View more
05-22-2017
12:46 AM
|
0
|
1
|
807
|
POST
|
You have right. I jave used this example : arcobjects-sdk-community-samples/ExportActiveViewCS_Net.cs at master · Esri/arcobjects-sdk-community-samples · GitHub
... View more
09-29-2016
03:19 AM
|
1
|
0
|
817
|
POST
|
Sorry for my late answer. It works. Thank you very much.
... View more
09-29-2016
02:44 AM
|
0
|
2
|
817
|
POST
|
Greetings all, I need help to work whith Arcgis Pro Tasks. It is very simple. I want to create a task wich select a feature and zoom over. The task does : input, the user must enter text (copy the text in a variable) and click run the task does a sql request like "select * from stops where name like '%variable%'" zoom on the feature selected I don't know how to do. I can not find an example. Thanks in advance. Nicolas
... View more
09-29-2016
02:40 AM
|
0
|
4
|
1679
|
POST
|
Hi everyone, I have a problem with Arcobjects SDK C#. I want to export a MXD to PDF, AI and PNG. The PDF and AI Export works fine but not the PNG Export. When I export to PNG, I have this error : Exception de HRESULT : 0x80040334 My call : IMapDocument pMapDoc = new MapDocument(); pMapDoc.Open(folderFileMXD + nameFile + ".mxd"); IActiveView m_ActiveView = pMapDoc.ActiveView; ExportActiveViewParameterized(nameFile, m_ActiveView, 300, 1, "PNG", folderFilePNG, false); My function : private static void ExportActiveViewParameterized(string fileName, IActiveView docActiveView, int iOutputResolution, int lResampleRatio, string ExportType, string sOutputDir, Boolean bClipToGraphicsExtent) { try { IExport docExport; IPrintAndExport docPrintExport; IOutputRasterSettings RasterSettings; // The Export*Class() type initializes a new export class of the desired type. if (ExportType == "PDF") { docExport = new ExportPDFClass(); } else if (ExportType == "AI") { docExport = new ExportAIClass(); } else if (ExportType == "PNG") { docExport = new ExportPNGClass(); } else { ExportType = "EMF"; docExport = new ExportEMFClass(); } docPrintExport = new PrintAndExportClass(); docExport.ExportFileName = sOutputDir + fileName + "." + docExport.Filter.Split('.')[1].Split('|')[0].Split(')')[0]; //// check if export is vector or raster if (docExport is IOutputRasterSettings) { // for vector formats, assign the desired ResampleRatio to control drawing of raster layers at export time RasterSettings = (IOutputRasterSettings)docExport; RasterSettings.ResampleRatio = (int)lResampleRatio; } docPrintExport.Export(docActiveView, docExport, 300, bClipToGraphicsExtent, null); } catch (Exception e) { Log.Error("FAILURE"); Log.Error(e.Message); Log.Error(e.StackTrace); } } Do you have an idea of the problem ? Thanks in advance
... View more
04-18-2016
03:12 AM
|
0
|
5
|
5380
|
POST
|
Hi everyone, I have a problem. I want to display an image around a point. The need : To do that, I create a point to the right of my specific points. And finally, I Apply a symbology to get an image. The problem is to calculate the X offs to avoid hiding the other labels Is there another way to display an image around a point ? or is there a property to automatically manage the offset ? Thanks in advance
... View more
03-14-2016
04:04 AM
|
0
|
0
|
1943
|
POST
|
Yeah it works ! Thank you very much Jon ! the good code : // The labels placement IMaplexLabelStackingProperties objLabelStackingProperties = new MaplexLabelStackingProperties(); objLabelStackingProperties.AddSeparator("-", true, false, true); IMaplexOverposterLayerProperties maplexOverposterLayerProperties = new MaplexOverposterLayerPropertiesClass(); maplexOverposterLayerProperties.FeatureType = esriBasicOverposterFeatureType.esriOverposterPoint; maplexOverposterLayerProperties.PointPlacementMethod = esriMaplexPointPlacementMethod.esriMaplexNorthOfPoint; maplexOverposterLayerProperties.CanTruncateLabel = false; maplexOverposterLayerProperties.CanStackLabel = true; maplexOverposterLayerProperties.LabelStackingProperties = objLabelStackingProperties;
... View more
03-08-2016
05:17 AM
|
1
|
0
|
929
|
POST
|
It still does not nork. In debug mode, after the addseparator method, the number is still 2 separators (2 by default). I don't understand why.
... View more
03-08-2016
02:53 AM
|
0
|
2
|
929
|
POST
|
Thank you for your help. my full code : // The labels placement IMaplexOverposterLayerProperties maplexOverposterLayerProperties = new MaplexOverposterLayerPropertiesClass(); maplexOverposterLayerProperties.FeatureType = esriBasicOverposterFeatureType.esriOverposterPoint; maplexOverposterLayerProperties.PointPlacementMethod = esriMaplexPointPlacementMethod.esriMaplexNorthOfPoint; maplexOverposterLayerProperties.CanTruncateLabel = false; maplexOverposterLayerProperties.CanStackLabel = true; maplexOverposterLayerProperties.LabelStackingProperties.AddSeparator("-", true, false, true); //Font Style ITextSymbol pTextSymbol = new TextSymbolClass(); pTextSymbol.Font = CreateDefaultFontDisp(); IRgbColor arcColor = new RgbColor(); arcColor.Red = 13; arcColor.Green = 75; arcColor.Blue = 151; pTextSymbol.Color = arcColor; //Execution IGeoFeatureLayer pGeoFeatureLayer = (IGeoFeatureLayer)pLayer; IAnnotateLayerPropertiesCollection pAnnoLayerPropsColl = pGeoFeatureLayer.AnnotationProperties; pGeoFeatureLayer.DisplayAnnotation = true; IAnnotateLayerProperties pAnnoLayerProps; IElementCollection iec; pAnnoLayerPropsColl.QueryItem(0, out pAnnoLayerProps, out iec, out iec); ILabelEngineLayerProperties2 pLabelEngineLayerProps = (ILabelEngineLayerProperties2)pAnnoLayerProps; pLabelEngineLayerProps.Symbol = pTextSymbol; pLabelEngineLayerProps.OverposterLayerProperties = (IOverposterLayerProperties)maplexOverposterLayerProperties; pLabelEngineLayerProps.Expression = "[" + strFieldName + "]"; IActiveView m_ActiveView = pMapDoc.ActiveView; m_ActiveView.Refresh();
... View more
03-08-2016
02:02 AM
|
0
|
4
|
929
|
POST
|
Hi everyone, I have a problem with the use of Maplex in C#. I have to create symbology on Layer. Everything is working except maplex properties. My need is to add a separator ('-') on "label stacking properties". My code : // The labels placement IMaplexOverposterLayerProperties maplexOverposterLayerProperties = new MaplexOverposterLayerPropertiesClass(); maplexOverposterLayerProperties.FeatureType = esriBasicOverposterFeatureType.esriOverposterPoint; maplexOverposterLayerProperties.PointPlacementMethod = esriMaplexPointPlacementMethod.esriMaplexNorthOfPoint; maplexOverposterLayerProperties.CanTruncateLabel = false; maplexOverposterLayerProperties.CanStackLabel = true; maplexOverposterLayerProperties.LabelStackingProperties.AddSeparator("-", true, false, true); ... ILabelEngineLayerProperties2 pLabelEngineLayerProps = (ILabelEngineLayerProperties2)pAnnoLayerProps; pLabelEngineLayerProps.Symbol = pTextSymbol; pLabelEngineLayerProps.OverposterLayerProperties = (IOverposterLayerProperties)maplexOverposterLayerProperties; pLabelEngineLayerProps.Expression = "[" + strFieldName + "]"; IActiveView m_ActiveView = pMapDoc.ActiveView; m_ActiveView.Refresh(); There is no error in the execution but the separator is not added. Do you have an idea of the problem ? Thanks in advance
... View more
03-08-2016
01:35 AM
|
0
|
6
|
3415
|
Title | Kudos | Posted |
---|---|---|
1 | 03-08-2016 05:17 AM | |
1 | 09-29-2016 03:19 AM | |
3 | 01-02-2018 05:27 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|