Menu

#190 Postgres GeometryType support for org.postgis.PGgeometry

(future)
pending
None
5
2016-10-10
2015-08-07
No

Postgres GeometryType does not currently support org.postgis.PGgeometry. It first treats is as other and uses a org.dbunit.ext.postgresql.GeometryType whcich fails the typecase as the org.postgis.PGgeometry fails class loading as it then tries to treat is as a string.

The solution would be to add the org.postgis-jdbc dependency in the pom and use the same logic to set the values as the other Object types (such as InetType).

One downside might be the inclusion of the additional dependency BUT this will allow full support of working with postgis extension to postgres in the future

Discussion

  • Martin Gollogly

    Martin Gollogly - 2015-08-07

    There may be and issue with my formatting of the POM but essentically I've just added in the postgis dependency. I'll check if there are and format settings for the POM that can match

     
  • Jeff Jensen

    Jeff Jensen - 2015-09-07
    • status: open --> pending
     
  • enji

    enji - 2016-06-08

    Hello,

    I'm facing exactly the same problem, do you have an idea of when this will be fixed ?

    dbunit 2.5.2
    hibernate 5.1.0.Final
    postgres 9.5
    postgis 2.2

    Thank you

     
  • Jeff Jensen

    Jeff Jensen - 2016-06-08

    I set this feature request to pending as it was waiting for Martin's next steps per his comments. Anyone can make the merge request for this, using his attached files as starters. Ensure no tests fail, ensure clean diffs/contain only the needed changes and separate commits for any full file reformat only, etc.

    Enji, if you make this change then you can verify it works with your product's tests.

     
  • Martin Gollogly

    Martin Gollogly - 2016-10-10

    Hi there, I have not had much time to look at this, If no-one has managed to merge this, I'm happy to review this and diff the changes with a new PR.

     
  • Jeff Jensen

    Jeff Jensen - 2016-10-10

    Sounds good Martin, thank you!

     

Log in to post a comment.