<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Full Week 6 report for Neo4j Spatial Cypher project is available here: <a href="https://github.com/johnymontana/neo4j/wiki/week6">https://github.com/johnymontana/neo4j/wiki/week6</a><div><br></div><div><br></div><div>What did I get done with week?</div><div><span style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); font-family: Helvetica, arial, freesans, clean, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; line-height: 25.5px;"><br></span></div><div><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;">* Added RegisteredLayerType class as provided by Craig. This allows for creation of Spatial Layer by specifying only a string, rather than dealing with the more complex Java API for creating Spatial Layers (and specifying a GeometryEncoder class). (Initially only SimplePointLayer type)</span></div><div><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;"><br></span></div><div><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;"> *Implemented</span><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;"> spatialCreateLayer</span><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;"> </span><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;">function. This function takes two strings as arguments, the layer name and a string specifying the layer type (as described above).</span></div><div><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;"><br></span></div><div><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;">* Implemented</span><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;"> spatialAddNode</span><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;"> </span><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;">function. This function takes a Node and the layer label and adds the Node to that Spatial Layer.</span></div><div><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;"><br></span></div><div><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;">* Added tests to test these new functions and RegisteredLayerType method of creating Spatial Layer with Java API.</span></div><div><span style="background-color: rgb(255, 255, 255); line-height: 25.5px;"><br></span></div><div><span style="background-color: rgb(255, 255, 255);"><span style="line-height: 25.5px;">This allows for Cypher queries like this</span><span style="line-height: 25.5px;"> (taken from one of the tests I added this week): </span></span></div><div><br></div><div>CREATE (n1:SomeLayer) WITH spatialCreateLayer("SomeLayer","SimplePoint") as layer</div><div>CREATE (n2:SomeLayer {lat: 34.221, lon: 46.221, name: "node2"}) WITH spatialAddNode(n2, layer) as node2, layer</div><div>CREATE (n3:SomeLayer {lat: 34.221, lon: 46.221, name: "node3"}) WITH spatialAddNode(n3, layer) as node3, layer, n3</div><div>CREATE (n4:SomeLayer {lat: 21.341, lon: 96.122, name: "node4"}) WITH spatialAddNode(n4, layer) as node4, layer, n3</div><div>MATCH (n:SomeLayer) WHERE Intersects(n, n3) RETURN n.name as n</div><div>// n -> "node2"</div><div>// n -> "node3"</div><div><div><br></div></div><div><br></div><div>What will I accomplish next week?</div><div><br></div><div>* Update layer types in RegisteredLayerType class to allow for creation of layers of different types (other than just SimplePointLayer)</div><div>* <span style="background-color: rgb(255, 255, 255); font-family: Helvetica, arial, freesans, clean, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; line-height: 25.5px;">Review PostGIS functionality with comparison of subset provided in first version of Spatial Cypher</span></div><div><br></div><div><br></div><div>Am I blocked on anything?</div><div><br></div><div>No.</div><div><br></div><div><br></div><div>Will Lyon</div><div><a href="http://lyonwj.com">lyonwj.com</a></div><div>@lyonwj</div></body></html>