0

Is there anyway to merge a line Shapefile Feature Class and a polygon Shapefile Feature Class?

ERROR 000468

Input shape types are not equal

4 Answers 4

9

Shapefiles can store only single type of geometry (in your case either polygons or lines, not both). So, a shapefile cannot contain both lines and polygons.

Another thing is that a single feature should have a discrete geometry type. Certain geometric operations cannot be performed on multiple geometry types without converting one or both of them.

Depending on what you expect to get as an output feature, you can convert your polygons to lines or buffer a line to make it a polygon.

3
  • Thank you. Buffering my lines to make them polygons did the trick! I'm limiting the zoom level, so the feature does not have to be exact. That was just the work around I was looking for! Commented Aug 19, 2016 at 19:09
  • 1
    @WolverineTime, awesome, glad it worked out well for you. Commented Aug 19, 2016 at 20:02
  • Yes - thank you for providing a practical solution to the issue! :) Commented Aug 22, 2016 at 13:22
3

You cannot store polygons, lines or points in the same feature class. What you can do is create a feature dataset. A feature dataset is a collection of related feature classes that share a common coordinate system. Feature datasets are used to spatially or thematically integrate related feature classes. Does this help? You can maintain your lines and polygons feature classes in the feature dataset for ease of use.

2
  • 1
    That's a way to store some datasets in a geodatabase. You would need to create a gdb first (what is a good practice). But even if you do that you can't perform operations with different geometry types simultaneously what makes sense in the same layer. Imagine you have two layer with features from different geometry types and you want to intersect them. You can't know exactly what the output geometry types result would be. Commented Aug 17, 2016 at 18:23
  • 2
    This is all true.. But I don't think I needed to specify that a dataset is maintained in a geodatabase.. Should I tell them where to right click and create it too? Look at the question and take it for what it is. Someone is on day one of GIS. Essentially the answer to their question is "no".
    – dpalm
    Commented Aug 17, 2016 at 18:27
1

You can do it many ways. I am describing one of ways below.

Its three step process

  1. Make your polygon to line feature using "polygon to line" tool in ArcGIS.
  2. Use merge tool in ArcGIS to merge your line feature generated by polygon to line tool and your original line feature.
  3. Lastly, use feature to polygon tool using your merged feature.
-2

You can merge Line FC's and Polygon FC's into a new Polygon FC using "Feature to Polygon". An Advanced License is required.

1
  • 1
    Only where the lines are closed or completely cutting existing polygon features... otherwise a lot of dangling lines are simply omitted, which may be fine if that's what's expected but generally loosing features isn't a good thing. It would be better to merge all boundaries and lines together either with Feature to Line, Polygon to Line or by editing the lines and copy/paste the polygons (will degenerate the polygons to bounding lines). Commented Aug 18, 2016 at 1:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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