POST
|
Using the same workflow, will a map package referencing data in a file geodatabase load into Local Server? Referencing data option is only for enterprise data. What about if you include the data in the map package rather than reference it? If I include the data in the map package, it copies data into FileGDB inside and map package and it works fine. What version of ArcGIS Pro was the map package created with? Tried both ArcGIS Pro 2.2 and 2.3. What version of the ArcGIS Runtime SDK and Local Server are you using? Tries both ArcGIS Runtime SDK 100.3, 100.4 and Local Server 100.3.
... View more
02-17-2019
05:03 PM
|
0
|
5
|
3235
|
POST
|
yes and I use Runtime support version as 'Current Version'.
... View more
02-14-2019
06:50 PM
|
0
|
7
|
3235
|
POST
|
I created map package(mpkx) with referenced data from enterprise geodatabase. When I load the package using Local Server into an app using Runtime SDK for WPF, getting "Failed to create service lakes MapServer. Service failed to initialize: The map package is not supported by the ArcGIS Runtime. There is no .msd file available inside the package. Check that it was authored with ArcGIS Runtime support enabled." error. Any idea? Thanks Krishna
... View more
02-10-2019
04:24 PM
|
0
|
9
|
3766
|
POST
|
Getting "Failed to create service lakes MapServer. Service failed to initialize: The map package is not supported by the ArcGIS Runtime. There is no .msd file available inside the package. Check that it was authored with ArcGIS Runtime support enabled." error when loading mpkx from ArcGIS runtime SDK app using local server. Map has data from enterprise database and I want to reference the data instead of copying it to FileGDB so I choose the following options when creating map package. When I extracted .mpkx file, I don't see msd file in the package. I am using ArcGIS Pro 2.3 and Runtime SDK 100.4. Any idea? Thanks Krishna
... View more
02-07-2019
06:07 PM
|
1
|
0
|
478
|
POST
|
I have Several Feature Service Layers inside Feature services and when I add Feature services to Map view using following method ArcGISFeatureLayer secureFeatureLayer = new ArcGISFeatureLayer(Feature_Service_url, MODE.ONDEMAND); its Layers does not show up in Map view. But when I add individual Feature Service Layer it does show the layer details correctly. So My question is to add Feature services do I have to add its Layers one by one or is there any other ways to add Feature Service directly to Map view?
... View more
01-27-2014
08:10 PM
|
0
|
1
|
2329
|
POST
|
Hi All, I have an silverlight app which is using one or more map services. I am also using layers from the mapservice for selection purpose with "SelectionOnly" mode . And it is working fine with editor selection tool. I also have an tool which will get ObjectIds from SOE. The SOE will perform network related operations and returns the ObjectIds of result features. I cannot use the SOE to return geometry, as some times it returns large number of features but user may want to select only few features. I want to select features from the layer using these objectids. Can anyone help me, what is the best method (with performance) to do it? Thanks, Krishna
... View more
12-27-2011
11:08 AM
|
0
|
1
|
340
|
POST
|
Hi All, Can any one help me on this? I want to export feature class from one GDB to another with the same object ids. Thank you.
... View more
12-02-2010
11:58 AM
|
0
|
3
|
1740
|
POST
|
Rotate tool Hi All, I am writing rotate tool similar to ArcMap rotate tool using EngineRotateTrackerClass. I am unable to rotate to features first time, however , able to rotate second time onwards. Can any one help me please. Here is the scenorio 1. Start editing 2. Select features 3. Select Rotate tool 4. Mousedown on map & rotate features...which is not working. 5. If again mousedown & rotate features working fine. Here is the code I am using... private IHookHelper m_hookHelper = null; private IRotateTracker rotateTracker = null; bool m_bMouseDownOccurred = true; public override void OnClick() { this.rotateTracker = new EngineRotateTrackerClass(); IScreenDisplay screenDisplay = this.m_hookHelper.ActiveView.ScreenDisplay; this.rotateTracker.Display = screenDisplay; } public override void OnMouseDown(int Button, int Shift, int X, int Y) { InitializeTracker(); if (this.rotateTracker != null) this.rotateTracker.OnMouseDown(); m_bMouseDownOccurred = true; } private void InitializeTracker() { IEnumFeature enumFeat = this.m_hookHelper.FocusMap.FeatureSelection as IEnumFeature; if (enumFeat != null) { this.rotateTracker.ClearGeometry(); IFeature feat = enumFeat.Next(); ESRI.ArcGIS.Geometry.IGeometry objGeometry = feat.ShapeCopy; ESRI.ArcGIS.Geometry.IPoint objPoint = new ESRI.ArcGIS.Geometry.PointClass(); objPoint.X = ((objGeometry.Envelope.UpperRight.X - objGeometry.Envelope.LowerLeft.X) / 2.0) + objGeometry.Envelope.LowerLeft.X; objPoint.Y = ((objGeometry.Envelope.UpperRight.Y - objGeometry.Envelope.LowerLeft.Y) / 2.0) + objGeometry.Envelope.LowerLeft.Y; this.rotateTracker.Origin = objPoint; this.rotateTracker.ClearGeometry(); //this.rotateTracker.AddGeometry(feat.ShapeCopy); enumFeat.Reset(); feat = enumFeat.Next(); while (feat != null) { this.rotateTracker.AddGeometry(feat.ShapeCopy); feat = enumFeat.Next(); } } } public override void OnMouseMove(int Button, int Shift, int X, int Y) { if (!(Button == 1)) return; if (m_bMouseDownOccurred) { //Debug.WriteLine("RotationTrackerTool beginning OnMouseMove"); if ((this.rotateTracker != null)) { ESRI.ArcGIS.Geometry.IPoint pPoint = new PointClass(); ESRI.ArcGIS.Display.IScreenDisplay pScreenDisplay = this.m_hookHelper.ActiveView.ScreenDisplay; pPoint = pScreenDisplay.DisplayTransformation.ToMapPoint(X, Y); rotateTracker.OnMouseMove(pPoint); // this.m_hookHelper.ActiveView.Refresh(); } } } public override void OnMouseUp(int Button, int Shift, int X, int Y) { try { if (!(Button == 1)) return; //Debug.WriteLine("RotationTrackerTool beginning OnMouseUp"); if ((rotateTracker != null)) { if (!rotateTracker.OnMouseUp()) { return; } IInvalidArea2 pRefresh = null; ; pRefresh = new InvalidAreaClass(); pRefresh.Display = this.m_hookHelper.ActiveView.ScreenDisplay; engineEditor.StartOperation(); IEnumFeature enumFeat = this.engineEditor.EditSelection; IFeature feat = enumFeat.Next(); while (feat != null) { pRefresh.Add(feat); ESRI.ArcGIS.Geometry.IGeometry pGeom = feat.ShapeCopy; if (pGeom is ESRI.ArcGIS.Geometry.ITransform2D) { ESRI.ArcGIS.Geometry.ITransform2D pTransform2D = pGeom as ESRI.ArcGIS.Geometry.ITransform2D; pTransform2D.Rotate(rotateTracker.Origin, rotateTracker.Angle); feat.Shape = pGeom; feat.Store(); pRefresh.Add(feat); } feat = enumFeat.Next(); } engineEditor.StopOperation("Rotate Operation"); pRefresh.Invalidate((short)ESRI.ArcGIS.Display.esr iScreenCache.esriAllScreenCaches); } } catch (Exception ex) { } finally { } }
... View more
05-11-2010
01:29 PM
|
0
|
2
|
462
|
POST
|
Hi All, I am writing rotate tool similar to ArcMap rotate tool using EngineRotateTrackerClass. I am unable to rotate to features first time, however , able to rotate second time onwards. Can any one help me please. Here is the scenorio 1. Start editing 2. Select features 3. Select Rotate tool 4. Mousedown on map & rotate features...which is not working. 5. If again mousedown & rotate features working fine. Here is the code I am using... private IHookHelper m_hookHelper = null; private IRotateTracker rotateTracker = null; bool m_bMouseDownOccurred = true; public override void OnClick() { this.rotateTracker = new EngineRotateTrackerClass(); IScreenDisplay screenDisplay = this.m_hookHelper.ActiveView.ScreenDisplay; this.rotateTracker.Display = screenDisplay; } public override void OnMouseDown(int Button, int Shift, int X, int Y) { InitializeTracker(); if (this.rotateTracker != null) this.rotateTracker.OnMouseDown(); m_bMouseDownOccurred = true; } private void InitializeTracker() { IEnumFeature enumFeat = this.m_hookHelper.FocusMap.FeatureSelection as IEnumFeature; if (enumFeat != null) { this.rotateTracker.ClearGeometry(); IFeature feat = enumFeat.Next(); ESRI.ArcGIS.Geometry.IGeometry objGeometry = feat.ShapeCopy; ESRI.ArcGIS.Geometry.IPoint objPoint = new ESRI.ArcGIS.Geometry.PointClass(); objPoint.X = ((objGeometry.Envelope.UpperRight.X - objGeometry.Envelope.LowerLeft.X) / 2.0) + objGeometry.Envelope.LowerLeft.X; objPoint.Y = ((objGeometry.Envelope.UpperRight.Y - objGeometry.Envelope.LowerLeft.Y) / 2.0) + objGeometry.Envelope.LowerLeft.Y; this.rotateTracker.Origin = objPoint; this.rotateTracker.ClearGeometry(); //this.rotateTracker.AddGeometry(feat.ShapeCopy); enumFeat.Reset(); feat = enumFeat.Next(); while (feat != null) { this.rotateTracker.AddGeometry(feat.ShapeCopy); feat = enumFeat.Next(); } } } public override void OnMouseMove(int Button, int Shift, int X, int Y) { if (!(Button == 1)) return; if (m_bMouseDownOccurred) { //Debug.WriteLine("RotationTrackerTool beginning OnMouseMove"); if ((this.rotateTracker != null)) { ESRI.ArcGIS.Geometry.IPoint pPoint = new PointClass(); ESRI.ArcGIS.Display.IScreenDisplay pScreenDisplay = this.m_hookHelper.ActiveView.ScreenDisplay; pPoint = pScreenDisplay.DisplayTransformation.ToMapPoint(X, Y); rotateTracker.OnMouseMove(pPoint); // this.m_hookHelper.ActiveView.Refresh(); } } } public override void OnMouseUp(int Button, int Shift, int X, int Y) { try { if (!(Button == 1)) return; //Debug.WriteLine("RotationTrackerTool beginning OnMouseUp"); if ((rotateTracker != null)) { if (!rotateTracker.OnMouseUp()) { return; } IInvalidArea2 pRefresh = null; ; pRefresh = new InvalidAreaClass(); pRefresh.Display = this.m_hookHelper.ActiveView.ScreenDisplay; engineEditor.StartOperation(); IEnumFeature enumFeat = this.engineEditor.EditSelection; IFeature feat = enumFeat.Next(); while (feat != null) { pRefresh.Add(feat); ESRI.ArcGIS.Geometry.IGeometry pGeom = feat.ShapeCopy; if (pGeom is ESRI.ArcGIS.Geometry.ITransform2D) { ESRI.ArcGIS.Geometry.ITransform2D pTransform2D = pGeom as ESRI.ArcGIS.Geometry.ITransform2D; pTransform2D.Rotate(rotateTracker.Origin, rotateTracker.Angle); feat.Shape = pGeom; feat.Store(); pRefresh.Add(feat); } feat = enumFeat.Next(); } engineEditor.StopOperation("Rotate Operation"); pRefresh.Invalidate((short)ESRI.ArcGIS.Display.esriScreenCache.esriAllScreenCaches); } } catch (Exception ex) { } finally { } }
... View more
04-19-2010
01:41 PM
|
0
|
2
|
2472
|
Title | Kudos | Posted |
---|---|---|
1 | 02-07-2019 06:07 PM | |
1 | 02-25-2019 08:46 AM |
Online Status |
Offline
|
Date Last Visited |
4 hours ago
|