POST
|
Thank you Curtis Price, that did the trick! First I set my ArcGIS to English, but that wasn't enough. I actually had to change the decimal sign for my whole computer to ".", now it works beautifully. THANK YOU
... View more
11-18-2014
12:47 AM
|
0
|
0
|
741
|
POST
|
Thank you very much for your suggestion. I think I'm getting closer to the core of the problem. I checked in the geoprocessing results that I get an output from the GetRasterProperties (45,445). My ArcGIS is set up in German, therefore the comma. Then I tried to use float(%Max_Value%) but got an error message stating that float can take only one argument. So I assumed that the comma in my 54,445 is the problem and it actually should be 54.445 in order to be transformed into a float variable. I exported the whole model into a script to be able to transform the datatyp. My script runs without any error messages but still the field is not filled with my 54.445. My script looks like this: # -*- coding: utf-8 -*- # --------------------------------------------------------------------------- # GetRasterProperties.py # Created on: 2014-11-13 14:20:41.00000 # (generated by ArcGIS/ModelBuilder) # Usage: GetRasterProperties <in_raster> <Table> # Description: # --------------------------------------------------------------------------- # Import arcpy module import arcpy # Script arguments in_raster = arcpy.GetParameterAsText(0) Table = arcpy.GetParameterAsText(1) # Local variables: # Max_Value = in_raster # TableOut = Max_Value # Process: Raster-Eigenschaften abrufen MaxWertResult = arcpy.GetRasterProperties_management(in_raster, "MAXIMUM", "") # Maximum als String in Variable speichern MaxWert = MaxWertResult.getOutput(0) # In MaxWert Komma durch Punkt ersetzen MaxWert2 = MaxWert.replace(",", ".") # MaxWert2 in Float umwandeln MaxWertFl = float(MaxWert2) # Process: Feld berechnen arcpy.CalculateField_management(Table, "Max2", MaxWertFl, "PYTHON_9.3", "")
... View more
11-13-2014
05:53 AM
|
0
|
2
|
741
|
POST
|
Hello, thank you Thomas Stanley and Curtis Price, I've tried your suggestions. I'm a bit further but still can't get my CalculateField to recognize the output of the GetRasterProperties in ModelBuilder. I've split up the problem and made a model with just the CalculateField Tool and a model variable of type Double that is used to fill the field (see picture). So far, so good, that work's. Then I try to use the Output of the GetRasterProperties Tool (Max_Value) instead of the variable %Double% in my field calculation. The model runs without error message but the field is not updated but stays empty. I also tried to write %Max_Value% instead of Max_Value in the expression line, but that does not make any difference to the result. If anyone could help me with this issue I would be most grateful.
... View more
11-10-2014
03:20 AM
|
0
|
4
|
741
|
POST
|
Or am I making a syntax mistake in my field calculation expression? I've tried !Max! but that doesn't work neither.
... View more
11-04-2014
11:59 PM
|
0
|
0
|
151
|
POST
|
Heya, I have got a problem using the "Get Raster Properties" Tool within ModelBuilder. I want the Get Raster Properties Tool to find the maximum value of the raster. It shows me that maximum value in the results list, but I cannot use it to calcualte a field in a table (see picture). Can anyone help me how to get access to the resulting maximal value within my model? I've read something about a GetOutput(0) method, but don't know how to build that into my model. Many thanks, Tegir
... View more
11-04-2014
05:38 AM
|
0
|
1
|
629
|
POST
|
Hello, I have a small model that should find the maximum value of a raster and use this number to fill a field in a shapefile. For some reason the variable of the rasters max value isn't accepted in the calculation of the new field in the shapefile. I just get a general 999999 error. I've attached an image for better understanding of the problem. The field I create in the model is of type DOUBLE because I read that the tool 'get raster properties' uses this datatype as output. I also tried using the modelbuilder only tool 'collect values' to save the maximum value in and feed it then into the calculation. Obviously that didn't work, otherwise I wouldn't ask here 🙂 Can anyone please explain to me why this isn't working and how to solve the problem? Cheers, Thea
... View more
03-10-2014
02:53 AM
|
0
|
7
|
3543
|
POST
|
Hi, I have a city map with photos and textinformation for certain points, created in ArcGIS Explorer. These information popup when moving the cursor over the points. Is it possible to load these shapefiles with full functionality in ArcPad and use them on a PDA? Many thanks for any hints or experiences, tegir
... View more
04-14-2011
05:02 AM
|
0
|
0
|
550
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|