You may work on this assignment as a group.
If anything does not work as described here,
notify the instructor immediately.
In this assignment,
you will add layers for boat ramps and campgrounds in Oregon
to the map interface of the fishing_v2 application.
The schema diagram for the fishing_v2 database is available at
http://web.engr.orst.edu/~minoura/cs549/ass/
as Visio file fishing_v2_schema_2.vsd.
http://www.oregon.gov/DAS/EISPD/GEO/alphalist.shtml
.dbf, .prj, .sbx, .shx,
.sbn, and .shp.
shp2pgsql -s 2992 shapefile-name your-table-name > sql-file-nameName your table for the boat ramps as your-name
_boat_ramps.
If you want to know the available options for shp2pgsql,
just issue Unix command shp2pgsql.
fishing_v2,
create your table for boat ramps
by executing the SQL statements as user cs540.
Note that you are sharing the fishing_v2 database
with other students, and that each student creates his own table
for boat ramps.
gmap75_oregon.map,
one layer for normal display, and the other for highlighting.
oregon_maplayers.php
in ms_apps/fishing_v2/map_layers_config.
The layer entry for the boat ramps in the map legend is created by this entry.
boat_ramp in fishing_v2/forms.
In that directory,
execute the following commands in directory:
mmconfgen -f your-name_boat_ramp mconfgen -f your-name_boat_ramp confgen -f your-name_boat_ramp layoutgen -f your-name_boat_ramp webgen -f your-name_boat_rampYou may customize your form scripts by modifying the your-name
_boat_ramp.mconfig file.
Once the meta configuration file is manually modified
for customization, do not execute mmconfgen
or mconfgen from that point.
data_admin_table by executing the command:
php insert_data_admin_table.phpWhen the subdirectories for the Web scripts for tables are added or renamed, those subdirectories can be correctly registered in table
data_admin_table with the command:
php fill_dir.phpIf those subdirectories are not correctly registered, the forms cannot be opened from the Data Administration page. The PHP scripts above can be executed repeatedly.
data_admin_category_table as follows.
http://www.engr.orst.edu/~your-login/
ms_apps/fishing_v2/forms/data_admin2/index_top.php
campground table.
name, which is the name of the campground.
d_county_id, which is the ID of the county
where the campground is located.
The fishing_v2 database contains table d_county.
waterbody_id,
which is the ID of the adjacent waterbody.
A campground is adjacent to at most one waterbody.
Table waterbody is
currently the superclass table of tables river,
lake, sea shore, and ocean.
number_of_campsites,
which indicate the number of available campsites.
drinking_water,
whose boolean values indicate the availability of drinking water.
rest_room,
whose boolean values indicate the availability of rest rooms.
the_geom, whose values are polygons or multipolygons
representing the shapes of the campgrounds.