home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / bit / listserv / dbasel / 1459 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.4 KB  |  29 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!europa.asd.contel.com!paladin.american.edu!auvm!SSD0.LAAFB.AF.MIL!PAUSSAVC
  3. X-Mailer: Network Courier V2.1a
  4. Encoding: 16 TEXT
  5. Message-ID: <2B52F0AE@ssd0.laafb.af.mil>
  6. Newsgroups: bit.listserv.dbase-l
  7. Date:         Tue, 12 Jan 1993 08:24:00 LCL
  8. Sender:       "Discussion on the use of the dBase language and related
  9.               dialects" <DBASE-L@NMSUVM1.BITNET>
  10. From:         PaussaVC@SSD0.LAAFB.AF.MIL
  11. Subject:      Re: spatial data in Clipper
  12. Lines: 15
  13.  
  14. >> 10E5 records contain 2D coordinates of point data <p_id; x; y>. The aim
  15. >> is to retrieve small subset of data contained in a desired recatngular
  16. >> area.
  17. >> so the key value for this point < Point 1, 0.43211843, 0.73919484 > is
  18. >> { 432 739 0.43211843 0.73919484} what means that this point belongs to
  19. >> the cell (432,739).
  20. You can get slightly better results by creating a group of conditional
  21. indexes, one index for each area of the plot you may want to retrieve. (Index
  22. on function() to indexname) each index containing only those points in a
  23. specific area.  Using the database with the index will have the same effect
  24. as putting a filter on the database but without the filter's overhead.  Also
  25. since the index file is smaller, searching within it is faster.  I'll dig
  26. around for some sample code.  Conditional indexes are tricky buggers to make
  27. work but can be tres useful.
  28. Chuck
  29.