POST
|
Thankts, that did the trick! Here's what I ended up using: .claro .arcgisSearch .searchMenu li {
padding: 5px 25px;
}
... View more
02-25-2016
09:27 AM
|
0
|
0
|
397
|
POST
|
I decided to use the code from the Basic Search sample and add a search bar to an existing WMA. I have finally gotten my Search Div to display the way that I want... But when I start typing into the search box, the suggestions are not aligned well, and the first character or so is cut off on the left. I'm attaching a screenshot. Has anyone else run into this? I'm guessing there are just some style settings that I need to change, but I haven't figured it out yet...
... View more
02-19-2016
04:09 PM
|
0
|
2
|
1471
|
POST
|
Is there already a legend in the mxd? Here's how my template mxd looks when I just open it in ArcMap (I've clicked on the legend so you can see its extent in teal): If it's possible, it could be helpful to share the URL of your web app, so others could see exactly what it's doing.
... View more
02-18-2016
07:35 AM
|
0
|
0
|
1768
|
POST
|
I haven't used custom map templates for printing with Web AppBuilder before (I used the JavaScript API for this web map). I do know that you can add a print widget and use the "out-of-the-box" map templates. Here is the Print Widget documentation for Web AppBuilder: Print widget—Web AppBuilder for ArcGIS | ArcGIS Taking a closer look at the Print Widget documentation, I think you can tell it to use your own custom print service... assuming you are able to create one. I have ArcGIS for Server at my workplace, so I was able to create custom mxd templates and publish a print service using that. I don't know of any other way to create custom mxds and print services without ArcGIS Server. If you do have ArcGIS for Server, here is a tutorial page on how to publish a print service: ArcGIS Help (10.2, 10.2.1, and 10.2.2) If I'm correct, once you have your mxds created and located in the layout templates folder, and after the print service has been published, then all you'd need to do in Web App Builder is change the service URL in the Print Widget to that of the new one you've created.
... View more
02-11-2016
03:53 PM
|
1
|
2
|
1768
|
POST
|
I have finally figured out how to get this script to run again. One of the things the script does is calculate the title text (starting at line 267 in my code post). Some of the strings calculated for the text elements included <FNT> tags that would change the font size for the text enclosed in the tags. The maps whose title text included these tags were the ones that were failing. Once I removed the tags from the string, everything ran smoothly again. I do not know why this fix worked. Let me know if you have any ideas / explanations.
... View more
02-05-2016
03:47 PM
|
0
|
0
|
719
|
POST
|
Ah, this has turned out to be very helpful. Instead of resampling or splitting up the rasters (and saving the pieces to disk), I used this sample to edit my script. Now it will create arrays of a limited size and then only save each piece of resulting raster to disk (mosaicking them all at the end). I have been able to run this on a raster with rows*columns of 2864*5259, and the script was done within 30 minutes. I set the blocksize to 1000 (so each array chunk will have a maximum of 1,000,000 cells). Thank you for the suggestion!
... View more
01-13-2016
02:05 PM
|
0
|
1
|
1265
|
POST
|
Technically, no, the cell size is allowed to be as large as 10 meters. I was hoping to not have to resample the rasters from their original cell size. I have on occasion run into issues while batch resampling, most notably the appearance of some blocks of the output rasters being set to nodata values. I will at least try the aggregation experiment you mention. It might make me feel better about doing it, if it comes down to that. It seems more and more like I am also just going to have to split these rasters up into smaller pieces for processing. I'm looking into adding the Split Raster tool into the script.
... View more
01-12-2016
11:47 AM
|
0
|
0
|
1265
|
POST
|
One that I'm working with, at its original raster cellsize of 3.75ft, has 13,747 rows and 25,245 columns.
... View more
01-12-2016
09:26 AM
|
0
|
5
|
1265
|
POST
|
I am starting with six rasters. One is basically a DEM (topographic elevation). The other five rasters represent water surface elevation for different recurrence intervals (10%, 4%, 2%, 1%, and 0.2%). The raster I want to create will represent the percent-annual-chance of flooding for each cell. For example, I might have a topo elevation of 601 ft for one cell. The 10%, 4%, 2%, 1%, and 0.2%, water surface elevation rasters have values of 590, 595, 600, 605, and 615 ft, respectively. In order to find the percent-annual-chance of flooding for this cell, I need to graph a line using the known values. On the X-axis I put the natural log of the percents, and I put the elevation values on the Y-axis. I use numpy’s polyfit function to find the m and b of that line, and with a little algebra find that the percent-annual-chance of flooding at this cell is 1.9%. I have written a few python scripts that can do this, but they only work for small datasets. One works by turning the topo raster into points, extracting the WSEL values from those rasters to the points, and then running the calculation using UpdateCursor. This works great when my rasters are small and have low resolution, but it takes a VERY long time (non-feasible) to run for the size of a county. Another script will turn the rasters into numpy arrays and interate through each row/column combination to perform the calculation. This runs much faster than using points, however it requires that all rasters are clipped to the exact same extent. Also, with the county-size extent and small cellsize (as small as 3 feet), my computer’s memory cannot handle turning all of the rasters into arrays. It will try, but eventually I get a memory error. Has anyone else done raster processing like this? It would be great to be able to just use Raster Calculator / Map Algebra, but I haven’t been able to figure out how to use the numpy polyfit function with it. I'm also attaching an image from my guidance document to help explain the calculation.
... View more
01-12-2016
09:19 AM
|
0
|
7
|
4126
|
POST
|
It looks like this was reported as a bug: Bug in Basemap Gallery dijit
... View more
10-23-2015
01:45 PM
|
0
|
0
|
636
|
POST
|
I think so. At least in my case, I'd originally noted the same as you... With no layers in the mxd, the legend only showed as the title word 'Legend', and setting it to be wider and taller only seemed to make the word bigger. Once I checked that 'Fixed Frame' checkbox, I was able to set a width and height for my legend without the title getting larger.
... View more
10-16-2015
11:50 AM
|
0
|
0
|
1538
|
POST
|
In this case, I do want it on the bottom. The image being created is only 6 inches wide by 8 inches tall (portrait). I have another option set up as 8" wide x 6" tall (landscape) - for that one I just have the legend as one column on the right.
... View more
10-16-2015
11:45 AM
|
0
|
0
|
1538
|
POST
|
It seems like the answer is yes - this will work for both. Here's how the legend came out when one layer of my dynamic map service layer is showing:
... View more
10-16-2015
11:36 AM
|
1
|
2
|
1538
|
POST
|
Well, I have solved question number two, and it didn't even involve JavaScript. I'm not sure how I missed this before. In my custom MXD, in the (blank) Legend's properties, on the Layout tab, there is a section in the lower right called Fitting Strategy. I just checked the Fixed Frame box and then set the legend's available area (width/height) on the Size and Position tab. Now the legend will make as many columns as it needs. Side note - I found that if the legend items still won't fit in the area, it will only show the title. I spent a while trying to figure out why my legend was empty, until I figured out I just needed to make my legend area larger.
... View more
10-16-2015
09:26 AM
|
4
|
4
|
1538
|
POST
|
And only using version 3.14 . When I switch to version 3.13, the attribute field name doesn't show up. At least this has been a learning experience, I've never really used the Inspector before. Maybe I just need to learn to create my own Legend from scratch without using the widget. That will probably satisfy the control freak in me Thanks for your suggestions!
... View more
10-09-2015
04:50 PM
|
0
|
0
|
798
|
Title | Kudos | Posted |
---|---|---|
1 | 04-07-2014 08:57 AM | |
2 | 01-06-2011 07:44 AM | |
1 | 01-27-2023 12:33 PM | |
3 | 06-18-2020 03:48 PM | |
1 | 09-24-2015 12:07 PM |
Online Status |
Offline
|
Date Last Visited |
03-16-2024
04:02 AM
|