Hi Arnaud,

If you are using the Java API, then there are several ways to find objects
in the index. It sounds like you want something like 'find all Geometries
that are contained within this area'? Or perhaps intersecting an area? Can
you explain in more detail what your actual query is, then I can suggest
sample code that will answer that query?

Some places to look in the test code that might answer your question:

   - Simple index query with a command like (extracted from
   TestSpatial.java):
   Geometry testArea = layer.getGeometryFactory()........ // make your
   geometry here
   SearchIntersect searchQuery = new SearchIntersect(layer, testArea);
   SearchRecords results = index.search(searchQuery);
   //now iterate over the results
   - Or try the GeoPipeline (extracted from GeoPipesTest.java):
   GeoPipeline.start( osmLayer ).windowIntersectionFilter( 10, 40, 20,
   56.0583531 ).count()

The test code is a great place for finding out how to do things. There are
many examples. Of course, if you provide your actual query, I could provide
an example that really matches.

Regards, Craig


On Wed, Aug 20, 2014 at 5:29 PM, Arnaud DRAZEK <adra...@gmail.com> wrote:

> Hello Jim,
>
> Thanks a lot for answering.
> My shapefile (that I import with the ShapeFileImporter) contains the
> boundaries of a french district. I import it in a new layer.
> I want know search for the geo nodes based on the spatial plugin which are
> contained in this area : I guess with the geopipeline ? But for that I need
> a Geometry object.
>
> I specify that I work with java and the embedded graph way.
>
> Regards,
>
> Arnaud
>
>
> On Wed, Aug 20, 2014 at 4:54 PM, Jim Biard <jimbi...@gmail.com> wrote:
>
>> Arnaud,
>>
>> If you are using the Neo4j Spatial plugin, geometries will be computed
>> from the shapes if you use the shape file importer. They will be in the
>> Well-Known Binary (WKB) format, but they will be present. Are you looking
>> for something more or different than this?
>>
>> Grace and peace,
>>
>> Jim
>>
>> On Wednesday, August 20, 2014 9:11:11 AM UTC-4, Arnaud Drazek wrote:
>>>
>>> Hello neo4jier !
>>>
>>> I need to import a Shapefile (easy !) and then I need to get the
>>> geometries from this shapefile (much difficult).
>>> Did you know how I could transform a shapefile into geometry in order to
>>> search geo nodes from a custom layer living into this geometries ?
>>>
>>> I don't know if i'm really clear ..
>>>
>>> Thanks for your help,
>>>
>>> Regards,
>>>
>>> Arnaud
>>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Neo4j" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/neo4j/OZfC4qQ7nso/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> neo4j+unsubscr...@googlegroups.com.
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to neo4j+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to