Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to do a spatial join of a point file (created from a raster) to a polygon (target), where I am joining the GRID_CODE value from the point to the polygon. I've tried a variety of permutations, one-to-many, many-to-one, changing the order of the input files, putting in a mode and mean condition for field_map, checking the field properties (both Double), trying a multi-part to single-part conversion (data management) for both inputs, but the resulting joined field is always populated with incorrect data (as verified by looking at the point values).

For example, here is a screenshot of the correct values from the point file, highlighting the 2 (green)enter image description here

Here is a screenshot of the spatial join output highlighting that same 2 value, which I would expect to be in the same location.enter image description here

What is additionally bizarre, and might be a clue as to what is going on, is that the same field (GRID_CODE) has a different number of values (4 in the original, and 5 in the outputenter image description here

Any suggestions would be much appreciated!

share|improve this question
up vote 4 down vote accepted

This is likely to be due to the merge rules you are using (field map, right click field, merge rule).

Merge rules are at the bottom of this page.

Try setting the rule to mode to assign the polygon with the value of the most common GRID_CODE.

share|improve this answer
interesting this worked when I did the right click method, but when i went in via the "+" sign and assigned the same condition (which then appeared as a sub-condition under fieldmap>gridcode, it didn't work. thanks! – David Meek Apr 18 '13 at 15:56

Your Answer


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.