|
POST
|
Thanks Ken for confirming that this should be doable. Your sample worked just fine and another sample from the documentation worked just fine. I'm trying to customize the Search widget to select features related to the search result. If I set the selection symbol and select features, the features show up in the Attribute Table widget, but they do not highlight on the map. When I select another feature in the Attribute Table, it highlights it on the map with the selection symbol that I specified. For some reason, I'm having a hard time getting the selection I made using selectFeatures to show up on the map.
... View more
07-07-2021
05:18 PM
|
0
|
0
|
1655
|
|
POST
|
Thanks Ken for confirming that this should work. I am having a lot of difficulty from within the _onSelectResult event handler of the Search widget. I need to be able to make a query based on the selected result and select related features on the map. I added the following code to the beginning of the function just for testing: var layer = this.map.getLayer("Pipes");
var symbol = new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SOLID,
new Color([255, 0, 0]),
2
);
layer.setSelectionSymbol(symbol);
var query = new FeatureQuery();
query.objectIds = [1];
layer.selectFeatures(query, FeatureLayer.SELECTION_NEW);
return; What is strange is that I don't see any selected features on the map, but if I go into the Attribute Table widget, the feature with OBJECTID = 1 has been selected. Then, if I double-click on a record in the Attribute Table widget, it selects it, zooms to it, and highlights it in the symbol I specified. I really don't know why calling selectFeatures doesn't highlight them. I can see the feature in the attribute _selectedFeatures of the feature layer and I can see the selection symbol in _selectionSymbol as well.
... View more
07-07-2021
04:48 PM
|
0
|
0
|
1652
|
|
POST
|
When using setSelectionSymbol and selectFeatures on a FeatureLayer, do you have to call setSelectionSymbol before the layer is added to the map? I tried setting it right before making the selection and nothing is happening.
... View more
07-07-2021
11:05 AM
|
0
|
3
|
1680
|
|
POST
|
Does anyone understand the line below in the _onSelectResult method in the Widget.js file of the Search widget in Web AppBuilder? I am trying to learn about graphics and generalization. The first thing I wanted to understand is why the highlights in the Search widget are greatly simplified. I have a 61 vertex pipeline that was simplified to 6 vertices and it is very jagged. So, I am going through the code and trying to understand it. As part of that process, I ran across this code as a possible clue. I want to know why selectedFeature is simplified and resultFeature is not. resultFeature appears to come from the on select result event. selectedFeature comes from layer.queryFeatures. I even tried to set maxAllowableOffset on featureQuery and I still got a simplified feature for selectedFeature. layer.queryFeatures(featureQuery, lang.hitch(this, function(featureSet) {
var selectedFeature = null;
if(featureSet && featureSet.features.length > 0) {
selectedFeature = featureSet.features[0];
// working around for js-api's generalization.
// incorrect geometry of polygon result of queryFeatures.
selectedFeature.geometry = resultFeature.geometry;
this._loadInfoTemplateAndShowPopup(layerInfo, selectedFeature, e);
}
}), lang.hitch(this, function() {
// show popupInfo of searchResult.
var selectedFeature = resultFeature;
this._loadInfoTemplateAndShowPopup(layerInfo, selectedFeature, e);
})); Any help would be appreciated towards understanding the Esri developer's comment on generalization or why the Search widget highlights are generalized.
... View more
07-02-2021
09:09 AM
|
0
|
0
|
434
|
|
POST
|
Try making an additional change, then save it, change it back, and save it. I have had to do that, but I don't remember why.
... View more
06-30-2021
01:31 PM
|
1
|
6
|
5351
|
|
POST
|
I think it was in an Esri blog or in the documentation, so I just accepted that. That's not to say it can't be done.
... View more
06-30-2021
11:04 AM
|
1
|
0
|
6721
|
|
POST
|
Yes, I am just trying to install pywin32 so that I can access adodbapi so I can run SQL statements against SQL Compact Edition databases (.sdf). I don't need any map functionality, just the standard libraries and pywin32. Okay, so ArcGIS Pro is probably looking for certain packages and versions and says the environment is broken if it doesn't find them. That's fine. It works just fine outside of ArcGIS Pro thus far.
... View more
06-30-2021
11:02 AM
|
0
|
0
|
6722
|
|
POST
|
I am just using the Python installation that came with ArcGIS Pro. I read that you shouldn't use Anaconda and ArcGIS Pro on the same machine, so I accepted just working with the conda that came with ArcGIS Pro.
... View more
06-30-2021
10:57 AM
|
0
|
2
|
6724
|
|
POST
|
Last night, I was trying to learn about conda and environments and I did the introductory tutorial. The biggest issue was really running the Python Command Prompt as an administrator. So, I created a new environment from the Command Prompt using conda install --name and it appears to work just fine. However, when I try to activate it in ArcGIS Pro, it says it is broken. I installed pywin32, which caused an upgrade to Python 3.9. Also, I don't really need all the other libraries in the arcgispro-py3 environment, which is why I started from the base environment versus cloning arcgispro-py3. My question is basically is this expected? Are there certain requirements for a conda environment to function in ArcGIS Pro, which is why the software always clones arcgispro-py3?
... View more
06-30-2021
08:36 AM
|
1
|
7
|
6775
|
|
POST
|
Hi Ming, I'm not very familiar with this subject, but apparently .gds files are used to store connection information to database servers. Check out the documentation here: https://desktop.arcgis.com/en/arcmap/latest/manage-data/database-servers/overview-database-servers.htm My first recommendation would be to try to open it in ArcCatalog. It probably behaves just like an .sde connection.
... View more
06-25-2021
01:52 PM
|
0
|
0
|
5946
|
|
POST
|
Thank you Tanu! We've got the heavy hitter here today. Yes, I have been to your sessions before. I will plan on going. Personally, I'm of the mind set that everything should be stored in UTC and converted back and forth to the local timezone by the client. This would be like decoding all text into unicode when you input text, storing unicode in your application, and reencoding as necessary to output. Even if someone's database stores local time, the local timezone should be defined somewhere and the client should handle the conversions. I thought about this a lot several years ago, but I was kind of surprised that ArcGIS Pro was already addressing these issues. I always hated using local time to store editor tracking dates, but it was so impractical to use UTC because the clients didn't convert the datetimes to the local timezone for you, so I always just reluctantly used database time. I still haven't gotten into all of ArcGIS Pro yet, so this was the first time I bumped into the problem. Also, I work with flow monitoring and things like DST are really a mess when you are collecting continuous time series data. I will see you there.
... View more
06-25-2021
01:43 PM
|
0
|
0
|
1966
|
|
POST
|
I'm trying to find a way to look up the relationship IDs from ArcGIS Server programmatically using the layer IDs (integers) from ArcGIS Server, which we manage manually in our map document. I'm sure there is a way to do it through the REST API, but I was hoping there might be a way to do it through the map object, possibly with the layer IDs used by the map (strings). Our layer names are deliberately simple and unlikely to change. In the documentation for feature layers, I can see the properties for relationships that would get me what I want, but I am having a hard time finding any documentation on tables. The map object has a property called tables, but I don't see anything that is formally documented on tables. If you have any ideas on how to avoid changing relationship IDs or on how to access tables in the map, that would be appreciated. Thanks, Nathan
... View more
06-24-2021
01:53 PM
|
0
|
0
|
565
|
|
POST
|
The solution was to close Chrome completely and delete the browser cache. Then, the changes showed up right away.
... View more
06-21-2021
06:16 PM
|
0
|
0
|
2295
|
|
POST
|
Well, the solution was that the antivirus software (Trend Micro) was causing the python.exe process to crash intermittently. There was no issue with Wing IDE, whose support was fantastic, and I was able to replicate the issue in the Python Command Prompt independent of Wing IDE.
... View more
06-21-2021
06:02 PM
|
1
|
3
|
1755
|
|
POST
|
The topic of dates and times in web GIS is a loaded topic covered in many posts and blogs elsewhere. I just encountered it in a Web AppBuilder application we are developing. The dates in our application have no times and I configured the attributes in the layer popups to hide the times, since they should all be midnight. By chance, I forgot to configure one correctly and I saw the datetime was 7 hours behind on the previous day, meaning it was taken as UTC and adjusted to the local time zone, when it was already in the local time zone. Based on the web map JSON and research, I figured out enough that I needed to republish the map service and specify that all times are in the local time zone, probably with Daylight Saving Time adjustments. The problem is that if I add the map service or its layers to a new web map in the Map Viewer, the dates and times display correctly, however, I already had configured a very large web map with lots of configuration and it does not automatically work. I searched the web map JSON and I see nothing different between the two web maps. There is no mention of the local timezone. There is no block of timezone configuration. I have no idea how to get my web map to pick up the timezone on the map service.
... View more
06-21-2021
05:52 PM
|
0
|
4
|
2312
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-06-2025 03:29 PM | |
| 1 | 11-30-2022 09:47 AM | |
| 2 | 03-04-2022 01:16 PM | |
| 1 | 04-10-2024 05:21 PM | |
| 1 | 08-23-2023 10:29 PM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|