CN102609437A - Method for transferring local vehicle geographic data based on web server - Google Patents

Method for transferring local vehicle geographic data based on web server Download PDF

Info

Publication number
CN102609437A
CN102609437A CN2011104359908A CN201110435990A CN102609437A CN 102609437 A CN102609437 A CN 102609437A CN 2011104359908 A CN2011104359908 A CN 2011104359908A CN 201110435990 A CN201110435990 A CN 201110435990A CN 102609437 A CN102609437 A CN 102609437A
Authority
CN
China
Prior art keywords
web browser
file
data
script
web
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011104359908A
Other languages
Chinese (zh)
Other versions
CN102609437B (en
Inventor
李宗华
李超
李中华
周安健
乔宇亮
徐志青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Automobile Co Ltd
Chongqing Changan New Energy Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Chongqing Changan New Energy Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co Ltd, Chongqing Changan New Energy Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN201110435990.8A priority Critical patent/CN102609437B/en
Publication of CN102609437A publication Critical patent/CN102609437A/en
Application granted granted Critical
Publication of CN102609437B publication Critical patent/CN102609437B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for transferring local vehicle geographic data based on a web server. The vehicle geographic information data are transmitted through the web server and led into the web server to be used. A system comprises the web server and a web browser. The web server operates a common gateway interface script, and the web browser operates a webpage dynamic script. The webpage dynamic script and the common gateway interface script submit asynchronous hypertext transfer protocol transferring requests, and the vehicle geographic data are led into the web browser from a local file and displayed on the web browser. By means of the method, due to the fact that the vehicle geographic data can be stored in a local file system and a web server side, the design of a vehicle geographic information system is flexible. If the vehicle geographic data are only stored in the local file system, storage resources of the server can be saved.

Description

A kind of method based on the local vehicle geodata of web page server transfer
Technical field
The invention belongs to vehicle GIS-Geographic Information System field; Be specifically related to page script language vehicle geodata (JavaScript Vehicle Geography Data is called for short JSVGD) text data method for expressing, import system, web browser and web page server.
Background technology
Webpage (Web) is that most crucial application technology framework is gone up in current the Internet (Internet).Web technologies is at first in order to provide information service to occur to people.Webpage adopts URL (Uniform ResourceLocators; Abbreviate URL as) the accurate location of realizing global information; Through HTML (HyperText Markup Language; Abbreviating HTML as) form and HTTP (HypertextTransfer Protocol is called for short HTTP) realize sharing of information and distribute, and utilize the connection of hyperlink (HyperLink) technology realization relevant information.
Web technologies has the characteristics of convenient use, and this makes it obtain developing rapidly in more than 20 year in the past, has also obtained immense success based on the internet, applications of webpage.In the company information network that adopts the Internet technology system, webpage has obtained the one seat of its development naturally.Web browser almost all can be installed at all personal computers as one of the most general desktop software of current application in advance.The user can load the HTML text from web page server behind input URL in the web browser, obtain data and information that web page server is compiled, so webpage is widely used in the vehicle monitoring field.
Page script language (JavaScript) is the page script language according to certain script (ECMAScript) standard formulation of European Computer Manufacture's Association's (EuropeanComputer Manufacturers Association is called for short ECMA) tissue.On the HTML basis, use the page script language can develop interaction network page.The page script language can make between user and the HTML webpage to be realized real-time dynamic alternately, makes webpage comprise the more active elements and the content of excellence more.Operation needs the browser of ability supported web page script with the program of page script language.The browser of Netscape omniselector (Navigator) the 3.0 above versions of Netscape can both supported web page script program, and the browser of the microsoft internet explorer of Microsoft (Internet Explorer) 3.0 above versions is the supported web page script basically.The page script language is short and pithy, has improved the surfing and the interaction capabilities of webpage greatly.It is again specially for making a kind of simple programming language that webpage is made to measure simultaneously.It is interactive that the page script language increases webpage.The page script language is simplified the HTML literary composition section that repeats regularly, reduces download time.The page script language can in time respond user's operation, and submission form is done instant inspection, need not to lose time to transfer to CGI (Common Gateway Interface, be called for short CGI) checking.And, in vehicle monitoring system, there are a large amount of geodatas to need to preserve, the characteristics of page script language textization and lightweight make it be fit to be applied in the expression and storage of geodata.
But web browser does not allow the page script language directly mutual with local file system from the consideration of security, if so the page script Programming with Pascal Language need obtain file content from this locality need be by other means.The microsoft internet explorer of producing for Microsoft can adopt networked multimedia object technology (ActiveX) technology to realize, but the user need install networked multimedia object technology plug-in, and this scheme only is suitable for microsoft internet explorer.But the user may install web browsers such as red fox, Google and visit the website now, and these browsers are not supported the networked multimedia object technology of Microsoft, thereby networked multimedia object technology does not have ubiquity.
But in the practical application, the webpageization day by day along with GIS-Geographic Information System imports to the demand that shows in the browsing device net page with the vehicle geodata from local file system and also appears gradually.Therefore need designing effective scheme, to make page script language and local file system pass through other approach mutual.
Summary of the invention
Given this, the present invention has realized realizing that by the web page server transfer content comprises the data importing of page script language text, guiding system and web browser and web page server from the technic relization scheme of local file system importing data.
The user can select the JSVGD file from local file system; Then through the transfer of web page server backstage and use web browser to resolve; File content is presented on the web browser with suitable form, thereby under no webpage redirect situation, accomplishes the JSVGD file imports to local browsing device net page from local file system process.
The present invention will accomplish following task:
1. define a kind of text data method for expressing of vehicle geodata, homepages language is that standard reads and the store car geodata with this data layout, like time, longitude and latitude.
2. the vehicle geodata that designs a kind of web browser end imports the interface, and this interface uses HTML as fundamental and be aided with dynamically updating of page script language realization interface.
3. design webpage data in server transfer way, this way can be accepted the data of web browser through HTTP, and data are returned web browser.
4. design the flow process that a kind of vehicle geodata imports.This flow system has comprised web browser and web page server, uses asynchronous web page script and hypertext markup language document object model tree technology to submit data, resolution data and video data to.
Technic relization scheme of the present invention is such:
A kind of method based on the local vehicle geodata of web page server transfer, said method is with web page server transfer vehicle geographic information data, and the vehicle geodata is imported to the web browser use; Said system comprises web page server and web browser; Web page server operation CGI script, web browser operation webpage dynamic script; Submit asynchronous HTTP transfer request to through webpage dynamic script and CGI script, web browser can import the vehicle geodata and is presented on the web browser from local file;
The implementation procedure of said method is following:
Step 102: the user triggers at web browser and imports action, and the hypertext markup language document object model tree revised in the page script language, through createElement () function dynamic generation web page zone (div) dialog box;
Step 103: the user chooses vehicle geodata file to be imported from local file system, and web browser is through page script language perception file path, but file content page script language can't perception;
Step 104: web browser obtains the filename suffix that file path comprises through the page script language, judges whether it is the .JSVGD file; If not, turn back to the importing dialog box, get back to step 102; If get into next step, i.e. step 105;
Step 105: web browser is initiated HTTP to web browser and is submitted (Post) request to, asks the ENCType attribute of list (form) to be set to " Mutipart/form-data ";
Step 106: file begins to upload to web page server, at this moment, the asynchronous wait HTTP of web browser response message, the user can carry out other operations in webpage;
Step 107: web page server is accepted hypertext transfer protocol requests through CGI script, and from request, extracts the filename of " Mutipart/form-data " part;
Step 108: whether web page server verification file name is with the ending of .JSVGD suffix, if not, return the HTTP errored response, verification is passed through, and gets into next step;
Step 109: web page server extracts the file content of Mutipart part through CGI script;
Step 110: web page server and according to the definition vehicle geodata data layout carry out verification, verification is not passed through, and returns the HTTP errored response; Verification is passed through, and gets into next step;
Step 112: be the different editions of compatible .JSVGD file, with data parsing and be reassembled into the .JSVGD FileVersion that web browser can be discerned;
Step 113: will return to web browser with textual form with the .JSVGD file of web browser edition compatibility, and after the server response finishes, break off HTTP and connect;
Step 114: web browser is accepted the HTTP response, and response text is composed a certain variable to the page script LISP program LISP that moves in the web browser as value;
Step 115: the page script LISP program LISP according in the definition parsing place file data content of data layout from the part of " MetaData_Definition=START [" to "] MetaData_Definition=END ", obtain the definition of vehicle geodata metadata;
Step 116: the page script LISP program LISP is resolved the part from " GPS_DATA=START [" to "] GPS_DATA=END " according to the definition of metadata, gets access to GPS vehicle geodata information;
Step 117: the page script LISP program LISP refreshes page assembly elements such as map according to the GPS information updating hypertext markup language document content that is resolved to.
Because the vehicle geodata can be kept at local file system and web page server end, brought dirigibility for like this vehicle Design of Geographic Information System.If only be kept at local file system to the vehicle geodata, can save the storage resources of server.
Description of drawings
Fig. 1 is a data importing process flow diagram of the present invention;
Fig. 2 is that the vehicle geodata imports process flow diagram.
Embodiment
One, a kind of vehicle geodata text representation method
The applied environment of this scheme comprises local file system and web browser.Adopt meta data definition various information information is kept in the text.Can storing one row or multirow data in the text.Every style of writing originally can be stored one or more metadata.Metadata is the expression of vehicle geodata, can comprise the numerical value such as longitude and latitude of height, width and the vehicle of giant-screen entity.This text data can be that the file suffixes name format of .JSVGD is kept on the local file system, can open through explorer, checks its content with the notepad program.The content of vehicle geodata file comprises metadata format definitional part and vehicle geodata storage area.
Metadata (MetaData) form definition division:
The metadata format definitional part with " MetaData_Definition=START [" is as beginning flag, with "] MetaData_Definition=END " as end mark.Body matter storing metadata title and metadata type tabulation.
The metadata title MetaDataName
Metadata type MetaDataType
Metadata type adopts following mode to describe:
Character types ‘char’
Character string type ‘char’
Numeric type ‘num’
Boolean type ‘bool’
The date type ‘date’
As an example, the file content of the vehicle geodata metadata of a definition GPS (Global Positioning System is called for short GPS) longitude and latitude is represented as follows:
Vehicle geodata storage area:
Vehicle geodata part with GPS_DATA=START [as beginning flag, with] GPS_DATA=END as end mark.The content of body matter store car geodata.
As an example, adopted the meta data definition of front, the text representation of a vehicle geodata that comprises GPS longitude and latitude data is following:
Figure BDA0000123910800000061
Two, a kind of vehicle geodata imports the interface
This interface and Initial page are at same web interface; Document object model tree (Document Object Model through page script operation HTML; Be called for short DOM) come dynamically to add the HTML element, generate the importing interface dialog box of floating.Import the interface dialog box and be divided into title, import form fields, import the progress territory and import four parts of result, import interface dialog box hypertext markup language content by shown in the following code:
Figure BDA0000123910800000071
Comprise in the page script language codes ejecting importing dialog interface, comprise in the importing dialog interface and open, close, the action response of select File button.Import and adopted webpage hardwood (iframe) technology to realize the dynamic demonstration of uploading the result in the interface.
Three, a kind of hypertext transmission transfer pattern
Web page server operation CGI, this interface available server Script Programming language (like JavaServlet) is realized.Web browser is delivered transmission requests through HTTP to CGI.CGI can be resolved HTTP after checking is passed through, remove protocol headers and extract the vehicle geodata.Under the situation of not revising the vehicle geodata, data are added the HTTP head response, return response through HTTP then.
Four, a kind of data importing flow process
This flow system has comprised web browser and web page server, has used asynchronous web page script and hypertext markup language document object model tree technology to submit data, resolution data and video data to.The data importing flow process is as shown in Figure 1.
1. web browser triggers and imports action, and the hypertext markup language document object model tree revised in the page script language, through createElement () function dynamic generation web page zone (div) dialog box, like step 102.
2. the user chooses a file from local file system, and like step 103, web browser can pass through page script language perception file path, but file content page script language can't perception.
3. web browser can obtain the filename suffix that file path comprises through the page script language, judges whether it is the .JSVGD file; If not, turn back to the importing dialog box, get back to step 102.If get into next step, i.e. step 105.
4. web browser is initiated HTTP to web browser and is submitted (Post) request to, asks the ENCType attribute of list (form) to be set to " Mutipart/form-data ".
5. file begins to upload to web page server, and at this moment, the asynchronous wait HTTP of web browser response message can carry out other operations like step 106 user in webpage.
6. web page server is accepted hypertext transfer protocol requests through CGI script, corresponding step 107, and from request, extract " Mutipart/form-data " filename partly.
7. whether web page server verification file name is with the ending of .JSVGD suffix, if not, return the HTTP errored response.Verification is passed through, and gets into next step, i.e. step 109.
8. web page server extracts Mutipart file content partly through CGI script, and carries out verification according to the data layout of front definition, and verification is not passed through, and returns the HTTP errored response.Verification is passed through, and gets into next step, i.e. step 110.
9. be the different editions of compatible .JSVGD file, need be according to data parsing and be reassembled into the .JSVGD FileVersion that web browser can be discerned, i.e. step 112.
10. will return to web browser with textual form with the .JSVGD file of web browser edition compatibility, and after the server response finishes, break off HTTP and connect, be i.e. step 113.
11. web browser is accepted the HTTP response, and response text is composed a certain variable to the page script LISP program LISP that moves in the web browser as value.
12. the page script LISP program LISP according in the definition parsing place file data content of data layout from the part of " MetaData_Definition=START [" to "] MetaData_Definition=END "; Obtain the definition of vehicle geodata metadata, i.e. step 115.
13. the page script LISP program LISP is resolved the part from " GPS_DATA=START [" to "] GPS_DATA=END " according to the definition of metadata, gets access to GPS vehicle geodata information, i.e. step 116.
14. the page script LISP program LISP refreshes page assembly elements such as map, i.e. step 117 according to the GPS information updating hypertext markup language document content that is resolved to.
So the vehicle geodata imports flow process and can briefly describe with Fig. 2.Because adopted asynchronous submissions technological, webpage can not refresh, the user can feel the vehicle geodata be directly from the local file system to the web browser in.
This technical scheme can be applied in polytype web application:
1. break through the restriction of browser sandbox, the function and application scope of extending the page script language can be applied in the importing of vehicle geographic information data page script.
2. browser difference is realized, broken through to browser-cross, and browser only need be supported standard HTTP and basic page script language team DOM Document Object Model to operate to get final product.
3. concerning the user, data directly import to browser display from this locality, and the user need not refreshed web page, to web page user favorable user experience is provided.
4. make things convenient for Chang'an company that the data of new forms of energy car are kept on the local file system with textual form, and the geodata of new forms of energy car is imported web browser analysis again through the method.

Claims (1)

1. method based on the local vehicle geodata of web page server transfer, said method is with web page server transfer vehicle geographic information data, and the vehicle geodata is imported to the web browser use; Said system comprises web page server and web browser; Web page server operation CGI script, web browser operation webpage dynamic script; Submit asynchronous HTTP transfer request to through webpage dynamic script and CGI script, web browser can import the vehicle geodata and is presented on the web browser from local file;
The implementation procedure of said method is following:
Step 102: the user triggers at web browser and imports action, and the hypertext markup language document object model tree revised in the page script language, through createElement () function dynamic generation web page zone (div) dialog box;
Step 103: the user chooses vehicle geodata file to be imported from local file system, and web browser is through page script language perception file path, but file content page script language can't perception;
Step 104: web browser obtains the filename suffix that file path comprises through the page script language, judges whether it is the .JSVGD file; If not, turn back to the importing dialog box, get back to step 102; If get into next step, i.e. step 105;
Step 105: web browser is initiated HTTP to web browser and is submitted (Post) request to, asks the ENCType attribute of list (form) to be set to " Mutipart/form-data ";
Step 106: file begins to upload to web page server, at this moment, the asynchronous wait HTTP of web browser response message, the user can carry out other operations in webpage;
Step 107: web page server is accepted hypertext transfer protocol requests through CGI script, and from request, extracts the filename of " Mutipart/form-data " part;
Step 108: whether web page server verification file name is with the ending of .JSVGD suffix, if not, return the HTTP errored response, verification is passed through, and gets into next step;
Step 109: web page server extracts the file content of Mutipart part through CGI script;
Step 110: web page server and according to the definition vehicle geodata data layout carry out verification, verification is not passed through, and returns the HTTP errored response; Verification is passed through, and gets into next step;
Step 112: be the different editions of compatible .JSVGD file, with data parsing and be reassembled into the .JSVGD FileVersion that web browser can be discerned;
Step 113: will return to web browser with textual form with the .JSVGD file of web browser edition compatibility, and after the server response finishes, break off HTTP and connect;
Step 114: web browser is accepted the HTTP response, and response text is composed a certain variable to the page script LISP program LISP that moves in the web browser as value;
Step 115: the page script LISP program LISP according in the definition parsing place file data content of data layout from the part of " MetaData_Definition=START [" to "] MetaData_Definition=END ", obtain the definition of vehicle geodata metadata;
Step 116: the page script LISP program LISP is resolved the part from " GPS_DATA=START [" to "] GPS_DATA=END " according to the definition of metadata, gets access to GPS vehicle geodata information;
Step 117: the page script LISP program LISP refreshes page assembly elements such as map according to the GPS information updating hypertext markup language document content that is resolved to.
CN201110435990.8A 2011-12-23 2011-12-23 Method for transferring local vehicle geographic data based on web server Expired - Fee Related CN102609437B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110435990.8A CN102609437B (en) 2011-12-23 2011-12-23 Method for transferring local vehicle geographic data based on web server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110435990.8A CN102609437B (en) 2011-12-23 2011-12-23 Method for transferring local vehicle geographic data based on web server

Publications (2)

Publication Number Publication Date
CN102609437A true CN102609437A (en) 2012-07-25
CN102609437B CN102609437B (en) 2014-10-08

Family

ID=46526812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110435990.8A Expired - Fee Related CN102609437B (en) 2011-12-23 2011-12-23 Method for transferring local vehicle geographic data based on web server

Country Status (1)

Country Link
CN (1) CN102609437B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833499A (en) * 2018-05-28 2018-11-16 北京浩科技有限公司 The data processing method and device of hypertext transfer protocol, server
CN113032754A (en) * 2019-12-09 2021-06-25 深圳云天励飞技术有限公司 Face recognition method and device for webpage browser and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1338720A (en) * 2000-08-10 2002-03-06 神乎科技股份有限公司 Geographic position information system
CN1633092A (en) * 2004-11-25 2005-06-29 武汉大学 Distributed GIS space information integration apparatus and method based on mobile Agent and GML
CN101996249A (en) * 2010-11-16 2011-03-30 苏州市数字城市工程研究中心有限公司 Grid environment-based geospatial data service issuing method
CN102147257A (en) * 2010-12-27 2011-08-10 北京数字冰雹信息技术有限公司 Geographic information search and navigation system based on visual field of users

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1338720A (en) * 2000-08-10 2002-03-06 神乎科技股份有限公司 Geographic position information system
CN1633092A (en) * 2004-11-25 2005-06-29 武汉大学 Distributed GIS space information integration apparatus and method based on mobile Agent and GML
CN101996249A (en) * 2010-11-16 2011-03-30 苏州市数字城市工程研究中心有限公司 Grid environment-based geospatial data service issuing method
CN102147257A (en) * 2010-12-27 2011-08-10 北京数字冰雹信息技术有限公司 Geographic information search and navigation system based on visual field of users

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833499A (en) * 2018-05-28 2018-11-16 北京浩科技有限公司 The data processing method and device of hypertext transfer protocol, server
CN113032754A (en) * 2019-12-09 2021-06-25 深圳云天励飞技术有限公司 Face recognition method and device for webpage browser and electronic equipment

Also Published As

Publication number Publication date
CN102609437B (en) 2014-10-08

Similar Documents

Publication Publication Date Title
Harper et al. Web accessibility guidelines: A lesson from the evolving Web
US8055997B2 (en) System and method for implementing dynamic forms
US9098481B2 (en) Increasing accuracy in determining purpose of fields in forms
CA3060362A1 (en) Editing a database during preview of a virtual web page
US20060048046A1 (en) Marking and annotating electronic documents
CN101288067A (en) Methods and apparatuses to assemble, extract and deploy content from electronic documents
JP2010500689A (en) Method for enabling web analysis of interactive web applications
US20040205488A1 (en) Active web page for editing with any browser
KR101797573B1 (en) Web based spreadsheets service providing apparatus and method
Benhamed et al. The FAIR data point: Interfaces and tooling
US20140258847A1 (en) Systems and methods for displaying content with discrete content zones
CN102609437B (en) Method for transferring local vehicle geographic data based on web server
US9135345B1 (en) Generating and updating online content using standardized tagged data
Hsu Visual modeling for web 2.0 applications using model driven architecture approach
Hori et al. Generating transformational annotation for web document adaptation: tool support and empirical evaluation
Bressoud et al. Web scraping
Arnett et al. Bridging the gap from Wikipedia to scholarly sources: A simple discovery tool
Powers Adding Ajax: Making Existing Sites More Interactive
Wan et al. Developing a selection model for interactive Web services
Willmes et al. CRC806-Database: Integrating Typo3 with GeoNode and CKAN
Johari et al. PMLAP: a methodology for annotating SSML elements into HTML5
Glotzbach et al. Really Simple Syndication (RSS): An Educational Approach.
Hori et al. Robustness of external annotation for web-page clipping: Empirical evaluation with evolving real-life web documents
Pujolràs Riera Student's watcher: comparison between ASP. NET and PHP+ CSS
Parker Staying Relevant in a Competitive World: Using the SAS Output Delivery System to Enhance, Customize, and Render Reports

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141008