Hello,
Take a look at com.bbn.openmap.layer.mysql.MysqlGeometryLayer it will
display geometric data from a Mysql spatial database.
The properties look like this (taken from the javadocs):
mygeo.prettyName=<Your Layer Name>
mygeo.dbUrl=< Driver Class > eg.
"jdbc:mysql://localhost/openmap?user=me&password=secret"
mygeo.dbClass=< Driver Class > eg. "com.mysql.jdbc.Driver"
mygeo.geomTable=<Database Tablename>
mygeo.geomColumn=<Column name which contains the geometry>
mygeo.pointSymbol=<Filename and path for image to use for point
objects>Default is
# Optional Properties - use as required
# NOTE: There are default for each of these
mygeo.lineColor=<Color for lines>Default is red
mygeo.lineWidth=<Pixel width of lines>Default is 0
mygeo.fillColor=<Color of fill>Default is red
As far as I know this is the only 'built-in' support for JDBC access to a
spatial database.
Hope this helps,
Brian Hudson
-----Original Message-----
From: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com] On
Behalf Of Qinyan Zhou
Sent: Tuesday, July 20, 2004 11:09 AM
To: Don Dietrick
Cc: openmap-users@bbn.com
Subject: [OpenMap Users] access to spatial database?
Don,
Does openmap support JDBC for accessing to spatial
database currently?
Thanks,
Jessica
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"] -- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Tue Jul 20 12:12:26 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:39 EDT