I have a MapInfo dataset of a network, with each network carrier being
connected to a specific substation (it is a power network). The dataset
contains line objects, each with an attribute of the substation name it
is connected to. A sample screenshot of the dataset can be found at:
http://groups-beta.google.com/group/mapinfo-l/web/lineMap.jpg
I would like to be able to create the bounding regions for these
"substation service areas", and I was wondering how to go about it. I
have MapBasic, so if some scripting needs to be done, that is OK.
Any suggestions?
One way would be to convert the polylines into points retaining the
substation attribute, and then use the convexhull function to create
the regions based on the substation id.
You could use this tool to convert the polylines into points (the link
might get broken over 2 lines!) -
www.directionsmag.com/files/index.php/view/535
Once you have your points you could then use the Create Object
statement from the MapBasic window in MapInfo to create the convexhull
regions grouped by the substation attribute --
Create Object As ConvexHull from source_table into table new_table data
new_id = substation_id group by substation_id
You'll need to create a new table to hold the region objects with the
attributes you want to carry across from the source table (data new_id
= substation_id).
Let me know if you need further help with the above.
Greg Driver
Is not neccesary convert polylines into points.
Using MI8 you can select all polylines of a Substation and after run a
convexhull function (with the opcion "One output object for all input
objects" selected).
Besides, the convex hull run propertly if you have lines, polylines,
polygons and arcs in the selection table !
regards
alejandro
When you have created the voronoi, you need to combine the regions using the substation id.
This can be done thru Table > Combine objects using column...
Voronoi will make sure that the area will be parted nicely between the points and that there is no overlaps and underlaps.
You can even select a regions that the voronoi regions should stay within.
Peter Horsbøll Møller
GIS Developer, MTM
Geographical Information & IT
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
Tel +45 6311 4900
Direct +45 6311 4908
Mob +45 5156 1045
Fax +45 6311 4949
E-mail p...@cowi.dk
http://www.cowi.dk/gis
Patrick, I'm not sure what you mean by:
"You may try to enclose your network table and then combine the parcels
created by combining them with the substation ID
You need to transfer substation ID to the enclosed region before
combining."
Thanks to everyones suggestions so far. I'll keep on playing, and let
you know how I get on.
Matt
Try this tool, which also offers voronoi and generally works on larger
datasets than MapInfo do:
http://www.routeware.dk/toolbox.php
Regards
Uffe
Thank you everyone for the help.