Skip to content

Reset class at each call #4

@enorazza

Description

@enorazza

I was having a weird behaviour using the class: the second time I generated the shapefile was the result of the merge of the previous geojson file and the latter.

Solved added a reset function and a call "self.reset()" as first line in the __init function

def reset(self):

    self.geometryType = ''

    self.columnsList = []

    self.__attributesPerF = []

    self.attributes = []

    self.geometries = []

    self.shpFileObj = None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions