Some examples on WikiBrain spatial

44 views
Skip to first unread message

Olga Troškina

unread,
Dec 26, 2014, 2:27:09 AM12/26/14
to wiki...@googlegroups.com
Hello!
Cam anybody provide some smple basic examples on WikiBrain spatial query opportunities, especially I am interested in spatial buffering, convex hulls and nearest object (or links to them). And I am interested in what can be done more using WB for spatial analysis? Any help  would be appretiated.

Shilad Sen

unread,
Dec 27, 2014, 12:17:02 AM12/27/14
to Olga Troškina, wiki...@googlegroups.com
Olga,

Interesting timing... WikiBrain's spatial features are under heavy development at the moment.

Right now we essentially provide mappings from Wikipedia articles to points (for all spatial articles), and polygons (for states and countries). We also have some basic utilities for a variety of "distance metrics:" geodetic distance, number of countries, states away, a topology-based distance metric.

All these features are (like WikiBrain) implemented in Java and we have ties in and out of GeoTools and JTS. I think JTS provides most of the features you are asking for.

All of this is under active development at the moment. I'm happy to answer more specific questions. I'm not an expert in these GIS features, but I'm doing my best to come up to speed quickly!

-Shilad



On Fri, Dec 26, 2014 at 1:27 AM, Olga Troškina <olga.t...@gmail.com> wrote:
Hello!
Cam anybody provide some smple basic examples on WikiBrain spatial query opportunities, especially I am interested in spatial buffering, convex hulls and nearest object (or links to them). And I am interested in what can be done more using WB for spatial analysis? Any help  would be appretiated.

--
You received this message because you are subscribed to the Google Groups "wikibrain" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wikibrain+...@googlegroups.com.
To post to this group, send email to wiki...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wikibrain/c2fba3fd-d7db-4c80-a34b-696092c7bf96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Shilad W. Sen
Associate Professor
Mathematics, Statistics, and Computer Science Dept.
Macalester College
ss...@macalester.edu

Olga Troškina

unread,
Dec 27, 2014, 4:16:41 PM12/27/14
to wiki...@googlegroups.com, olga.t...@gmail.com
Thank you  for answer!
I just started to write small essay for my "Spatial analysis" course in university and decided to write about WikiBrain as it is quite interesting and different from what we study in university and I thought that there are already some spatial unions, intersections and so on in WikiBrain.
I just wanted to write about more complex operation than those "distance metrics" operations than those I found in WB cookbook.

Could you tell more how GeoTools and JTS are connected with WB spatial? Does those distance metrics functions also use some JTS algorithms? And for example where could be found an algorithm behind this example https://github.com/shilad/wikibrain/blob/master/wikibrain-spatial/src/main/java/org/wikibrain/spatial/cookbook/SpatialContainmentExample.java . I would be happy if you provide some more infrmation about spatial WikiBrain, because I'm not an expert in Java :)

-Olga

суббота, 27 декабря 2014 г., 7:17:02 UTC+2 пользователь Shilad Sen написал:

Shilad Sen

unread,
Dec 29, 2014, 12:12:03 AM12/29/14
to wiki...@googlegroups.com
Olga,

WikIBrain loads layers associated with Wikipedia concepts into PostGIS. It supports fast neighborhood and containment queries for Wikipedia concepts, including several novel distance metrics (e.g. number of states away, etc.). 

You can perform other operations by tapping into the JTS topology library (http://www.vividsolutions.com/jts/JTSHome.htm). All WikiBrain geometric objects are stored in memory as a JTS Geometry (either a point or polygon). WikiBrain exposes JTS geometries, so developers can use JTS for things like intersection, containment, merging, closest points, convex hulls, etc.

Like I said this is all actively under development right now. You can find the most recent code in the develop branch. I'd take a look at SpatialDataDao (https://github.com/shilad/wikibrain/blob/develop/wikibrain-spatial/src/main/java/org/wikibrain/spatial/dao/SpatialDataDao.java) and the distance metrics (https://github.com/shilad/wikibrain/tree/develop/wikibrain-spatial/src/main/java/org/wikibrain/spatial/distance) for an idea of what's possible.

This is all still a little rough, but it's coming together quickly. I'd be happy to hear any feedback you have on how this compares to other frameworks. What is it obviously missing, or what seems confusing?

-Shilad





For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages