|
POST
|
I am experiencing this also. Please reply with solution/workaround. Ted Chapin SGC Engineering.
... View more
08-27-2013
04:39 AM
|
0
|
0
|
1914
|
|
POST
|
Did you get any resolution on this issue? I am experiencing the same thing. Ted Chapin SGC Engineering Westbrook, ME
... View more
08-16-2013
09:19 AM
|
0
|
0
|
1831
|
|
POST
|
I'm looking for a way to get the currently selected layer(s) from the TOC. arcpy.mapping.ListLayers() returns all layers in the data frame. I only want the ones the user has selected. Does anyone know how to do this? Ted Chapin SGC Engineering
... View more
04-24-2013
05:03 AM
|
0
|
2
|
779
|
|
POST
|
I would like to add the USGS Topo cached service to the basemap gallery. I know the URL: http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer Is there a config file that lists all the online basemaps? I don't want it to be the basemap at startup, I just want it to be available to users to switch to.
... View more
03-04-2013
09:23 AM
|
0
|
11
|
4566
|
|
POST
|
You can use a MarkerSymbol with TextBox. Maybe create a two-way binding on a graphic.Attribute too if you want TextBox.Text saved per graphic.
<esri:MarkerSymbol x:Key="MySymbol">
<esri:MarkerSymbol.ControlTemplate>
<ControlTemplate>
<TextBox Text="Type here"/>
</ControlTemplate>
</esri:MarkerSymbol.ControlTemplate>
</esri:MarkerSymbol>
I can add a graphic with a textbox marker symbol, but it does not respond to the GraphicsLayer.MouseLeftButtonUp event. I want to allow users to delete the text graphic with GraphicsLayer.Graphics.Remove(e.Graphic) in that event. Ted Chapin
... View more
08-23-2012
07:26 AM
|
0
|
0
|
1600
|
|
POST
|
I am using a QueryTask to get records from a geodatabase table (not a feature class). I want to show the results in a DataGrid. The binding is easy enough: DataGrid1.ItemsSource = e.FeatureSet.Features. But how can I sort the results? I can make the data grid columns user sortable, but I want the grid to be sorted the first time they see it. I tried converting the query results to a ObservableCollection and using a PagedCollectionView's SortDescriptions, but I don't know what the PropertyName is for the SortDescription. I tried "Attributes(fieldname)" but it doesn't sort. Thanks for any help, Ted Chapin
... View more
06-02-2011
05:21 AM
|
0
|
1
|
832
|
|
POST
|
Yes, CAST does work. I had been using CAST(street_num AS varchar()), which is a lazy way to convert to string if you don't care about the string's length. In T-SQL the default is 30 if it's not specified. The REST API won't process varchar(), but this works: varchar(5), or whatever length is appropriate.
... View more
05-25-2011
10:39 AM
|
0
|
0
|
1634
|
|
POST
|
Those SQL statements work. Try this query: UPPER(MBLU) LIKE '%106 LEDGE RD%' OR UPPER(Grantee) LIKE '%106 LEDGE RD%' OR UPPER(Co_grantee) LIKE '%106 LEDGE RD%' OR CONCAT(Street_Number, CONCAT(' ', Street_Name)) LIKE '%106 LEDGE RD%' on this table: https://eis.woodardcurran.com/ArcGIS/rest/services/PublicServices/Ogunquit/MapServer/22/query Wish there was some documentation about what the REST query's where clause supports.
... View more
05-24-2011
11:49 AM
|
0
|
0
|
1634
|
|
POST
|
Yes, the address number and street name are in separate fields. But I want to keep my UI googlish with only 1 input box. I actually simplified the query for my post. I search for MBL, owner name, and address with 1 user text box. When the MBL, owner name, street number, and street name fields are all string, it works with this query: query.Where = String.Format("UPPER(MBLU) LIKE '%{0}%' OR UPPER(Owner) LIKE '%{0}%' OR UPPER(Co_owner) LIKE '%{0}%' OR CONCAT(Street_Number, CONCAT(' ', Street_Name)) LIKE '%{0}%'", SearchText.Text.ToUpper) But one town I work with has a numeric field type for the street number. SO, I would like to do something like this: query.Where = String.Format("UPPER(MBLU) LIKE '%{0}%' OR UPPER(Owner) LIKE '%{0}%' OR UPPER(Co_owner) LIKE '%{0}%' OR CONCAT(CAST(Street_Number AS varchar()), CONCAT(' ', Street_Name)) LIKE '%{0}%'", SearchText.Text.ToUpper) But CAST (or at least the varchar data type) doesn't seem to be supported by whatever version of SQL the REST API uses. Neither does CONVERT. The documentation doesn't go into any detail about what SQL statements are allowed. I just guessed about CONCAT and UPPER. It may be that, in order to keep my search UI to one text box to search all those fields, I will have to modify the table schema to make the street number field a string.
... View more
05-24-2011
05:02 AM
|
0
|
0
|
1634
|
|
POST
|
I want to do a type conversion and a concatenation in a query where clause. I have street number as a esriFieldTypeInteger and street name as a esriFieldTypeString. I want to search for "5 Main Street" as a single search term. If the street number were string, I could use this: CONCAT(street_num, CONCAT(' ', street_name)) = '5 Main Street' But the numeric field type is causing difficulty. I've tried CAST and CONVERT to varchar, nvarchar, text, but it doesn't work. Any ideas? Ted Chapin
... View more
05-23-2011
11:17 AM
|
0
|
6
|
3107
|
|
POST
|
I just discovered that if the Query.ReturnIdsOnly property is set to True, then the ObjectIDs property of the FeatureSet of the result is populated, but the features themselves are not. If this property if False, then you get features but not the ObjectIDs. Weird. I manually created a List(of Integer), looped through the FeatureSet and added the object ID's using feature.Attributes("OBJECTID"). Not my favorite approach but it worked. Ted Chapin
... View more
03-19-2011
06:58 AM
|
0
|
0
|
347
|
|
POST
|
In a query completed event, where e is a QueryEventArgs, how can the following be true? ?e.FeatureSet.Count 10 ?e.FeatureSet.ObjectIDs.Count 0 Isn't the ObjectIDs property of a FeatureSet an IEnumerable(of Object) representing the Object IDs of the query result? I'm trying to do a ExecuteRelationshipQueryAsync with a RelationshipParameter that contains all the same Object IDs as the query result, basically get all the records from a related table that correspond to a query result. Seems like a lot of legwork to manually construct a new IEnumerble(Of Integer) to populate the RelationshipParameter.ObjectIDs. Why not just RelationshipParameter.ObjectIDs = FeatureSet.ObjectIDs? Ted Chapin
... View more
03-19-2011
05:45 AM
|
0
|
2
|
1343
|
|
POST
|
Does anyone know why this: <TextBlock Text="{Binding Resolution, ElementName=MapMain, Mode=OneWay}" ></TextBlock> produces "NaN" instead of the map's resolution? I tried the same thing with the map's Extent.Width property and it works fine.
... View more
02-22-2011
08:49 AM
|
0
|
3
|
856
|
|
POST
|
Does anyone know how to view related tables in ArcGIS Explorer Online?
... View more
12-09-2010
10:57 AM
|
0
|
1
|
887
|
|
POST
|
Does anyone know of a sample that displays feature attachments?
... View more
12-02-2010
10:52 AM
|
0
|
2
|
712
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-22-2016 01:35 PM | |
| 1 | 11-08-2019 01:56 PM | |
| 1 | 05-09-2023 05:58 AM | |
| 1 | 08-11-2021 05:45 AM | |
| 2 | 08-03-2017 07:40 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-26-2024
06:48 PM
|