POST
|
Good Morning, Help please we need some input on if we should use a Raster or a Mosaic?. We have about 1000 Railroad R/W maps that make up the current and abandoned railroads throughout our County. We have Geo referenced them using ARCGIS 10.1 tools to spatially align (sort of) to our existing parcel and control data. Many of the images are overlapping and the information that may be needed is not something that can be assighned to the individual images themselves. I would like the user to be able to easily identify and turn on and off the images that are in the extent of his ArcMap 10.1 display. I have read the raster data organization in the ArcGIS 10.1 help and still am having some difficulty in choosing a path. I am leaning toward the catalog for ease in turning on and off particular images is my thinking on this correct?
... View more
04-13-2015
10:25 AM
|
0
|
0
|
2280
|
POST
|
Help Please. I have an Arc Engine application that contains a PAGELAYOUT CONTROL In the code progressing I have acquired the centroid's of some selected polygons in realworld coordinates (ie x = 2484242.45 and Y = 276913.75) I have verified the coordinates are correct in arc map for the selected polygons. I am trying to use the centroid x, y location to be the anchor point for some balloon callouts. thus converting the realworld coordinates to page units (ie x = 1.1 in & y = 4.3in) Here I run into problems. Here is function I found on esri site but Obviously I am missing something and I know it is probably something simple. Can anyone help I am definately not getting page units to anchor the text balloon callouts like I expected. I am thinking I might have to populates some constants prior to running the conversion. Here is the function as I have used it Function GetScreenCoordinatesFromMapCoorindates(ByVal mapPoint As ESRI.ArcGIS.Geometry.IPoint, ByVal activeView As ESRI.ArcGIS.Carto.IActiveView, ByVal mapenvelope As IEnvelope) As ESRI.ArcGIS.Geometry.IPoint If mapPoint Is Nothing OrElse mapPoint.IsEmpty OrElse activeView Is Nothing Then Return Nothing End If Dim screenDisplay As ESRI.ArcGIS.Display.IScreenDisplay = activeView.ScreenDisplay Dim displayTransformation As ESRI.ArcGIS.Display.IDisplayTransformation = screenDisplay.DisplayTransformation Dim x As System.Int32 Dim y As System.Int32 displayTransformation.FromMapPoint(mapPoint, x, y) Dim returnPoint As ESRI.ArcGIS.Geometry.IPoint = New ESRI.ArcGIS.Geometry.PointClass returnPoint.PutCoords(x, y) Return returnPoint End Function
... View more
12-31-2014
12:06 PM
|
0
|
0
|
4063
|
POST
|
Help Please. I have an Arc Engine application that contains a PAGELAYOUT CONTROL In the code progressing I have acquired the centroid's of some selected polygons in realworld coordinates (ie x = 2484242.45 and Y = 276913.75) I have verified the coordinates are correct in arc map for the selected polygons. I am trying to use the centroid x, y location to be the anchor point for some balloon callouts. thus converting the realworld coordinates to page units (ie x = 1.1 in & y = 4.3in) Here I run into problems. Here is function I found on esri site but Obviously I am missing something and I know it is probably something simple. Can anyone help I am definately not getting page units to anchor the text balloon callouts like I expected. I am thinking I might have to populates some constants prior to running the conversion. Here is the function as I have used it Function GetScreenCoordinatesFromMapCoorindates(ByVal mapPoint As ESRI.ArcGIS.Geometry.IPoint, ByVal activeView As ESRI.ArcGIS.Carto.IActiveView, ByVal mapenvelope As IEnvelope) As ESRI.ArcGIS.Geometry.IPoint If mapPoint Is Nothing OrElse mapPoint.IsEmpty OrElse activeView Is Nothing Then Return Nothing End If Dim screenDisplay As ESRI.ArcGIS.Display.IScreenDisplay = activeView.ScreenDisplay Dim displayTransformation As ESRI.ArcGIS.Display.IDisplayTransformation = screenDisplay.DisplayTransformation Dim x As System.Int32 Dim y As System.Int32 displayTransformation.FromMapPoint(mapPoint, x, y) Dim returnPoint As ESRI.ArcGIS.Geometry.IPoint = New ESRI.ArcGIS.Geometry.PointClass returnPoint.PutCoords(x, y) Return returnPoint End Function
... View more
12-29-2014
04:29 PM
|
0
|
0
|
4078
|
POST
|
You might need to release the COM objects you're using. You can do that via Marshal.ReleaseComObject. What com pbjects do you believe I should release. I am now starting to release all of them in the procedure. any hints please
... View more
01-29-2014
10:19 AM
|
0
|
0
|
479
|
POST
|
I have created a shapefile using the code below. The addin tosses no errors and the shapefiles show up in Arccatalog with the geography viewable in the preview window. However if you preview the table the attribute items are listed but no attributes populated. If I exit the arcmap with the add in low and behold the attributes get populated. This code has worked before using vb and arcobjects from withing arcmap converting it to a ARCGIS addin now using vb.net. any suggestions Public Sub ExportFc_Arc(ByVal txtType As String, ByVal txtAco As String) On Error GoTo ErrorHandler 'Export selected Arc features to a new shapefile Dim pFLayer As IFeatureLayer Dim pFc As IFeatureClass Dim pInFeatureClassName As IFeatureClassName Dim pDataset As IDataset Dim pInDSName As IDatasetName Dim pFSel As IFeatureSelection Dim pSelSet As ISelectionSet Dim pFeatureClassName As IFeatureClassName Dim pOutDatasetName As IDatasetName Dim pWorkspaceName As IWorkspaceName Dim pExportOp As IExportOperation 'Get the first layer in the map to be exported pdoc = My.ArcMap.Document pFLayer = pdoc.FocusMap.Layer(intArcLocation) pFc = pFLayer.FeatureClass 'Get the Featureclassname from the featureclass pDataset = pFc pInFeatureClassName = pDataset.FullName pInDSName = pInFeatureClassName 'Get the selected features pFSel = pFLayer pSelSet = pFSel.SelectionSet 'Define the output featureclass 'give it the name of the input feature class + exp pFeatureClassName = New FeatureClassName pOutDatasetName = pFeatureClassName pOutDatasetName.Name = txtType & "Arc" & "_" & txtAco pWorkspaceName = New WorkspaceName pWorkspaceName.PathName = "\\something\assessor\GIS\SegProgram" pWorkspaceName.WorkspaceFactoryProgID = "esriCore.shapefileworkspacefactory.1" pOutDatasetName.WorkspaceName = pWorkspaceName 'Give the output shapefile the same props as the input dataset pFeatureClassName.FeatureType = pFc.FeatureType pFeatureClassName.ShapeType = pFc.ShapeType pFeatureClassName.ShapeFieldName = pFc.ShapeFieldName 'Export selected features pExportOp = New ExportOperation pExportOp.ExportFeatureClass(pInDSName, Nothing, pSelSet, Nothing, pOutDatasetName, 0) Exit Sub ErrorHandler: MsgBox("ExportFC_Arc Routine: " & Err.Description) End Sub
... View more
01-29-2014
09:54 AM
|
0
|
4
|
2874
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|