|
BLOG
|
I love using Flickr for hosting, storing, and sharing the photos that I take of my family. I also like how you can geotag your photos in Flickr as well. For a while, I really wanted to do more with this ability to geotag, such as add my photos to an Esri Story Map. However, it seemed that this ability did not exist just yet. I recall reading an Esri blog post from Bern Szukalski about possibly using the features found in pipes.yahoo.com to try and link your Flickr photos to an ArcGIS Online map (link here) that really confused me. After about a year later, a new blog post came out (that turned into an ArcWatch Article) that demonstrated how to easily use geotagged photos from Flickr and put them in a story map (link here). So, without much modifications, here is my first Story Map!
Trip to San Diego - July 2014
This is my first story map, so I am still tinkering around with it some!
I am not sure if that link will work, so here is the url: http://www.arcgis.com/apps/MapTour/index.html?appid=c9e34c9abf90460796dd0a438ca3ee3f&webmap=92649bcd58204a72bcb6a3148676… Please let me know what you think! ~Adrian
... View more
08-04-2014
04:04 PM
|
0
|
0
|
1125
|
|
POST
|
I do not have ArcGIS for Server but is there a way to make your custom logo be accessible by a public URL? Is there a way that you can host your image on your local server, and have a URL point to it? I imagine that would work.
... View more
08-04-2014
01:07 PM
|
1
|
2
|
636
|
|
POST
|
How do you have a 90GB file on your iPad? Did you mean MB? In any case, if there is room, could you potentially put the same file on the iPad as a backup in a more hidden folder? I know it isn't the exact result that you would like but it could save some downtime. ~Adrian
... View more
08-04-2014
09:05 AM
|
0
|
1
|
664
|
|
POST
|
Kyle, What browser are you using and have you tried other browsers? Have you tried clearing your browser cache as well? ~Adrian
... View more
08-01-2014
07:44 AM
|
0
|
0
|
1610
|
|
POST
|
I'm getting back into Python coding and couldn't find any examples of this. I basically want to write a script that displays an input box where the user will type in an address. I want the address to be found and then zoomed to on the map. Later on, this location will have a point added to it. But my question is, is there a way to use Python to find one user-entered address? Thanks!
... View more
02-01-2013
07:26 AM
|
0
|
1
|
1051
|
|
POST
|
I had code written a long time ago (probably borrowed from ArcGIS 😎 in VBA where an input box pops up and the user enters an address. This address is then geocoded, and a feature class is updated with that point and other info is thrown in there. Is there any sample code for doing something like this in Python in ArcGIS 10? I don't know Python very well and I can't figure out how to have any user input in the form of a box and then have python geocode this single address based on a geocoder that's already in the mxd. It seems that any Python geocoding code that I've seen wants to geocode a table only, not a single inputted address. Thanks in advance and I may post this on the ArcObjects board to see about ideas from there (need to migrate my old, broken VBA code!)
... View more
03-22-2012
01:16 PM
|
0
|
0
|
365
|
|
POST
|
I have recently found a script from ArcScripts on how to get an Access table in ArcGIS programmatically and it works well. But this is for Access 2003 (.mdb extension) and earlier. The code is posted below, and I want to know how to modify it for using Access 2007 (.accdb extension) and later databases. Attribute VB_Name = "Access_connect"
Sub Open_Access_Connect()
'V. Guissard Jan. 2007
On Error GoTo EH
Dim data_source As String
Dim pTable As ITable
Dim TableName As String
Dim pFeatWorkspace As IFeatureWorkspace
Dim pMap As IMap
Dim mxDoc As IMxDocument
Dim pPropset As IPropertySet
Dim pStTab As IStandaloneTable
Dim pStTabColl As IStandaloneTableCollection
Dim pWorkspace As IWorkspace
Dim pWorkspaceFact As IWorkspaceFactory
Set pPropset = New PropertySet
' Get MDB file name
data_source = GetFolder("mdb")
' Connect to the MDB database
pPropset.SetProperty "CONNECTSTRING", "Provider=Microsoft.Jet.OLEDB.4.0;" _
& "Data source=" & data_source & ";User ID=Admin;Password="
Set pWorkspaceFact = New OLEDBWorkspaceFactory
Set pWorkspace = pWorkspaceFact.Open(pPropset, 0)
Set pFeatWorkspace = pWorkspace
' Get table name
TableName = SelectDataSet(pFeatWorkspace, "Table")
' Open the table
Set pTable = pFeatWorkspace.OpenTable(TableName)
'Create Table collection and add the table to ArcMap
Set mxDoc = ThisDocument
Set pMap = mxDoc.FocusMap
Set pStTab = New StandaloneTable
Set pStTab.Table = pTable
Set pStTabColl = pMap
pStTabColl.AddStandaloneTable pStTab
' Update ArcMap Source TOC
mxDoc.UpdateContents
Exit Sub
EH:
MsgBox "Access connect: " & Err.Number & " " & Err.Description
End Sub
Public Function GetFolder(Optional aFilter As String) As String
' Open a GUI to let the user select a Folder path name (by default) or :
' Set aFilter = "shp" to get a shapefile name
' Set aFilter = "mdb" to get an MS Access file name
' Return the Folder Path or phath & file name As String
' V. Guissard Jan. 2007
Dim pGxDialog As IGxDialog
Dim pFilterCol As IGxObjectFilterCollection
Dim pCurrentFilter As IGxObjectFilter
Dim pEnumGx As IEnumGxObject
Select Case aFilter
Case "shp"
Set pCurrentFilter = New GxFilterShapefiles
aTitle = "Select Shapefile"
Case "mdb"
Set pCurrentFilter = New GxFilterContainers
aTitle = "Select MS Access database"
Case Else
Set pCurrentFilter = New GxFilterBasicTypes
aTitle = "Select Folder"
End Select
Set pGxDialog = New GxDialog
Set pFilterCol = pGxDialog
With pFilterCol
.AddFilter pCurrentFilter, True
End With
With pGxDialog
.Title = aTitle
.ButtonCaption = "Select"
End With
If Not pGxDialog.DoModalOpen(0, pEnumGx) Then
Smp = MsgBox("No selection : Exit", vbCritical)
End
'Exit Function 'Exit if user press Cancel
End If
GetFolder = pEnumGx.Next.FullName
End Function
Public Function SelectDataSet(pWorkspace As IWorkspace, Optional theDataType As String) As String
' Open a GUI to let the user select a DataSet into a Workspace
' (Table or Request into an MS Access Database or a Geodatabase File)
' Set pWorkspace to the DataSet IWorkspace
' Set theDataType = "Table" to select a Table name of the DataSet
' Return the selected Table or Request Table name As String
' V. Guissard Jan. 2007
Dim aDataset As Boolean
Dim boolOK As Boolean
Dim DataSetList As New Collection
Dim datasetType As Integer
Dim n As Integer
Dim pDataSetName As IDatasetName
Dim pListDlg As IListDialog
Dim pEnumDatasetName As IEnumDatasetName
' Set the Dataset Type
Select Case theDataType
Case "Table"
datasetType = 10
Case Else
Answ = MsgBox("Need a Dataset Type : Exit", vbCritical, "SelectDataset")
End
End Select
' Get the Dataset Names included in the workspace
Set pEnumDatasetName = pWorkspace.DatasetNames(datasetType)
' Create the Dataset Names List Dialog
aDataset = False
Set pListDlg = New ListDialog
pEnumDatasetName.Reset
Set pDataSetName = pEnumDatasetName.Next
Do While Not pDataSetName Is Nothing
pListDlg.AddString pDataSetName.name
DataSetList.Add (pDataSetName.name)
Set pDataSetName = pEnumDatasetName.Next
aDataset = True
Loop
' Open a GUI for the user to select a dataset
If aDataset Then
boolOK = pListDlg.DoModal("Select a " & theDataType, 0, Application.hwnd)
n = pListDlg.choice
If (n <> -1) Then
SelectDataSet = DataSetList(n + 1)
Else
Sup = MsgBox("No DataSet selected : EXIT", vbCritical, "SelectDataset")
End
End If
End If
End Function Here is the link to the ArcScript: http://arcscripts.esri.com/Data/AS14882.bas PS I know this code is written in VBA and I don't know if a modified version is in VB.NET or whatever else language. Thanks, Adrian
... View more
06-10-2010
10:39 AM
|
0
|
4
|
2776
|
|
POST
|
Thanks Neil! That works now. I wish there was some kind of way to reward you or give you points. I sure hope that ESRI is working on improving this forum site...
... View more
06-08-2010
11:33 AM
|
0
|
0
|
903
|
|
POST
|
Neil, thanks for the example. It seems like it would fix the issue but I'm still having an issue. When I run this code now, it tells me that the table can't be found (from the feature layer). Here is my code: Private Sub btnImportArcMap_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnImportArcMap.Click
Try
Dim pObjFactory As IObjectFactory = DirectCast(m_pApp, IObjectFactory)
Dim FileGDBType As Type = GetType(FileGDBWorkspaceFactoryClass)
Dim typeCLsID As String = FileGDBType.GUID.ToString("B")
Dim filename As String = "C:\Visualization.gdb\erasemepleaseBilling"
Dim filepath As String = System.IO.Path.GetDirectoryName(filename)
Dim pWorkspaceFactory As IWorkspaceFactory = DirectCast(pObjFactory.Create(typeCLsID), IWorkspaceFactory)
Dim pFeatureWorkspace As IFeatureWorkspace = DirectCast(pWorkspaceFactory.OpenFromFile(filepath, 0), IFeatureWorkspace)
Dim pFLayer As IFeatureLayer = DirectCast(pObjFactory.Create("esriCarto.FeatureLayer"), IFeatureLayer)
pFLayer.FeatureClass = pFeatureWorkspace.OpenFeatureClass(filename)
pFLayer.Name = pFLayer.FeatureClass.AliasName
Dim pBasicDocument As IBasicDocument = DirectCast(m_pApp.Document, IBasicDocument)
pBasicDocument.AddLayer(pFLayer)
pBasicDocument.UpdateContents()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub Can you tell me if there is something that I'm missing? Thanks!
... View more
05-21-2010
12:03 AM
|
0
|
0
|
903
|
|
POST
|
Neil, thanks for the response. I am not too familiar with the IObjectFactory interface. Is there a way that you can give me an example on how to instantiate these objects from an outside form to work inside an open ArcMap document? If the IGPUtilities interface wouldn't work for this then what about the IFeatureWorkspace interface? Let me know if there's a solution to this. Thanks! Adrian
... View more
05-18-2010
09:22 AM
|
0
|
0
|
903
|
|
POST
|
I am using a standalone form to get a feature layer and then put it in an open ArcMap project. It's a short code and it works in VBA, but I don't know why it wouldn't work in a VB.NET form. Here is the code Private Sub btnImportArcMap_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnImportArcMap.Click
Dim pMxDoc As IMxDocument
Dim pMap As IMap
pMxDoc = m_pApp.Document
pMap = pMxDoc.FocusMap
Dim pFLayer As IFeatureLayer = New FeatureLayer
Dim pFClass As IFeatureClass
Dim pGPUtilities As IGPUtilities = New GPUtilities
Try
pFClass = pGPUtilities.OpenFeatureClassFromString("C:\Visualization.gdb\temp")
pFLayer.FeatureClass = pFClass
pFLayer.Name = pFClass.AliasName
pMap.AddLayer (pFLayer)
pMxDoc.UpdateContents()
pMxDoc.ActiveView.Refresh()
Catch ex As Exception
MessageBox.Show (ex.Message)
End Try
MessageBox.Show ("Complete")
End Sub I have a sub before this that calls the m_pApp as IApplication and opens a new ArcMap project. The problem with my code is at the pMap.AddLayer (pFLayer) part. Can anyone tell me what I need to add or change to this code? Thanks!
... View more
05-13-2010
10:05 AM
|
0
|
7
|
1225
|
|
POST
|
Jim, Did y'all do away with the point system? I feel that the less activity could be related to no point system in place therefore not motivating people to come answer questions. This would come back to people asking fewer questions. It sure has hindered me. I feel that people don't care as much to answer questions because they're not getting rewarded. If the point thing is unreasonable then maybe at least have a reputation system like other forums do. Maybe this one does, but I do not know of it. Just my 2 cents. Adrian
... View more
05-04-2010
08:21 AM
|
0
|
0
|
1118
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 1 | 3 weeks ago | |
| 1 | 4 weeks ago | |
| 1 | 09-13-2017 05:54 AM | |
| 1 | 09-13-2017 06:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|