Your SlideShare is downloading. ×
Join location from another layer pivot table
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Join location from another layer pivot table

835

Published on

Published in: Spiritual, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
835
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. O IN L J IA AT SP Spatial Join Calculating Number of Physician per Population 2 GIS in Health and Planning 2 01 1/ 2012 Spring3/ Rutgers University by Wansoo Im, Ph.D.
  • 2. Download census tract 2000 file-www.state.nj.us/dep/gisDownload Municipal boundaries-https://njgin.state.nj.us“doctor point location layer” (downlaod from Sakai )Census tract map/Municipality boundaries=>Add All Maps in Arc GIS
  • 3. CENSUS TRACT : OPEN ATTRIBUTE TABLEIn order to see what kind of information it has
  • 4. DOCTOR LOCATION LAYER : OPEN ATTRIBUTE TABLEIn order to see what kind of information it has
  • 5. HOW TO JOIN LOCATIONAL DATA WITH DATA FROMANOTHER LAYER?Based on the location, we will join doctor’s location into Census tract layer.
  • 6. JOIN DOCTOR POINTS WITH CENSUS DATA LAYER
  • 7. CLICK “DATA FROM ANOTHER LAYER BASED ONSPATIAL LOCATION”
  • 8. SELECT “THE LAYER(CENSUS TRACT)” WHICH YOUWANT TO JOIN WITH DOCTOR LOCATION
  • 9. SET THE DIRECTORY(LOCATION TO SAVE YOURSHAPEFILE) -> CLICK “SHAPEFILE”
  • 10. OPEN ATTRIBUTE TABLE TO CHECK IF NEWLAYER(DOCTOR CTR) IS SUCCESSFULLY JOINTBy opening attribute table, you can check if data from 2 original layers(doctor points/census tract information) are included into a newly-created shapefiles.
  • 11. LOOK THROUGH DATA
  • 12. EXCEL – PIVOT TABLEObjectives :We are going to export data from maps into dbf.(dbf. File includes the information of table, therefore, all shapefiles including data in the table have dbf. file)Open dbf. File in ExcelBy using Pivot table, we will calculate the number of doctors by each census tract(the number of doctors belonging to each census tract)
  • 13. OPEN ATTRIBUTE TABLE OF DOC_CTR LAYERClick the menu icon to export data from table.
  • 14. EXPORT DATA “DBF. FORMAT FILE”
  • 15. WHY WE EXPORT DATA FROM TABLE?(DBF. FORMAT) Originally Doc_CTR shapefile already has one dbf.file, however, if we start to open it in the excel and modify, we can possibly affect the original map data as the table is directly linked to a map. Therefore, we would like to export data from the original table so as to create new dbf. File(so to speak, “copy” dbf. file). In this way, we can adjust data(by using a new dbf. File) in Excel regardless of affecting original data in the map.
  • 16. OPEN -> CLICK “ALL FILES”-> CLICK “DBF FILE”
  • 17. OPEN IN EXCEL
  • 18. WE CAN USE EXCEL FOR DATA CALCULATION!
  • 19. THE NUMBER OF DOCTORS WITHIN EACH OF CENSUSTRACT.Number of doctors in each of census tract.How do we calculate?
  • 20. USE UNIQUE ID TO JOIN “INDIVIDUAL DOCTOR LOCATION” WITHIN CENSUS TRACT – “KEY” FIELD OR “STFID” (CENSUS TRACT ID)Why can’t we use Tract field? – Tract id is within County (Aggregate scale)
  • 21. CLICK “INSERT” -> PIVOT TABLE
  • 22. CLICK “PIVOT TABLE”
  • 23. CLICK OK
  • 24. THEN YOU WILL SEE THIS TABLE ;
  • 25. DRAG “STFID” INTO ROW LABELS
  • 26. DRAG “STFID” INTO VALUES
  • 27. COPY THE TABLE
  • 28. PASTE “VALUE” INTO NEW “SHEET”Counting Case depending on variable that you chose.In this case, Fivot Table counts the number of doctors depending on the Census Tract Area(Assigned by unique ID).
  • 29. CLEAN THE DATA – FIRST ROW SHOULD INDICATETHE NAME OF FIELD
  • 30. CLEAN THE DATA – DELETE LAST ROW ; TOTALNUMBER
  • 31. CHANGE “SHEET” NAME INTO DATAName that you can rememberNo space/No special characters(Arc GIS cannot recognize)
  • 32. SAVE EXCEL FILE AND CLOSE ITBEFORE JOINING IN ARC GIS PROGRAM
  • 33. CENSUS TRACT LAYER- OPEN ATTRIBUTE BEFOREJOINING DATA
  • 34. JOIN THE TABLE
  • 35. JOIN ATTRIBUTE FROM A TABLE
  • 36. SELECT THE FIELD TO JOIN “STFID”(UNIQUE CENSUS TRACT ID)
  • 37. CLICK EXCEL FILE YOU SAVED
  • 38. CLICK THE “SHEET” THAT YOU SAVED NEW DATA(NO.DOCTORS BY CENSUS TRACT)
  • 39. SELECT THE FIELD(STFID) FROM “DATA SHEET”
  • 40. CHECK ATTRIBUTE TABLE TO MAKE SURE IF TABLE ISJOINT WELLThere are some null data because this census tract is statewide while doctor location is located only within Middlesex county.
  • 41. CALCULATE THE NUMBER OF DOCTORS PERPOPULATION WITHIN CENSUS TRACTThe number of doctorThe number of populationLet’s calculate doctors per population.
  • 42. ADD A NEW FIELD
  • 43. FIELD CALCULATION
  • 44. ADD FIELD10 digit/3decimal
  • 45. CREATE NEW FIELD (FOR DOCTORS/POPULATION)->RIGHT CLICK TO DO “FIELD CALCULATING”
  • 46. FIELD CALCULATORBut you will have 0 if denominator(total population2000=0) is 0Select the data which population 2000 is more than 0Use Field Calculator to use formula (number of doctors/population*100)
  • 47. 2 WAYS FOR SELECTION1. Select by Attribute select the layer “census 2000”, and select the field “population2000” put formulaPop2000>0 ->click apply2. Sorting Ascending in Attribute TableOpen Attribute table, sort the data regarding population 2000, and select data which is more than 0 in population 2000 field.
  • 48. EX1) SELECTION BY SORTING POPULATION
  • 49. EX2) SELECTION BY MENU (SELECTING BYATTRIBUTE)Make sure if Population(denominator) is 0 not
  • 50. FIELD CALCULATOR
  • 51. RATE CALCULATION– WHY 1000? INSTEAD 100?
  • 52. IF THERE’S NULL DATA => ERROR!!!Population should be over 0 ANDNumber of doctors shouldn’t be null dataTherefore, number of doctor is more than 0 and calculate it again(Assume that if there’s doctor, population is over 0)
  • 53. YOU WILL GET NO.DOCTORS PER POPULATIONPERCENTAGE IN NEW FIELD YOU CREATED.
  • 54. OUTCOME
  • 55. UNSELECT DATA
  • 56. GO TO SYMBOLOGY AND MAP IT OUT!The number of doctors per population
  • 57. EXPORT MIDDLESEX MUNICIPALITY FROM CENSUSTRACT
  • 58. SELECT MUNICIPAL OF MIDDLESEX COUNTY
  • 59. EXPORT MIDDLESEX COUNTY CENSUS TRACTField : Double click “County”Click “Unique valueCounty= Middlesex county
  • 60. CHANGE DECIMAL DEGEE IN LEGEND-> CLICK “LABEL” AND “FORMAT LABEL” CHANGE DECIMALDEGREE.
  • 61. EXPORT MUNICIPAL BOUNDARY SHAPEFILE.County = Middle sex
  • 62. EXPORT MIDDLESEX COUNTY BOUNDARY SHAPEFILE.

×