[GRASS-dev] [GRASS GIS] #3284: Imported kml file fails to generate JSON compliant output to v.what

#3284: Imported kml file fails to generate JSON compliant output to v.what
----------------------------------------------+-------------------------
Reporter: geografik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.2.1
Component: Database | Version: 7.2.0
Keywords: v.what, kml, 'valid JSON format' | CPU: OSX/Intel
Platform: MacOSX |
----------------------------------------------+-------------------------
I have imported a kml file that contains contours of a feature of
interest. Functionally an x,y,z data set. It displays correctly in GRASS.
When queried to determine the value of z, the attached error is given that
indicates a lack of conformance with JSON formatting. The values of z are
given for the feature in the error message but additional processing such
as v.to.rast does not work. GRASS is able to label the contours
correctly. Using the attribute table manager is not much help - it
produces an error that indicates 'Inconsistent number of columns in
table'.

I see that there is a bug report (3133) that reflects the same problem but
has been fixed in 7.0.5 - I'm getting the 'same' error in 7.3.svn. (on OS
X 10.10.5)

The error message is too long to fit on the monitor - and is not
scrollable, so the full content is not visible.

Anna Petrášová diagnosed the problem as multiline strings in the
'description' column and suggested deleting it. That resolved the problem
but is not a complete solution where that column is needed.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3284&gt;
GRASS GIS <https://grass.osgeo.org>

#3284: Imported kml file fails to generate JSON compliant output to v.what
------------------------+----------------------------------------------
  Reporter: geografik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.1
Component: Database | Version: 7.2.0
Resolution: | Keywords: v.what, kml, 'valid JSON format'
       CPU: OSX/Intel | Platform: MacOSX
------------------------+----------------------------------------------
Changes (by geografik):

* Attachment "Screen Shot 2017-02-12 at 9.11.07 AM.png" added.

screenshot of error output

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3284&gt;
GRASS GIS <https://grass.osgeo.org>

#3284: Imported kml file fails to generate JSON compliant output to v.what
------------------------+----------------------------------------------
  Reporter: geografik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.1
Component: Database | Version: 7.2.0
Resolution: | Keywords: v.what, kml, 'valid JSON format'
       CPU: OSX/Intel | Platform: MacOSX
------------------------+----------------------------------------------

Comment (by neteler):

The same happens with the Sentinel-2 tile index KML: the quotes seem not
to be properly escaped.

Data:
https://sentinel.esa.int/documents/247904/1955685/S2A_OPER_GIP_TILPAR_MPC__20151209T095117_V20150622T000000_21000101T000000_B00.kml

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3284#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3284: Imported kml file fails to generate JSON compliant output to v.what
------------------------+----------------------------------------------
  Reporter: geografik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.4.4
Component: Database | Version: 7.2.0
Resolution: | Keywords: v.what, kml, 'valid JSON format'
       CPU: OSX/Intel | Platform: MacOSX
------------------------+----------------------------------------------
Changes (by neteler):

* milestone: 7.2.4 => 7.4.4

Comment:

Did you try lately?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3284#comment:6&gt;
GRASS GIS <https://grass.osgeo.org>

#3284: Imported kml file fails to generate JSON compliant output to v.what
------------------------+----------------------------------------------
  Reporter: geografik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.4.5
Component: Database | Version: 7.2.0
Resolution: | Keywords: v.what, kml, 'valid JSON format'
       CPU: OSX/Intel | Platform: MacOSX
------------------------+----------------------------------------------
Changes (by neteler):

* milestone: 7.4.4 => 7.4.5

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3284#comment:7&gt;
GRASS GIS <https://grass.osgeo.org>

#3284: Imported kml file fails to generate JSON compliant output to v.what
------------------------+----------------------------------------------
  Reporter: geografik | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.4.5
Component: Database | Version: 7.2.0
Resolution: | Keywords: v.what, kml, 'valid JSON format'
       CPU: OSX/Intel | Platform: MacOSX
------------------------+----------------------------------------------

Comment (by mmetz):

Should be fixed in trunk r74048 and relbr r74448.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3284#comment:8&gt;
GRASS GIS <https://grass.osgeo.org>