POST
|
Hello, I wasn't sure where best to post this question, but I would imagine the resolution I require would involve using the ArcGIS REST API, so thought I'd ask the question to see if anything can guide me in the right direction. I am trying to create a solution in ArcGIS Online to allow people to allocate and close jobs. When the job is 'closed', it therefore populates a date field in the feature layer, I want it to also enter that closed date into the external system, FirmStep. The data is initially reported/collected within the FirmStep system, and I plug into the FirmStep database and process/publishing this data daily to ArcGIS Online using FME. The way it works now is I use WorkForce and bring in the Firmstep data, then this is filtered to only show relevant reports, and WorkForce Dispatchers use this data to then create assignments for the workers. It works well, but it is a bit long winded as when a worker 'finishes' an assignment, it populate the Workforce feature layer date field with the closed date. Then the user also has to go into the Firmstep system and close that particular report. Is it possible to automatically populate the Firmstep system with this closed date value from the feature layer, using API's? Thanks
... View more
09-15-2021
05:32 AM
|
0
|
0
|
379
|
POST
|
Thanks @xlt208 , that's fantastic. I have the code now setup as follows: items_from_search = gis.content.search(query="", item_type="Web Map",outside_org=False , max_items=1000) for item in items_from_search: try: if WebMap(item).basemap.title=="GB Light Grey": display(item) except Exception as e: print("Unable to check basemap for '{}': {}".format(item.title, e)) And it works. Is there a way to amend this further to only show webmaps which are shared publicly? Also by Map owner? If there is a some sort of guide with the list of available methods then please feel free to point me towards it 🙂 As I have tried a few with trial and error but can't quite get what I want in terms of only publicly available maps create by a certain user. Thanks Dan
... View more
09-10-2021
01:30 AM
|
0
|
1
|
1034
|
POST
|
Hello, I am trying to do something quite trivial, but I am relatively new to Notebooks so wondered if someone could help. Essentially all I want to do is find web maps which contain a specific basemap. I have used Notebook previously to do things like find web maps which contain a keyword, such as Planning, using: webmap_search = gis.content.search("Planning", item_type="Web Map") webmap_search And I have searched through particular groups to find content within, but I don't know how to search for web maps which contain a certain basemap, for example OS_Open_Carto. Is this possible? Thanks
... View more
09-03-2021
05:11 AM
|
0
|
4
|
1101
|
POST
|
Just to add to this. I have now downloaded a DTM (asc format), converted into raster and used that as an elevation surface. I then also added in the Stadium raster which I create a few posts ago, as another elevation surface, and that works well, image attached. Out of interest I wanted to try the raster calculator again, as it ran successfully before but didn't give the expected result. I ran the Raster Calculator tool to combine the DTM and the stadium raster and used the output as the elevation surface. The newly created raster still doesn't seem to include the rest of the DTM surface, it only covers the stadium, so not sure if this is any difference from just using the stadium raster as a surface, as the output doesn't seem to include anything from the DTM. With the raster calculator not working as expected, it looks like I could just use the built in ground elevation surface and just add in any rasterized polygons. I don't need to use my own DTM. Obviously if the raster calculator worked as expected then having the DTM and the mastermap rasters in a single file would have been nice, but it should still work adding them in as two separate surfaces. This is probably as close as I am going to get. If I wanted to create a fuller scene with more buildings it looks like I will have to rasterize the building polygons that I am interested in to allow me to drape aerial imagery over them.
... View more
06-25-2021
01:53 AM
|
0
|
0
|
1178
|
POST
|
The expression was very simple: "Riverside_raster" + "[ELEVATION_SURFACE]\CopyRaster_OutRasterdataset_nz5020_DSM_50CM" Using your expression it looks like: Con(IsNull("Riverside_raster"), "[ELEVATION_SURFACE]\CopyRaster_OutRasterdataset_nz5020_DSM_50CM", ("[ELEVATION_SURFACE]\CopyRaster_OutRasterdataset_nz5020_DSM_50CM"+"Riverside_raster")) This ran fine, but the output I think is still the same. The pixel value is still showing around 46 and the extent once again seems to be only the stadium raster and not the coverage of the whole DSM. Looking at this newly created DSM, it does look like the rasters have been combined and the height doubled. Screenshot shows left image of newly created combined DSM, and just the original DSM on right (same scale used). Is my best option to create a DTM and then try doing this? With the buildings not being included in the DTM then the added stadium raster might work?
... View more
06-24-2021
05:21 AM
|
0
|
0
|
1186
|
POST
|
Thanks Jayanta. The Coordinate system is all the same (British National Grid). I have brought the original DSM and revised DSM into a new 2D Project, and the revised one only seems to cover the area where the stadium is. Even though it was created using the stadium raster + DSM tile. So I don't know why that is. I have checked the range of values of the two on the stadium itself (since that's the only area which is covered in both), and they differ considerably. The pop for the DSM shows values around 22-27, but the revised DSM shows stretch pixel value of around 42-46. Could it be that the revised DSM is adding up the DSM height, and also the rasterized polygon? I don't seem to have the snap raster tool, so I don't think I can do that.
... View more
06-24-2021
03:28 AM
|
0
|
0
|
1190
|
POST
|
Yes, the aerial is still turned on. The only difference between them two pictures is one is using the DSM, and the other is using the newly created raster (raster and DSM).
... View more
06-23-2021
08:55 AM
|
0
|
2
|
4227
|
POST
|
Just to add, I decided to try making the raster from a single polygon (stadium), and the raster to my DSM using Raster Calculator, and it completed fine, but when I try to use the new raster as a surface, it doesn't work as expected. I thought it would look exactly the same as the DSM, just with an added building (although the stadium did already exist). Screenshots attached showing just the DSM with aerial draped over (DSM1), then the newly created raster (DSM_and_Stadium). Perhaps my settings weren't correct when creating the raster from the polygon to raster tool?
... View more
06-23-2021
08:46 AM
|
0
|
4
|
4233
|
POST
|
I thought that must be what you meant, but I am not sure this would work for existing buildings. The DSM I am using is from Defra (50cm), and I was testing this drape on an existing building. So the building already will exist in the DSM, so adding the new raster to this DSM is probably not going to work as planned. This could be a good option for adding a new building though. For draping over existing buildings, I could possibly create a DEM, and add the relevant Mastermap polygons into the DEM (using the polygon to raster and then raster calculator). I think that should work, as the DEM would not include any buildings? Quite long winded but it might be the only way...
... View more
06-23-2021
07:18 AM
|
1
|
0
|
4239
|
POST
|
Thanks, I will try that later this afternoon. Just want to check something about the DEM you mention, is this the built in WorldElevation3D/Terrain3D elevation surface? Or do you mean my own DEM? I know I mentioned in my initial post that I used a DSM to drape the aerials, so just checking.
... View more
06-23-2021
06:54 AM
|
0
|
7
|
4241
|
POST
|
Thanks Jayanta, I don't think the layer is in multipatch geomtery. The data was created from standard mastermap polygons (geodatabase), and then joined with MM heights. So the data is a standard polygon which I then brought into a scene and used the height field in the Extrusion options to make it 3D. Do I need to try convert the polygons into multipatch geometry? Then follow the steps you mention?
... View more
06-23-2021
04:34 AM
|
0
|
9
|
4252
|
POST
|
Hi, I am creating a 3D scene and wondered if it is possible to drape an image over a 3D layer, such as Mastermap. I am relatively new to 3D, but I have a scene setup which is using Mastermap data (joined with Mastermap heights csv data), so the Town Centre has 3D buildings. I can drape over a basemap or aerial imagery onto the elevation surfaces, but obviously the buildings extrude above this. Is there a way that I can make the aerial imagery drape over the 3D mastermap polygons? I have achieved something similar using a Digital Surface Model, as I can use this as an elevation surface, and then the aerial imagery drapes over this. It doesn't drape over the DSM that well though, which was expected, and I feel draping over the Mastermap polygons would look much better with the heights being generalised (obviously far from perfect though). I also wanted to be able to do this to make a new building in the Town Centre look as realistic as possible. I was hoping I could extract out just that particular building and then add in some images for each angle. Not sure if it is possible though or if there is any workarounds?
... View more
06-23-2021
03:33 AM
|
0
|
14
|
5488
|
POST
|
Thanks Blake. I think my best option is to setup a script to run overnight, or look to publish a geoprocessing tool as a web tool to our Enterprise, and allow the user to run it themselves. Thanks again for your help.
... View more
06-15-2021
12:20 AM
|
0
|
0
|
880
|
POST
|
That's a good suggestion, thanks. Am I right in thinking that if I create a script, to say export a dataset to CSV, that the user would have to have python and perhaps even ArcGIS installed (to access relevant libraries/modules)? If this is the case then allowing users to run their own scripts probably isn't the solution, as these users don't typically have desktop GIS.
... View more
06-14-2021
01:21 AM
|
0
|
2
|
899
|
POST
|
Thanks Blake. That could potentially be an option, but I was hoping to perhaps put together some sort of script or application to allow people to export data... perhaps even in something like a Jupyter Notebook or alike, but I am quite new to Notebook and just getting to learn it, so not sure what is possible. It might be the case that there isn't an easy solution for this, and I might be best off creating a number of scripts for the most commonly requested data, and just ran them as requested, but I was hoping for a 'cleverer' way!
... View more
06-11-2021
08:14 AM
|
0
|
4
|
921
|
Title | Kudos | Posted |
---|---|---|
1 | 06-23-2021 07:18 AM | |
2 | 06-10-2021 02:08 AM | |
14 | 06-16-2020 07:17 AM |
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|