def define_bounds(boundaryPath, domainPath, writePath, defID, threshold):

        print "Getting the shape data"
        domainPoints, domainRecords, boundaryPoints,boundaryRecords = getShapeData(domainPath, boundaryPath)
        print "Attempting to assign ids" 
	boundaryIds, bounds = assignIDs(domainPoints, boundaryPoints, defID, domainRecords, boundaryRecords, threshold, boundaryPath != domainPath).result
	bounds = connectLines(bounds)
        print "Saving the shapefile"  
	saveShapeFile(boundaryIds, bounds, writePath)
	def define_bounds(self, isIdLayer):   
		print "defining id's"

		self.domainPoints, self.domainRecords, self.boundaryPoints, self.boundaryRecords = getShapeData(self.domainShapefileLayerFileName, self.idFilePath, self.threshold)

		self.boundaryIds, self.bounds = assignIDs(self.domainPoints, self.boundaryPoints, self.defID, self.domainRecords, self.boundaryRecords, isIdLayer).result

		self.bounds = connectLines(self.bounds)
		print "done defining id's"
示例#3
0
def define_bounds(boundaryPath, domainPath, writePath, defID, threshold):

    print "Getting the shape data"
    domainPoints, domainRecords, boundaryPoints, boundaryRecords = getShapeData(
        domainPath, boundaryPath)
    print "Attempting to assign ids"
    boundaryIds, bounds = assignIDs(domainPoints, boundaryPoints, defID,
                                    domainRecords, boundaryRecords, threshold,
                                    boundaryPath != domainPath).result
    bounds = connectLines(bounds)
    print "Saving the shapefile"
    saveShapeFile(boundaryIds, bounds, writePath)
示例#4
0
    def define_bounds(self, isIdLayer):
        print "defining id's"

        self.domainPoints, self.domainRecords, self.boundaryPoints, self.boundaryRecords = getShapeData(
            self.domainShapefileLayerFileName, self.idFilePath, self.threshold)

        self.boundaryIds, self.bounds = assignIDs(
            self.domainPoints, self.boundaryPoints, self.defID,
            self.domainRecords, self.boundaryRecords, isIdLayer).result

        self.bounds = connectLines(self.bounds)
        print "done defining id's"