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.
Use the geometry's getVertices() method. Then do something like this:
var geom = feature.geometry;
var vertices = geom.getVertices():
for (var i=0, l=vertices.length; i<l; i++) {
var vertex = vertices[i];
alert(vertex.x + 'x' + vertex.y);
}
--
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: [email protected]
Web: www.GreenInfo.org www.MapsPortal.org
Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users