This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from BergWerkGIS/intersection
Merge dev branch Intersection
- Loading branch information
Showing
118 changed files
with
20,281 additions
and
16,922 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
help/ | ||
|
||
*.nja | ||
*.sublime-project | ||
*.sublime-workspace | ||
|
||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ def description(): | |
|
||
|
||
def version(): | ||
return "1.8.7" | ||
return "2.5.3" | ||
|
||
|
||
def icon(): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class ChartPoint: | ||
|
||
def __init__(self, xpixel=0, ypixel=0, xdata=0, ydata=0): | ||
self.xpixel = xpixel | ||
self.ypixel = ypixel | ||
self.xdata = xdata | ||
self.ydata = ydata | ||
|
||
|
||
def toString(self): | ||
return 'pixel:{0}/{1} data:{2}/{3}'.format( | ||
self.xpixel, | ||
self.ypixel, | ||
self.xdata, | ||
self.ydata) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
class Intersection: | ||
|
||
def __init__(self, from_x, from_y, from_z, from_dist, to_x, to_y, to_z, to_dist): | ||
|
||
self.from_x = from_x | ||
self.from_y = from_y | ||
self.from_z = from_z | ||
self.from_dist = from_dist | ||
self.to_x = to_x | ||
self.to_y = to_y | ||
self.to_z = to_z | ||
self.to_dist = to_dist | ||
|
||
|
||
def toStr(self): | ||
return u'{0}/{1} z:{2} dist:{3} -> {4}/{5} z:{6} dist:{7}'.format( | ||
self.from_x, | ||
self.from_y, | ||
self.from_z, | ||
self.from_dist, | ||
self.to_x, | ||
self.to_y, | ||
self.to_z, | ||
self.to_dist | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class Polygon: | ||
def __init__(self, id, name, polygon): | ||
self.id = id | ||
self.name = name | ||
self.polygon = polygon | ||
self.selected = False | ||
|
||
def toStr(self): | ||
return self.id + ": " + self.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
class PolygonCollection(object): | ||
"""docstring for LineCollection""" | ||
|
||
def __init__(self): | ||
self.__polygons = [] | ||
|
||
|
||
def addPolygon(self, polygon): | ||
self.__polygons.append(polygon) | ||
|
||
|
||
def getById(self, id): | ||
if len(self.__polygons) < 1: | ||
return None | ||
for l in self.__polygons: | ||
if l.id == id: | ||
return l | ||
|
||
|
||
def count(self): | ||
return len(self.__polygons) | ||
|
||
|
||
def polygons(self): | ||
return self.__polygons | ||
|
||
|
||
def selected_polygons(self): | ||
sel_polys = [] | ||
for poly in self.__polygons: | ||
if poly.selected is True: | ||
sel_polys.append(poly) | ||
return sel_polys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.