0

I'm attempting to streamline the process of importing polygons (19 in this case) from a website into QGIS. I extracted the JSON using chrome's dev tools and converted it into CSV spreadsheet here. The screenshot below taken from the csv file is structured in such a way that each feature is contained to a single row. Nodes are listed in columns with eastings followed by northings. Critically, there is an ordering to the nodes as indicated by the column headers. Eastings and northings are denoted with a 0 and 1 at the end respectively. The centre number increments up by one with each pair of eastings/northings.

Is there a way to input the data into QGIS with python that will plot each node in the correct order and then use points to path followed with lines to polygons? The end result should look like the screenshot taken from the website below.

enter image description here enter image description here

3
  • 2
    Try saving the json in a file, then drag-drop in QGIS. You might not need the conversion you are describing
    – JGH
    Commented Sep 19, 2018 at 13:23
  • That's so clever, I just love QGIS...thanks!
    – James B
    Commented Sep 19, 2018 at 13:58
  • ok, turning the comment into an answer for others
    – JGH
    Commented Sep 19, 2018 at 15:20

1 Answer 1

1

The most straight forward way would be to save your data in a json file, and to drag & drop this file in QGIS.

The conversion you are describing would not be needed then.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.