-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
171 additions
and
112 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 |
---|---|---|
|
@@ -9,3 +9,4 @@ | |
|
||
# Visual Studio Code settings | ||
/.vscode | ||
.coverage |
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,22 @@ | ||
language: python | ||
python: | ||
- '2.7' | ||
install: | ||
- pip install python-coveralls | ||
- pip install coverage | ||
- pip install flake8 | ||
- pip install . | ||
before_script: | ||
- flake8 --max-line-length=120 | ||
script: | ||
- coverage run --source ./mapactionpy_arcmap -m unittest discover -v ./mapactionpy_arcmap/tests | ||
after_success: | ||
- coveralls | ||
deploy: | ||
provider: pypi | ||
user: asmith_mapaction | ||
password: | ||
secure: w+xquPzLTNX7aeFycj0m1znQJM6f3u55k67rF4kROBXPUnO0zv5iT7HgWIEpOMvGBXzs/TXmXApH4IG0vBQXP2vUTWmQVUswvqV0ojA0yl6NqPrTeHICBF0sk0Cbg8R07hZLbh6hjDo29EwikqsnEhMErBo4/PsRqN0hSxvY7CUwzPmBfibzpJ28NJ2QnbtLJEDvuiO8jayTS9/3JPKeHojgiZ4w+VyDOZ0Kn5Y1c6Z/hitxRVBo8tQ1CErJOwZlWQ4HaDaOazd2lEaH1BxCxqwgDFAco0Z2TrOcZXFDxjL9y+8MkA0wzfQirkzTiMz2NnuzmbRHzVIC6+4Is+iJwdolTK/u1/sJKKdofAJr/8t2eOHxtJOv66oa6QCTMFfcAEizJNHRw3x0k07XT9AGlRh7+xMovq7Tco5rHe8maeaBZPQhp0wkl9vzutLg07DpwuXFOh3PEfpvWig/KZT8n/QOe8KJi1WSrlsNjXzdEcjl01typ9HDUR4OhuRoHiwS1d9Ri3PUNCCGDk4oBehi/PTFDDbAMD1eusM6S9srwBv/KJMMeidfKYORpbq5iLX6hIUokOgQ5iTNN2nHAQjJoYVazj4MVQ9zxZFxSsGDHn+Gnmft67ok0L7DtgH1gcT0FnpLwuNPXBHAD90V7osb4KkttlKLzhWazufmOy2KP38= | ||
skip_existing: true | ||
on: | ||
all_branches: true |
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import json | ||
import os | ||
import json | ||
from LayerProperty import LayerProperty | ||
|
||
|
||
class LayerProperties: | ||
def __init__(self, layerPropertiesJsonFile): | ||
self.layerPropertiesJsonFile=layerPropertiesJsonFile | ||
self.properties = set(); | ||
self.layerPropertiesJsonFile = layerPropertiesJsonFile | ||
self.properties = set() | ||
|
||
def parse(self): | ||
with open(self.layerPropertiesJsonFile) as json_file: | ||
with open(self.layerPropertiesJsonFile) as json_file: | ||
jsonContents = json.load(json_file) | ||
for layer in jsonContents['layerProperties']: | ||
property = LayerProperty(layer) | ||
#print (property.layerName) | ||
# print (property.layerName) | ||
self.properties.add(property) | ||
|
||
def get(self, layerName): | ||
for property in self.properties: | ||
if (property.layerName == layerName): | ||
# Find shape file if it exists | ||
return property | ||
return None | ||
return None |
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,9 +1,9 @@ | ||
class LayerProperty: | ||
def __init__(self, row): | ||
self.mapFrame = row["MapFrame"] | ||
self.layerGroup = row["LayerGroup"] | ||
self.layerName = row["LayerName"] | ||
self.sourceFolder = row["SourceFolder"] | ||
self.regExp = row["RegExp"] | ||
self.definitionQuery = row["DefinitionQuery"] | ||
self.display = row["Display"] | ||
self.mapFrame = row["MapFrame"] | ||
self.layerGroup = row["LayerGroup"] | ||
self.layerName = row["LayerName"] | ||
self.sourceFolder = row["SourceFolder"] | ||
self.regExp = row["RegExp"] | ||
self.definitionQuery = row["DefinitionQuery"] | ||
self.display = row["Display"] |
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
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,4 +1,4 @@ | ||
class MapRecipe: | ||
def __init__(self, product, layers): | ||
self.product = product | ||
self.layers = layers; | ||
self.layers = layers |
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
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,7 +1,7 @@ | ||
from .LayerProperty import LayerProperty | ||
from .LayerProperties import LayerProperties | ||
from .MapRecipe import MapRecipe | ||
from .MapChef import MapChef | ||
from .MapCookbook import MapCookbook | ||
from .MapReport import MapReport | ||
from .MapResult import MapResult | ||
# from .LayerProperty import LayerProperty | ||
# from .LayerProperties import LayerProperties | ||
# from .MapRecipe import MapRecipe | ||
# from .MapChef import MapChef | ||
# from .MapCookbook import MapCookbook | ||
# from .MapReport import MapReport | ||
# from .MapResult import MapResult |
Oops, something went wrong.