-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Mission takeoff fix (#46) * patch for takeoff wp write error * Path tree (#50) * added pathTree subclass * working integrated pathTree * Or export (#51) * exporting some data for OR tools * added at method to survey * clean up on metaTree creation * added timeouut for cvx * switched smt to sat, thanks MK * Kml (#53) * added kml parser to Areas class * Priority Point (#55) * Queue sort (#56) * simple queue sort to avoid islands * syntax shooogar * K2shah patch 1 (#57) * Update python-app.yml * hard coded values are bad * relinking after changing route parameters (#58) * relinking after changing route parameters * guard against small graphs * fixed view with new solver api Co-authored-by: jadenvc <[email protected]>
- Loading branch information
Showing
26 changed files
with
1,540 additions
and
220 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
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 |
---|---|---|
|
@@ -3,6 +3,9 @@ __pycache__/ | |
*.py[cod] | ||
*$py.class | ||
|
||
# unknown | ||
.DS_Store | ||
|
||
# C extensions | ||
*.so | ||
|
||
|
Binary file not shown.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -6,3 +6,7 @@ Shapely>=1.7.0 | |
tqdm>=4.46.1 | ||
utm>=0.5.0 | ||
z3-solver>=4.8.8.0 | ||
cvxopt>=1.2.5 | ||
cvxpy>=1.1.7 | ||
lxml>=4.6.3 | ||
fastkml>=0.11 |
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
152 changes: 152 additions & 0 deletions
152
tests/data/HMR_tree_polygon_v2/8FCD70AEBABB4DBF958BF447B4088ADE.xsl
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,152 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:msxsl="urn:schemas-microsoft-com:xslt"> | ||
<xsl:variable name="ignoreFieldNames" select="'|OBJECTID|Shape|Shape_Length|Shape_Area|ATTACHMENTID|REL_OBJECTID|CONTENT_TYPE|ATT_NAME|DATA_SIZE|DATA|'"/> | ||
<xsl:variable name="headerRowColor" select="'#9CBCE2'"/> | ||
<xsl:variable name="alternateRowColor" select="'#D4E4F3'"/> | ||
<xsl:template match="/"> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | ||
</head> | ||
<body style="margin:0px 0px 0px 0px;overflow:auto;background:#FFFFFF;"> | ||
<table style="font-family:Arial,Verdana,Times;font-size:12px;text-align:left;width:100%;border-collapse:collapse;padding:3px 3px 3px 3px"> | ||
<tr style="text-align:center;font-weight:bold;background:{$headerRowColor}"> | ||
<td> | ||
<xsl:value-of select="FieldsDoc/Title" /> | ||
</td> | ||
</tr> | ||
<xsl:apply-templates select="FieldsDoc/Attachments" /> | ||
<tr> | ||
<td> | ||
<table style="font-family:Arial,Verdana,Times;font-size:12px;text-align:left;width:100%;border-spacing:0px; padding:3px 3px 3px 3px"> | ||
<xsl:choose> | ||
<xsl:when test="FieldsDoc/Fields/Field/FieldName"> | ||
<xsl:apply-templates select="FieldsDoc/Fields/Field/FieldName[not(contains($ignoreFieldNames, concat(concat('|', text()), '|')))]/.." /> | ||
</xsl:when> | ||
<xsl:otherwise> | ||
<xsl:apply-templates select="FieldsDoc/Fields/Field" /> | ||
</xsl:otherwise> | ||
</xsl:choose> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> | ||
</xsl:template> | ||
|
||
<xsl:template match="Attachments"> | ||
<xsl:variable name="imageCount" select="count(Attachment/ContentType[contains(., 'image')])"/> | ||
<xsl:variable name="attachmentCount" select="count(Attachment)"/> | ||
<tr bgcolor="{$headerRowColor}"> | ||
<td> | ||
<table style="font-family:Arial,Verdana,Times;font-size:12px;text-align:left;width:100%;border-spacing:0px; padding:3px 3px 3px 3px"> | ||
<xsl:variable name="imageSrc" select="Attachment/ContentType[contains(., 'image')]/../FilePath"/> | ||
<xsl:if test="$imageSrc"> | ||
<tr align="center"> | ||
<td> | ||
<a target="_blank" href="{$imageSrc}"> | ||
<img src="{$imageSrc}" width="275px" border="0"/> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr align="center"> | ||
<td> | ||
<xsl:value-of select="Attachment/ContentType[contains(., 'image')]/../Name" /> | ||
</td> | ||
</tr> | ||
</xsl:if> | ||
<xsl:if test="($attachmentCount > $imageCount) or not($imageCount = 1)"> | ||
<tr align="center"> | ||
<td> | ||
<table style="font-family:Arial,Verdana,Times;font-size:12px;text-align:left;width:100%;border-spacing:0px; padding:3px 3px 3px 3px"> | ||
<xsl:for-each select="Attachment[position() mod 2 = 1]"> | ||
<tr align="left" bgcolor="white"> | ||
<xsl:if test="(position() +1) mod 2"> | ||
<xsl:attribute name="bgcolor"> | ||
<xsl:value-of select="$alternateRowColor"/> | ||
</xsl:attribute> | ||
</xsl:if> | ||
<td> | ||
<a target="_blank"> | ||
<xsl:attribute name="href"> | ||
<xsl:value-of select="FilePath"/> | ||
</xsl:attribute> | ||
<xsl:value-of select="Name" /> | ||
</a> | ||
</td> | ||
<td> | ||
<a target="_blank"> | ||
<xsl:attribute name="href"> | ||
<xsl:value-of select="following-sibling::Attachment/FilePath"/> | ||
</xsl:attribute> | ||
<xsl:value-of select="following-sibling::Attachment/Name" /> | ||
</a> | ||
</td> | ||
</tr> | ||
</xsl:for-each> | ||
</table> | ||
</td> | ||
</tr> | ||
</xsl:if> | ||
</table> | ||
</td> | ||
</tr> | ||
</xsl:template> | ||
|
||
<xsl:template match="Field"> | ||
<tr> | ||
<xsl:if test="(position() +1) mod 2"> | ||
<xsl:attribute name="bgcolor"> | ||
<xsl:value-of select="$alternateRowColor"/> | ||
</xsl:attribute> | ||
</xsl:if> | ||
<xsl:if test="FieldName"> | ||
<td> | ||
<xsl:value-of select="FieldName"/> | ||
</td> | ||
</xsl:if> | ||
<td> | ||
<xsl:choose> | ||
<xsl:when test="FieldValue[starts-with(., 'www.')]"> | ||
<a target="_blank"> | ||
<xsl:attribute name="href">http://<xsl:value-of select="FieldValue"/> | ||
</xsl:attribute> | ||
<xsl:value-of select="FieldValue"/> | ||
</a> | ||
</xsl:when> | ||
<xsl:when test="FieldValue[starts-with(., 'http:')]"> | ||
<a target="_blank"> | ||
<xsl:attribute name="href"> | ||
<xsl:value-of select="FieldValue"/> | ||
</xsl:attribute> | ||
<xsl:value-of select="FieldValue"/> | ||
</a> | ||
</xsl:when> | ||
<xsl:when test="FieldValue[starts-with(., 'https:')]"> | ||
<a target="_blank"> | ||
<xsl:attribute name="href"> | ||
<xsl:value-of select="FieldValue"/> | ||
</xsl:attribute> | ||
<xsl:value-of select="FieldValue"/> | ||
</a> | ||
</xsl:when> | ||
<xsl:when test="FieldValue[starts-with(., '\\')]"> | ||
<a target="_blank"> | ||
<xsl:attribute name="href"> | ||
<xsl:value-of select="FieldValue"/> | ||
</xsl:attribute> | ||
<xsl:value-of select="FieldValue"/> | ||
</a> | ||
</xsl:when> | ||
<xsl:when test="FieldValue[starts-with(., '<img ')]"> | ||
<xsl:value-of select="FieldValue" disable-output-escaping="yes" /> | ||
</xsl:when> | ||
<xsl:otherwise> | ||
<xsl:value-of select="FieldValue"/> | ||
</xsl:otherwise> | ||
</xsl:choose> | ||
</td> | ||
</tr> | ||
</xsl:template> | ||
</xsl:stylesheet> |
Oops, something went wrong.