[OpenLayers-Users] blueprints & vectors to openlayers
fuhrysteve
fuhrysteve at gmail.com
Mon Jul 13 14:25:46 EDT 2009
This somewhat unconventional use of OpenLayers as a warehouse management
web-app is really exciting people over here! Thanks everyone for the help so
far!
I am running into one little problem though.. I can save vectors to MySQL as
a geometry datatype, no problem. The problem is, how do I load them back up?
SELECT AsText(geometry) AS geometry FROM geometryTable;
gives me something like:
POLYGON((1528 -768,1524 -850,1596 -852,1528 -768))
(or a point, a line, or whatever)
I want to do something like this (in PHP...):
$vector['geometry'] = "POLYGON((1528 -768,1524 -850,1596 -852,1528 -768))";
foreach ($this->vectors as $vector) {
// make $vector['geometry'] a 'feature'
print "fpshelves.addFeatures(vector)";
}
Thanks again for the help!
--
View this message in context: http://n2.nabble.com/blueprints---vectors-to-openlayers-tp3218765p3252180.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090713/276c7442/attachment.html
More information about the Users
mailing list