[open-location-code] Re: I want to cover a specific area using olc.

2018-09-09 Thread Nikhil VJ
Hi, this would make an interesting plugin in QGIS: Take a polygon shapefile 
and produce a "mosaic" of pluscodes.

There is a QGIS plugin that works with plus 
codes: https://github.com/NationalSecurityAgency/qgis-latlontools-plugin 

It seems to only do points for now.

-Nikhil VJ
Pune, India

-- 
Public site: http://www.openlocationcode.com/
Github project: https://github.com/google/open-location-code
Demo site: http://plus.codes/
--- 
You received this message because you are subscribed to the Google Groups "Plus 
Codes Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-location-code+unsubscr...@googlegroups.com.
To post to this group, send an email to open-location-code@googlegroups.com.
Visit this group at https://groups.google.com/group/open-location-code.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/open-location-code/45b00dc0-8a4a-45de-9607-f76f048203d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[open-location-code] Re: I want to cover a specific area using olc.

2018-01-27 Thread Andreas B
Of course! :)

Dividing is the easy part:

- If you have some plus code (for example of length 8, *66FF88XX+*), you 
can replace pairs of characters with '0' to get another plus code for a 
larger area that contains the original area: *66FF8800+*, *66FF+*, 
*6600+*

- Likewise, if you have a plus code for a larger area (say, *66FF8800+*), 
you can generate the codes for all 20x20 sub-blocks simply by iterating 
through all possible pairs of code characters (*"23456789CFGHJMPQRVWX"*) 
and replacing the '0' characters with that:
*66FF88**22+*
*66FF88**23+*
*66FF88**24+*
*...*
*66FF88**2X+*
*66FF88**32+*
*...*
*66FF88**XX+*

Now, finding out which of these code areas overlap with your feature can be 
a bit more tricky, depending on how you've defined your feature. For purely 
geometrical definitions of the feature (like origin/radius of a circle, or 
polygon), the best approach might be to look at various intersection 
algorithms. For other, more arbitrary definitions (like "surface area of 
$city"), other approaches might work better. In any case, the important 
thing to keep in mind here is the fact that the area of any plus code is 
simply a box aligned with the latitude/longitude grid, with just four 
important values (minimum/maximum latitude, minimum/maximum longitude).

On Saturday, January 27, 2018 at 1:33:26 PM UTC+1, HANUMAN ACHOLIA wrote:
>
> Can you please explain this in details. I am new this area.
> If i choose 6 code length then i will cover 5500 meter and its give me 
> only one olc string.
> 1. How i can find and list all olc codes which have at least a bit of your 
> feature.?
> 2. How to divide them into 20*20 blocks and check that contains the 
> feature or not ?
>
> Any help appreciated :) 
>

-- 
Public site: http://www.openlocationcode.com/
Github project: https://github.com/google/open-location-code
Demo site: http://plus.codes/
--- 
You received this message because you are subscribed to the Google Groups 
"open-location-code" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-location-code+unsubscr...@googlegroups.com.
To post to this group, send an email to open-location-code@googlegroups.com.
Visit this group at https://groups.google.com/group/open-location-code.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/open-location-code/aac0165d-c102-4a4f-a124-e6a9ec6d7ac7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[open-location-code] Re: I want to cover a specific area using olc.

2018-01-27 Thread HANUMAN ACHOLIA
Can you please explain this in details. I am new this area.
If i choose 6 code length then i will cover 5500 meter and its give me only one 
olc string.
1. How i can find and list all olc codes which have at least a bit of your 
feature.?
2. How to divide them into 20*20 blocks and check that contains the feature or 
not ?

Any help appreciated :) 

-- 
Public site: http://www.openlocationcode.com/
Github project: https://github.com/google/open-location-code
Demo site: http://plus.codes/
--- 
You received this message because you are subscribed to the Google Groups 
"open-location-code" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-location-code+unsubscr...@googlegroups.com.
To post to this group, send an email to open-location-code@googlegroups.com.
Visit this group at https://groups.google.com/group/open-location-code.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/open-location-code/0739426c-4753-49c9-88e9-ebc6b34f8416%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.