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
|
8
|
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
|
287
|
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
|
150
|
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
|
8
|
POST
|
Thanks Dan, I will take that under consideration on future postings.
... View more
03-07-2017
10:38 AM
|
0
|
0
|
8
|
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
|
8
|
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
|
599
|
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
|
440
|
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
|
1188
|
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
|
1250
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|