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.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users