minchul / hibernate-generic-dao

Automatically exported from code.google.com/p/hibernate-generic-dao
0 stars 0 forks source link

Spacialy enable hibernate-generic-dao #85

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Dear,

I made an evolution in your project in order to realize spatial request (with 
hibernate-spatial project)

What is your mind about this change,
What about integrate this functionality to your project ? 

Find attached modified files.

Example of use :

    String wktFilter = "POLYGON ((10 -6, 10 -5, 11.5 -5, 11.5 -6, 10 -6))";
    WKTReader fromText = new WKTReader();
    Geometry spatialFilter = null;
    try {
      spatialFilter = fromText.read(wktFilter);
    }
    catch (ParseException e) {
      throw new RuntimeException("Not a WKT String:" + wktFilter);
    }
    spatialFilter.setSRID(WGS84_SRID);

 Filter filter = new Filter();
    filter.setOperator(Filter.OP_INTERSECT);
    filter.setProperty("location");
    filter.setValue(spatialFilter);

--

And so on ...

Best regards,

Original issue reported on code.google.com by jmarc.mo...@gmail.com on 24 Jan 2011 at 5:39

Attachments:

GoogleCodeExporter commented 8 years ago
Is this relevant anymore?

Original comment by pablit...@gmail.com on 14 Jun 2014 at 7:12

GoogleCodeExporter commented 8 years ago
Yes is it still relevant and used in my project.

Original comment by jmarc.mo...@gmail.com on 20 Jun 2014 at 7:59

GoogleCodeExporter commented 8 years ago
It would be great if you provide a patch againts the latest version of the 
code. Otherwise it is very dificult to see your changes jmarc.moras.

Original comment by pablit...@gmail.com on 9 Jul 2014 at 11:08