I've loaded the Census' zip code data into a mongo database.
I can query specific zip codes like this:
Now I want to query specific zip codes and "merge" any that are tangent creating single polygons. For example, in the second example I want to draw those two polygons as a single polygon.
Is there a way to do that with mongodb?
In postgis I think I could accomplish this with ST_Collect or ST_Union (related stack overflow question).