|
POST
|
When you click Query Related Records you will need to have an Object ID for one record in your layer, the Relationship ID: is the first number (0) in the text you posted, the Out Fields: just use *, and click the get button. [ATTACH=CONFIG]23837[/ATTACH] Thank you Robert, I see it is not working there. I'll know to check this functionality in the future. What might be causing this?
... View more
04-29-2013
10:56 AM
|
0
|
0
|
2702
|
|
POST
|
OK, but the fact that it works in ArcMap is only half the battle. Now you need to test a Query of the related data using the REST End point. Can you post the test of your relates from the rest service page like I did? Relationships: CountySDE.DBO.tblContracts (0) -- Related To: tblContracts (13) Supported Operations: Query Query Related Records Generate Renderer Return Updates Not sure if this is what you meant. I tried clicking the query button, but that form doesn't give me a lot of instructions and I'm not clear on what to put in each textbox. I was getting an error (Unable to complete operation) when I entered just a whereclause and tried to run it.
... View more
04-29-2013
09:50 AM
|
0
|
0
|
2856
|
|
POST
|
Do you see the the relates listed at the bottom of the rest service page like this? Relationships: calhoun.COUNTY.A_Bridge (0) -- Related To: ABIMS Bridges (0) calhoun.COUNTY.ADT (1) -- Related To: Average Daily Traffic (1) calhoun.COUNTY.Rail_Cross (2) -- Related To: Railroad Crossings (2) calhoun.COUNTY.Signs (3) -- Related To: Road Signs (3) calhoun.COUNTY.Guardrail (4) -- Related To: Guardrails (4) Yes, I do. It is relate Id "0". And it functions properly in ArcMap as well.
... View more
04-26-2013
10:26 AM
|
0
|
0
|
2856
|
|
POST
|
Hello all, I'm having an issue with relates. I see them in my mxd. I see them in my Rest service. I've failed to have eSearch pulling them up. I can search the layer and return results, but no related records show up in my data grid. I'm using the 3.2.2 release. "If you are using a layer that contains a join than the full join field name should be used." Is this true for relates as well? It doesn't seem to work either way. Here's my relates config: <relates>
<relate id="0" label="Contract Attachments" enableexport="true" enableprint= "true" icon="assets/images/i_folder.png">
<fields all="false" >
<field name="ContractNumber"/>
<field name="ContractName"/>
<field name="SMuniOrSAgency"/>
<field name="WebRelativeImagePath" alias="Image" hyperlinkgridfield="true" hyperlinkaliastext="Show Attachment"/>
</fields>
</relate>
</relates> Thank you for your time, Corbin de Bruin
... View more
04-26-2013
09:37 AM
|
0
|
0
|
2856
|
|
POST
|
Thank you. For future reference, how do I find lists of ArcObjects Interfaces that QI nicely?
... View more
04-23-2013
11:09 AM
|
0
|
0
|
781
|
|
POST
|
I'm trying to get at the data source type of a table in the Table of contents. I usually do this with Feature Layers which is as simple as featureLayer.DataSourceType. The ITable interface has no such property. I can't seem to get at the Table as a Layer. Is there some casting I'm not doing properly? I see the IDataSourceInformation Interface. Is that something I can use? Any help is appreciated. If you'd like to see code I'll reply. I just need to know which objects to use. -Corbin de Bruin
... View more
04-23-2013
09:39 AM
|
0
|
3
|
2539
|
|
POST
|
I'm having an issue trying to add a point to an EditSketch object. The IEditSketch3.AddPoint method is giving me an error I don't understand. It's seems to me I have my parameters right, but I'm hoping I'm wrong. Dim addPoint as IPoint = pActiveview.ScreenDisplay.DisplayTransformation.ToMapPoint(arg.X, arg.Y)
pEditSketch.AddPoint(addPoint, True) System.ArgumentException occurred Message=Value does not fall within the expected range. Source=ESRI.ArcGIS.Editor StackTrace: at ESRI.ArcGIS.Editor.IEditSketch3.AddPoint(IPoint point, Boolean allowUndo) at SanitarySewerAddin.ToolSanSheetMake.OnMouseDown(MouseEventArgs arg) in (...)ToolSanSheetMake.vb:line 110 InnerException: With minor syntax and casting changes I can change the exception detail, but it's still always an Argument Exception.
... View more
03-22-2013
11:43 AM
|
0
|
0
|
826
|
|
POST
|
Thank you Alexander, I had yet to come across the ISketchTool interface. It looks like it's going to help greatly. I'm going to do some testing then, I'll get back to this post to mark as answer. Thank you, Corbin de Bruin
... View more
03-04-2013
11:20 AM
|
0
|
0
|
826
|
|
POST
|
Hello all, This seems like such a simple task. I've been unable to create polygons programmatically. My basic goals are: Draw a polygon with a visual representation as it's being drawn Be able to pan/zoom with mouse center button is clicked or scrolled Be able to programmatically add/edit/delete vertices The ESRI Help doesn't seem to work I've tried multiple other ways of doing it: I can successfully make polygons from Rubberband.TrackNew, but I have no control with this method. I need to be able to pan the screen in between plunking down vertices. Rubberband.TrackNew doesn't allow for any kind of clicking outside of creating new vertices or double clicking to finish the sketch. You can't even click a new tool in ArcMap. It just treats it as a new click. The Draw Polygon ArcGIS Snippet has the same behavior. The ArcGIS Snippet Create Polygon from Points that uses a GeometryBridge and a PointCollection doesn't show any visible representation of the polygon as it's being drawn. I haven't gotten as far as Add/Edit/Delete vertices yet. If you have a resource for these types of operations, it'd be helpful. I'm lost in the woods. I must be missing something about how to interrupt the drawing/tracking functions to pan/zoom the map. I appreciate any help. Has anyone dealt with these kinds of operations before? Are there some API Objects I should take a second look at? Thank you for your time, Corbin de Bruin
... View more
03-04-2013
06:33 AM
|
0
|
6
|
2130
|
|
POST
|
Yes it is, thank you. I had already been using that, just totallly missed the "control" reference statement. Must have looked at it a million times.
... View more
02-22-2013
07:13 AM
|
0
|
0
|
693
|
|
POST
|
Hello, I'm having trouble with following the basic snapping instructions http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//0001000001s1000000 I can see these Interfaces in the API reference, but they come up as undefined when I try to use them in code. ISnappingEnvironment IPointSnapper ISnappingFeedback I have ESRI.ArcGIS.Geometry referenced. Does anyone have working 10.1 code for snapping. I am attempting to use this functionality outside of an edit session. Thank you, Corbin de Bruin
... View more
02-22-2013
04:15 AM
|
0
|
3
|
1095
|
|
POST
|
Thank you Neil. I definitely should have researched that one more before posting. I apologize. -Corbin de Bruin
... View more
02-19-2013
10:43 AM
|
0
|
0
|
827
|
|
POST
|
Hello all, When I have a form open in ArcMap, it creates another page in the windows taskbar (makes it look like two instances of ArcMap are open, see pic). [ATTACH=CONFIG]21958[/ATTACH] How do I change this? I'm using vb.net and calling the form like this: Dim makeform As New frmMake makeform.ShowDialog(System.Windows.Forms.Control.FromHandle(My.ArcMap.Application.hWnd)) It doesn't happen when you use native forms like Identify. Thank you, Corbin de Bruin
... View more
02-19-2013
09:03 AM
|
0
|
2
|
1141
|
|
POST
|
I have it working to suit my needs. Here's my success with it so far and comments indicating my best guess at what's going on: Sub GeosearchAddress()
' Uses IAddressCandidates interface to geosearch locator for addresses. Returns multiple results
locatorManager = TryCast(obj, ILocatorManager2)
locatorWorkspace = locatorManager.GetLocatorWorkspaceFromPath(gLocatorWorkspace)
Dim locator As ILocator = locatorWorkspace.GetLocator("Street_Addresses_US") ' Dimension the relative name of the locator
Dim addressCandidates As IAddressCandidates2 = locator ' Like an Array of Addresses
Dim addressPoint As IPoint = New Point
' Find the address candidates
Dim addressProperties As IPropertySet2 = New PropertySetClass()
With addressProperties ' Setting properties from textboxes
.SetProperty("Street", txtAddress.Text)
.SetProperty("City", txtCity.Text)
.SetProperty("State", txtState.Text)
.SetProperty("Zip", txtZIP.Text)
End With
' Use the FindAddressCandidates method find candidates for an address
Dim resultsArray As IArray = addressCandidates.FindAddressCandidates(addressProperties) ' Create array based on addressCandidates array filtered by addressProperties array
' Use the CandidateFields property to display the properties of each candidate
Dim candidateFields As IFields = addressCandidates.CandidateFields ' Like an Array of fields based on addessProperties and addressCandidates
Dim candidatePropertySet As IPropertySet2
Dim addressField As IField
Dim addressFieldVal As Object ' Object to hold field data. Created as object to be able to hold geographic field data. ToString method used to see text fields
For candidateIndex As Integer = 0 To 10 ' Loop through 10 geosearch results
candidatePropertySet = resultsArray.Element(candidateIndex)
dgvAddrResults.Rows.Add() ' Create DataGridRow to hold result
For fieldIndex As Integer = 0 To candidateFields.FieldCount - 1 ' Loop through all fields/properties of geosearch address candidates
addressField = candidateFields.Field(fieldIndex)
addressFieldVal = candidatePropertySet.GetProperty(addressField.Name) ' Variable set to hold field objects
Select Case addressField.Name ' Case Statement to write fields to correct data grid columns
Case "Shape"
Try
addressPoint = CType(addressFieldVal, IPoint)
Catch ex As Exception
Debug.Print("Failed to convert to ESRI Point object")
End Try
If addressPoint IsNot Nothing AndAlso (Not addressPoint.IsEmpty) Then
dgvAddrResults.Item("Coordinates", candidateIndex).Value = addressPoint.X.ToString & ", " & addressPoint.Y.ToString
Else
dgvAddrResults.Item("Coordinates", candidateIndex).Value = "No geographic point available"
End If
Case "Score"
dgvAddrResults.Item("Score", candidateIndex).Value = addressFieldVal.ToString()
Case "Match_addr"
dgvAddrResults.Item("Address", candidateIndex).Value = addressFieldVal.ToString()
Case "Addr_type"
dgvAddrResults.Item("Type", candidateIndex).Value = addressFieldVal.ToString()
End Select
Next
Next
End Sub Thank you everyone for your help, Corbin de Bruin
... View more
01-09-2013
05:05 AM
|
0
|
0
|
448
|
|
POST
|
Neil, You may be right. Following that thought track through the documentation I was led to this page: http://127.0.0.1:47873/help/3-6196/?method=page&id=b57a4e69-207d-4aa2-bf93-4d5f834a44aa&product=vs&productversion=100&locale=en-us I'll post again if I'm able to fully work this out. Thank you for you help, Corbin de Bruin Edit: Thank you Mike, we were both led to the same link. Mine is just through the 10.1 help.
... View more
01-08-2013
10:22 AM
|
0
|
0
|
448
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 08-03-2012 08:07 AM | |
| 16 | 01-30-2015 11:34 AM | |
| 1 | 10-21-2014 07:41 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-06-2023
09:03 PM
|