IDEA
|
The Copy Raster toolbox is the help-referenced, and principle method of creating multi dimensional rasters, particularly when converting to the new Cloud Raster Format. The Copy Raster tool supports time-slice multidimensional source rasters from sources such as GRIB/GRB, Image Mosaics, and a couple of others. It does not, however, support converting NetCDFs. In fact, converting NEtCDFs is a difficult task when it should not be given that ArcGIS has all the libraries required to do the job. Please add the ability to use NetCDFs as an input raster source for the Copy Raster tool to make converting to CRF easier. The team will likely need to accomodate a bit of conditional logic which asks the variable from within the NetCDF the user wishes to use.
... View more
10-19-2022
02:42 AM
|
1
|
0
|
300
|
POST
|
This morning I made a post, received a reply, replied to it, then had the system start telling me that I couldn't see or make replies since my email address wasn't verified - despite being a verified member who has been participating for more than 3+ years. Amazing - I needed help, and my post is now hiddena nd I cannot get replies. Original post. The instructions at the bottom of the post page are cut off, but inspecting them in the Chrome developer tools reveals the system says I should visit my profile page to resend the verification email. On the profile page (when I'm logged in) there is nothing about resending a verification email - in fact the words "verify" does not appear once. I cannot see anything similar in settings. Finally - if I'm not verified, how on earth am I able to make this post? Perhaps the forum could throw an "Error: 99999", too....
... View more
01-06-2021
04:46 PM
|
0
|
3
|
765
|
POST
|
Thanks Dan, Into a file geodatabase. For the purpose of this example: D:\Temp\Temp.gdb (tried just now to eliminate path issues)
... View more
01-06-2021
03:34 PM
|
0
|
0
|
1753
|
POST
|
I've not seen this issue before: If I'm using Zonal Statistics as Table (Image Analyst, Spatial Analyst) as a geoprocessing tool directly from the toolbox, I can get the tool to run fine. However, when running the tool from a model via Model Builder, I'm receiving the following error: Cancelled function (Zonal Statistics as Table) aborted by User. Now, the important bits: ArcGIS Pro 2.7.0 Datasets: Are the same. I can use the datasets that have been built in model builder to that point to run the tool manually - but not from within model builder. Projections: Are the same between the two input datasets Filenames: Makes no difference when running manually if they are more or less than 8 characters. Tried a smaller name space in model builder also, no change. Hardware: Several Tb of free space, and 32gb of available memory (only 10gb in use at peak). Save location: Local SSD, with a short file path, no special characters. Variable substitution: Is being used in the file name for the input polygon layer due to the presence of an iterator To replicate: GeoTiff as Value Raster Feature layer with single part polygons. Field called 'building_pid' of type text, and length 15. These are unique identifiers. Number of polygons doesn't seem to matter to the issue. Use zonal statistics to find the MEAN and export as table. Iterator in model to Iterate Features The image below shows the successful running of the tool by hand, vs in the model.
... View more
01-06-2021
03:03 PM
|
0
|
4
|
1760
|
POST
|
The thing that slays me is that ESRIs own example data on the Introduction to Spatially Enabled Dataframes actually has null values in it. https://developers.arcgis.com/python/guide/introduction-to-the-spatially-enabled-dataframe/
... View more
08-31-2020
10:44 PM
|
0
|
0
|
1004
|
POST
|
I have a process where I am making use of spatially enabled data frames, and I wish to drop my dataframe back to a geodatabase (or shapefile). What is occuring, however, is that I receive the below error message. It seems as though I am having some difficulty writing to a geodatabase (and shapefile, but that's a known issue with nulls) when my dataframe contains null values. Because I've got 50+ columns, and potentially 500,000+ rows, I do not wish to be replacing nulls. In fact, many of those nulls exist with good reason. So, Has anyone seen this before? Is there a flag that I've missed in the documentation that will allow any field being written to permit nulls (where it might be set to notnullable by default)? Error: Traceback (most recent call last): File "<string>", line 272, in execute File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\geo\_accessor.py", line 2074, in to_featureclass has_m=has_m) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\geo\_io\fileops.py", line 688, in to_featureclass np.apply_along_axis(_insert_row, 1, df[dfcols].values) File "<__array_function__ internals>", line 6, in apply_along_axis File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\numpy\lib\shape_base.py", line 379, in apply_along_axis res = asanyarray(func1d(inarr_view[ind0], *args, **kwargs)) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\geo\_io\fileops.py", line 685, in _insert_row irows.insertRow(row) RuntimeError: The field is not nullable. [re_id] Failed to execute (Tool). Here's the offending piece of code: #Create file path variable for the Regional Ecosystem 80th Percentile Fuel Lookup Table messages.addMessage("Loading RE Fuel data csv to dataframe") inTableREp = parameters[3].valueAsText dfRELUT = pd.read_csv(inTableREp) messages.addMessage("Successfully Read: " + inTableREp) messages.addMessage(dfRELUT.head()) messages.addMEssage(dfRELUT.dtypes) #Read Pre-Clear Shapefile messages.addMessage("Reading PreClear Veg table to spatially enabled dataframe") dfPreClearVeg = pd.DataFrame.spatial.from_featureclass(tmpPreClearAOI) messages.addMessage("Successfully Read: " + tmpPreClearAOI) messages.addMessage(dfPreClearVeg.head()) messages.addMEssage(dfPreClearVeg.dtypes) #Merge the datframes together messages.addMessage("Joining PreClear df RE1 with RE Fuel Lookup Table") left_merged = dfPreClearVeg.join( dfRELUT.set_index(["RE"]), lsuffix="", rsuffix="_lut", on=["RE1"], ) messages.addMessage(left_merged.head()) messages.addMessage(left_merged.shape) messages.addMEssage(left_merged.dtypes) left_merged.spatial.to_featureclass(location=temp_gdb) #Bombs out here
... View more
08-31-2020
09:49 PM
|
2
|
4
|
1044
|
POST
|
Glad it helped! I guess what I didn't mention in my initial series of posts was that the script returns the variable "var" which contains the token. When collecting a layer with ESRI-Leaflet you can supply this token as part of the URL. Just for anyone else who happens upon this in the future.
... View more
07-11-2020
12:16 AM
|
0
|
0
|
2415
|
POST
|
As it turns out, my issue was mostly likely related to using a reserved word. Answer here: python - Locating a substring in Field Calculator using ArcGIS Pro - Stack Overflow
... View more
11-30-2019
08:33 PM
|
1
|
0
|
3091
|
POST
|
I have what should be a fairly straightforward operation failing in ArcGIS Pro 2.4, and cannot for the life of me work out why. If the field "assettype" contains a portion of the search string, then set the value of assettype_groupup to the value I return. Eg, if "assetttype" contains the string "Building |Residential |Large ", and I test whether it contains the term "Residential", and that evaluates to true, then return the string "Residential". Currently the code does not seem to be returning any result / has no effect, and appears to run too quickly (2-3 seconds for 3,000,000 lines). If I try a ternary statement, which means using a single term at a time, it seems to work just fine. Can you see any obvious issues with the setup below #Expression func(!assettype!) # Code block def func(input😞 if 'Residential' in input: return 'Residential' elif 'Industrial/Utilities' in input: return 'Industrial/Utilities' elif 'Transport/Infrastructure' in input: return 'Transport/Infrastructure' elif 'Conservation/National Park' in input: return 'Conservation/National Park' elif 'Recreational/Open Space' in input: return 'Recreational/Open Space' elif 'Mixed Use' in input: return 'Mixed Use' elif 'Community Use' in input: return 'Community Use' elif 'Rural/Primary Production' in input: return 'Rural/Primary Production' elif 'Special Use' in input: return 'Special Use' elif 'Unknown' in input: return 'Unknown' else: '' Looks like:
... View more
11-29-2019
04:14 PM
|
0
|
3
|
3428
|
IDEA
|
I'll second this. Being required to add xyz layers to AGOL first, and then import them as a basemap is, frankly, ridiculous. The xyz standard is in use by Google, OSM, and Mapbox, as well as a number of regional providers. We cannot always control what map services we are delivered by our input data sources, but we sure can ask that the vendor support a standard on all their systems, or none at all. The standard allows for dynamic restyling of the delivered tyles based on url delivered parameters. Want to make roads disappear in google maps, and labels, and make buildings who up only as blue? Sure - you can do that. We don't need to the ability to affect this styling in ArcGIS, but we certainly should be able to add xyz tile layers from major providers without jumping through the hoop of using ArcGIS online.
... View more
07-20-2019
03:57 PM
|
5
|
0
|
17492
|
BLOG
|
It's soemwhat unfortunate that the Microsoft Github data is limited to the US and Canada, though it's a great dataset for those locations. For someone finding this post in the future - have a look at the google map styling api. The map tiles can be used through some other GIS products as an XYZ tile layer, and style to high contrast. They can then be classified very easily. This method scales much easier than the photoshop method listed above, but comes with the usual processnig and legal caveats.
... View more
07-03-2019
02:51 PM
|
0
|
0
|
4171
|
BLOG
|
This is a really cool approach. Thanks for posting. Now, how to apply it at scale...
... View more
07-02-2019
10:37 PM
|
0
|
0
|
4171
|
POST
|
This is an error because the JS code is expecting a synchronous service. Make sure the service is synchronous and the issue goes away. There is a note on one of the leaflet examples on how to work with Async.
... View more
07-02-2019
04:35 AM
|
0
|
0
|
587
|
Title | Kudos | Posted |
---|---|---|
1 | 10-19-2022 02:42 AM | |
2 | 08-31-2020 09:49 PM | |
1 | 11-30-2019 08:33 PM | |
1 | 06-28-2019 03:10 AM | |
5 | 07-20-2019 03:57 PM |
Online Status |
Offline
|
Date Last Visited |
10-10-2023
06:54 AM
|