I was following the tutorial on how to display postgis raster data through
geoserver using imagemosaic-jdbc plugin (
http://docs.geoserver.org/latest/en/user/tutorials/imagemosaic-jdbc/imagemosaic-jdbc_tutorial.html
).
I was using postgis 2.0 and geoserver 2.4-beta with plugins of GeoTools
10-beta.
I figured out that there was an error in imagemosaic-jdbc java code for it
used older postgis functions, I spotted 2 of them:
- geomfromwkb in Import.java (located
at org/geotools/gce/imagemosaic/jdbc/Import.java)
- asbinary in JDBCAccessPostGis.java (located at
org/geotools/gce/imagemosaic/jdbc/JDBCAccessPostGis.java)
To solve the issue, I replaced both geomfromwkb and asbinary with
st_geomfromwkb and st_asbinary, recompiled gt-imagemosaic-jdbc-10-beta.jar
and copied the jar in geoserver lib folder.
I think there might be some other modules concerned by this compatibility.
So it might be consistent to make the modification for final 10 version.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users