MapWindow Home
Search MapWindow.org


  • Home
    • Download
    • Why MW
    • FAQ
    • Contact
  • Products
    • MapWindow
    • ActiveX
    • Plug-ins
  • Software Dev
    • Sample Code
    • Scripts
    • Source
    • Bugs
    • Support
    • Languages
  • Site Tools
    • Forums
    • Tutorials
    • Mailing Lists
    • Team
    • Site Stats
    • Links
  • Get Stuff
    • Buy a CD
    • Buy a T-Shirt
    • MW Book
    • ActiveX Book
    • Donate
    • Buy Support
  • Documentation
    • MWGIS App. User Guide
    • GISTools User Guide
    • MW Plug-ins Dev. Guide
    • MWGIS ActiveX Dev. Guide
    • MWGeoProc Dev. Guide

MapWinGeoProc:Topology:Segment

From MapWindow GIS

Jump to: navigation, search

Segment

Summary

Stores a set of double values that represents a line segment.

Fields

X1 The X coordinate of the Start Point of the segment
X2 The X coordinate of the End Point of the segment
Y1 The Y coordinate of the Start Point of the segment
Y2 The Y coordinate of the End Point of the segment
Z1 The Z coordinate of the Start Point of the segment
Z2 The Z coordinate of the End Point of the segment

Methods

ClosestPointTo Returns a Point representing the closest point.
Constructor This function has 6 overloads.
Crosses Checks to see if two segments cross. This will not return true if the endpoints touch, or the lines are identical. Specifically the middle portions of the lines have to contact each other.
DistanceTo This function has 3 overloads.
IntersectsWith This function has 3 overloads.
IsCompletelyWithin Returns true if the entire segment is within the polygon, without touching or crossing any of the edges.
IsIdenticalTo Checks the points of the segemnts to see if they are the same, but is unconcerned with direction.
IsParallelTo Returns true if the line segments are parallel
IsPerpendicularTo Returns true if the line segments are perpendicular
IsWithinADistanceOf This function has 2 overloads.
LocationByX Given a segment, we try fix the value of one coordinate to solve for the other two.
LocationByY Given a segment, we try fix the value of one coordinate to solve for the other two.
LocationByZ Given a segment, we try fix the value of one coordinate to solve for the other two.
Touches Checks to see if two segments touch. This is true if a vertex from one segment intersects with the other segment. Does not return true if only the line areas touch one another.
ToVector Creates a new vector from this segment where the StartPoint becomes the beginning of the vector and the end point is the tip of the vector.

Back to MapWinGeoProc.Topology

Retrieved from "http://www.mapwindow.org/wiki/index.php/MapWinGeoProc:Topology:Segment"
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in / create account
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link

Geospatial Software Lab

Copyright © 2008 - MapWindow Open Source Team
( last updated: November 12 2008.)
Home | Donate | Download | MapWindow GIS Desktop | MapWinGIS.ocx | Plug-ins | Contact | Lists | Bugs | Sample Code | Documentation
Code Repository | Open Source License | Discussion Forum | Wiki | Join the Team | Site Statistics | Links