If you were Registered and logged in, you could reply and use other advanced thread options
Is there a standard way to go from an unordered collection of line segments
(that all butt up against each other) to a polygon in your average GIS
programming toolkit?
eg: I have a database full of straight walls (x1,y1,x2,y2). Any space
completely enclosed by walls makes a room. I must draw a room as a polygon
so I can shade its area when selected. How do I create a polygon (sequence
of coordinates) based on the collection of walls that surrounds it?
My next problem after this one is that the toolkit I'm using interprets
polygons that are specified counter-clockwise as holes, or negative shapes.
How do I ensure that the polygon coordinates are specified in clockwise
order?
Nathan
(that all butt up against each other) to a polygon in your average GIS
programming toolkit?
eg: I have a database full of straight walls (x1,y1,x2,y2). Any space
completely enclosed by walls makes a room. I must draw a room as a polygon
so I can shade its area when selected. How do I create a polygon (sequence
of coordinates) based on the collection of walls that surrounds it?
My next problem after this one is that the toolkit I'm using interprets
polygons that are specified counter-clockwise as holes, or negative shapes.
How do I ensure that the polygon coordinates are specified in clockwise
order?
Nathan
No idea about toolkits... what you're talking about is called "building
polygon topology". And if your lines overlap and cross each other,
you'd have to perform a "clean" operation, where the intersections are
broken, dangles removed. A lot of the cleaning process requires manual
supervision.
Although our software has this clean and build topology functionality,
we have not made it available to the public yet. If it is just an odd
map or two, send it over. If it's many maps, i could tell you rates
after taking a look at a sample.
Prashant
http://www.prithvitech.com/
polygon topology". And if your lines overlap and cross each other,
you'd have to perform a "clean" operation, where the intersections are
broken, dangles removed. A lot of the cleaning process requires manual
supervision.
Although our software has this clean and build topology functionality,
we have not made it available to the public yet. If it is just an odd
map or two, send it over. If it's many maps, i could tell you rates
after taking a look at a sample.
Prashant
http://www.prithvitech.com/
You could take a look at the JTS toolkit, which support Polygonization.
Google for JTS Topology Suite, from Vivid Solutions. Open source Java.
--
Jim Irwin
http://www.holoscenes.com
- Google Maps - straight line distance
- Garmin GPS
- 2011-06-09
- Map accuracy
- UK GPS Discussions
- 2011-05-03
- Navigating with a Nuvi, was How to make a Garmin GPS FIT the route to the screen
- Global Positioning System
- 2007-08-25
- Track Filtering
- Garmin GPS
- 2007-09-24
- Navigating with a Nuvi, was How to make a Garmin GPS FIT the route to the screen
- Satellite Navigation
- 2007-08-25
- Strange Track Legs
- Satellite Navigation
- 2007-01-22




> segments (that all butt up against each other) to a polygon in your
> average GIS programming toolkit?
>
>
>
> eg: I have a database full of straight walls (x1,y1,x2,y2). Any space
> completely enclosed by walls makes a room. I must draw a room as a
> polygon so I can shade its area when selected. How do I create a
> polygon (sequence of coordinates) based on the collection of walls
> that surrounds it?
>
>
>
> My next problem after this one is that the toolkit I'm using
> interprets polygons that are specified counter-clockwise as holes, or
> negative shapes. How do I ensure that the polygon coordinates are
> specified in clockwise order?
>