Skip to content

[BUG] JSON output #3

@sygfi

Description

@sygfi

Description du BUG

Dans file.cpp ligne 698, le bloc geodetic_precision et le bloc vertical_precision sont pensés pour s’enchaîner . Si pas de précision verticale, le json manque d'un " fermant après geodetic_precision.

Comment le reproduire ?
circeFR --metadataFile=/srv/conf_circe/DataSENSGO.txt --sourceCRS=ASECNAG --sourceFormat=LPH.METERS.DEGREES --targetCRS=RRS04G --targetFormat=LPH.METERS.DEGREES --displayPrecision=0.001 --outputFormat=JSON --plainDMS --boundaryFile=PB2002_plates.txt -14.7 14.7 100

Comportement attendu
Chez moi j'ai corrigé comme suit

if (p.transfoIndex&T_GEODETIC_REQUIRED)
{
    if (js) *fo << ",\n\"geodetic_precision\":\"";
    if (!js) *fo << std::setw(12);
    *fo << precisionCode2Text(p.Gprec);
    if (js && !(p.transfoIndex&T_VERTICAL_REQUIRED))
        *fo << "\"";
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions