Hi,
I succeed on creating an IntelliJ project for H2, then it is easier to me
to to dev in H2.
I have some issues with h2 java object field, after serialization the
object size overhead is too high. I think about extending the OTHER type
this way :
CREATE DOMAIN Geometry AS OTHER('org.h2spatial.ValueGeometry.FromBytes');
The optional parameter is a static method that return a class that extends
'org.h2.value.Value' in order to convert byte[] array into the appropriate
field object.
What do you think about this solution ?
-Nicolas
Le mardi 16 avril 2013 17:13:06 UTC+2, Nicolas Fortin (OrbisGIS) a écrit :
>
> Hi,
>
> I'm a team member of GIS working group at IRSTV. My next task is to
> cleanly incorporate spatial analysis into or onto H2. Our project
> repository is here https://github.com/irstv/H2GIS.
>
> Currently I'm trying to learn as most as I can of H2 and all other H2
> spatial projects.
>
> Using custom datatype and functions through "CREATE DOMAIN" and "CREATE
> ALIAS" leads to call theses functions to all new local H2 DataBase and
> existing H2 DataBase connection with admin rights..
>
> I think about creating a custom Driver for spatial
> ex:"org.h2spatial.Driver" then catch admin connection on local h2 DataBase,
> but it must not be a great idea ?
>
> You were talking about MVStore and custom data type (de)serialisation, but
> I don't find samples, and I don't find a way to feed a Class or object
> factory. But anyway it seems that this storage is not yet used in H2. May
> be I should work on the snapshot release ?
>
> Final words are, what do you think is the best strategy ? Working with you
> on the trunk to incorporate h2 spatial in native or continue to stick with
> version 1.3.171 and build a overloaded Driver for spatial purposes ?
>
> Thank you for your support
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.