51
Chapter V

ARC GIS 9.1 - Part 4

Embed Size (px)

Citation preview

Page 1: ARC GIS 9.1 - Part 4

Chapter V

Page 2: ARC GIS 9.1 - Part 4
Page 3: ARC GIS 9.1 - Part 4

137

GIS From Start chapter V (data tables) [email protected]

Chapter V

Data tablesAs we have said previously that the data of the first two types of geographical data (Floor,spatial)

which are represented by the maps the second type it metadata (Tabular trend display) which contained in tables consisting of the fields and all the field used to save the value of a particular type for example in a spreadsheet streets there is no field Street Name field and the length of the street field and for his presentation of the field and its class, if we are to save the data of a particular street and let the peace street we enter the name of the street in the name field and the length of the street in the Length field and the street in the field of supply and the type of street in the Type field to note the figure 1-5 and street agenda consists of the records of each representing a street whenever we want statements any street, we are looking for his name in the table.

We also said that programs feature Arc GIS is a distinct capacity to link the data tables with maps of the exploitation of this interdependence in the production of accurate maps and easy to understand that we will allocate this chapter to learn how to enter data per teacher we 171 such as والمضلعات lines and points to understand the meaning of the word the interdependence between the instructor and the statements of its note figure 2.5 which showed the file of the form of the lines of the streets of one of the cities as well as a window appears data agenda of this file and once the selection of a landmark in into the display, record the instructor in its agenda is the other will be selecting automatically you will find this file in the disc annex within the folder Alzohoor_city.

Figure 2 - 5

instructor record picked and all data on the instructor which previously saved.

The instructor

Figure 1 - 5

field or Column

RecordType Length Width Name ID

A 2500 40 The immortality Street

1

B 2300 40 Peace Street

2

Page 4: ARC GIS 9.1 - Part 4

138

GIS From Start chapter V (data tables) [email protected]

Can reverse the process that we can ننتق log (selection ننقر Log selection cell the first cell in the Register and color رصاصيا) after the selection of the Register emigrating the instructor posed by this register is the other selected now turn to select several into the offer you will find that the records of those parameters are other منتقات can be reversed the process through the selection of several records to find the highlights of those records are the other selection and this will make it easier for us to find the information we want high speed.

lThe creation of the fields and the introduction of data: Design data agenda we first define the data

that we sells and then choose the names of the fields, and the type of data for each field to reach the best design with regard to the type of data we choose type text to save the names and all the value consists of letters and choose the type Short Integer numerical values ranging between 6 -32,000 and +32,000) either type Double it numerical values ranging from (-2.2E-308 and -1.8E 308 negative values the positive values ranging between 2.2E-308 and 1.8E 308) and Type Float numerical values ranging from (-3.4E-38 and -1.2E38 negative values the positive values ranging from 3.4E-38 to 1.2E38), gender, date peacekeeping dates now we take the following steps to add the field to the Profile Figure:

1. Press Doubleclick, right on the name of the file of the figure that you want to add the field to his schedule to choose item Open Attribute table see Figure 3-5.

Window will table in which the three basic fields are FID and represents the sequence of the instructor can change the figures of this field is the second field represents the instructor classified such as to be called to Polygon , Polyline or point the last field represents the number chosen by the instructor user noted the figure 4.5.

2. In the window Table Click the button option and the select item Add Field noted Figure 5. 5 this we will add a new field of the scale and here we must remember that we cannot add field until we get out of drawing environment any choose Stop Editing command from the list Editor .

Figure 5 - 5

Figure 4 - 5

Figure 3 - 5

Page 5: ARC GIS 9.1 - Part 4

139

GIS From Start chapter V (data tables) [email protected]

3. A dialog box will Add Field noted figure 6.5 including specifications define the new field.

3. Through into Name: define the name of the field on which we want to add here we will add the name field Str_name and choose the type of data required through into Type and we will choose type text note figure 7.5.

4.If we want to limit the number of characters per street name such as 20 characters so as not to be able to enter the names of the length of more than 20 characters we enter Number 20 return property Length through into Field Properties noted figure 8.5.

Figure 7 - 5

Figure 8 - 5

Figure 6 - 5

Page 6: ARC GIS 9.1 - Part 4

140

GIS From Start chapter V (data tables) [email protected]

will be shown new field in the data agenda entitled Str_name note figure 9.5.

5. Now we enter data directly to begin first from the toolbar Editor where we choose the Start Editing command to be able to write within the agenda of data note figure 10.5.

6. Select one of the landmarks through into the offer you will notice that one of the records of the table had been selecting noted figure 11.5.

Figure 11 - 5

Figure 10 - 5

Figure 9 - 5

Page 7: ARC GIS 9.1 - Part 4

141

GIS From Start chapter V (data tables) [email protected]

7. Press the cursor within a cell str_name and type the name of the street is currently eclectic note figure 12.5.

8. Repeat the previous step after the select another street of into the offer see figure 13.5 figure 14.5.

Figure 14 - 5

Figure 13 - 5

Figure 12 - 5

Page 8: ARC GIS 9.1 - Part 4

142

GIS From Start chapter V (data tables) [email protected]

lEnter data through a dialog box Attributes: Here we enter the data through a dialog box attributes this method similar to the way in the first

time as we enter the command line data line all landmarks now follow these steps:

1. Select one of the streets into the offer and then click ايكونة attributes of the toolbar Editor to show the dialog box note Figure 15. 5.

2. Click on the adjacent cell item str_name and type inside the desired street name note figure 16.5.

This has been the introduction of value in the table and we can make sure that by showing a window table now where one will be shown selected records a record of feacher selected now introduced his name in the Attribute box.

Figure 15 - 5

Figure 16 - 5

Page 9: ARC GIS 9.1 - Part 4

143

GIS From Start chapter V (data tables) [email protected]

lThe introduction of Automatic Data: In this type we enter the data for a group of cells of one field when these cells containing the same

value instead of the introduction of the same value to a cell after another we enter value once for each cell:

1. Suppose that the three lines represent one street and has the same name then we select lines that carries the same name as shown in figure 17.5.

2. Click Doubleclick, right on the title of the name of the street boot list of select item Calculate values as indicated in figure 18.5.

3. A dialog box will Field Calculator and write the name of a street in the lower space as of the figure 19.5 do not forget to put the name of the street between quotation marks (“ “).

Figure 19 - 5

Figure 18 - 5

Figure 17 - 5

Page 10: ARC GIS 9.1 - Part 4

144

GIS From Start chapter V (data tables) [email protected]

4. Click the OK button to begin the process of mobilization of the data in the cells after the completion of the agenda will be shown data as shown in Figure 20.5 where another several cells in the same value wrote shortly before.

Now we add new fields, such as the length of the street and his presentation covering these fields from type Double to learn other methods to download data as shown in figure 21.5.

We enter the data fields along the street and presented the special field of space فنتركه now notice the figure 22.5.

Figure 22 - 5

Figure 21 - 5

Figure 20 - 5

Page 11: ARC GIS 9.1 - Part 4

145

GIS From Start chapter V (data tables) [email protected] lEnter data using formulae:

Here we will enter data for several sights and the use of mathematical equation such as the calculation of the area of the streets by hitting the length in each street and preservation of output in a cell Area, continued the following steps:

1. Select the streets you want to calculate Size as shown in figure 23.5.

2. Through the window of the data agenda press Doubleclick the right of the address field area and select the item Calculate values to show the dialog box note figure 24.5.

3. If there were any writings within the lower space soaked in the first and then click Summit-DoubleClick the name of the Field length on into field top to show the same name of the field in the lower space surrounded by big arches and then click the beatings (from either the keyboard or through mark button beatings in the same dialog) finally click Summit-DoubleClick the name of the field width display in the lower space as shown in the figure, 05-25.

Figure 24 . 5

Figure 25 - 5

Figure 23 - 5

Page 12: ARC GIS 9.1 - Part 4

146

GIS From Start chapter V (data tables) [email protected]

4. Now as soon as be brief the OK button to the computer will find multiplying the value in the length field with the existing value in the field width and output in the field area each record in the table as shown in the figure 26.5.

lEnter engineering data to instructor:Here we enter data on the characteristics of the sights set after the chart والمضلعات lines if we

apply the precise coordinates the lengths of lines and المضلعات Real will be any represent the lengths of the streets as well as the areas of land, therefore, there is a distinct tools work to find the lengths of lines المضلعات spaces as well as polygon surroundings and now we calculate the lengths of the file of the streets and to do that we are using the following steps:

1. We add a new field let entitled act_length of the type Double and then select the lines that we want the expense totaling beyond through the window Table Click Doubleclick, right on the title of the field act_length and select the item Calculate values to show the dialog box and click the help command to show the neighboring window for the dialog and then click to select the check box for Advanced note figure 27.5.

2. In the Help window copy the steps which calculates the lengths of the streets and paste it in the field of Prelogic VBA script code in a dialog box Field Calculator and then type the word output in the lower field as shown in the figure 28.5.

Figure 26

Help window

these steps to calculate the lengths of the streets the

Figure 27 - 5

Page 13: ARC GIS 9.1 - Part 4

147

GIS From Start chapter V (data tables) [email protected]

The process that we are in fact VBA program of particular programs of Arc GIS in the area of real, now we are going to put him لوحــــــــده folder.

3. Click the OK button to begin the process of the account after the end of the agenda will be shown data it contains the lengths of the lines as قاسها on the map units المشــــــــــروع (Map Units) noted the figure 29.5.

We can save the process of calculating the lengths of lines by actuating the command button to save the inside a dialog box Field Calculator where save process in the file inside the computer cal supplement whenever we wanted to hold the same process we are opening this file through the command button load on a dialog box Field Calculat or.

1. Click the Save button to show the dialog box and choose the name and place the file save process in which the calculations as shown in the figure30.5.

2. Clear the steps that we have included in a dialog box Field calculator and then press the command button Load to show a dialog box open and choose the same file saved in the previous step noted figure 1130 thus will be the inclusion of steps erased from a dialog box Field calculator thus whenever we wanted to these steps open this file.

Figure 31 - 5

Figure 30 - 5

Figure 29 - 5

Page 14: ARC GIS 9.1 - Part 4

148

GIS From Start chapter V (data tables) [email protected]

lThe establishment of the file of the dotted form of data:Suppose we have Excel file or access and full data concerning certain buildings and we want the

work of file dotted form in which each point represents a building agenda contains data format file all information stored in Excel file or access here will need the presence of two fields in the Excel file and coordinate the X and Y coordinate all the building as shown in the figure, the 32.5 Excel file contains the name of the building and coordinate the X and Y and we are now going to convert this file to the file of the dotted form through the following steps:

1.through the window of excel we specify the type of data for each table fields here to define the type of data generate s and F who represent the coordinate X and Y respectively therefore select figures cells existing press format and choose item Cells as shown in the figure 33-5.

2. A dialog box will format cells and choose the type number to choose the number one into dismal places which represents the number of decimal places preferably choose a number For high accuracy, as indicated in figure 34-5.

only figures

Figure 34 - 5

Figure 33 - 5

Figure 32 - 5

Page 15: ARC GIS 9.1 - Part 4

149

GIS From Start chapter V (data tables) [email protected]

3.we're now saved the file format dbf as previously learned form noted 35-5.

4. We return to the Window Arc Map and click the Tools menu and select the item Add XY Data... figure 36.5.

5. A dialog box will add XY Data and choose a file dbf created by us and define the field contains the coordinate values X and Y coordinate in the narrative boxes X Field and Y field as well as to identify the coordinate system that we use in the calculation of the coordinates through recognize the command button Edit as we always do note figure 37-5.

Figure 36 - 5

Figure 37 - 5

Figure 35 - 5

Page 16: ARC GIS 9.1 - Part 4

150

GIS From Start chapter V (data tables) [email protected]

6. Press the OK button to create a new file containing the same format file but not the file of form but the agenda noted data figure 38.5.

7. Now the work of the file of a genuine form of Trade Points instead of agenda we data بالكبس doubleclick, right on the name of the file of the data in the table of contents and the drop-down menu choose item Data and the sub menu choose item Export Data as indicated and suppliers' credit was erratic figure 39-5 to show the dialog box.

8. From a dialog box Export Data choose a place to save file figure as shown in the figure 40-5 and then click the OK button to create the file of the figure.

Figure 50-5

Figure 38 - 5

Figure 40 - 5

Figure 39 - 5

Page 17: ARC GIS 9.1 - Part 4

151

GIS From Start chapter V (data tables) [email protected] Thus we have got the file of a genuine form of agenda through regular data and there are

other topics will study them gradually on the agendas of data through the coming quarters.

lAgenda window data:Before exiting from this chapter will explain the uses of the window table and begin first by

doubleclick, right on the title of one of the fields boot list of note figure 41.5 with the following items:

1. Sort Ascending: when selecting this item would have the contents of the upward field.

2. Sort Descending: when selecting this item would field contents in descending order.

3. Summarize: This tool is used to prepare new tables according to the need for the work we are going to put a full chapter in the separation of data processing.

4. Calculate Values: We have identified this tool previously.

5. Statistics: we will learn about this tool in the data processing.6. Via\Unfreeze Column: Use this tool to make the column on the left of the window

table when move the slide bar in the case of the presence of a large number of fields.7. Delete Field: This tool is used to clear the field currently eclectic and are effective

only in the case of the selection of the Stop scrolling.

Press on the Options button at the bottom of the window table to show the list of the several items as shown in the figure, examine the following explanation of the usefulness of each item:

1. Find & Replace: Use this tool to search for a specific value within the table which is very similar to the search tool in the programs of the Office see figure 43-5.

Figure 43 - 5

Figure 42 -

Figure 41 -

Page 18: ARC GIS 9.1 - Part 4

152

GIS From Start chapter V (data tables) [email protected]

2. Select By Attribute: We will explain this tool in the processing of the data is very important.

3. Select All: This command is used to select all records of the table.4. Clear Selection: this tool contrary to use the tool to any cancels the selection of all the

records.5. Switch Selection: If انتقينا several records and then we want the selection of records

selected others with the cancellation of the selection of records originally المنتقات we use this matter which is the heart of the selection process.

6. Add Field: We have identified this tool previously.

7. Create Graph : Use this tool to create graphs showing the relationship between the fields of table will be learned how to prepare drawings in a later chapter note figure 44.5.

8. Add Table to Layout: Use this command to add the current scale to page maps and learn about this issue more than later.

9. Export: export of the current scale to another agenda in a different format, such as the file txt and learn from this process in decision-making Excel files from the files of the txt note figure 45.5.

10. Appearance: to control the appearance of the window of the table as the colors as shown in the figure 46-5.

The last of what we are talking about now in the window of the table is the command buttons Selected and All وننقر Selected button to view the logs either منتقات only hiding records others المنتقاتbutton All فننقره to view all records of the table,

Figure 45 - 5

Figure 44 - 5

Page 19: ARC GIS 9.1 - Part 4

153

GIS From Start chapter V (data tables) [email protected] without exception, as indicated in figure 47-5 and 48.5.

the Selected displays the records only المنتقات

Order All displays all the records

Figure 48 -

Figure 47 -

Page 20: ARC GIS 9.1 - Part 4

154

GIS From Start chapter V (data tables) [email protected]

lThe coding tables:One of the techniques used in the programming of the databases which contribute greatly to

reduce the size of the data files so that it is possible to use those files in the servers and the Internet now briefly explain what coding tables and we say it normal tables consisting of two fields the first kind Short Enteger second mostly Text and uses this table in the huge tables containing in one of the fields text values often repeated for example contains the file of the streets of any city in the field represents the type of main street or service or foreign ways these values are repeated each streets if we have a big city that contains thousands of streets, repeating the text values of the type of the street will make the file size of the data to the fact that type Text used large area in memory as indicated and suppliers' credit was erratic Figure 49-5 where represents data agenda dotted file, freeway overpasses, parking city of its size 97.4 kb.

And added instead of the text field type of intersection field of its kind Short Integer put the number represents the type of intersection any that the intersection is located on the main street put him the number 1 for example service street put him Figure 2 thus now if repeated values in this field will not increase the size of the file are often the fact that type Short Integer running into a few in memory as shown in Figure 50-5 and will be the size of the file 54.2 kbاي equivalent to half of the original size of the note that the more the file size whenever the shrinking size of the largest.

The problem now is that all of the 18,213,000 file of the new format may not understand the figures inside and will not solve this problem a paper explaining the meaning of each No. types of intersections and therefore now comes the role of coding agenda which will be linked with the file of the new format as you will learn now copy the file of the form of vol. Book Projects organiser\Use Sympoling digitalized tables\b\Streets_int.shp and paste it into an empty folder within your ArcCatalog served and follow the following steps:

Figure 51 - 5

this field its kind Short Integer in which each number representing the type of intersection

Figure 50 - 5

statements this field type Text

Figure 49 - 5

Page 21: ARC GIS 9.1 - Part 4

155

GIS From Start chapter V (data tables) [email protected]

1. We will now creating coding agenda through ArcCatalog therefore click doubleclick, right on the folder that closed the file of the figure Streets_int.shp and List Click the new item and sub-menu click item Table dBASE as shown in the figure 51-5 beyond the file will be shown dbf again as shown in the figure WHA42.5.

2. Change the name of the file dbf to another name such as Streets_INT_ID as shown in the figure 53-5.

3. Click Doubleclick, right on the name of the file dbf and list Select item properties and features window select fields in which we add two fields the first kind التابShort Integer peacekeeping figures for each type of intersection field and the second kind Text to save the name of each type as مبيـــــــــــــن in Figure 54-5.

4. now hold ArcMap and add the file of the figure Streets_int as well as the file dbf to the agenda of its contents and then click Doubleclick the right of the file of the dbf and list click item Open as shown in figure 55.5.

Figure 56 - 5

Figure 55 - 5

Figure 54 - 5

Figure 53 - 5

Page 22: ARC GIS 9.1 - Part 4

156

GIS From Start chapter V (data tables) [email protected] Window will table and the fields in which we

have built earlier and as shown in the figure, 56-5.

5. Click the Editor including Select item Start Editing command to be able to enter the values to the encoder as we enter the numbers 1 to 3 in the field of the INT_ID in the field int_Type enter the name of each type by clicking the cell and write to the keyboard as shown in the figure current staffing establishment.

6. Through the Editor click item Save Edites to save the changes.

7. We will now work of a link between the agenda and agenda of the coding format file understand in after the usefulness of this matter that press doubleclick, right on the name of the file of the figure in the table of contents and the list Select item Join and relates and the sub menu Select item Join... as shown in the figure 58-5.

8. A dialog box will Join Data through it, click an account box No. 1 and then select the item Type_ID which is a field in the file of the figure is similar to the field INT_ID in the agenda of cryptography and the narrative box No. 2 Choose File Name encoding agenda either the narrative box No. 3 we choose from which the name of the Field Int_ID, Mona agenda encoder to form the dialog box as shown in the figure 59-5 this would be the link between the Tables through generated fields and then click the command button OK.

Figure 60 - 5

Figure 59 - 5

Figure 58 - 5

Figure 57 - 5

Page 23: ARC GIS 9.1 - Part 4

157

GIS From Start chapter V (data tables) [email protected]

9. box will display a message asking permission to the work of the Index of the encoder foer field INT_ID, click the command button Yes as shown in the figure 60-5.

10. Open the agenda data format file and you will find new fields had been added which was withdrawn from the agenda of cryptography as well as changed the names of the fields and now each field contains the name of the layer that belongs to approach and after point the name of the original field as shown in the figure ATTENTION - ADDS Koizumi hopes for.

11. Through the properties box figure file Select fields in which we will see all of the fields is التابnow in the profile figure we are to cancel the boxes neighboring countries for fields that do not need to hide and remain the fields we want, here we will need fields Type_ID of the file of the figure as well as the field int_Type of cryptography as indicated in the war-torn form.

12. Click the command button OK back to open the agenda profile figure in which we will find only fields as shown in the figure 63-5 this will get the same file of the form that was containing a field of the type text but the size of less than where he became its size now 56.5 Kb - the size of the folder that contains the file of the format and agenda of encoding.

13. Now, if we are to add a new milestone figure file and then we want to establish its kind We 171 first and then enter the type number intersection in the field Tyupe_ID let Figure 1, we will find that the value Hayway automatically appear in the field after press cursor to another cell as shown in the figure 64-5, the reason for the introduction of value to the Field Type_ID is that the field belongs to the file of the figure and not the other field, who belongs to the encoder and has nothing to do with the file of the figure but

Figure 64 - 5

Figure 63 - 5

Figure 62 - 5

Figure 61 - 5

Page 24: ARC GIS 9.1 - Part 4

158

GIS From Start chapter V (data tables) [email protected] only shows the type of each No. This is the usefulness of the coding tables.

l Import data from excel half, Oracle:We will now learning another way to enter data into the schedules of the graphic files are imported

from either the agenda excel or access or Oracle as well as the SQL Server and linking this table Join relationship with the agenda profile figure, therefore agenst we have a schedule of externally containing data of streets and we do not want to be entered manually for a spreadsheet file of the form of the streets we need, therefore, to the existence of a joint field between the agenda and an external data and data format file such as the name of the street and using this field we enter data.

import data from excel agenda:Agenst we have Excel file containing

the full statements three streets we will form file containing the lines of the streets and through its agenda we will enter the name of every street only to Name field type script (A question: Why do not we coding table of the names of the streets) Enter the rest of street data through imported from the Excel file and to do that we take the following steps:

1. We add the file format to the table of contents ArcMap regimes with exclusive membership figure 65-5.

2. Open the Excel file containing data note figure 66-5.

3. Through the window of excel select cells containing data only, and then click the file menu and select the item save as as shown in the figure section 67.5.

Figure 67 - 5

Figure 66 - 5

Figure 65 - 5

Page 25: ARC GIS 9.1 - Part 4

159

GIS From Start chapter V (data tables) [email protected]

4. A dialog box will save as and choose where to save the file and choose the type of file DBF 4,DBASE IV), as indicated in figure 68-5.

5. Click the Save button to show a dialog box warning of the conversion of the type of file to dbf does not work with the files containing several chitat (sheets) and click Yes to save the effective الشيت any on the screen beyond will be shown another dialog box asking that we want to keep the Excel file statute or want converted to file dbf therefore choose yes to maintain Excel file as the work of the new version type dbf finally would ask the computer do you want to save changes to the Excel file here we choose no.

6. Through the window of the Arc Map press ايكونة add and select the file dbf made CBERS now as shown in the figure 69-5 and then click Add.

The window will appear Arc Map and we'll see table file containing street data as shown in Figure 70-5. Select التاب

Source to view the Table File

Figure 70 - 5

Figure 69 - 5

Figure 68 - 5

Page 26: ARC GIS 9.1 - Part 4

160

GIS From Start chapter V (data tables) [email protected]

7. Now we will work of a link between the agenda dbf agenda and format file, click Doubleclick the right of the file name figure and select the item Properties dialog box and from the properties of the Choose tab Joins &Relates as indicated in figure congressman or we can use the first way we've studied in the tables of the encoder to the work of the relationship Join.

8. Click command button Add located within into Joins square to show his dialog as shown in Figure and recommitted.

9. In the narrative of the No. 1 Select the name of the field in the profile figure is the field str_name through the narrative box No. Two choose the name of the agenda is data here dbf file name streets Square is an account number three, choose the name of the field in the dbf which resembles the field str_name here we choose the field name as shown in Figure 73-5.

Figure 73 - 5

Figure 72 - 5

Figure 71 - 5

Page 27: ARC GIS 9.1 - Part 4

161

GIS From Start chapter V (data tables) [email protected]

10. Click the OK button to the work of the link beyond through dialog box, click Properties tab Fields as shown in the figure 74-5.

11. He noted that new fields within the file of the figure here we will of hiding the fields in which we don't need to work through the cancellation of the selection of the boxes neighbors as shown in Figure 75-5.

12. Click the OK button .

If we opened the agenda profile figure now find that contains the data in the Excel file as shown in Figure 76-5.

Note: could not conduct any operation to the fields imported from an external agenda in our example, we cannot hold any amendment to the file fields dbf if we want the implementation of

Figure 76 - 5

Figure 75 - 5

Figure 74 - 5

Page 28: ARC GIS 9.1 - Part 4

162

GIS From Start chapter V (data tables) [email protected] these amendments must open the file of the same table and amendment after that we start editing command .

Import data from an Access database:

We will now import the data from access where added access file contains the first tables containing data street file and the other coding table type street layer this file exists in the Folder Data Importing the disc annex therefore begin now use ArcCatalog owe the communication channel with the database file after copied to the PC:

1. From the window ArcCatalog open the folder DataBase connection and click Summit-doubleclick the folder Add OLE DB Connection as shown in the figure, art. 77.5.

2. The window will Data Link Properties and التاب Provider Select item Microsoft OLE DB provider for ODBC driver drives this is equipped with data that can bring us access tables لنستعملها in ArcGIS as مبيــــــــــــــــــــــن in Figure 78-5.

3. Click the Connection التاب including square click the narrative Use data source name and then select the item MS Access Database and narrative box Enter the initial catalog to use type the path to access file as shown in Figure 79-5.

4. Click the command button Test Connection if the success of contact with the Database a message will inform us so and click the OK as shown in the figure 80-5 and we will come back to a dialog box Data Link Properties and click the OK also to open a

Figure 80 - 5

Figure 79 - 5

Figure 78 - 5

Figure 77 - 5

Page 29: ARC GIS 9.1 - Part 4

163

GIS From Start chapter V (data tables) [email protected] channel of communication with access file if the success of communication we review the steps that we have from the outset.

5. The return to ArcCatalog window and we will find a new file represents a communication channel with access file that we want, as indicated in figure =.

6. Click Doubleclick the right to file a communication channel from the list Select item Connect to open contact with access file as shown in Figure ATTENTION - ADDS Israeli reax ///.

7. After a short period of time will show excessive mark next to the file of the communication channel excessive mark will turn into a minus sign وبنقرtwo dossiers will appear high caliber are tables are stored in the access file as shown in Figure 83-5.

8. We see any of these two tables through recognize Preview the selection of one of the tables as التابshown in the figure 84-5.

coat layer Figure 84 - 5

Figure 83 - 5

Figure 82 - 5

Figure 81 - 5

Page 30: ARC GIS 9.1 - Part 4

164

GIS From Start chapter V (data tables) [email protected]

9. We can now add any of these two tables to the table of contents ArcMap where ايكونة Add Data ننقرand dialog box open folder DataBase Connection and we will find the file of the channel of communication as shown in the figure 85.5.

10. The Press Summit-DoubleClick on the file of the channel of communication and the inside two tables as shown in the figure 86-5, we can ننتقيهما the command button add to be added to table ونكبسof contents so we can نستخدمهما as use any agenda dbf normal as we have learned in the past.

11. The files will appear tables in ArcMap as indicated repertoire figure 87-5.

Figure 87 - 5

Figure 86 - 5

Figure 85 - 5

Page 31: ARC GIS 9.1 - Part 4

165

GIS From Start chapter V (data tables) [email protected]

Import data from the database of the oracle: As we have learned a little while ago with an Access database will do the same thing with the data

base of Oracle or SQL Server but we will use equipped with different data as emigrating now therefore follow the following steps:

1. From the window ArcCatalog open the folder DataBase connection and click Summit-doubleclick the folder Add OLE DB Connection to show his window, click التاب Provider and rent Select item Microsoft OLE DB provider for Oracle this equipped can bring us data tables from databases Oracle as shown in the figure 88-5.

2. Click التاب Connection and from the field enter a server name we enter the server name, which contains data base and here we have the same name of the computer and the fact that the data base Oracle exist as well as we enter the user name and password in the fields user name and Pasword these values provided by the designed data base as shown in the figure 89-5.

3. Click the command button Test Connection to show the letter to tell us the success or failure as shown in Figure 90.5 and click the OK to return to the previous window.

4. If the success of contact Press Ok in the window of Data Link Properties back to ArcCatalog window and click the file of the channel of communication on

Select this well the link with the data involved 77-81 29 SQL Server and follow the same steps described with Oracle.

Figure 89 - 5

Figure 90 - 5

Figure 88 - 5

Page 32: ARC GIS 9.1 - Part 4

166

GIS From Start chapter V (data tables) [email protected] the بأوراكل Doubleclick the right of the menu and select the item Connect as shown in the figure 91-5 to open a channel of communication with the now.

5. A dialog box will ask enter the user name and

password so we write as shown in the figure 92-5 and then ننقر command button. Ok.

6. A check mark will display next to overload the file of communication channel will show all tables of data stored in وبنقرهاthe database Oracle we can see any of the tables in selecting we recognize التاب Preview as shown in the figure 93-5 so that we can include any of these tables in the table of contents ArcMap ونستعمله like any file dbf.

Figure 93 - 5

Figure 92 - 5

Page 33: ARC GIS 9.1 - Part 4

167

GIS From Start chapter V (data tables) [email protected]

lLinking tables Relate relationship: The process of linking the tables is similar to the process of linking the relationship Join we

carried out when the agenda of the mother of an external data with the profile figure in the subject of import data from excel the difference that the process of linking the relationship Join incorporate tables in a single window.beware not in one table) to either the relationship Relate any record of one of the tables will be انتقينا relationship between the records tables if فتصنعselected the register balance in other table each agenda remain in a separate window.

work of the relationship between the two scales we take the following steps:1. Making the file of the form of

notation for example by name Export_outpot then make table file name Data Point_name type DBase file4 through a program such as Excel and add a field match with one of the fields of the file of the figure to associate the records unreliable here added OID field in the agenda data with FID field of profile figure noted figure 94-5.

2. Click Doubleclick, right on the name of the file of the figure in the table of contents ArcMap menu and select the item Joins and relates and the sub menu Select item relate note figure 95-5.

3. A dialog box will relate and through the narrative box No. 1 choose the name of the field FID in a spreadsheet file of form and the narrative box No. Two choose File name data agenda that we want to link it with the file of the figure, which is the Point_name through the narrative box No. Three choose the

Figure 95

Figure 94

Page 34: ARC GIS 9.1 - Part 4

168

GIS From Start chapter V (data tables) [email protected] name of the field in the agenda is data OID finally Choose field name for the relate choose any name the relationship noted figure 96-5.

4. Click is ok and then select one of the landmarks in the file of the figure to show selected record figure noted 97-5.

5. From the window of the agenda profile figure click Command Button Options and select the item relate table and the sub menu choose item, which carries the name of the relationship that visualization shortly before the figure noted 98-5.

6. One will be shown records in the spreadsheet Point_names selected representing the register associated with the instructor picked noted figure 99-5.

Figure 99 - 5

Figure 98

Figure 97

Page 35: ARC GIS 9.1 - Part 4

169

GIS From Start chapter V (data tables) [email protected]

7. Select one of the records in the agenda of the Data Point_names and then click Command Button Options and select the item relate table and the sub menu select the name of the relationship that visualization as shown in figure 100-5.

8. Record will be shown from the file format is selected the register associated with the first registrar noted 101-5 form.

Figure 101 .

The figure of

Page 36: ARC GIS 9.1 - Part 4

170

GIS From Start chapter V (data tables) [email protected]