Handle v0.1 imported associated meta
This commit is contained in:
parent
25938cefe3
commit
c76a1d68e5
1 changed files with 4 additions and 20 deletions
|
|
@ -620,7 +620,7 @@ class MetaInfo extends GISJsonSerialised {
|
|||
}
|
||||
|
||||
void deserialiseJson(rawmeta) {
|
||||
setoffsetpath(rawmeta['offsetpath'])
|
||||
offsetpath = rawmeta['offsetpath']
|
||||
meta = new MetaInfo(script)
|
||||
meta.deserialiseJson(rawmeta['meta'])
|
||||
}
|
||||
|
|
@ -628,19 +628,11 @@ class MetaInfo extends GISJsonSerialised {
|
|||
LinkedHashMap serialisationdata() {
|
||||
def data = [
|
||||
'format' : format,
|
||||
'offsetpath' : getoffsetpath(),
|
||||
'offsetpath' : offsetpath,
|
||||
'meta' : meta.serialisationdata(),
|
||||
]
|
||||
return data
|
||||
}
|
||||
|
||||
String getoffsetpath() {
|
||||
return offsetpath
|
||||
}
|
||||
|
||||
void setoffsetpath(String offsetpath) {
|
||||
this.offsetpath = offsetpath
|
||||
}
|
||||
}
|
||||
|
||||
class RelatedMetaInfo_v0_2 extends RelatedMetaInfo {
|
||||
|
|
@ -655,24 +647,16 @@ class MetaInfo extends GISJsonSerialised {
|
|||
|
||||
void deserialiseJson(rawmeta) {
|
||||
//format = rawmeta['format']
|
||||
setoffsetpath(rawmeta['offsetpath'])
|
||||
offsetpath = rawmeta['offsetpath']
|
||||
}
|
||||
|
||||
LinkedHashMap serialisationdata() {
|
||||
def data = [
|
||||
'format' : format,
|
||||
'offsetpath' : getoffsetpath(),
|
||||
'offsetpath' : offsetpath,
|
||||
]
|
||||
return data
|
||||
}
|
||||
|
||||
String getoffsetpath() {
|
||||
return offsetpath
|
||||
}
|
||||
|
||||
void setoffsetpath(String offsetpath) {
|
||||
this.offsetpath = offsetpath
|
||||
}
|
||||
}
|
||||
|
||||
private ProductInfo productinfo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue