POST
|
OK! I hope things worked out for you and you have a workable solution!
... View more
Monday
|
0
|
0
|
2
|
POST
|
Hello Ryan I've been thinking about this for a few days. I assume you don't have a solution for this? I'm wondering if the following could be a solution? My first thought is: Why don't you create a Geodatabase Mosaic Dataset? You can learn about these at this link here if you haven't come across them before: Mosaic datasets—ArcGIS Pro | Documentation A mosaic dataset allows you to apply a single index to the whole dataset and would mean you don't need to apply it individually to 200 images which could be a very efficient way of applying an index to 200 images. If you don't or can't want to create a Geodatabase Mosaic Dataset then perhaps there is a workflow which can be applied to a dataset in batch mode? I would think about attempting to do the following: 1: I assume all the tiles come from the same sensor which means you understand how many bands there and you know what wavelengths each band references and that these values are the same across your 200 images. 2: I would suggest for a single image you apply the index and then export that out as a layer (.lyrx) file. This layer file can then be applied to all other images as the layer file's properties created by the index, can then be applied to the other datasets. How can we achieve this? I would look at creating a model using ModelBuilder. 3: Create a Model and use the Iterate Rasters Model Builder tool. The tool outputs a reference to the Raster and its Name. 4: Add the Apply Symbology From Layer tool to the model. This allows you to connect the output Raster as the tool's Input Layer and then choose the .lyrx file as the Symbology layer of the tool. This will hopefully apply the symbology of the lyrx file (which contains the index symbology) to the current raster dataset which is being processed. It's going to look something like this below: You can see the model hasn't been connected properly which is why it is still grey. If you are working with the source jpeg (so that the imagery is not loaded into the Contents pane), you may need to add the Make Raster Layer tool after the Iterate Rasters iterator tool to create that in memory raster layer to which the Apply Symbology From Layer tool is then applied to. I haven't tried this as I don't have datasets but I think this might be worth a go... I hope this helps ed
... View more
Wednesday
|
0
|
2
|
33
|
POST
|
Hmmm interesting So I have a map (it is a map view as it is open) called Validation and it has some selected point features in it: I also have a layout called Crimes_Layout. This layout has a single Map Frame. That map frame is looking at the Validation map (notice the same selected features in the layout...): When I click on my layout and I then run the code in my notebook, which I supplied previously, the map inside of the map frame (which is inside of my layout) zooms to the extent of the selected features in my map: I think the order in which you click on the layout tab and then the notebook is important. Also to get this work on your machine just try to keep it simple to begin with. Understand the workflow which is required to get the map in the layout to zoom to the extent of the selected features... I hope this works for you. Many thanks ed
... View more
Wednesday
|
0
|
0
|
107
|
POST
|
Hi All you have to do is (assuming you are running your code in an ArcGIS NoteBook or Python Window in ArcGIS Pro): 1: Make sure you have a map open. 2: Make sure you have some selected features in the map: 3: Write the following code proj = arcpy.mp.ArcGISProject("CURRENT")
mv = proj.activeView
mv.zoomToAllLayers(True) You are working with a MapView object which has a zoomToAllLayers() method. The boolean True argument says we want to use the selection of our layers. I hope this helps Many thanks ed
... View more
a week ago
|
0
|
0
|
122
|
POST
|
Hi I'm trying to visualise what you want to do. Is it possible to supply a couple of screen shots, of the map, code snippet and the spreadsheet then it might be a little easier to decipher what the issue might be. By the way: I don't think you're going crazy 🙂 I suspect it might be something very minor which has changed in your code / spreadsheet which is causing the issue and you can't spot it because you have been working on it for so long... Many thanks ed
... View more
a week ago
|
0
|
1
|
108
|
POST
|
Hello Further to what has suggested is your output parameter correct? You have that as a "Feature Set" - you might want to set the Output_Feature_Class parameters as a 'Feature Class' data type (unless there is a specific reason you wish to use a Feature Set?) and take on board Dan's suggestion also. I hope this helps. many thanks ed
... View more
a week ago
|
0
|
1
|
180
|
POST
|
Hi Have you looked at the Raster to Polygon geoprocessing tool? https://pro.arcgis.com/en/pro-app/3.1/tool-reference/conversion/raster-to-polygon.htm This should take your segmented raster layer and create a polygon feature class. I hope this helps many thanks ed
... View more
2 weeks ago
|
0
|
1
|
182
|
POST
|
Ah.... no report as a PDF, just as an XML file 🙁 Perhaps you can add that functionality as an "Idea"? @Dale_Honeycutt suggestion may be a way forward also for you? Many thanks ed
... View more
3 weeks ago
|
1
|
0
|
139
|
POST
|
Hello I hope things are well with you. So the values can not be displayed dynamically on the map, unless you create a label and manually fill in the label with the values, for example: The label will follow the parameter if you move the parameter, which is nice. You can also hover over the parameter and the values will be dynamically displayed: You can also create a report via the ModelBuilder tab | Model group and it will display the values for the parameter as well as other model information. I hope this helps! many thanks ed
... View more
3 weeks ago
|
1
|
0
|
155
|
POST
|
Hello So – yes- - it can be done but you will need to write some Python Validation code within the ToolValidator class of the Script Tool properties dialog box and make some changes to your Python script tool dialog 1: Display the Tool Properties dialog box for your script tool. 2: On your form create a new parameter which will allow you to search for a workspace, for example, use the following properties as a guide to search for a file geodatabase: Label: Choose the Workspace Data Type: Workspace Filter: Workspace :: Local File System (This allows you to select ONLY file geodatabases) I think you may have a parameter which allows you to select feature layers from the Contents pane? 3: Change this parameter using the following as a guide: Label: Choose the Feature class Data Type: String Filter: Value List (This means your parameter will display values within a drop down list) Your parameters tab in the Tool Properties dialog box should look like the following: Notice the numbers next to the parameters: 0 is the position of the workspace parameter while 1 is the position of the feature class parameter. You will use these numbers in a moment. 4: Click the Validation tab. This is where you can write Python code which will execute when your form is displayed or when you interact with the parameters on the form. 5: Locate the updateParameters() method. 6: Underneath the comment for the method write the following code: wkParam = self.params[0]
if wkParam.altered and not wkParam.hasBeenValidated:
fcParam = self.params[1]
arcpy.env.workspace = wkParam.value
fcs = arcpy.ListFeatureClasses()
if len(fcs) > 0:
fcParam.filter.list = fcs
fcParam.value = fcs[0] Be aware of the importance of indentation! What the code does is: Get the parameters from a list of parameters from the dialog. Check to see if the workspace parameter has been altered by the user choosing a workspace and that the parameter has not gone through ArcGIS Pro’s validation routines already. If you don’t put this check in then you will be forever in a validation spiral which will affect the performance of your script tool. Get the chosen workspace and a list of feature classes Assign the list of feature classes to the feature class parameter using the filter and list properties on the Parameter object. Remember we set the Filter to be a Value List earlier? Get the 1st item from the list and assign it as the first item for display in the combo box before the user clicks on it. The method should look like the following: 7: Press the OK button on the Tool Properties dialog box. 8: Double click the script tool to display the dialog: 9: Choose a file geodatabase The Choose Feature Class parameter will now be populated with the feature classes within the chosen file geodatabase. If you choose a different file geodatabase then the drop down combo box will be cleared and re-populated with the new feature classes from the geodatabase! I hope this does what you want it to do. I will make this into a blog to add a bit of meat to these bones and i'll put the link here once it's written but this should be enough for you.... Many thanks ed
... View more
3 weeks ago
|
0
|
0
|
90
|
POST
|
Hello Have a look at the the Image Information tool on the Imagery tab | Tools group. This allows you to inspect the values for the individual pixels for all bands within the image. Look here for more information: https://pro.arcgis.com/en/pro-app/latest/help/data/imagery/image-information-pane.htm I hope this helps many thanks ed
... View more
3 weeks ago
|
3
|
0
|
180
|
POST
|
Hi Kathy As you say... this is puzzling. What I will do is create my own script tool to use this geoprocessing tool. I will have a look on friday and let you know how i get on. Many thanks ed
... View more
3 weeks ago
|
0
|
1
|
128
|
POST
|
So what I proposed is for creating a Geodatabase Mosaic Dataset. A Geodatabase Mosaic Dataset references the tiles and treats them as a single object - think of it as an image catalog and are the recommended way of managing large volumes of imagery, which I think you have. Have a look here at Geodatabase Mosaic Datasets: https://pro.arcgis.com/en/pro-app/3.1/help/data/imagery/mosaic-datasets.htm I think what you want to do is create a different type of mosaic dataset - in which you will create a single raster tile in which all of the inputs are blended into that single tile which can be achieved by the Mosaic To New Raster geoprocessing tool. Building overviews will not work for this type of mosaic dataset - it will only work with Geodatabase Mosaic Datasets. I would recommend you look at creating a Geodatabase Mosaic Dataset. If this is not an option then I would use the Mosaic To New Raster geoprocessing tool. But note there are many things to take into account which might affect your output e.g. input raster properties (do they have colour maps? is the bit depth the same?...), the output raster dataset can be stored as many different file types (this could account for your missing tiles....; pixel type / bit depth.... there are many parameters which could cause the issue. I would recommend that if you go down this route then mosaic 2 or 3 tiles to begin with to make sure that the mosaic works, to make sure that the mosaic tile is created properly, it displays properly with no missing tiles. Remember to build statistics and Pyramids on your output mosaic. If this issue still persists then I would open a support call with your distributor. I suspect they will ask for: - Software version - A description of the issue and an example workflow - Some sample data Let me know how you get on. I'm not sure what more i can offer after this.... Many thanks ed
... View more
3 weeks ago
|
0
|
1
|
288
|
Title | Kudos | Posted |
---|---|---|
2 | 3 weeks ago | |
1 | 3 weeks ago | |
1 | 3 weeks ago | |
3 | 3 weeks ago | |
1 | 3 weeks ago |
Online Status |
Online
|
Date Last Visited |
2 hours ago
|