1
vote
2answers
47 views

Problem - ST_AsGeoJSON return text with accolade

I am saving a result of ST_AsGeoJSON(..) into csv file. But the results I got can't be interrupted as an object later on. How can I polish and delete the accolades that I don't need. ...
2
votes
2answers
749 views

How do I get that polygon from Javascript ArcGIS API?

I would like to have a user draw a Polygon (or Line) onto a web map with the Javascript ArcGIS API drawing tools. For the life of me I can't figure out how to pull that polygon from the client and get ...
4
votes
2answers
2k views

How to calculate distance between two points with esri.geometry?

The function http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#namespace_geometry/esri.geometry.getLength should calculate distances between points. When I am trying to calculate distance ...
0
votes
1answer
384 views

how to find vertices for a geometry in OpenLayers

I am having a LineString, where I need to find the vertices logically and save those vertices. Can anyone help me out. Or else how below can help me. OpenLayers.Geometry.LineString = ...
2
votes
1answer
1k views

How to make a predetermined Polygon (Circle) From 4 Coordinates, The Radius and Center Longitude and Latitude in Openlayers

I know how to make a predetermined Polygon in Openlayers (see below). Please have a look at http://studio.netnrg.co.za/dev/rnd/blake.loizides/openlayers var feature2 = new ...
1
vote
2answers
2k views

How to initialize a WFS Layer?

Here is the code block (the layers are stored in Oracle database): var saveStrategy = new OpenLayers.Strategy.Save(); var adresspt_wfs = new OpenLayers.Layer.Vector("Address points WFS", ...
2
votes
1answer
1k views

How to get the radius of a “circle” in Openlayers

How do you get the radius of a circle in openlayers? I have searched quite a bit and cannot find any resource for this. please help. Here is my code but I want the radius or circumference of the ...
2
votes
1answer
231 views

LinearRing getVertices implementation

I'm fairly new to OpenLayers so please excuse me if this is an ignorant question. I'm curious why the LinearRing getVertices implementation getVertices: function(nodes) { return (nodes === true) ...