2

I'm using ArcGIS 10.3

I have the following 4 layers (all are polygons)

You can find these layers in this link

DATA

  1. Sites: 5 subcatchments (Site1 to site5) and site 5 combine all subcatchments upstream

  2. Nloss: nitrogen loss for each polygon

  3. Geology: Rock types

  4. Soils: Soil types

enter image description here

What I want?

I want to create a polygon shapefile. In this layer, each polygon will have ALL the attributes from all the 4 layers.

I used intersect to do so. I think union could be used as well to do the same.

I named the resulting shapefile intersect_4_layers.shp. The result of this intersection could be found in this link.

Adding slope

I have slope shapefile that has two categories (0 and 1).

  • zero: if slope is less than or equal 10
  • 1: if slope is more than 10

    enter image description here

I wanted to add slope information to the shapefile resulting from intersecting the 4 layers above (Sites/Soils/Nloss/Rocks) named "intersect_4_layers.shp".

I tried the following:

1- to intersect slope.shp with intersect_4_layers.shp

2- to intersect all 5 layers (Sites, Nloss, Geology, Soils and Slope)

Both trials failed and resulted in this warning

WARNING 000117: Warning empty output generated

QUESTION

Why intersection worked the 1st time (intersecting 4 layers) and didn't work while trying to intersect them with the slope?

Any suggestions how to get all the attributes of the 5 layers into one shapefile?

  • Can you confirm that slope is indeed a vector layer? – MappaGnosis Dec 7 '16 at 7:29
  • Yes, it is a vector layer. You can find it in this link dropbox.com/sh/3mzmqrwr8pb9b7i/AADP2mnjxqpG8wRfqcm6RMR3a?dl=0 – shiny Dec 7 '16 at 7:34
  • I get the same issue with ArcGIS 10.4.1. But it works when you export the output to a gdb feature class. You can convert it to shp afterwards. – GISGe Dec 7 '16 at 7:43
  • @GISGe Thanks. Could you please let me know how to export as a gdb feature class? – shiny Dec 7 '16 at 8:00
  • 1
    Just save the output to a file gdb. If you don't have any, create one with the 'New Geodatabase' button on the top right corner of the Output Feature Class window. – GISGe Dec 7 '16 at 8:09
1

I could reproduce your issue with ArcGIS 10.4.1. As a workaround, you can save the output of the Intersect tool as a feature class in a file geodatabase, then the tool will work fine.

  • Thanks for your time and help. I have tried following your suggestion regarding Add Geometry Attributes. However, I got error 000732:Dataset 5layers does not exist or is not supported, when I inserted the layer name in the input feautures in Add Geometry Attributes window. Any suggestions how to fix this? I will highly appreciate if you could try calculating the area in ha to check these errors. Thanks – shiny Dec 8 '16 at 22:17
  • Glad it works now. For the area calculation, I don't have your data anymore to test unfortunately. Otherwise you can do it the old way, add a 'double' field and use this expression in the Calculate Field (PYTHON parser): !shape.area@hectares! See here for reference. – GISGe Dec 9 '16 at 7:12
  • I will appreciate any help with this question gis.stackexchange.com/questions/223498/… – shiny Jan 6 '17 at 2:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.