[OpenLayers-Users] Geometry information from MSSQL
Dominik Mikiewicz
dominikmikiewicz at o2.pl
Thu May 31 02:05:24 PDT 2012
You can use the Format.WKT class:
var wktReader = new OpenLayers.Format.WKT();
then simply read the data:
var feature = wktReader.read(geomWktString);
and eventually add it to a layer
layer.addFeatures([features]);
From: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Riaan
Lombaard
Sent: Thursday, May 31, 2012 10:48 AM
To: openlayers-users at lists.osgeo.org
Subject: [OpenLayers-Users] Geometry information from MSSQL
Hey,
I need to use Geometry information from MSSQL.
I would love to use PostGis but unfortunately I do not have that luxury.
(Maybe someday)
What I have managed to extract from SQL is the following.
POLYGON ((128.741438377287 -15.7386871311888, 128.749436622601
-15.7386359310317, 128.749751406372 -15.7431351669269, 128.742286304583
-15.7431306043776, 128.741438377287 -15.7386871311888))
Can I use it or do I have to convert it to a OpenLayers.Geometry.LinearRing?
Thanks,
Riaan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120531/4db7ecac/attachment-0001.html>
More information about the Users
mailing list