Code Monkey home page Code Monkey logo

Comments (2)

davidmoten avatar davidmoten commented on August 24, 2024

Not at the moment, but I'll think about it. Do you have any suggestions?

On Sat, 9 Apr 2016 01:45 Nath5 [email protected] wrote:

Hello,

I am trying to serialize my RTree of type using the following code:

OutputStream os = new FileOutputStream(new File("test.tree"));
Serializer<Fence, Polygon> serializer = Serializers.flatBuffers().javaIo();
serializer.write(tree, os);

I keep getting the following error:

java.lang.RuntimeException: unexpected
at
com.github.davidmoten.rtree.fbs.FlatBuffersHelper.addEntries(FlatBuffersHelper.java:60)
at
com.github.davidmoten.rtree.fbs.SerializerFlatBuffers.addNode(SerializerFlatBuffers.java:96)
at
com.github.davidmoten.rtree.fbs.SerializerFlatBuffers.write(SerializerFlatBuffers.java:73)
at CreateDataTests.main(CreateDataTests.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

It looks like the addEntries method of FlatBuffersHelper can only process
the built in geometries. Is there a way around this?

Thanks


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#44

from rtree.

Nath5 avatar Nath5 commented on August 24, 2024

I will have to take a deeper look into how you are doing the serialization. Just wanted to make sure there wasn't something simple I was missing.

from rtree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.