POST
|
To answer my own question. Because our raster data is Tiled in ArcGIS 10.2.2 I had to modify my code. ' ' --- Tiled Mapcache Data ' Try ' ' --- Assign path of Tile Cache location to string path object ' Dim TCMapLayer As TileCacheMapLayer = New TileCacheMapLayer(m_OrthoLocalStoragePath + "\Layers") ' ' --- Assign name of Tile Cache Maplayer and make it visible ' TCMapLayer.Name = "2015 Orthos" TCMapLayer.Visible = True ' ' --- Open the Tile Cache Maplayer ' TCMapLayer.Open() ' ' --- Add the Tile Cache Maplayer to the map ' Map1.MapLayers.Add(TCMapLayer) ' Catch ex As Exception MessageBox.Show("Cannot open map cache" & vbCr & vbCr & _ "Error Message: " & ex.ToString) End Try
... View more
08-04-2017
05:17 AM
|
0
|
0
|
320
|
POST
|
Our running SDE 10.0 server with most all our clients using ArcGIS 10.2.2. I upgrade my client development computer to ArcGIS 10.4.1. I'm able to add simple feature classes into ArcMap without any issue. But, when I try to add a feature class within a Geometric Network is get the following message. "Error opening feature class The feature class participates in a geometric network that could not be opened. This SDE server does not support this client or operation." I'm assuming that this is a compatibility issue. Saying that, the question is, What to version of SDE server do we need to upgrade in order to be backward compatible to obtain geometric network feature classes?
... View more
07-18-2017
11:25 AM
|
0
|
2
|
803
|
POST
|
I have a custom ArcObjects 10.4 tool that moves a selected feature from current location to another location. The first mouse down event is used to select the feature and get the XY location. As the mouse is moved, it draws a line showing it location and the distance from current location to the mouse location is display in a form. On the second mouse down event which indicated the new location of the feature, the feature is relocated. The problem is that the location of the line and cursor of the mouse if offset. This causes the new location of the feature to be in the wrong location. I’m not sure why. Can someone give me advice? Thanks…
... View more
07-14-2017
06:04 AM
|
0
|
0
|
367
|
POST
|
OK... I found some code that got me access to the Standard toolbar within ArcMap. Just a little modifications to obtain the starting location of the toolbar which I can use anchor my form until it's closed. ' ' --- Get coordinates of the upper left corner of the Standard Bar (location) ' This will be used to position the Move Post form ' Dim documentBars As ICommandBars = gApplication.Document.CommandBars 'app is a reference to IApplication Dim barID As UID = New UIDClass barID.Value = "{5DEB1DB8-C2A9-11D1-B9A2-080009EE4E51}" Dim bar As ICommandItem = documentBars.Find(barID) Dim windowPos As IWindowPosition = CType(bar, IWindowPosition) 'If windowPos.State = esriWindowState.esriWSFloating Then ' MsgBox("Standard toolbar is floating.") 'Else ' MsgBox("Standard toolbar is docked.") 'End If ' ' --- Call create Move Post form ' gfrmMovePost = New MovePost ' ' --- Change the location of the form ' gfrmMovePost.Top = windowPos.Top gfrmMovePost.Left = windowPos.Left ' ' --- Call form and display it ' gfrmMovePost.Show()
... View more
03-07-2017
10:46 AM
|
0
|
0
|
509
|
POST
|
Thanks Dan, I will take that under consideration on future postings.
... View more
03-07-2017
10:38 AM
|
0
|
0
|
509
|
POST
|
I'm working with ArcGIS 10.2.2 version and ArcObjects. I haven't used Python at all.
... View more
03-07-2017
05:16 AM
|
0
|
1
|
509
|
POST
|
I'm needing to programmatically display a form at the upper left position of ArcMap the data view. How do I get the X/Y position?
... View more
03-03-2017
01:26 PM
|
0
|
5
|
1100
|
POST
|
I developed an ArcGIS 10.2.2 ArcObjects desktop tool for user to move features from on location to another using the iRubberband on the mouse down event. I select one feature, use the rubber band to move the new location, and drop it. This works fine. When the iRubberband interface invoked, I'm not able to obtain the length as the mouse is moved. After I double-click the mouse to designate the location, action of the interface is released. At that point I can get the length of the line. How can I programmatically get the distance from the rubber band interface and display it in a form or the line as I move it? ArcMap's Measure tools prime example of what I want to do. As I measure a segment, it displays on a form.
... View more
02-06-2017
12:58 PM
|
0
|
0
|
630
|
POST
|
I'm trying to programmatically load raster mapcache data into a 10.2 windows mobile application. This vector mapcache data is loading without any issues. I suspect that the raster mapcache data is not considered a layer type because that's were it fails. See attached code file. So, how do you programmatically add Raster mapcache data to the map?
... View more
02-08-2016
09:00 AM
|
0
|
0
|
1426
|
POST
|
I created the vector and raster mapcache data using the "Create Mobile Cache" tool of the "Mobile Tools" within ArcCatalog. This application is created with ArcGIS 10.2.2 SDK for Windows Mobile. I don’t have any problems loading the Vector mapcache data which are recognized as map layers. But I’m having problems loading the Raster mapcache data which seem not to be map layer based. ' ' --- Load the Raster MapCache - Not Working ' RasterMapCache.StoragePath = Trim(m_OrthoLocalStoragePath) If RasterMapCache.CacheExists Then ' ' --- Open the Raster MapCache ' RasterMapCache.Open() ' ' --- Add Raster MapCache to Map as (Map Layers) - ??? ' Me.Map1.MapLayers.Add(RasterMapCache) 'Not Working - Crashing at this statement ' End If ' ' --- Load the Vector MapCache - Working Fine ' VectorMapCache.StoragePath = Trim(m_MapCacheLocalStoragePath) If VectorMapCache.CacheExists Then ' ' --- Open the Vector MapCache ' VectorMapCache.Open() ' ' --- Add Vector MapCache to Map as Map Layers ' Me.Map1.MapLayers.Add(VectorMapCache) ' End If
... View more
02-05-2016
01:00 PM
|
0
|
1
|
1562
|
POST
|
Private Sub Get_Street_Names_From_Domain() ' ' --- Get Code and Street name from Street layer ' Try ' ' --- Street layer - Get Street Domain ' Dim pSource As FeatureSource = VectorMobileCache.FeatureSources(g_Street_LP) pSearchSource = pSource ' Dim pDomain As IDomain pDomain = pSource.Columns("STR_CODE").GetDomain(0) Dim pSW As Workspace = pSource.Workspace Dim pCV As CodedValueDomain = CType(pDomain, CodedValueDomain) ' ' --- Get count ' gStreetArrayCount = pCV.Rows.Count ' ' --- If count is greater than zero ' If gStreetArrayCount > 0 Then ' Dim i As Integer ' ' --- Loop thru rows to get code and street name ' For i = 0 To gStreetArrayCount - 1 gStreetArray(0, i) = pCV.Rows(i).Item(0) 'Code gStreetArray(1, i) = pCV.Rows(i).Item(1) 'Description gStreetArray(2, i) = UCase(pCV.Rows(i).Item(1)) 'Description in upper case Next I Else MessageBox.Show("Problems obtaining Street Names domain.", "Street Domain - Error", MessageBoxButtons.OK, MessageBoxIcon.Information) End If ' Catch ex As Exception g_ErrorMessage = " - Viewer - Problems obtaining Street Names domain: " & ex.Message.ToString WriteLog(g_ErrorMessage) ' MessageBox.Show("Problems obtaining Street Names domain.", "Street Domain - Error", MessageBoxButtons.OK, MessageBoxIcon.Information) End Try End Sub '___________________________________________________________________________________
... View more
12-29-2015
01:55 PM
|
0
|
0
|
309
|
POST
|
Yes you can add halo around the text. // //------------------------------------------------- // --- Create halo symbology mask for text --- //------------------------------------------------- // // --- Set the Halo color - White // HaloColor.Red = 255; HaloColor.Green = 255; HaloColor.Blue = 255; // // --- Create Halo Font Symbol // HaloFontSymbol.Font = ESRI.ArcGIS.ADF.COMSupport.OLE.GetIFontDispFromFont(HaloDrawFont) as stdole.IFontDisp; // HaloFontSymbol.Font.Size = 24; HaloFontSymbol.Font.Bold = true; HaloFontSymbol.Angle = 0.0; HaloFontSymbol.Color = HaloColor; // // --- Set the Simple Fill color // SimpleFill.Color = HaloColor; SimpleFill.Style = ESRI.ArcGIS.Display.esriSimpleFillStyle.esriSFSSolid; SimpleFill.Outline = null; // // --- Setup a mask // pMask = (IMask)HaloFontSymbol; pMask.MaskSymbol = SimpleFill; pMask.MaskSize = 2; pMask.MaskStyle = esriMaskStyle.esriMSHalo; // // --- Create and add halo text to graphic container // // // --- Add text element and set properties // HaloTextElement.Text = gPolygonText; HaloTextElement.Symbol = HaloFontSymbol; // // --- Create element, set property & add to graphic container // HaloElement = HaloTextElement as IElement; TextPoint.Y -= .5; HaloElement.Geometry = TextPoint; // // --- Add graphic text element to graphic container // if (cbDrawResults.Checked) { SearchGraphicsContainer.AddElement(HaloElement, 0); }
... View more
12-11-2015
01:08 PM
|
0
|
0
|
418
|
POST
|
What library (dll) are you importing in your code to get the Layer and Feature Layer objects?
... View more
12-10-2015
05:51 AM
|
0
|
0
|
286
|
POST
|
I am writing a standalone mobile application that consume the mapcache data to a map viewer in Version 10.2.2 I want to create a search tool that contains a combo-box which I want to auto-populate it with the values of the layer's field domain. How do I obtain the domain codes and values of a field with the MapLayers.
... View more
12-09-2015
01:55 PM
|
0
|
1
|
2659
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|