Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am new to ArcGIS 10 and am currently building a model. This is a brief rundown of what I am doing at the moment. I have 2 shapefiles: one a polyline and the other is point data. I have joined both files using the spatial join tool within the model which created a shapefile that contains the attributes of both files. But I would like to get rid of the attributes obtained from the polyline and retain the attributes from the points since the shapefile has changed to a polyine.

Thanks

share|improve this question
1  
Do you need to drop fields? –  Aaron Dec 13 '12 at 14:26
    
I think @Aaron is right - try deleting the unwanted fields using the Delete Field tool first - it's conceptually simpler than getting into Field Mappings –  PolyGeo Dec 14 '12 at 0:52
add comment

2 Answers

up vote 3 down vote accepted

Try incorporating Delete Field into your model. You can easily drop multiple fields in this one step.

enter image description here

share|improve this answer
    
Thanks, it worked –  chidi Dec 14 '12 at 11:40
add comment

It sounds like you want to use the FieldMappings() object. I use the FieldMappings() object programmatically through python. However the FieldMappings() object is available through the SpatialJoin() and Merge() tools when inserted into a custom model. I suggest start reading through the FieldMappings() documentation and then play around with it. It's a bit tricky to learn at first but once you understand how it works it becomes a very useful way to merge various types of geometry (or the same types of geometry) data while keeping (or dropping) fields and attributes.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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