README 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Radim Blazek blazek at itc.it
  2. Tue, 23 Sep 2003 12:11:27 +0200
  3. [updated MN Oct 25 2003]
  4. I have modified G_site* functions to use vectors. It is temporary solution
  5. how to update s.* modules to 5.1/7 v.* without a lot of work. Attributes are
  6. supported by G_site_get() but G_site_put() writes CELL category only
  7. (attributes may be added later if needed). Old G_site* functions used by
  8. v.in.sites are renamed to G_oldsites*. There are only 2 s.* modules in 5.1/7
  9. (s.in.ascii,s.out.ascii; to be removed later) for tests of new SITESLIB. I
  10. updated 2 other modules, v.random and v.surf.idw. It is not my intention to
  11. update all other s.* modules as mostly I don't know too much about them and
  12. don't need them.
  13. To updated s.* to v.*, it is typically necessary:
  14. 1) ->key = "sites" => "input" / "output" / "vector"
  15. 2) ->description="... sites ..." => "... vector points ..."
  16. 3) ->gisprompt="old,site_lists,sites" => "old,vector,vector"
  17. ->gisprompt="any,site_lists,sites" => "any,vector,vector"
  18. ->gisprompt="new,site_lists,sites" => "new,vector,vector"
  19. 4) new function name and less parameters:
  20. G_find_file ("site_lists",,) => G_find_sites (,)
  21. 5) fclose() => G_sites_close()
  22. (Hint: to find close(), search for related G_fopen_sites_old())
  23. 6) add
  24. #include <grass/site.h>
  25. 7) The Makefile needs a reference to $(SITESLIB).
  26. New version is slower (dbf driver, 10000 points):
  27. time(200x200cells) time(667x667cells)
  28. s.surf.idw 0.43 10.71
  29. v.surf.idw 1.76 11.35
  30. Radim
  31. ##################
  32. G_site_put() currently only writes 2D sites files.
  33. ##################
  34. This modified sites lib reads *vector* maps. Any old sites files
  35. have to be imported with v.in.sites first.