Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spacialy enable hibernate-generic-dao #85

Open
GoogleCodeExporter opened this issue Dec 18, 2015 · 3 comments
Open

Spacialy enable hibernate-generic-dao #85

GoogleCodeExporter opened this issue Dec 18, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Is this relevant anymore?

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant