Look at slide 14 - Intersections
Cheers,
> Appreciate any responses. Thanks right away...
From Twitter:
http://www.bostongis.com/PrinterFriendly.aspx?content_name=postgis_nearest_neighbor_generic
Appreciate any responses. Thanks right away...Regards,Megha
Here us an example code for the same. It draws a rough circle on google maps given center and radius.
http://code.thejeshgn.com/snippets/changeset/edb68565278d
--
Thanks,
Thejesh GN
http://thejeshgn.com
This is nexus one...
Here us an example code for the same. It draws a rough circle on google maps given center and radius.
> The need to draw such circles itself sounds a bit odd. Megha, what are you
> trying to visualize by giving such a circular buffer to each point? Density
> of schools is the most obvious thing that pops to my mind, and I feel
> something like that is better represented by a heatmap. All those
> overlapping circles is going to create a lot of clutter.
I can try and answer:
1. The Right to Education mandates a primary school within 2KM and a
secondary school within 3KM. One option is to draw circles at those
radii from each primary and secondary schools and to figure out where
gaps are.
2. We get a lot of enquiries of the type:
2.1 I live in X - what are the schools within 1/2/3/4/5 KM?
2.2. Donor Y says what are the schools within 1/2/3/4/5 KM of my
office that I can volunteer at.
In which case for 2, what we thought we could do is tale the point of
their house or office (either they can mark it on the map or we can
input a lat/lon and it returns those schools (points with lat/long)
within that area.
Maybe there's a better way of doing this?
I can try and answer:
1. The Right to Education mandates a primary school within 2KM and a
secondary school within 3KM. One option is to draw circles at those
radii from each primary and secondary schools and to figure out where
gaps are.
2. We get a lot of enquiries of the type:
2.1 I live in X - what are the schools within 1/2/3/4/5 KM?
2.2. Donor Y says what are the schools within 1/2/3/4/5 KM of my
office that I can volunteer at.
In which case for 2, what we thought we could do is tale the point of
their house or office (either they can mark it on the map or we can
input a lat/lon and it returns those schools (points with lat/long)
within that area.
Maybe there's a better way of doing this?
> It would be interesting to see how the 'as the crow flies' distance will
> compare to the actual path distance. In rural areas, i would expect quite a
> big difference between the two, especially if there are geographical
> features like a hill or river that come in the way.
Indeed but is there a way to calculate straight line vs. actual path
distance? Because the latter is more meaningful.
> In any case, a properly calibrated heatmap will do the trick quite nicely.
Cool. Thanks.
> Ah, so you draw the circle at the home/office location, makes sense. This is
> fairly simple to implement with a postgis query. Or it can get even simpler
> if you approximate the circular area to a square bounding box instead.
That's what I have been told. Apparently a square is easier than a
circle. Why is that?
On Tue, Sep 20, 2011 at 1:23 AM, Arun Ganesh <arung...@gmail.com> wrote:Indeed but is there a way to calculate straight line vs. actual path
> It would be interesting to see how the 'as the crow flies' distance will
> compare to the actual path distance. In rural areas, i would expect quite a
> big difference between the two, especially if there are geographical
> features like a hill or river that come in the way.
distance? Because the latter is more meaningful.
> In any case, a properly calibrated heatmap will do the trick quite nicely.Cool. Thanks.
That's what I have been told. Apparently a square is easier than a
> Ah, so you draw the circle at the home/office location, makes sense. This is
> fairly simple to implement with a postgis query. Or it can get even simpler
> if you approximate the circular area to a square bounding box instead.
circle. Why is that?
There are few examples to calculate both driving distance( Actual road distance) and straight line distance using google map API.
http://briancray.com/2009/06/23/calculate-driving-distance-google-maps-api/
Demo: http://briancray.com/wp-content/uploads/2009/04/distance.html
Straight distance using gmap api:
http://www.movable-type.co.uk/scripts/latlong.html
--On Tue, Sep 20, 2011 at 10:22 AM, Gautam John <gkj...@gmail.com> wrote:On Tue, Sep 20, 2011 at 1:23 AM, Arun Ganesh <arung...@gmail.com> wrote:Indeed but is there a way to calculate straight line vs. actual path
> It would be interesting to see how the 'as the crow flies' distance will
> compare to the actual path distance. In rural areas, i would expect quite a
> big difference between the two, especially if there are geographical
> features like a hill or river that come in the way.
distance? Because the latter is more meaningful.
Cool. Thanks.
> In any case, a properly calibrated heatmap will do the trick quite nicely.
That's what I have been told. Apparently a square is easier than a
> Ah, so you draw the circle at the home/office location, makes sense. This is
> fairly simple to implement with a postgis query. Or it can get even simpler
> if you approximate the circular area to a square bounding box instead.
circle. Why is that?
"Few people in this world who make mistakes in right direction."
On Tue, Sep 20, 2011 at 10:35 AM, Sailendra Mishra <biot...@gmail.com> wrote:There are few examples to calculate both driving distance( Actual road distance) and straight line distance using google map API.
http://briancray.com/2009/06/23/calculate-driving-distance-google-maps-api/
Demo: http://briancray.com/wp-content/uploads/2009/04/distance.html
Straight distance using gmap api:
http://www.movable-type.co.uk/scripts/latlong.htmlThis is good if you have two points. In this case we have one point and the distance, and we want all the points that will come in that range.Here is an example of how it would be done in grass: