Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open file (map) in python
#1
Hi! I feel like there might be something silly going on here,
but I have the following script:

riverFilename = "/HydroSheds/eu/eu_riv_30s.shp"
demFilename= "/HydroSheds/eu/eu_dem_30s"
setClone(riverFilename)
setClone(demFilename)
So I have a string here with the location of the files I want to use. I would like to get the attributes of the river and the dem file, but since it's a string I cannot 'read them in' yet. Therefore the setClone function doesn't work in this case. Does anyone know how python will recognize e.g. the 'eu_riv_30s.shp' map ?
Thanks!
Reply


Messages In This Thread
Open file (map) in python - by LB_994 - Aug-21-2018, 06:31 PM
RE: Open file (map) in python - by Gribouillis - Aug-21-2018, 08:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Open/save file on Android frohr 0 372 Jan-24-2024, 06:28 PM
Last Post: frohr
  file open "file not found error" shanoger 8 1,293 Dec-14-2023, 08:03 AM
Last Post: shanoger
  How can i combine these two functions so i only open the file once? cubangt 4 926 Aug-14-2023, 05:04 PM
Last Post: snippsat
  I cannot able open a file in python ? ted 5 3,576 Feb-11-2023, 02:38 AM
Last Post: ted
  testing an open file Skaperen 7 1,440 Dec-20-2022, 02:19 AM
Last Post: Skaperen
  I get an FileNotFouerror while try to open(file,"rt"). My goal is to replace str decoded 1 1,441 May-06-2022, 01:44 PM
Last Post: Larz60+
  Dynamic File Name to a shared folder with open command in python sjcsvatt 9 6,214 Jan-07-2022, 04:55 PM
Last Post: bowlofred
  Open an excel file Newbie1114 1 2,372 Jun-16-2021, 09:11 PM
Last Post: Gribouillis
  How to open MIDI-file and get events in a list? philipbergwerf 7 5,111 May-29-2021, 08:24 AM
Last Post: j.crater
  Error on open of file created with tempfile.TemporaryDirectory() Brian177 4 6,423 Apr-05-2021, 07:12 PM
Last Post: Brian177

Forum Jump:

User Panel Messages

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