[OpenLayers-Users] Converting geometry field into set of google
latlng
Greg Allensworth
gregor at greeninfo.org
Wed Feb 1 10:05:27 EST 2012
On 2/1/2012 6:59 AM, Greg Allensworth wrote:
> On 2/1/2012 1:41 AM, Mustafa646 wrote:
>> For storing Geospatial data, Geometry field is used in SQL server or
>> Oracle Spatial. I want to know is there any way where we can
>> convert this geometry field into set of latitudes and longitudes.
I don't know whether Oracle Spatial can read WKT, Well Known Text. If
so, then you can use the WKT writer class.
var geom = feature.geometry;
var writer = new OpenLayers.Format.WKT();
var wkt = writer.write(geom);
alert(wkt);
--
Greg Allensworth, Web GIS Developer
BS A+ Network+ Security+ Linux+ Server+
GreenInfo Network - Information and Mapping in the Public Interest
564 Market Street, Suite 510 San Francisco CA 94104
PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor at greeninfo.org
Web: www.GreenInfo.org www.MapsPortal.org
Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org
More information about the Users
mailing list