POST
|
In any case, I would still expect to get the same result using python through arcmap as I did not reproject anything there either. I published a peer reviewed paper in 2015, based on tabulated results that were obtained using a python script that used the arcpy method zonal histogram. I had no environments set there, other than snap to raster. The area shapefile and the raster, were in the same projection. Recently,having to check those results again, I used zonal histogram in the ArcMap GUI and, using the same exact input layers, and also not setting any environments other than snap to raster, I got drastically different results. How is this not a bug? The answer to the OP should be simple and clear: sorry - we'll fix this. arcpy/ArcMap should not have opaque settings that produce different results, when the same tool is used and all the input layers and settings are equal. Period. It took me several hours of debugging to figure out the issue - the default (and OPAQUE) environment settings in zonal histogram when used from the arcmap GUI analyze the data at a coarser resolution than the inputs, to save computational time. Setting the environment setting to match the pixel size of the raster being analyzed, makes the tool perform as expected, and as it should be as default, obviously, and therefore matches the output results i get when using zonal histogram on the same exact layers in an arcpy script. gdal next time?
... View more
06-07-2017
05:25 PM
|
0
|
3
|
350
|
POST
|
She probably has more styles turned on that contain colors or has extra colors saved to her personal style or other referenced styles. (not all styles have colors and some of them have overlap with colors in other styles) To turn on more styles go to the Customize menu and select Style Manager. In the Style Manager click the Styles button on the right. You can also add your own colors to your personal style or any style you have write access to. That can be helpful if you find yourself creating certain colors often. You can do that through the Style Manager, too, or from the More Colors dialog. slightly unrelated cartographer - but can you help me figure out this issue? it's driving me a bit mad. http://forums.arcgis.com/threads/32120-Symbol-Selector-vs-Color-Selector thanks
... View more
11-17-2012
01:37 PM
|
0
|
0
|
212
|
POST
|
Robert, Thanks for the clarification on nthe TOC widget path. Now my icons appear. I will start new threads for the other two questions - thanks. EDIT -sorry Robert, do you want me to start a new thread all together? even though my q's are relative to your TOC only? Or did you meant to just post a new "reply to thread" without quoting this post? thx Giuseppe Giuseppe, So as far as the assets you need to make sure you have this exact path: src\widgets\TOC\assets\images. All the assets that this widget needs are found in that folder. For the Description button and the horizontal scroll issues you are having, please post a new thread. Now that the MVP program is back I don't like to continue to answer on these muti page forum posts as I have in the past.
... View more
02-09-2012
06:16 AM
|
0
|
0
|
343
|
POST
|
Hi robert - one more thing - does setting a height and width in the config.xml disable the horizontal scroll? looks like it does here. thx g Giuseppe, I have not documented this widget like some of my others (probably need to). Here is a link to thread that explains how to setup the metadata description for a layer in a map service: http://forums.arcgis.com/threads/18453-Table-of-Contents-Legend-Widget-for-FlexViewer-2.x?p=111587&viewfull=1#post111587 As far as Icons not showing up...? Are you using the compiled or uncompiled? As far as changing the size of the widget that is simple in Flex Viewer 2.5 as all you need to do is add a width and height to the widget in the main config.xml
... View more
02-08-2012
04:36 PM
|
0
|
0
|
343
|
POST
|
Hey Robert, Good to know about the size. I am using the compiled version. Is it looking for the icons in it's own "asset" folder or the main one? because it might just be that I unzipped it into a folder within another folder, so it might not find the general asset folder at the root of flexviewer folder. I think I have a bigger problem with the "description" button - I am staring at an MXD that clearly has all the metadata filled out at the mxd level, and so does the data frame, and so do the layers, yet, I am seeing the button only next to the layers, but not at the "mxd" level. maybe it has to do with my missing icons - aka the list is not displaying correctly? thx g Giuseppe, I have not documented this widget like some of my others (probably need to). Here is a link to thread that explains how to setup the metadata description for a layer in a map service: http://forums.arcgis.com/threads/18453-Table-of-Contents-Legend-Widget-for-FlexViewer-2.x?p=111587&viewfull=1#post111587 As far as Icons not showing up...? Are you using the compiled or uncompiled? As far as changing the size of the widget that is simple in Flex Viewer 2.5 as all you need to do is add a width and height to the widget in the main config.xml
... View more
02-08-2012
04:30 PM
|
0
|
0
|
343
|
POST
|
Giuseppe, Actually, esri came up with the TOC menu first, I just added more options and made it look better. WMS layer legends are not supported. I do look for the Flex team to add a true TOC like this to the API and/or viewer as all the other APIs have this functionality (Silverlight, JS). Hi Robert, I might have been looking in the wrong place, but I can't find a full explanation of all the supported tags for the widget in both the config.xml file and the widget's own xml file. I'm asking because I want to make sure I use all the functionality that you've made available. Also, currently, I have two problems and a question about an implementation: the icons for the "expand all layers" and "collapse all layers" are not showing i am not seeing the "description" icon on any of my layer's menus, and am thinking I am missing how to enable it the question is: (and I think i might know the answer) is there a way to change the width and height of the widget? or would that involve changing the code and recompiling it? Thanks again, Giuseppe
... View more
02-08-2012
03:29 PM
|
0
|
0
|
343
|
POST
|
Dear Robert, I just saw that you made several revisions to your TOC! I also see that finally the ESRI team decided to copy it and offer some of the same tools. So let me get this straight, your widget offers: - Legend and TOC in the same place (a la arcmap) - legends of classified rasters will appear - WMS layers will appear (with legend?) - transparency, move up and down, expand all (esri team didn't copy this one) That's great! downloading and configuring it asap. I'll be back! Thanks SO much! Giuseppe All, The new Flex Viewer 2.5 version of the TOC Widget is now available. Version 2.5 - 12 Dec, 2011 * Added new Flex Viewer 2.5 Layer menu capability to TOC. * Enhanced the visual appearance of the out of the box Flex Viewer 2.5 Layer options menu and added more options. * You can choose to use esri's new description capability or the current functionality that the TOC Widget has for Metadata.
... View more
02-07-2012
02:01 PM
|
0
|
0
|
230
|
POST
|
Giuseppe, I know it has been close to a year since anything has been posted in this thread but after reading all of the posts I think I am dealing with a similar situation as you were. I would like to display both raster and vector data in Robert's legend widget. My raster data has been classified into three classes, and labeled appropriately in an mxd. I created a map service of the mxd, and the rasters display just right, except they serve very little purpose if the user cannot see what each class means. You mentioned figuring it out to some level and I was hoping you could point me in the right direction. Thanks, Chris Hi Chris, Unfortunately since my last post I have had a shift in priorities. My problem, which seems to be the same is yours, still does not have a solution. Robert's table of contents/legend combo widget is far more functional than the layer selector and the legend provided by ESRI with the flexviewer 2.2, yet it does not display raster legends. The ESRI legend widget does display rasters, hence I have been using it for my application, but with the following drawbacks: 1) it is not integrated with the table of contents or layer selector widget, so it takes up more map space, and 2) unless you want to have 2 legends displaying, you will use the esri layer selector widget instead of robert's TOC widget and so you will not have a) layer transparency and b) scale dependency indication. At some point I am hoping to be able to find the time to look at these widgets in flash builder and see if I can make the one I want out of the two of them, but someone much more knowledgeable then me in FLEX will probably get to it before I find the time to do that. Let me know if I have answered your question or you need more info. Giuseppe
... View more
03-27-2011
04:49 PM
|
0
|
0
|
528
|
POST
|
Hi Robert, re: raster legends... So I came a long way from my last post some time ago, and finally managed get my rasters to be properly served and displayed in the ESRI legend widget. My problem still is not being able to take advantage of your TOC widget, because of my need to display dynamic legends for Rasters (classified imagery - not the secret kind - the kind in classes 🙂 So I guess my question is, what is easiest (if either one is easy at all): disabling the legend portion of your TOC, or, making the legend part of your TOC work with the raster legends that Arcgis server 10 is serving up from REST now? I have my flashbuilder environment setup and working properly with v. 2.2, but alas have not had time to take a look under the hood yet.....probably a good thing.... thanks again - giuseppe
... View more
03-07-2011
03:43 PM
|
0
|
0
|
512
|
POST
|
I get the same problem: TypeError: Error #1009: Cannot access a property or method of a null object reference. at MethodInfo-989() at com.esri.ags.skins::LegendSkin/commitProperties() at mx.core::UIComponent/validateProperties() at mx.managers::LayoutManager/validateProperties() at mx.managers::LayoutManager/doPhasedInstantiation() at mx.managers::LayoutManager/doPhasedInstantiationCallback() This error makes flash crash. I am not sure how this happpened - the map used to display correctly - it seems like this problem started after I removed a layer from my operational layers...but everything was working fine before i even added that layer in the first place. Does anyone know more about this issue? I will try firebug again but it seems to be saying there are no errors? Thanks Giuseppe
... View more
02-16-2011
11:18 AM
|
0
|
0
|
259
|
POST
|
Robert, Thanks so much for providing this widget! I got it up and running in no time. Having the ability to adjust transparency is particularly useful for my application (I was bummed that ESRI removed that option from version 2.x). I too have rasters in my map and when I was using the ESRI legend widget the 2 rasters that have a classified renderer did show up in the dynamic legend (the one raster I have displayed with a stretched renderer did not). It won't be too hard for me to work around this by converting the rasters to polygons but I just thought I'd point that out. I also noticed an issue in the legend where I have layers classified by unique values. In a couple of cases I have multiple unique values grouped together and in these cases there are multiple entries showing up in the legend, whereas in the ESRI legend widget this was not the case (see attached screenshot). At any rate, I can certainly work around this as well and your widget is heaps better in many other ways. cheers, Chris Hi Chris, can you write a little about how the rasters were published, and how they were classified (if it was a particular classification tool or something, what do you mean by renderer?) to make them show up on the ESRI legend? I found no info on this. Thanks a lot - Giuseppe
... View more
02-04-2011
09:21 AM
|
0
|
0
|
511
|
POST
|
Giuseppe, There is a new version available that has the exclude layer capability. Hi Robert, Thanks for your reply. What I am wishing for (and I understand it may just stay a wish) is to have an advanced layer selector/legend widget which works seamlessly and dynamically with both raster and vector. An added bonus would be your transparency feature. Right now my webGIS has all the cool flexy looking interface, but from a GIS perspective, it is worse than IMS? this is very very sad. Don't get me started on why ESRI would not spend some time developing a basic necessity (above said widget), as we all know that a map without a legend.....exactly....so why even make us go through all this plain to include a "separate" legend. I was dumbfounded in the previous version to see that the legend widget was not even included, what? wow. So I have vector layers, i have raster layers, I am giving my users the option of turning them on and off dynamically, and i want the legend to behave correspondingly. If they can put a raster in transparency (we are talking landsat composites for a region the size of central africa- beautiful stuff) that would be great. I don't want three widgets on my map to do that, and i don't know how to write code in FLEX (yet). So here is my hacked version: http://congo.iluci.org/carpemapper/ The "raster selector" on the left works only for the "facet" image (thats another problem-unrelated). Also I saw someone replied on th thread that got rasters to display the legend in the esri legend widget. I will take a look. Thanks again - cheers, Giuseppe
... View more
02-04-2011
09:18 AM
|
0
|
0
|
650
|
POST
|
Hi Robert, Hi everyone - I am making some laughable attempts at trying to incorporate these elements in my flexviewer app. without touching the flex code. 1. Layer switcher (Robert's TOC works great), 2. layer transparency (robert's TOC works great) and 3. raster and vector layer dynamic/static legend. What I have found out is that this is impossible - I'm going to have to develop this combo of functionality myself or wait till someone cooler than me does it. What I tried: esri LayerListWidget to switch my vectors, esri LegendWidget to show the legend for my vectors, esri sample ThematicQueryWidget to switch my raster layers and toggle a static image printed on the map with the legend of the displayed raster. --- Now this WORKS, but looks awful, truly very bad, and I get no layer transparency. 😞 So I thought, let's try and use Robert's TOC and the esri ThematicQueryWidget together - I get all the functionality I want. Hmmm - nope, not that easy, what's new. In this attempt I tried to use: [INDENT] robert's TOCWidget - [INDENT] I can get this to work, but I cannot figure out how to make it exclude from the TOC my imageservice raster's that are present in the map (how does the excludelayer tag work? can't figure it out) [/INDENT] [INDENT] - in the above experiment I could exlude my rasters from layerlistwidget and have them separately in thematicquerywidget (it made more sense) [/INDENT] [INDENT] Also, the legend tab, I don't want to see my baselayers there, and while I could live with the white background (but it's not ideal) I have my main vector layer that is a polygon feature whose symbology is a borderless white line - hence it dissappears in the legend and I can't see it. [/INDENT] [INDENT] But! it does give me transparency. [/INDENT] [/INDENT] [INDENT] I add now the thematicquerywidget, [INDENT] if it's active at the same time as the TOCwidget, they just won't work; they crash flash/and browser. [/INDENT] [INDENT] If i disable either one, the other works fine. frustration ensues. [/INDENT] [INDENT] if thematic query is on, i can switch between rasters and see my static raster legend image; if TOCwidget is on i have a layer switcher, transparency and a legend (which i dont like as much as the standalone version). :confused: [/INDENT] [/INDENT] I'm wondering, other than the obvious suggestion "go learn flex and make your own do it all widget/interface" 🙂 is there any other advice you could give me on how to achieve my (i thought simple...but I come from mapserver/mapfiles...) goals? Thanks again Robert for providing these tools and foruming tirelessly. Giuseppe
... View more
01-25-2011
04:06 PM
|
0
|
0
|
650
|
POST
|
Hi Robert, Hi everyone - I am making some laughable attempts at trying to incorporate these elements in my flexviewer app. without touching the flex code. 1. Layer switcher (Robert's TOC works great), 2. layer transparency (robert's TOC works great) and 3. raster and vector layer dynamic/static legend. What I have found out is that this is impossible - I'm going to have to develop this combo of functionality myself or wait till someone cooler than me does it. What I tried: esri LayerListWidget to switch my vectors, esri LegendWidget to show the legend for my vectors, esri sample ThematicQueryWidget to switch my raster layers and toggle a static image printed on the map with the legend of the displayed raster. --- Now this WORKS, but looks awful, truly very bad, and I get no layer transparency. 😞 So I thought, let's try and use Robert's TOC and the esri ThematicQueryWidget together - I get all the functionality I want. Hmmm - nope, not that easy, what's new. In this attempt I tried to use: [INDENT] robert's TOCWidget - [INDENT] I can get this to work, but I cannot figure out how to make it exclude from the TOC my imageservice raster's that are present in the map (how does the excludelayer tag work? can't figure it out) [/INDENT] [INDENT] - in the above experiment I could exlude my rasters from layerlistwidget and have them separately in thematicquerywidget (it made more sense) [/INDENT] [INDENT] Also, the legend tab, I don't want to see my baselayers there, and while I could live with the white background (but it's not ideal) I have my main vector layer that is a polygon feature whose symbology is a borderless white line - hence it dissappears in the legend and I can't see it. [/INDENT] [INDENT] But! it does give me transparency. [/INDENT] [/INDENT] [INDENT] I add now the thematicquerywidget, [INDENT] if it's active at the same time as the TOCwidget, they just won't work; they crash flash/and browser. [/INDENT] [INDENT] If i disable either one, the other works fine. frustration ensues. [/INDENT] [INDENT] if thematic query is on, i can switch between rasters and see my static raster legend image; if TOCwidget is on i have a layer switcher, transparency and a legend (which i dont like as much as the standalone version). :confused: [/INDENT] [/INDENT] I'm wondering, other than the obvious suggestion "go learn flex and make your own do-it-all widget/interface" ( a completely warranted answer) 🙂 is there any other advice you could give me on how to achieve my (i thought simple...but I come from mapserver/mapfiles...) goals? Thanks again Robert for providing these tools and foruming tirelessly. Giuseppe
... View more
01-25-2011
04:03 PM
|
0
|
0
|
650
|
POST
|
Yes. See for example http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/legend where the first four layers are all raster layers. Do you have a specific example where it is not working for you? Hi Bjorn, Thank you very much for the reply. I see from your example that the legend works on the rest API for rasters as well, however I have some questions. 1) Flexviewer v2.2. just came out recently supporting a legend widget - why does this legend widget not support legends for raster layers? 2) Are there examples that you know of in flex based applications that use the legend for raster layers? 3) Is there documentation on which type of image formats, and which type of services are supported? i.e. will a published Image Service (ImageServer) produce a legend in REST? will an image published as part of a Map Service (mxd) produce a legend? Will only an image published in alone in it's own Map Service produce a legend (your example). I am 1 step away from putting my application in production, I thought the legend widget on flexviewer 2.2 was the silver bullit, but with out the raster legend it's useless in my application. Thanks again. Giuseppe
... View more
01-20-2011
07:30 AM
|
0
|
0
|
249
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|