Overview
1.preprocessing
     (Data is always dirty, and once you’ve found your data set, you’ll need to clean it up.)
2.Loading the Data (Acquire and Parse)
     (A single location will be defined using a second class named Place.)
3.Drawing a Scatterplot of Zip Codes (Mine and Represent)
     (After parsing your data, you must give some consideration to how the data is mapped to the screen.)
4.Highlighting Points While Typing (Refine and Interact)
     (the focus is now to add interaction so that users can explore how the postal codes relate to          
     geography./The refinement stage begins with choosing a set of colors.)
5.Show the Currently Selected Point (Refine)
    (we’ll show the location of a fully typedout, five-digit zip code as a rectangle and add text to its    
     upper-right corner that names the location.)
6.Progressively Dimming and Brightening Points (Refine)
     (a class called ColorIntegrator does the same, but interpolates between two colors. Instead of a    
     float, the ColorIntegrator.target( ) method takes a color.)
7.Zooming In (Interact)
     (the crux of the representation is the map( ) function, which remaps a series of coordinates (with a   
      predefined range) to a specific location on the screen (with a new range))
8.Changing How Points Are Drawn When Zooming (Refine)
     (points should become larger as more digits are typed.)
9.Deployment Issues (Acquire and Refine)
     ( A better alternative is to use the built-in Thread class to load the data asynchronously.)
10.Next Steps
     (several directions in which to take this project.)

Detail
1.DBF file을 받아 데이터를 정리하는 방법
1차 DBF->excel/open office 로 열기->CSV,TSV로 저장->
2차 ->PROCESSING+FITS+CSV(TSV) WITH 8 ISSUES->최종결과치->최종 CLEANED FILE 얻기

2,새로운 텝을 열어 place class를 만들기
pasing을 위해 readData( ) parseInfo( )parsePlace( ) method 이용하기
readData( )->데이터 읽어들이기
parseInfo( )->데이터 파일의 첫번째 single line 분석 with comma (파일개수/위도,경도의 최대 최소값)
parsePlace( )->나머지 single line 분석 with tap

3.map()을 이용하여 stage 내 특정 영역에 데이터 뿌리기

4.입력 텍스트와 관련한 변수,method, array 지정/ keypress handling /depth 와 color를 입력 텍스트 상태에 따라서 match 시키기

char typedChars[] = new char[5];  letters typed
int typedCount; number of digits entered.
float messageX, messageY;  location where the text should...
int foundCount; number of locations currently selected.

keyPressed( )

typedPartials[typedCount]
입력되는 코드들을 10으로 나누고 그 몫을 취하여 인식하도록 함
for (int j = typedCount-1; j > 0; --j) {
typedPartials[j] = typedPartials[j + 1] / 10;
}

int partial[];
int matchDepth;

check()

5.default로 chosen을 null시키고 null이 되지 않았을 때 선택된 점들을 rect()로 그려주는 코드 지정
최종 셀렉트 된 point와 일치하는 지점 위에 텍스트가 위치하는 방식 정의
외곽 등에 존재하는 놈들은 이상하게 보이지 않도록  additional rule 지정



6.입력값과 정확하게 match되는 point만 highlight(target=highlight color) 해주고 나머지는 모두 dimmed(target=unhighlight color) 시키기


7. zoom 상태에 따라서 remap하기
When zoom is not enabled, the horizontal coordinate of a location
on screen is calculated by using map( ) to convert the value from the range minX
to maxX into the range mapX1 to mapX2. When zooming, we replace minX and maxX with
the minimum and maximum values that we want to be visible onscreen.

if (zoomEnabled) {
return map(x, zoomX1.value, zoomX2.value, mapX1, mapX2);
} else {
return map(x, minX, maxX, mapX1, mapX2);
}


void calcZoom( ) {
}

8.depth에 따라서 점의 크기가 변함.


9.온라인 상의 효율성을 증가시키기 위해 data를 load하는 것을 별도 class로 만들기

class Slurper{
public void run( ) {
}
 }

void readData( ) {
new Slurper( );
}

10.next stap
이번 쳅터의 시스템을 기본으로 하여 그 밖의 다양한 데이터 및 방식으로 접근할 수 있습니다.
Germany and the UK 의 zip code
town names/migration patterns
street names
area codes
other questions
additional data sets—whether satellite photography, geographicboundaries, interstate highways,
or map images.


그리고..have fun!!!!!!!!!...이라네요..^^;
Posted by chacolina