|
POST
|
Just stood up a development instance of Portal 10.6. Trying to add items from secured services. It picks up that they are secured, but the option to store credentials is not there for us. Can't imagine this functionality is no longer there, so I'm wondering if anyone else has seen this behavior, or can direct me to where this option is now if it has changed. The documentation seems to say that it should be there, so maybe our install of Enterprise didn't fully work?
... View more
01-26-2018
01:21 PM
|
0
|
2
|
3097
|
|
POST
|
Fairly simple Javascript App (to others at least - I'm fairly new to this) - calls a GP Service, which simply buffers an address and returns other addresses in the specified buffer area. I'm using the Hotspot example from ESRI as a template: ArcGIS API for JavaScript Sandbox When I click the button to run the GP service, it fails - and the message from both Dev tools and the ArcServer logs from the machine hosting the GP Service says 'Service .../MapServer not found'. Even though the GP service URL in the html file is "https://....../GPServer..." it appears to be looking for a MapService. The GP Service result is an in memory Feature Layer - Not sure is this will work for display in a js app - the code is using 'getResultMapImageLayer' - my theory is this is the wrong way to go. I see in older API versions there's lots of documentation on how to get GP Service results, but am not finding much in the 4.x stuff about returning/displaying FeatureLayer results.
... View more
01-26-2018
10:55 AM
|
0
|
0
|
842
|
|
POST
|
Update - While the tool worked fine in ArcMap, I had a hell of time getting the GP service to work correctly. Ended up using CopyFeatures_management to create the desired in_memory feature classes instead of FeatureClasstoFeatureClass_management.
... View more
01-25-2018
01:47 PM
|
0
|
0
|
2294
|
|
POST
|
Hi Erica - I've implemented this in a draft GP service. It's super straightforward, and it works. However there are a couple of things to report back - 1 - it does indeed add time to the GP tool returning results - went from 3.5 seconds to about 6 seconds in our case. 2 - in this case, I actually needed to use 2 FeatureClassToFeatureClass_conversion tools - the first allows you to delete fields from it. However - when publishing the GP service with this as the output dataset, it still returns all of the fields, including those that were deleted. Again, looking at the GP service REST end point, it does look correct - the deleted fields are not shown, but they are in the JSON results. So, you actually need to create another in_memory feature class after dropping the fields - this one will be 'clean' and when used as the output of the GP tool only includes the desired fields. 3 - Even though the feature classes are in_memory, they are 'sticky' as far as holding on to data from a previous run of the tool. So, for each in_memory feature class, I added: if arcpy.exists(in_memory_fc): Delete_management(in_memory_fc) these are at the beginning of the script, to ensure the tool does not actually just return the same results from the last run. Thanks - Allen
... View more
01-22-2018
01:07 PM
|
0
|
1
|
2294
|
|
POST
|
Thanks Erica - I'll give the in memory FC a shot. Main issue is performance - since it's a GP service we're looking to maximize speed and keep things lightweight. Will follow up with results.
... View more
01-18-2018
10:57 AM
|
0
|
0
|
2294
|
|
POST
|
Hi Erica - Yes, that's correct. I have published the GP service from the python script where the MakeFeatureLayer_management includes "Field_info=..." and lists all of the fields, including setting the unneeded ones to Hidden. Looking at the rest URL, where it lists the fields, it appears to respect the 'Hidden' settings, displaying only those we need. However on running the tool via REST, the output json returned includes all fields.
... View more
01-18-2018
09:58 AM
|
0
|
4
|
2294
|
|
POST
|
Creating a pretty simple GP service that returns select records from a large dataset. Only need about 8 of the 25 or so columns from the data in the result. All of the intermediate datasets, and output dataset, are just in memory feature layers. I'm trying to find a way to have this final output feature layer only include the 8 necessary columns. I've tried setting the unneeded fields to hidden, which is ok up until I look at the json return from the GP service - the hidden fields are there. Delete fields only works on feature classes/shape files etc - this kind of data is not needed for our purposes and requires extra code to ensure they are truncated/appended at each run. Is there a way using MakeFeatureLayer_management (or anything else that can be in_memory) to simply drop fields, or explicitly say what fields to include?
... View more
01-17-2018
02:57 PM
|
0
|
7
|
2547
|
|
POST
|
Working on a service that sends an email to a list of users essentially giving them a list of permits in a specified area (Similar to the City of New Orleans 'NoticeMe' application). We have a chunk of the work done, but our data is set up in a way that I can't get to work with GeoEvent email output - basically it sends 1 email per email address/permit combination, whereas we'd like to roll up each permit into a single email per email address. Here's an example of our data: OBJECTID PERMIT_NUMBER EMAIL 1 A-1234 user1@email.com 2 A-1235 user1@email.com 3 A-1236 user1@email.com 4 A-1237 user2@fakemail.biz 5 A-1238 user2@fakemail.biz 6 A-1239 user2@fakemail.biz So the 2 email addresses here, as currently configured, get 3 emails each. Wondering if this can be handled in GeoEvent or if we need to work on 'flattening' the data for use in the GEV service - this would result in a really ugly and tricky to work with string field - can be done in python I'm fairly certain but figured I'd check the hive brain and see if this scenario has come up for anyone. I'm experimenting with a field enricher where a table of email addresses joins to the permit data as seen above, but no luck yet. Thanks - Allen
... View more
01-08-2018
02:43 PM
|
0
|
0
|
693
|
|
POST
|
John - Many thanks for looking in to this and the detailed response. This works well, and has helped us understand some implications of our basemap-building decisions. So just to clarify - the source data used to build our basemap is in our local State Plane system but we make the data frame Web Mercator (without re-projecting the individual feature classes) in order to make it more friendly in web applications. This is what creates the need for the extra coding within leaflet, correct? Allen
... View more
01-05-2018
12:42 PM
|
0
|
1
|
2495
|
|
POST
|
I'm helping a colleague with a small leaflet application. We are running into trouble when trying to add our own basemap service using the 'L.tiledMapLayer' method. I suspect the issue is with our map service, but we use this service successfully in several custom javascript applications, as well as other ESRI and GeoCortex applications.
When using an ESRI basemap URL, it seems to work fine:
L.esri.tiledMapLayer({ url: "http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer" }).addTo(map);
However swapping out the ESRI URL for our own (non-secured and publicly accessible) tiled service, the basemap does not render, and the dev tools show a bunch of 404 Not found errors for the tiles.
L.esri.tiledMapLayer({ url: "https://maps2.tucsonaz.gov/arcgis/rest/services/BaseMaps/gisBaseMap_Topo/MapServer" }).addTo(map);
Wondering if this is setting within our service, so that as currently configured it won't work with Leaflet?
Thanks -
Allen
... View more
01-03-2018
07:01 AM
|
1
|
3
|
3965
|
|
POST
|
Thanks for posting this, it is helpful (and kind of therapeutic) to see what other folks have encountered during this process. Just a minor but really frustrating issue we have noticed since going to Portal/enterprise 10.5.1 from 10.5 - Operations views do not load for people directly through the url - we have users who are not Portal/GIS folks that just go to a Dashboard URL, log in, and go about their day, at least they did until 10.5.1. Now they cannot get the dashboard to open, it merely spins after log in and says that some of the items are not available and it's taking a while to load - this never resolves. It spins while showing the black-background Ops Dash screen. What's frustrating is that if they log in to the Portal home site, find the group they are in, then the dashboard, then click the dropdown next to 'Open' and select 'Open in Browser app' it will open - so the layers are actually available to them. However this is actually a big ask given our user group for our dashboard. Way too many steps. New dashboard can't come to Portal soon enough.
... View more
12-15-2017
02:40 PM
|
0
|
0
|
671
|
|
POST
|
Our organization is having some difficulty getting Collector maps/apps to work on mobile IOS's. The data and maps are residing in Portal (10.5.1). 2 behaviors we are seeing: 1) The behavior we see is that when opening collector on a mobile IOS device, and signing in to our Portal site, some users see that the Portal server is using an untrusted certificate. However these users have installed our domain certificate on their device - at least the certificate that in IIS is bound to HTTPS. But in Portaladmin, we can see that the application is using what I assume is the default SSL certificate, simple named 'portal' (however our domain certificate is loaded and available to be applied through portaladmin. 2) For other IOS devices, they can get in to apps via Collector but the layers do not load. I am slightly confused about the relationship between the IIS HTTPS certificates, and the SSL certificate/s configured in portaladmin - I believe we should set the Portaladmin SLL certificate to be the same as the HTTPS cert in IIS, but do not want to pull the trigger without a little more knowledge about the interface between the 2. I should add that all is working correctly for droid users Thanks - Allen
... View more
12-08-2017
09:34 AM
|
0
|
0
|
1220
|
|
POST
|
Hopefully a straightforward GeoEvent question - We have a table published through ArcServer, that is non-spatial but has a geometry field (string type) that has the "rings" in the data: "geom": "{\"geometry\": {\"rings\": [[[-12353977.997689484, 3793219.355957223], [-12353977.997689482, 3793219.3559572226], etc. Hoping to get this input table into a geoevent service that takes the 'geom' field and writes to a feature service with a matching schema. Not being terribly familiar with JSON, I'm just looking for confirmation that I would use a 'Poll an External Website for JSON" input connector for this? I have one built, but features are not making it to the output feature service. Obviously could be many issues here, but I'm wondering if there this is the correct input connector and if there are any steps/processesors that need to be added to create the geometry from this source. I have tagged the 'geom' field as 'geometry' on the input side. Thanks - Allen
... View more
11-06-2017
11:59 AM
|
0
|
0
|
604
|
|
POST
|
Will add that I missed the last edit you had - I saw that and believe it would be simpler - would remove the additional step of re-setting the text values to their generic keywords.
... View more
10-23-2017
02:54 PM
|
0
|
0
|
4068
|
|
POST
|
This is perfect - each text value is populated with a variable in the script, so when done with the pdf generation I can still reference the variable and reset the value to the keyword - works like a charm: Example: Set text value to desired attribute (extracted in variable creation) for elm in arcpy.mapping.ListLayoutElements(ownerMxd, "TEXT_ELEMENT"): if elm.text == "NHA": elm.text = siteNHA (this is the formatted + attribute-based variable) print elm.text Reset text value to default after pdf generation: for elm in arcpy.mapping.ListLayoutElements(ownerMxd, "TEXT_ELEMENT"): if elm.text == siteNHA: elm.text = "NHA" print elm.text Essentially just reversing the value in the 'if' and next elm.text = ... lines Many thanks, this is super useful.
... View more
10-23-2017
12:16 PM
|
0
|
1
|
4068
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-07-2016 02:59 PM | |
| 1 | 09-04-2015 03:52 PM | |
| 1 | 08-31-2015 02:24 PM | |
| 2 | 08-13-2019 04:21 PM | |
| 1 | 09-12-2019 01:30 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:25 AM
|