Guest User

Untitled

a guest
Dec 1st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. f_workspace = list(set(lst_fold).difference(set(lst)))
  2.  
  3. if not f_workspace:
  4. print("The list is empty!")
  5. else:
  6. for ws in f_workspace:
  7. cat.create_workspace(ws,'http://localhost:8080/geoserver/'+ws)
  8.  
  9. cat_wrksp = Catalog("http://localhost:8080/geoserver/rest", username="****", password="****")
  10. cat_wrksp.create_imagemosaic(ws, "/var/lib/tomcat8/webapps/geoserver/data/coverages/"+ws)
Add Comment
Please, Sign In to add comment