POST
|
This is almost 4 years old but this post solved a problem that has been driving me insane for years. THANK YOU
... View more
10-06-2022
06:27 PM
|
0
|
0
|
749
|
POST
|
I have 2 .SID files that I need to combine into one Mosaic Dataset. One is a county-level NAIP dataset, about 2 GB in size. The other is a 3-inch resolution dataset that we have flown and processed by a private company. That file is about 45 GB. I've combined them into one Mosaic Dataset, but the rendering speed is very slow. Is there a chain of the modification and optimization tools I should run in order to make the dataset faster? I've changed to compression to JPEG with a level of 80, but it is still slow to pan and zoom. I've tried running the Build Pyramids and Statistics tool, but it ran for over 12 hours and did not complete. So I'm wondering if anyone has any advice on how best to optimize performance for this Mosaic Dataset. I'd like to avoid caching it, since it would take up so much space on my server
... View more
08-30-2022
02:22 PM
|
0
|
1
|
1201
|
POST
|
Send email notifications - Crowdsource Reporter | ArcGIS Solutions for Local Government
... View more
07-17-2020
12:19 PM
|
0
|
0
|
1050
|
POST
|
I've deployed Crowdsource Reporter in our organization, and only one of the categories is having this issue. I select a problem type, submit the problem, and nothing shows up. It shows up in the CitizenProblems table, but the Category and Public View fields are <null> when they should be Park/Tree and yes. I've looked at the map, and everything seems to be fine...It was working just fine until today. The only thing that changed was adding some values to the domain, but I don't see why that would make this happen
... View more
06-29-2020
05:11 PM
|
0
|
0
|
437
|
POST
|
I have a project that will be adding hosted feature layers to a map, and eventually removing them and archiving the data for the layer. I would like to be able to set the refresh interval for the layer with the Python API so that the web map has a near live view of the data. I can set it manually in AGOL, but it will be a pain to have to manually do this for each layer. Does anyone know if it's possible to set the refresh interval using the Python API?
... View more
01-16-2020
12:49 PM
|
0
|
2
|
1755
|
POST
|
That is frustrating. I'll figure out another way then. Thanks for the help!
... View more
12-12-2019
02:13 PM
|
0
|
1
|
1421
|
POST
|
I am trying to change the name of a hosted feature layer published to AGOL, so it's not on our server. Can you connect to AGOL with the server module? I thought it was for connecting to a server that had ArcGIS Server or Portal...
... View more
12-11-2019
10:51 AM
|
0
|
3
|
1421
|
POST
|
So I know you can update the properties of a FeatureLayerCollection by using a dictionary...My question is: how can you update the layer properties? The layers are a list in the properties dictionary, and I can't figure out how to update the name of a layer, for example... {
"layers": [
{
"id": 0,
"name": "gggg",
"parentLayerId": -1,
"defaultVisibility": true,
"subLayerIds": null,
"minScale": 0,
"maxScale": 0,
"geometryType": "esriGeometryPoint"
}
]
} I'm using a dictionary to try and update, but can't figure out the proper syntax to access the layer name and update it... update_dict = {
"serviceDescription": 'newname',
"layers":[
{
"name": 'newname',
}
]
}
... View more
12-10-2019
01:44 PM
|
0
|
5
|
1516
|
POST
|
I am adding a hosted feature layer by zipping a file geodatabase, adding it using gis.content.add, then publishing the layer. I am then retrieving the layer using gis.content.search, getting the item, and then trying to use item.get_data(try_json=True). It is returning None, which from the documentation I can see says that 'Zero byte files will return None'. I am unsure why there is no data returning. I can add the layer to a map, display it, etc...but cannot get the data to return for the layer. Has anyone else dealt with this issue? layer_title = <title> url = "https://www.arcgis.com" username = <username> password = <password> gis = GIS(url, username, password) layer_properties = {'type': 'File Geodatabase', 'title': <title>} #add file gdb layer = gis.content.add(item_properties=layer_properties, data=outfile) # outfile is the zipped file gdb #publish item layer_item = layer.publish() #delete zipped folder layer.delete() layer_search = gis.content.search("title: {}".format(layer_title), item_type="Feature Layer") item = layer_search[0] item_data = item.get_data(try_json=True) print(item_data)
... View more
10-23-2019
03:20 PM
|
0
|
2
|
2648
|
POST
|
Did you get this script to work? I've tried, but keep getting the 'Please provide parameter for config file' message. Where do you plug in your project?
... View more
09-04-2019
03:45 PM
|
0
|
1
|
1593
|
POST
|
I have a python script that I want to use to automate the creation of a VTPK. My issue is that the script does not actually use the min and max scales that I enter, but is only caching levels 0 - 19. If I run the tool within Pro, it will cache the correct levels, but running outside will only cache levels 0-19 no matter what I put in for the min/max scales. I've seen another discussion close to this here, but it seems unnecessarily complex for what I'm trying to accomplish. Has anyone else encountered this issue and found a solution? Here is just a basic version of the code I'm trying to get to work, using an existing tiling scheme import arcpy
arcpy.env.workspace = <workspace path>
arcpy.env.overwriteOutput = True
aprx = arcpy.mp.ArcGISProject(<path to project>)
m = aprx.listMaps()[0]
vtpk = <path of vtpk>
tiling_scheme = <path to tiling scheme>\VTTS_3567_NAD_1983_StatePlane_Utah_South_FIPS_4303_Feet.xml"
min_scale = 537922.337401
max_scale = 65.664348
arcpy.management.CreateVectorTilePackage(m, vtpk, "EXISTING", tiling_scheme, "INDEXED", min_scale, max_scale, None, '', '')
... View more
08-26-2019
02:53 PM
|
1
|
3
|
1841
|
POST
|
Is there a way to store credentials when adding a secured item with the Python API? I'm not seeing anything in the documentation for the arcgis.gis module...I can add the item using: gis.content.add({'type': 'Feature Service', 'url': <url>, 'title': <title>}) But there is no way that I can see to store the credentials to the item...Is there something I'm missing, or is there another way to do this?
... View more
08-02-2019
10:20 AM
|
0
|
0
|
577
|
POST
|
I have editor tracking enabled on a feature class, and need to calculate some fields within a polygon that are edited each day. I currently have a script that will calculate the fields for all of the features within the polygon, but there are thousands of features and I only need to calculate the ones that were edited each day. My issue is creating a feature layer with a where clause for only today's features. What's strange is that it will work using the python window within ArcMap, but won't work as a standalone script. The layer created just contains all of the features... arcpy.MakeFeatureLayer_management(meters, 'meter_layer', "'last_edited_date' >= 'DATEADD(d, 0, DATEDIFF(d, 0, GETDATE()))'", "", "") Any help would be greatly appreciated
... View more
06-24-2019
01:38 PM
|
0
|
1
|
603
|
POST
|
Hey thanks for replying! I think I fixed those issues, but am still not getting the event to work. I've been looking at this for a few days and am going crazy trying to figure out why it's not working...Maybe I just need to start from scratch /*jshint -W117 */ /*jshint -W098 */ "use strict"; var dojo, esri; var map, streetsMap, streetsBase, streetsTiles, imageryMap, imageryBase, imageryTiles; var stormwaterDrainsLayer, trafficControlLayer, stormDrainNodesDetails; var stormwaterDrainsOn = true; var trafficControlOn = true; var gsvc, document, $, queryTask, window; var tb, idValue = "parcels"; var printLayout, printFormat; require([ "esri/tasks/GeometryService", "esri/geometry/Extent", "esri/map", //"esri/Color", "esri/layers/ArcGISTiledMapServiceLayer", "esri/layers/ArcGISDynamicMapServiceLayer", //"esri/layers/ArcGISImageServiceLayer", //"esri/layers/ImageParameters", "esri/layers/VectorTileLayer", "esri/dijit/Search", "esri/tasks/locator", "esri/layers/FeatureLayer", "esri/InfoTemplate", "dojo/on", "dojo/dom", "dojo/domReady!" ], function ( GeometryService, Extent, Map, //Color, ArcGISTiledMapServiceLayer, ArcGISDynamicMapServiceLayer, //ArcGISImageServiceLayer, //ImageParameters, VectorTileLayer, Search, Locator, FeatureLayer, InfoTemplate, on, dom ) { gsvc = new GeometryService("https://maps.sgcity.org/arcgisweb/rest/services/Utilities/Geometry/GeometryServer"); var initialExtent = new Extent({ "xmin": 989913.278, "ymin": 9973304.167, "xmax": 1080913.278, "ymax": 10047484.722, "spatialReference": { "wkid": 3567 } }); map = new Map("ui-map", { extent: initialExtent }); map.on("load", setStreets); showLayers(); streetsMap = new ArcGISTiledMapServiceLayer("https://maps.sgcity.org/arcgisweb/rest/services/SGCity_Hillshade/MapServer"); map.addLayer(streetsMap); streetsTiles = new VectorTileLayer("https://tiles.arcgis.com/tiles/sSyqU2G01sKVqGZA/arcgis/rest/services/SGCity_Streets_VTiles/VectorTileServer"); map.addLayer(streetsTiles); streetsBase = new ArcGISDynamicMapServiceLayer("https://maps.sgcity.org/arcgisweb/rest/services/SGCityStreetsParcels/MapServer"); map.addLayer(streetsBase); imageryMap = new ArcGISTiledMapServiceLayer("https://maps.sgcity.org/arcgisweb/rest/services/SGCityImagery/MapServer"); map.addLayer(imageryMap); //imagery2016 = new esri.layers.ArcGISImageServiceLayer("https://maps.sgcity.org/arcgisweb/rest/services/Aerials2016/ImageServer", { //minScale: "200" //}); //map.addLayer(imagery2016); imageryBase = new ArcGISDynamicMapServiceLayer("https://maps.sgcity.org/arcgisweb/rest/services/SGCityImagery_Dynamic/MapServer"); map.addLayer(imageryBase); imageryTiles = new VectorTileLayer("https://tiles.arcgis.com/tiles/sSyqU2G01sKVqGZA/arcgis/rest/services/SGCityImagery_VectorTiles/VectorTileServer"); map.addLayer(imageryTiles); var search = new Search({ enableButtonMode: false, //this enables the search widget to display as a single button enableLabel: false, enableInfoWindow: true, enableHighlight: false, showInfoWindowOnSelect: true, activeSource: new Locator("https://maps.sgcity.org/arcgisweb/rest/services/UnitStreetComposite/GeocodeServer"), map: map }, "search"); var sources = []; /*ADDRESS*/ sources.push({ locator: new Locator("https://maps.sgcity.org/arcgisweb/rest/services/UnitStreetComposite/GeocodeServer"), singleLineFieldName: "SingleLine", name: "Addresses", outFields: ["*"], placeholder: "Search Local Addresses", maxResults: 3, maxSuggestions: 6, enableSuggestions: false, minCharacters: 0 }); /*STREETS*/ sources.push({ featureLayer: new FeatureLayer("https://maps.sgcity.org/arcgisweb/rest/services/SGCityStreetsBasemap/MapServer/92"), searchFields: ["NAME"], displayField: "NAME", exactMatch: false, outFields: ["NAME"], suggestQueryParams: { orderByFields: ["NAME"] }, name: "Street Names", placeholder: "Search local street names", maxResults: 6, maxSuggestions: 6, //Create an InfoTemplate and include three fields infoTemplate: new InfoTemplate("Streets", "Name: ${NAME}"), enableSuggestions: true, minCharacters: 0 }); /*SUBDIVISIONS*/ sources.push({ featureLayer: new FeatureLayer("https://maps.sgcity.org/arcgisweb/rest/services/SGCityStreetsBasemap/MapServer/93"), searchFields: ["SUBNAME"], displayField: "SUBNAME", exactMatch: false, outFields: ["SUBNAME"], suggestQueryParams: { orderByFields: ["SUBNAME"] }, name: "Subdivisions", placeholder: "Subdivision name and phase", maxResults: 6, maxSuggestions: 10, infoTemplate: new InfoTemplate("Subdivisions", "Name: ${SUBNAME}"), enableSuggestions: true, minCharacters: 0 }); /*TAX ID*/ sources.push({ featureLayer: new FeatureLayer("https://maps.sgcity.org/arcgisweb/rest/services/SGCityStreetsBasemap/MapServer/79"), searchFields: ["WCTID"], displayField: "WCTID", exactMatch: false, outFields: ["WCTID", "SUBDIVISION", "PHASE", "LOT_UNIT", "ADDRESS", "ACCOUNT", "UNIT"], suggestQueryParams: { orderByFields: ["WCTID"] }, name: "Tax ID", placeholder: "Tax ID number", maxResults: 6, maxSuggestions: 10, infoTemplate: new InfoTemplate("Parcel", "<b>Tax ID:</b> ${WCTID}<br><b>Address:</b> ${ADDRESS}<br><b>Lot:</b> ${LOT_UNIT}<br><b>Unit:</b> ${UNIT}<br><b>Subdivision:</b> ${SUBDIVISION}<br><b>Phase:</b> ${PHASE}<br><br><a href='http://eweb.washco.utah.gov:8080/recorder/taxweb/account.jsp?accountNum=${ACCOUNT}' target='_blank'>View public information for this property</a>"), enableSuggestions: true, minCharacters: 0 }); search.set("sources", sources); search.startup(); identifyFeatures(); }); //End REQUIRE function identifyFeatures() { require([ "esri/tasks/QueryTask", "esri/tasks/query", "esri/Color", "esri/geometry/Extent", "esri/SpatialReference", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/graphic", "dojo/on", "dojo/domReady!" ], function (QueryTask, Query, Color, Extent, SpatialReference, SimpleMarkerSymbol, SimpleLineSymbol, Graphic, on) { on(map, "click", function (evt) { map.graphics.clear(); var line = new SimpleLineSymbol(); line.setWidth(1.25); line.setColor(new Color([255, 0, 0, 1])); var symbol = new SimpleMarkerSymbol(); symbol.setColor(new Color([255, 0, 0, 1])); symbol.setOutline(line); symbol.setSize(8); symbol.setStyle(SimpleMarkerSymbol.STYLE_X); noattributes.style.display = "block"; if (stormwaterDrainsOn === true) { //BEGIN STORM DRAIN NODES var queryStormDrainNodesTask = new QueryTask("http://maps.sgcity.org/arcgisweb/rest/services/StormFeatures/MapServer/6"); var queryStormDrainNodesFeature = new Query(); queryStormDrainNodesFeature.returnGeometry = false; queryStormDrainNodesFeature.outFields = ["TYPE", "CLEANOUT", "SIZE", "GEOGRAPHY", "ELEVATION", "DEPTH", "INVERT", "IN_OUT", "OWNERSHIP", "INSTALL_DA", "LID_TYPE", "LID_DIA", "MH_TYPE", "CLEANED_YR", "COND_DATE", "COND_RTG"]; queryStormDrainNodesFeature.geometry = new Extent(evt.mapPoint.x - 5, evt.mapPoint.y - 5, evt.mapPoint.x + 5, evt.mapPoint.y + 5, new SpatialReference({ wkid: 3567 })); queryStormDrainNodesTask.execute(queryStormDrainNodesFeature, function (results) { stormDrainNodesDetails = ""; var graphic = new Graphic(evt.mapPoint, symbol); for (var i = 0, il = results.features.length; i < il; i++) { var graphic = results.features; graphic.setSymbol(symbol); map.graphics.add(graphic); var featureAttributes = results.features.attributes; for (var att in featureAttributes) { stormDrainNodesDetails = stormDrainNodesDetails + featureAttributes[att] + "<br />"; dojo.byId("stormDrainNodesResults").innerHTML = "<small><b>Type: </b>" + featureAttributes.TYPE + "<br><b>Cleanout: </b>" + featureAttributes.CLEANOUT + "<br><b>Size: </b>" + featureAttributes.SIZE + "<br><b>Geography: </b>" + featureAttributes.GEOGRAPHY + "<br><b>Elevation: </b>" + featureAttributes.ELEVATION + "<br><b>Depth: </b>" + featureAttributes.DEPTH + "<br><b>Invert: </b>" + featureAttributes.INVERT + "<br><b>In_Out: </b>" + featureAttributes.IN_OUT + "<br><b>Ownership: </b>" + featureAttributes.OWNERSHIP + "<br><b>Install Date: </b>" + featureAttributes.INSTALL_DA + "<br><b>Lid Type: </b>" + featureAttributes.LID_TYPE + "<br><b>Lid Diameter: </b>" + featureAttributes.LID_DIA + "<br><b>MH Type: </b>" + featureAttributes.MH_TYPE + "<br><b>Year Cleaned: </b>" + featureAttributes.CLEANED_YR + "<br><b>Cond. Date: </b>" + featureAttributes.COND_DATE + "<br><b>Condt. Rtg: </b>" + featureAttributes.COND_RTG+ "</small>"; }//att stormDrainNodes.style.display = "block"; noattributes.style.display = "none"; } if (!i) { stormDrainNodes.style.display = "none"; } }); //END STORM DRAIN NODES }//if true });//idEvent });//require }
... View more
11-14-2018
10:26 AM
|
0
|
3
|
808
|
Title | Kudos | Posted |
---|---|---|
1 | 08-26-2019 02:53 PM | |
1 | 01-05-2017 01:02 PM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|