Giter VIP home page Giter VIP logo

sdecoder's People

Stargazers

 avatar

sdecoder's Issues

The grandParser function should support to parser the other symbols.

Is your feature request related to a problem? Please describe.
The Marked symbols and Line symbols are as importance as the Fill Symbol.
But currently,The parser function only be supported to analysis Fill Symbol.If there were some binary datas of Line Symbol or Marked Symbol to parser,it always get some err result.

Describe the solution you'd like
The grandParser function could support analysis the Marked Symbol and Line Symbol binary data.
And return the Json string should corresponding with the symbol type.

Line symbol which only has one layer contained in fill symbols,it will lost layer Activeness info

Describe the bug
Not only the line symbol which contained in fill symbols lost activeness info,And marked symbols which contained in line symbol the same.

Screenshots
just like this is the fill symbol,some line symbol is contained in it:
image
the fill line symbol(only has one layer):
image

the parsed result:
"lineProperties_fillingLine": {
"name": "Filling Line",
"numberOfLineLayers": 1,
"lineLayer": [
{
"number": 1,
"type": "Simple Line",
"color_simpleLineColor": {
"name": "Simple Line Color",
"space": "RGB",
"firstField": 91.231851,
"secondField": -49.888863,
"thirdField": 80.838943
},
"width": 1.000000,
"style": "Solid"
}
]
},
"lineProperties_outline": {
"name": "Outline",
"numberOfLineLayers": 1,
"lineLayer": [
{
"number": 1,
"type": "Simple Line",
"color_simpleLineColor": {
"name": "Simple Line Color",
"space": "RGB",
"firstField": 54.043767,
"secondField": 0.000000,
"thirdField": 0.000000
},
"width": 1.000000,
"style": "Solid"
}
]
},

the fill line and outline don't have the activeness infos .

The json format of Line Symbol for template parser have field redefinition

Describe the bug
Such like the line symbol data for index-8-name-cartogline.data.
image

It's templat parsed result is:
{
...other parsed infos.
template info:
"template": {
"interval": 3.000000,
"linePatternFeature": {
"patternLength": 0.000000,
"gapLength": 1.000000
},
"linePatternFeature": {
"patternLength": 1.000000,
"gapLength": 1.000000
},
"linePatternFeature": {
"patternLength": 3.000000,
"gapLength": 4.000000
},
"linePatternFeature": {
"patternLength": 2.000000,
"gapLength": 3.000000
}
}
...
This linePatternFeature filed is redefinition,which is invalid for json parser.

Output JSON file has duplicated "color" keys

Description
Some features have multiple color fields where they share the same key called "color", which is not banned based on JSON standard (p, ii),

It is expected that other standards will refer to this one, strictly adhering to the JSON text format, while imposing restrictions on various encoding details. Such standards may require specific behaviours. JSON itself specifies no behaviour.

However, my fellow developer suggested that non-repeated keys are ideal for the future development.

Expected behavior
All the keys should be non-repeated.

File index-43 failed to be parsed

Error shown:

++++START parsing layer NO. 3
-------------------------------
START parsing a layer...
ERROR: Filling type 9 not support
ERROR occurred. Stopped...
"error": "Filling type."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.