How Do I Create Polygons for My Water Utility’s Service Area?

0
8
Asked By WaterWizard42 On

I'm working at a water and wastewater utility where I've been assigned the task of creating polygons that represent our service territory for our website. We have a list of service addresses with their latitudes and longitudes, and we operate around six small systems. I'm thinking of color coding the polygons based on different systems, but I'm running into a problem: when I plot all the addresses, it ends up connecting neighborhoods that are miles apart. I believe I need to determine the outermost coordinates for each cluster, but I'm not sure how to do that. Does anyone have suggestions or algorithms that could help me get the right coordinates?

7 Answers

Answered By MapMaven77 On

It mostly depends on the programming language you're using. The min/max method works but might give you a rectangle. The convex hull method is valid but may not be very pretty. An alternative is to find an SVG image of your regions online and use that. Or, if you prefer a hands-on approach, plot the lat/long values, import them into a graphics program like Inkscape, and draw the polygons manually. This way, you can create something that looks good and meets your needs without getting too bogged down in the technical stuff.

Answered By PolygonPro85 On

To get a polygon that encompasses all your points, you should calculate the "convex hull." Here's a simple approach: take each pair of points and draw a line between them. Check if other points fall on either side of the line using the dot product method. If the points are on both sides, skip that line. If they're only on one side, it's on the edge of the shape. Once you have your edges, you can create triangles from a central point. Just keep in mind that this won't cluster your data, so you'll want to do that first if you have distinct groups.

GeoGuru22 -

Also, using the convex hull will give you a tightly bound shape. If you just need a rectangle around the points, find the min and max of your coordinates to create a bounding box instead.

Answered By MapMaster On

You might also try mymaps.google.com; it's friendly for creating custom maps and might let you outline those service areas easily.

Answered By LatLngNinja On

When you're in Google Maps, you can just right-click anywhere on the map and find the latitude and longitude of the cursor position. It's a quick way to get some points you might need.

Answered By DataDiver99 On

Are you trying to visualize a single service territory or do you already have multiple service territories to plot? If it's multiple, I suggest building a convex hull for each one using libraries like SciPy. If it's a single territory you're visualizing, you might want to look into clustering techniques, but keep in mind it can be tricky to get the results to match your needs exactly.

Answered By KMLKing91 On

Consider using Google KML or KMZ files. They format lat/long points, shapes, and labels into a simple XML style that Google Maps can overlay automatically, which might save you some time.

Answered By ClusterCaptain On

For a straightforward approach, you can take the maximum and minimum latitude and longitude for each neighborhood. This will give you four corners that create a region containing all the points.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.