Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cadastral map
#1
hello!
Im trying to draw a map of annecy but I cant
here's what Ive got for now and Ive already got a mistake ((executing lines 1 to 10 of "<tmp 1>")
File "<tmp 1>", line 7
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape)which I dont understand please help

import json

import tkinter

parcelles = [ ]
for num in ["010", "019", "067", "112", "186", "213", "219"]:
with open("C:\Users\esther\Downloads\cadastre/cadastre-74"+num+"-communes.json") as json_data:
data_dict = json.load(json_data)
for k in range(len(data_dict["features"])):
parcelles.append(data_dict["features"] [k] ["geometry"] ["coordinates"])
Reply


Messages In This Thread
cadastral map - by esther - Jan-06-2019, 10:45 PM
RE: cadastral map - by Gribouillis - Jan-06-2019, 11:52 PM
RE: cadastral map - by esther - Jan-07-2019, 01:19 AM
RE: cadastral map - by buran - Jan-07-2019, 07:43 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020