OSM Importer of Neo4j with LayerNodeIndex - neo4j

I have been playing with neo4j for a few months now (not so thoroughly, though!).
I have seen the examples of OSMImporter in test cases, and also how to make a WITHIN_DISTANCE_QUERY ( http://structr.org/blog//299fbc8d5d854c78a530793e1555ae77 )
I was wondering, how can someone integrate the above?
Should I modify the source of OSMImporter?
Cheers

So, you don't need the OSM importer if you are not using OSM files. Just add points from your domain to a layer, just like https://github.com/neo4j/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/LayersTest.java#L57

Related

how to draw custom lands for OSM

I would like to know how to draw custom lands for an Openstreetmap project. My final purpose is to reproduce a fantasy map with OSM technology.
It's not clear to me how I can generate lands data (continents, islands and so on).
I know is it possible because the project https://opengeofiction.net/ do basically the same thing.
I am a new OSM user and I am moving the firsts steps with GIS software.
I have built my own tile server on the cloud (Ubuntu 18-04) following different tutorials.
I installed JOSM and QGIS to edit maps, but I feel a bit lost with all that options and features.
I already posted questions in openstreetmap forum but I got no response.
I am sure I need only a little hint to get started.
My expected result is to be able to draw a little "imaginary" island.
On a small scale you can use JOSM without OSM download/upload, and just save your edited data locally as an OSM XML file.
That again can then be fed into the different renderers as source file.
On a large scale you would end up creating a copy of the whole OSM stack, serving your own data, like https://wiki.openstreetmap.org/wiki/OpenGeofiction does

Dart / AngularDart - how to create diagram/flowchart?

Could someone please point me to some tutorial or provide an example code snippet about how to create a diagram/flowchart in Dart? The simple scenario would be to have couple of elements connectable to each other and possibility to read which one is connected where. There are tons of JS examples but for learning purposes I would like to go the Dart way :)
I've been using a wrapper around an JS GraphViz library for a number of projects.
See https://pub.dartlang.org/packages/pubviz - Here's the output: http://kevmoo.github.io/pubviz/
Also https://pub.dartlang.org/packages/gviz
It's not super interactive or anything, but it's useful when you just want to visualize a graph structure.

Q: Creating and running own planet map with openlayer

I would like to create a osm like map for a fantasy planet.
Which already brings me to my questions:
Can I use openlayers-3 for a map that is not the map of the earth?
How do I create my own tiles for this planet? Is there a guide that you maybe can recommend?
Thank you very much!
Well, you'd have to design your map first, and then encode it into a format that OpenLayers uses, such as a KML Polgon file, PostGIS database, SHP Shapefile etc.
Tools like QGIS would possibly be a good place to start building your map, adding details etc. Then you can export them to one of the supported formats and point OpenLayers at it to be rendered.
N.B. NEVER done this, so a lot of the above is conjecture.

Custom Node images for neo4j visualization?

I need an open-source solution for visualizing a neo4j graph in a web application. I'm looking at alchemy.js, and it seems pretty cool. What I'd ultimately like to do is use icons for different node types, instead of just different colors. Is there a way to do that with alchemy.js? If so, how? If not, is there a different open-source toolkit that would enable this? Obviously, KeyLines does it, but it's far from open-source.
Thanks!
You can also check out linkurious.js which is open source, based on sigma.js and afaik has customizable images.

In a GeoJson file, how do I combine features (states) into a single feature (region)

I'm drawing a map of the US with D3. Problem is the design on the project has changed and I need to draw regions as a whole instead of the individual states. I can't for the life of me find any good info on how to combine state features into a single region feature.
I'm assuming the gdal is the right tool for the job, but I can't seem to find how to do this.
The tutorial Mike T posted is a great resource, but it didn't solve the specific problem I had.
What I finally discovered is that when you're using topojson there is a topojson.merge method to combine multiple paths into a single path.
Follow this tutorial to convert a Shapefile into GeoJSON, then to TopoJSON, then to a D3 project. There is even an example of US (counties?) included with the project.

Resources