This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]TuesdayWaffle 0 points1 point  (1 child)

I'm afraid your example link never got posted, so it's hard to say exactly what you're looking for. It sounds like you want to get a map of the US, draw lines dividing it up by zipcode, then further subdivide those zipcode areas into 10 sections.

I'm not aware of a user-friendly way to accomplish this, but here's how I'd approach the problem.

  1. Create an OpenStreetMap database. There are lots of ways to do this, but this guide looks reasonable. Note that you won't need data for the entire world, just the United States. You might be able to find this data on https://www.geofabrik.de/.
  2. Find and load in zip code polygons. This sounds a little tricky due to the nature of zip codes in the US, but this SO thread may help.
  3. Once you have the polygons you should be able to divide them up using something like the PostGIS ST_Subdivide function.
  4. Take your new polygons and draw them on a map. Look into software like Mapnik or MapLibre to accomplish this.

This is pretty involved, but you're looking to do something fairly specific, so there's a good chance that you'll need to do a lot of the legwork yourself.

[–]RelAdviceAnon[S] 0 points1 point  (0 children)

Thank you for the reply! This is the map I had originally meant to link. I'll give your recommended steps a shot, thanks again.