When building fieldmappings, how do I handle the SHAPE field?

المشرف العام

Administrator
طاقم الإدارة
I have a collection of hundreds of shape files and a python dictionary mapping the input field to the output field. I'm building my fieldmappings dynamically using this dictionary since it already exists and is in a configuration file, editable by the user if fields change.

How should I handle the SHAPE field? I want the geometry copied over during any merge operations. The mapping in my config file, "SHAPE@": "SHAPE@" (input field : output field) throws an error for the shape field but all other mappings work.

Update 1: When I change the mapping to "SHAPE": "SHAPE@", a match is made but I get RuntimeError: FieldMap: Error in adding input field to field map because the @ at the end of the output field.



أكثر...
 
أعلى