Quantcast
Channel: Forums - Geoprocessing
Viewing all 1952 articles
Browse latest View live

ArcGIS 10.1 Tabulate Intersection: confused

$
0
0
Hi folks,

I have been testing using the new tool introduced in ArcGIS 10.1 called Tabulate Intersection. However, I am not getting the results I expect. Let me give you the details.

I have two polygon feature classes, first - represents administrative area units (say counties), second - the zone of interest. Each county polygon has a certain integer attribute field where a statistics value stored. What I am trying to achieve is to get to know what part of the county is located within the zone of interest (purely geometrical intersection) and then based on the percentage calculate the statistics value that will be allocated to the zone of interest. So, say in the zone of interest (red polygon), only 10% of the area of the county with the attribute value of 223 is located. This means, a smaller intersecting polygon that represents shared area between the county and the zone of interest gets the value of 22.3. Please refer to the figure attached.

Afterwards, I want to go through all other counties that intersect the zone of interest and calculate the value proportionally as outlined above. Then those intersecting polygons with newly allocated values are dissolved based on the zone of interest ID and their attribute value are summed.

All of this works fine in a newly built GP model where I run the Intersect first, then join the original counties to get their Shape_Area for area percentage calculation, then calculate the statistics value with the regards to the area percentage, then Dissolve those intersecting polygons and I get the results expected.

However, I was thinking to test the Tabulate Intersection tool which would give the table with the percentage value for every(?) intersecting polygon, so I could join the output table to the intersected polygons layer. So, when I run the tool, I get a smaller number of rows in the output table comparing to the output layer when I run Intersect for the zone of interest layer and counties layer (174 to 188). Yet I thought it would give me back a table where each row represents an intersecting polygon.

Questions:

1) Did I misunderstand how the Tabulate Intersection tool works? Should it give back the same number of rows as when running the Intersect?
2) Is there any other more efficient way to solve the problem described? Ideas for considerations are welcome :)

Thank you,
Alex
Attached Thumbnails
Click image for larger version

Name:	ZoneInterest_counties.jpg‎
Views:	N/A
Size:	71.3 KB
ID:	18873  

Unable to Save Color Changes to Model Builder

$
0
0
What do you need to do to save the changes you make to elements in Model Builder? I want to highlight a few nodes in a model by changing their color but, even after I save when I re-open the model the changes are lost. The models are in a toolbox that I made so I thought ArcGIS would be able to save any changes made to them.

ArcGIS 10 / Win7

Combine Parts of Two Seperate Shape Files Into One Shape File?

$
0
0
Hi everybody,

I have a shapefile of Arizona (counties) and a seperate shapefile of Mexico (by municipalities). I want to combine the Arizona shapefile with only the municipalities of Sonora, Mexico so that only Arizona and Sonora are showing together in a newly created shapefile. Is this possible?


Any ideas, suggestions, help would be most beneficial!


Cheers,
Frank

10.1 SP1 64-bit GP for Desktop - will 2.7 64-bit mess up my script tools, etc?

$
0
0
I have some python tools that run in ArcMap and a Python addin.
The install of 64-bit GP asks me to install in what looks like the same directory as my original python directory from the 10.1 install. Will it overwrite and mess up my old stuff? Do I need to redirect the install?
I know the answer should be obvious or is maybe in doc - but I didn't see it and am hoping to get a quick answer before proceding.

Branching with model builder

$
0
0
Hi shitijmehta,

in response to your comment: "Please can you write back on the Analysis and Geoprocessing forum with an image of your current model and your data. This will make it easier for me to see what you are doing and suggest"

I attach a draw of the model and the model builder itself so you can get a closer idea.

I hope it helps

Regards,

Felipe Verdú
Attached Files

Add & Calculate Multiple Fields

$
0
0
Hi,
I have a model whereby I add a field and calculate that value. Thing is I need to do this a three times on the one feature class and the model is getting a bit drawn out in space and processing time. Is there a way to use the add field function but specify three fields rather than a separate add field function every time?
Any help would be appreciated.
Thanks in advance,
Mark

Polylines with vertical segments cannot be stored in pre-10.0 geodatabase

$
0
0
I need help getting data from a 10.0 SDE to a 9.3 SDE. My problem is that the 10.0 SDE data is polylines with vertical segments, which is not supported in pre-10 geodatabases.
I'm using python.

Geoprocessing a Database View

$
0
0
Thanks for the CreateDatabaseView_management tool, creating sde view's is now quite easy.

But how can I use the view in my script tools?

If I work in ArcMAP I'm asked to identify the OID column, which then enables further use.

How do I avoid getting the ERROR 000339 (view has no OID column) in my script tool? I need to make a selectbylocation..
My tool workes in 10 with view's created with the sdetable create_view command.

Is there a solution or do I have to go back to SDE commands?

Model builder, process hanging on Near Tool (Analysis Tools, Proximity)

$
0
0
Hello,

I have produced rather a large model in Arc10, service pack 4. I have a few Near Tool processes within the model. When I run the model as a whole it will hang on a couple of these Near Processes and just won't carry on, or takes ages and write the information as -1 only!

If I have the model open in edit mode and cancel the process when it starts to hang, I can carry on where it stopped and the near analysis works fine, so there is nothing wrong with any of the inputs etc.

I just need to be able to run the whole Model in one go without this hanging problem, anyone have any ideas?

Thanks and Regards

Paul

Problems with Intersect tool in 10.1??

$
0
0
Hi all,

I have a script that I run every night that recalculates CSR values for ag land parcels since there are boundaries that change almost every day. I have not had any problems until I upgraded to 10.1 two days ago. My script is failing at the Intersect tool every time and I am getting a strange error:

Error Info:
ERROR 999999: Error executing function.
The table was not found.
The table was not found. [Soils_by_parcel]
The table was not found.
The table was not found. [Soils_by_parcel]
Invalid Topology [Topoengine error.]
Failed to execute (Intersect).

I never got this message before and the script ran fine without any problems with v10. Is this a bug with 10.1? Is anyone else having this problem? I have read that the intersect tool may crash on large datasets (which the the soil fc is huge), but it worked fine when I had Arc 10 (has been running every week night for the last 3 months with no problems!). I have changed the XY tolerance, disabled background processing, repairing geometry, downloaded service pack 1, tried it by script, tried it in ArcMap and it STILL fails.

Both Feature Classes are in a file geodatabse and I am running Arc 10.1 (SP1) on windows XP.

Isolate Overlapping Features?

Is Modelbuilder the *only* way to rename fields - not succeeding in Python

$
0
0
Probably doing it incorrectly, but following the samples in which I try Python:

Code:

import arcpy
fi = arcpy.FieldInfo()
fi.addField("Name", "Name2", "VISIBLE", "")
arcpy.MakeFeatureLayer_management("TheFC, "foo5", "","", fi)
arcpy.CopyFeatures_management("foo5", "hoo1")

Does NOT persist renaming the fields. Hoo1 still has the old names. According to what I have read, it shouldn't. Is modelbuilder the *only* way renaming works? Is it possible by using ArcPy field methods? What am I doing incorrectly (this time)?

How difference between model builder and process by arctoolbox

$
0
0
Hi every one

I'll use Table Select tool in Arctoolbox and in the same time i'll made it in Model builder with all same parameters but i got difference result. Result from Table Select tool is correctly but result from Model builder is empty output generated. Can anyone tell me what should i do, please tell me if u know.

this is error message from model builder WARNING 000117: Warning empty output generated.

Question on listfields function in 10.0

$
0
0
Can listfield funtion be used like version 9.3?

if not arcpy.ListFields(self.Inputs.fcPolygon, 'WaterFeet').next()

I keep getting an error that next() is an invaalid field.

I need to check for field existance.

Thanks

Quinn

Tabulate area for buffers in model builder

$
0
0
This should be pretty straight forward, but I have been struggling with model builder. I have a file of about 30,000 individual buffers, many of which overlap. I simply want to use model builder to loop through each buffer. I have a land cover layer that I want to use to estimate the percentage of each land cover type in each buffer (percent forested, percent urban, etc). I've seen others post similar questions, but haven't been able to get the solutions to quite work. I pasted in a screen shot of the model so far. I also tried it using the tool for iterating over rows, but that didn't work either. The current error message says that the tabulate_shape_each file does not match the format in the file I want to append to, but they should be the same. Ideas?
Attachment 18979
Attached Thumbnails
Click image for larger version

Name:	model_builder_screenshot.jpg‎
Views:	N/A
Size:	33.0 KB
ID:	18979  

Dealing with multiple parcels in same column

$
0
0
I have a table that looks like this:

features_name parcel_no
a 123
b 145
c 236

So my plan is to join this table to my parcel shapefile and then I will have my features geocoded. Easy.

But here is the problem, sometimes I have this

features_name parcel_no
a 123, 346, 307

Now I could go through the excel file and manually create three records for feature a and give it the three parcel numbers, but I am wondering if there is an easier, more efficient way to handle this task. Once I have it all geocoded I plan to run a dissolve by feature name so that all parcels related to feature a are combined anyway.

Thanks for the help.

Raster Calculator Floating Point Data Question

$
0
0
Hi,

I am trying to use the raster calculator to convert raster climate data from one unit ([mm/year]*100) to another unit (mm/day) so that I can calculated residuals (% difference) between this data (PRISM 1971-2000 precipitation) and future climate projections. However, when I use the calculator it spits out integer data. My question is:

How can I get the raster calculator to output floating point data instead of integer data?

Note: I believe the data is floating point data to begin with. I have also tried using the Float() function.

Thank you

Euclidean distance layer truncated for points at edge.

$
0
0
Hello,

I need to find euclidean distance from multiple points. I reprojected the layer from GCS-1983 to NAD_1983 before running the euclidean distance tool. Euclidean distance layer is truncated for points at edge; not extending beyond northernmost, westernmost (etc) points. It appears there is a rectangle that barely includes the furthest points. I think this in related to the extent of the point layer. As I write this it occurs to me to add spurious points further out to increase the extent of the layer and then re-project it. . . seems kludgy; there must be a better solution. Any ideas?

Thanks!

Paul

Find Database of Longitude/Latitude Coordinates of ALL Roads

$
0
0
I'm planning to create a tool for longboarders that finds all the hills (roads) in the area with a specific incline. There are a lot of parameters that have to be taken in to account (bends, type of road, etc).
I can definitely pull this off in JAVA but I need a way to extract the coordinates and elevations of ALL roads around a certain location (from a standard road vector data file). Does anyone how this is possible?
Thank you for the help!







I hope I put this in the correct subforum.

Tile Cache Toolset missing

$
0
0
I am trying to create a set of png tiles for a map. I searched through some help and I believe the tools I need to do this are in the Tile Cache Toolset found in the DataManagement toolbox. This toolset is missing from my Data Management toolbox and I'm not sure why this is. I'm running v10.1 Advanced, and as far as I can tell it should be there (I believe I have proper licensing). Am I missing something or is it missing because of some kind of glitch, and if so, does anyone have any ideas how to fix it?
Viewing all 1952 articles
Browse latest View live