An Online Information System for Apartment Services with Fuzzy Spatial Queries

Similar documents
Fuzzy Spatial Querying with Inexact Inference

COVER LETTER UNIT 1 LESSON 3

1.1. Driving Around Euclid. Goals. Launch 1.1

LIFE N TOUCH KYLE DOBITZ JEREMY MUEHLBAUER. Team Winner 05/01/08

Data Collection and Online Access to Map Collections

The Application of Concepts from Multiple Courses in Creating a Useful App for the University

Data Models and Data processing in GIS

APPLICATION OF FLOYD-WARSHALL LABELLING TECHNIQUE: IDENTIFICATION OF CONNECTED PIXEL COMPONENTS IN BINARY IMAGE. Hyunkyung Shin and Joong Sang Shin

Instructions for Using NERC s Online Membership Application Form

Lecturer 2: Spatial Concepts and Data Models

Mississippi Public Schools 2015

ERRDS: A CASE TOOL TO GENERATE AN ER DATA MODEL FROM A RELATIONAL DATABASE SCHEMA

Chapter 2: Spatial Concepts and Data Models 2.1 Introduction 2.2 Models of Spatial Information. 2.4 Extending ER with Spatial Concepts 2.

Address Management User Guide. PowerSchool 6.0 Student Information System

Mail and Parcel Services Section 6.31

Matching GPS Records to Digital Map Data: Algorithm Overview and Application

Table of contents. DMXzone Google Maps Manual DMXzone.com

The Relational Model

Address Management User Guide. PowerSchool 8.x Student Information System

ELGIN ACADEMY Mathematics Department Evaluation Booklet (Main) Name Reg

Rapid Modeling of Digital City Based on Sketchup

Basic Geospatial Analysis Techniques: This presentation introduces you to basic geospatial analysis techniques, such as spatial and aspatial

New Mexico Watch: User Guide

file:///c:/users/c_harmak/appdata/local/temp/arc8f36/tmp308d.tmp.htm

Basic Tasks in ArcGIS 10.3.x

The Area Code Tree for Nearest Neighbour Searching

The Data Journalist Chapter 7 tutorial Geocoding in ArcGIS Desktop

An Inexact Inferencing Strategy for Spatial Objects with Determined and Indeterminate Boundaries

Houghton Mifflin MATHEMATICS Level 1 correlated to NCTM Standard

RooWay: A Web-based Application for UA Campus Directions

Government of Alberta. Find Your Farm. Alberta Soil Information Viewer. Alberta Agriculture and Forestry [Date]

Mapping, Visualization, and Digitization of the Geo-Referenced Information: A case study on Road Network Development in Near Real Time

SAFETY AND SECURITY. Clery Act Public Crime Log From 5/1/2016 To 5/31/2016 DRUG LAW VIOLATION : CIVIL PARKING AREAS/LOTS : COFFIN STREET

CrowdPath: A Framework for Next Generation Routing Services using Volunteered Geographic Information

Exercise 2.2. Explore QGIS. GIS Techniques for Monitoring and Evaluation of HIV/AIDS and Related Programs

37 SOUTH LAKESIDE OFFICE PARK

Using Google Earth. Middlebury College Library and Information Services

Geocoding for Beginners. November 18, 2013 Christine Murray University of Pennsylvania, Van Pelt Library

Worksheet for minimally-compliant FGDC metadata

Elec_ISO_LMP_PricingPoints

Acyclic Visitor Pattern in Formulation of Mathematical Model

Informatics 1: Data & Analysis

First Year Housing Preference online form for

Uniform Graph Construction Based on Longitude-Latitude Mapping for Railway Network

Database Refactoring to Increase/Retrieve Information From Precision Agriculture Information System

Displaying Strike and Dip Measurements on Your Map in Surfer

INCREASING CLASSIFICATION QUALITY BY USING FUZZY LOGIC

Informatics 1: Data & Analysis

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling

A Location based Secure Access Control Method for Geospatial Data using Fine Grained Security Access Method

GPS/GIS Activities Summary

Fractionation_Facilities

CSCC43H: Introduction to Databases

SPATIAL RANGE QUERY. Rooma Rathore Graduate Student University of Minnesota

PlaceMap. Accommodation. Slide 1

Using LiDAR (Light Distancing And Ranging) data to more accurately describe avalanche terrain

Visualisation of Abstract Information

LEASE Please bundle the hardware and maintenance pricing into the Unit Price. i.e. Monthly Hardware Cost + Monthly Maintenance Cost = Unit Price

CS 2451 Database Systems: Relational Data Model

PSOA RuleML Integration of Relational and Object-Centered Geospatial Data

NOTES ON OBJECT-ORIENTED MODELING AND DESIGN

GORE BUILDING. 238 N. Massachusetts Avenue, Lakeland, FL 33801

Visualisation of Abstract Information

Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No.

Machine Evolution. Machine Evolution. Let s look at. Machine Evolution. Machine Evolution. Machine Evolution. Machine Evolution

SES 123 Global and Regional Energy Lab Worksheet

MULTIMEDIA AND WEB TECHNOLOGY

Chapter 4. The Relational Model

BC OnLine. Site Registry User s Guide. Last Updated June 11, 2014

Exploiting Depth Camera for 3D Spatial Relationship Interpretation

Designing Evolvable Location Models for Ubiquitous Applications

NEWLINKS THAILAND. Nippon Express Wider Logistics Integrated NetworKS

Notify Metering Point Characteristics

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams

ACS-3902 Fall Ron McFadyen 3D21 Slides are based on chapter 5 (7 th edition) (chapter 3 in 6 th edition)

DOWNLOAD OR READ : WEB SEARCH PUBLIC SEARCHING OF THE WEB PDF EBOOK EPUB MOBI

CS317 File and Database Systems

Genetic programming. Lecture Genetic Programming. LISP as a GP language. LISP structure. S-expressions

Objective To translate E-R diagram in creating a table. Learning outcome. Students would be able to create and instantiate a table

The Basic (Flat) Relational Model. Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Ali Khan < Project Name > Design Document. Version 1.0. Group Id: S1. Supervisor Name: Sir.

Mobile Phone Monitoring System For Android Operating System

TIMMS : FAST, ACCURATE & COST-EFFECTIVE INDOOR MAPPING

The Residence Hall Security System That So You Don't Have To.

St. Lucie County School Concurrency Information System

Terminals. Shapefile. Thumbnail Not Available. Tags barge, rail, truck, tanker, ports, terminals, crude, refined, products

MLEP Intermediate GPS Workshop Exercise Two Using Maps

Congrats! You have completed: Step 1: Online Housing Application and TB Clearance by the deadline of 3 p.m. on March 2. and

PDHonline Course L154G (5 PDH) Data in GIS. Instructor: Steve Ramroop, Ph.D. PDH Online PDH Center

Using CP When You Don't Know CP. Christian Bessiere LIRMM (CNRS/U. Montpellier)

Class IX Mathematics (Ex. 3.1) Questions

Getting Started with Pro Maps for Google

DATA FUSION FOR MULTI-SCALE COLOUR 3D SATELLITE IMAGE GENERATION AND GLOBAL 3D VISUALIZATION

GPS Monitoring Station Data Management

Course list for the Bachelor of Computer Science in INFORMATION SYSTEM

Downtown Lakeland Office Space For Lease

Geospatial Data Quality for Analytical Command and Control Applications: Preventing the Tanker Two-Step. Robert Richbourg and George Lukes

!"# $ I. Introduction

Conceptual Data Modeling

Roger Ranger and Leo Lion

Transcription:

An Online Information System for Services with Fuzzy Spatial Queries Huiqing H. Yang Department of Math & Computer Science Virginia State University Petersburg, VA, USA 23836 Phone: 1-804-524-6877 Fax: 1-804-524-5746 hyang@vsu.edu Geoffrey L. Tranard Department of Math & Computer Science Virginia State University Petersburg, VA, USA 23836 Phone: 1-203-385-1183 Fax: 1-804-524-5746 man_amazin@yahoo.com Abstract Spatial data lies at the heart of GIS research. The great strength of the spatial data is to query about the location and direction of spatial objects. This paper is to explore the possibilities and advantages of geo-spatial data to improve online apartment services. In order to support spatial querying in nature, a simple fuzzy query model is presented in the paper. An online spatial information system is developed by utilizing PHP technology with MySQL database. The system will provide visitors and residents with more accurate information about the apartment. Querying examples are also provided. Keywords: spatial database, fuzzy logic, spatial query, web application, PHP, MySQL 1. Introduction The University at Ettrick (UAE) is an apartment complex built to provide off campus housing to students. Originally, the apartment provides an official website for its properties, but there is no any spatial information included, for instance, distance or direction to a building in the main campus. The motivation of this research is to develop a spatial information system to improve and increase the amount of information for the users, residents or future residents. The ability to perform queries on spatial data is essential in an information retrieval system. An online spatial query requires technique support. The development of new technologies such as new remote sensing, diffusion and miniaturization of GPS receivers has provide an opportunity to improve decision-making based on geospatial information. Recently, as a powerful database server, MySQL has been used to meet the web application requirements. It performs well on the majority of queries, and has a large support base for access from PHP, a powerful script language [1-3]. In this paper, an online information system is implemented by using an open source database MySQL and PHP script language. Spatial querying is a more general term in the geographic queries, which can be defined as queries about the spatial relationships such as topology and direction. As a critical component in the spatial retrieval, the directional relationship is mainly concerned in the paper. A simple fuzzy model for direction query is introduced. The purpose is to improve the service quality and accuracy for the apartment. The paper is organized as follows. Section 2 presents implementation tools for the spatial information system. A fuzzy model for handling direction queries is introduced in section 3. Section 4 briefly describes a spatial database design. Section 5 shows an online spatial information system. Querying samples and some

of source codes are provided in section 5. 2. Implementation Tools In order to achieve a useful information system and make the querying results more reliable, PHP script language and MySQL are used in this research. The process of how PHP interacts with the MySQL database to generate dynamic querying pages is shown in Figure 1. might look like: Math Department is East of the However, these types of queries can only perform a low-level spatial query since they could not distinguish the similar relationships. For example, there are three objects A (), R (Register Office) and M (Mathematical Department) shown in the Figure 2. Server Side NW II I NE Web Server PHP Scripts PHP Files PHP Interpreter Request Dynamic Web Page Web Browser W SW III A R M IV SE E MySQL Server Tables In the system, PHP scripts are mainly used to connect to the database and generate dynamitic querying results. Spatial data of objects is stored in a MySQL database. 3. A Fuzzy Query Model The directional relationships are commonly concerned in our daily life. Many efforts have been made in our previous work [4,5]. In this paper, we mainly deal with four cardinal directions and their refinements. The directional relationships are defined as follows: D={E, S, W, N, NE, NW, SE, SW E: East NE: North-East S: South NW: North-West N: North SE: South-East W: West SW: South-West Figure 1 These relations can provide the basic directional information. An example of the spatial queries Figure 2 The basic queries for the direction will provide the same directional relationships, that is, Object A and Object R: Register Office is East of the. Object A and Object M: Math Department is East of the. Since the spatial relationships depend on human interpretation, spatial queries should be related to fuzzy concepts in order to support queries of the nature. In order to provide high accurate information about direction, a fuzzy query model for the direction is presented in the paper. Some rules for fuzzy spatial queries are briefly described as follows. Consider two objects A(x1, y1) and B(x2, y2). A tuple (x, y) represents the coordinate in the longitude and latitude respectively. We define the directional qualifier DQ as: DQ={directly, mostly, slightly.

Four rule sets to provide fuzzy spatial querying are defined according to the Figure 2. The rule sets in I range and IV range are summarized as follows. Rule I: x2 x1 and y2 y1 IF k 1 =0 THEN B is directly E of A IF 0<k 1 <0.2 THEN B is mostly E of A IF 0.2 k 1 <0.6 THEN B is slightly E of A IF 0.6 k 1 <0.8 THEN B is slightly NE of A IF 0.8 k 1 <1.0 THEN B is mostly NE of A IF k 1 =1.0 THEN B is directly NE of A IF 1.0<k 1 <1.3 THEN B is mostly NE of A IF 1.3 k 1 <2.0 THEN B is slightly NE of A IF 2.0 k 1 <5.0 THEN B is slightly N of A IF 5.0 k 1 <100 THEN B is mostly N of A IF(x2-x1)=0 THEN B is directly N of A where k 1 =(y2-y1)/(x2-x1). Rule IV: x2 x1 and y1 y2 IF k 4 =0 THEN B is directly E of A IF 0<k 4 <0.2 THEN B is mostly E of A IF 0.2 k 4 <0.6 THEN B is slightly E of A IF 0.6 k 4 <0.8 THEN B is slightly SE of A IF 0.8 k 4 <1.0 THEN B is mostly SE of A IF k 4 =1.0 THEN B is directly SE of A IF 1.0<k 4 <1.3 THEN B is mostly SE of A IF 1.3 k 4 <2.0 THEN B is slightly SE of A IF 2.0 k 4 <5.0 THEN B is slightly S of A IF 5.0 k 4 <100 THEN B is mostly S of A IF(x2-x1)=0 THEN B is directly S of A where k 4 = (y2-y1)/(x2-x1). a spatial database based on relationships between particular objects in that database within a particular coordinate system. In order to support spatial queries, a spatial database which includes geospatial locations of the objects such as apartment, buildings in the main campus is designed in terms of the ER (Entity-Relationship) model. The rules can be described as: Each building may have many apartments. Each apartment may have different types of rooms. Some valid attribute values are listed as follows. Table 1. Type Table 2. Closet Type Slide Door Number of Bedrooms A 4 B 2 C 1 Since most GPS receivers are set to use latitude/longitude coordinates as their default setting [8], in this research, we use the latitude longitude coordinate system to describe a position on the surface of the earth. An ER diagram is shown in Figure 3. In the same way, Rule II, and Rule III can be defined. The fuzzy spatial querying will provide the directional relationships shown in Figure 2 as: Math Department is directly East of the Register Office is slightly East of the Building Longitude Latitude Street Size BuildYear Size Beds RentCost Room Size Bath Closet 4. A Spatial Database The most important feature of Geographic Information Systems is that spatial data are stored in a structured format referred to as spatial database [7]. The spatial queries imply querying Build_Aparts Quantity Aparts_Rooms Quantity Figure 3. ER Diagram

: Building Identification Number : Type : Room Type Table 3. The keys in the tables Table Name PK FK Building Reference Table Room Build_Aparts Aparts_Rooms PK: Primary Key FK: Foreign Key Building Room The database is implemented by using MySQL. Select an object Figure 4 5. An Online Information System The system information retrieval is based on the spatial database queries. There are two specific types of queries provided in the paper. a. General Information queries These kinks of queries will provide the users with the basic information about apartment. An example of the basic querying The interface for the apartment is shown in Figure 4. A user can select any building to view its information. After the users submit the request, the querying results will be displayed. Figure 5 shows an example of the basic apartment query. b. Spatial information queries Spatial queries require the geographic location of each object. The geographic coordinates of each building in the system is represented as (x, y), where x and y are coordinates of the object. Figure 5 Given two objects A(x1, y1) and B(x2, y2), where x1 and y1 represent the longitude and latitude coordinate of the object A, and x2 and y2 represent the longitude and latitude coordinate of the object B.

The distance between A and B can be calculated as: dis tan ce( A, B) = ( x1 x2) 2 + ( y1 y2) By using the fuzzy spatial query mode presented in section 3, the system will provide direction information. An example of the spatial querying The interface shown in Figure 6 provides a map of the main campus and the apartment. 2 Table 4. Code for the distance querying <?php $dest=$_request['dest']; $src=$_request['source']; $server= 'localhost'; $user= 'xxxxxx'; $pass= 'xxxxxx'; $mydb= 'xxxxx'; $table1='location'; $table2='building'; $connect = mysql_connect($server, $user, $pass); if(!$connect) die("cannot connect to $server using"); else { mysql_select_db($mydb); $query1 = "select Longitude, Latitude from $table1 where BuildName='$dest';"; $result=mysql_query($query1, $connect); if($result) { $row=mysql_fetch_row($result); $x1=53.0*$row[0]; $y1=69.1*$row[1]; Figure 6 The source is the apartment. The user can select the destination in the campus. For example, if the Library is clicked, the distance from the apartment to the library is given in Figure 7. Figure 7 The partial source code which uses PHP to connect to MySQL database is listed in Table 4. mysql_select_db($mydb); $query2="select Longitude,Latitude from $table2 where ='$src';"; $result2=mysql_query($query2); if($result2) { $row2=mysql_fetch_row($result2); $x2=53.0*$row2[0]; $y2=69.1*$row2[1]; $dist=sqrt(($x1-$x2)*($x1-$x2) +($y1-$y2)*($y1-$y2)); $dist=round($dist, 3); print "The distance between $src and $dest is $dist miles<p> "; else print "No result from Building table. <p>"; else print "No result form $table1 <p>"; mysql_close($connect);?>

If the destination is Football Field, the direction information is shown in Figure 8. else if (1.3<=$k && $k<2) slightly NE of $src <p>"; else if (2<=$k && $k<5 ) slightly N of $src <p>"; else if (5<=$k && $k<100) mostly N of $src <p>"; 6. Conclusion Figure 8 Destination: Football Table 5 shows partial PHP source code for fuzzy direction querying. Table 5. Code for the direction querying // (x1, y1) and (x2, y2) are known if($x2!=$x1) $k=(y2-$y1)/($x2-$x1); if(($x2>$x1)&&($y2>$y1)) { if(($y2-$y1)==0) directly E of $src <p>"; else if (($k==1) directly NE of $src <p>"; else if (($x2-$x1)==0) directly N of $src <p>"; else if($k>0 && $k<0.2) mostly E of $src <p>"; else if ((0.2<=$k && $k<0.6) slightly E of $src <p>"; else if (0.6<=$k && $k<0.8) slightly NE of $src <p>"; else if (0.8<=$k && $k<1.0) mostly NE of $src <p>"; else if (1.0<$k && $k<1.3) mostly NE of $src <p>"; Based on an apartment web service application, this paper investigates a method which uses geospatial data to improve accuracy and quality of online information. Querying examples have shown the capabilities of a spatial database to support fuzzy directional queries. In the future, fuzzy queries may be improved by membership functions. 7. References [1]. David A. Lash, The Web Wizard s Guide to PHP, Addison Wesley, 2003 [2]. Leon Atkinson, Core PHP Programming, Prentice Hall, 2004. [3]. Luke Welling and Laura Thomson, PHP and MySQL Web Development, Third Edition, Sams Publishing, 2005. [4]. H. Yang, M. Cobb, et al., A Clips-Based Implementation for Querying Binary Spatial Relationships, Proceeding of Joint 9 th IFSA World Congress and 20 th NAFIPS International Conference, Vancouver, Canada. 2001. [5]. H. Yang, M. Cobb, Fuzzy Spatial Querying with Inexact Inference, Proceeding of the North American Fuzzy Information Processing Society, NAFIPS-FLINT International Conference (IEEE), Tulane University, New Orleans LA, 2002. [6]. H. Yang, K. Outlaw, Secure Consideration of PHP and MySQL in an Online Banking System, ISAS 2005 and CITSA 2005, P290-295, Orlando, Florida, 2005. [7]. Shashi Shekhar and Sanjay Chawla, Spatial Databases: A Tour Prentice Hall, 2003. [8]. Map Tools, http://www.maptools.com/usinglatlon/