If you have one CSV file that containing the WKT format SQL spatial data, how to input the data into MySQL?
For testing, at first create a table containing spatial colomn:
CREATE TABLE `geometry` (
`id` int( 11 ),
`geom` GEOMETRY ,
PRIMARY KEY ( `id` )
) TYPE = MYISAM;
In MySQL's operation software, Admin or PHPMyAdmin, you could run such SQL code to input the data:
"INSERT INTO geometry (id, geom) VALUES ('1', GeomFromText('LINESTRING(1283074 10562093,1283074 10562093,1283074 10562093)'));
dBASE was the first widely used database management system or DBMS for microcomputers, published by Ashton-Tate for CP/M, and later on the Apple II, Apple Macintosh, UNIX [1], VMS [2], and IBM PC under DOS where it became one of the best-selling software titles for a number of years. dBASE was never able to transition successfully to Microsoft Windows and was eventually displaced by newer products like Paradox, Clipper, FoxPro, and Microsoft Access. dBASE was sold to Borland in 1991, which sold the rights to the product line in 1999 to the newly-formed dBASE Inc.

GIS Mapping in PHP is a very nice tutorial to tell you how to create a webmap using PHP. In its Part II the author introduces a easy way to load the geographic coordinates from Mapinfo MIF format and realize it in raster image format with PHP's image function. The author has done a nice job and his code can parse one MIF example data with Line, Polyline and Region geometries objects. Thx! But not finished yet!!!!
| GIS Mapping in PHP: Part 1 | ||
| Published online at PHPBuilder.com Author: Simon Moss |
||
|
There are a number of great online GIS ( Geographic Information System ) solutions out there, ranging from Mappoint to Mapquest to some cool PHP projects. However, it is still nice to be able to be able plot you own data and put some basic mapping utilities on your site with a minimum of fuss and bother. Over the next couple of articles I will hopefully be able to give you a few pointers on how to create you own basic GIS system for free. I do not claim to be a GIS expert, and there may be better ways to do things, but hopefully these articles will give you a start in the right direction.
How to enable gzip compression with Php(T)Mon, 2006-12-11 01:33 — leelightEnabling Gzip CompressionIn many forums and on many webpages it has been widely proclaimed that to enable gzip compression using php is as easy as adding a single line of code at the beginning of each page. This is not false, however it is not the best way of doing it. Before continuing, here's the code. It takes advantage of Php's buffered output and buffers all output of the script until the Php engine has completed, and then runs all the output through a special function that gzip compresses it before sending it on to the browser. Here is the code. Just place this at the very top of all your Php pages and it will send gzip-compressed output to the browsers.
MVC Frameworks Written in PHPFri, 2006-12-08 20:07 — leelightMVC Frameworks Written in PHPFrameworks for implementing the Model View Controller pattern in PHP
|
Recent comments
18 hours 22 min ago
21 hours 47 min ago
1 day 17 hours ago
2 days 12 hours ago
2 days 12 hours ago
2 days 20 hours ago
2 days 22 hours ago
5 days 2 hours ago
6 days 22 hours ago
1 week 2 days ago