Well-known binary (WKB) to decimal latitude/longitude - algorithm

There is a table in a geoDB with fields in Well-known binary (WKB) data format. I would like to get latitude and longitude from this binary data in normal decimal format independent from DB (with Java for example). Does any library or code example exist for such transformation?
Thanks in advance.

Not sure if you found a solution yet, but I found a free Java library. Info Here and download page Here.
From what I can tell it supports WKB and WKT as well as a few others.
Enjoy!

Select the data from the geometry field using the AsText(Geometry) function. This gives you the geometry object in a textural representations. If you have to draw on a web page use AsSVG(Geometry) and you get the data as SVG

Related

Difference between Tensorfloat and ImageFeatureValue

When using the Windows-Machine-Learning library, the input and output to the onnx models is often either TensorFloat or ImageFeatureValue format.
My question: What is the difference between these? It seems like I am able to change the form of the input in the automatically created model.cs file after onnx import (for body pose detection) from TensorFloat to ImageFeatureValue and the code still runs. This makes it e.g. easier to work with videoframes, since I can then create my input via ImageFeatureValue.CreateFromVideoFrame(frame).
Is there a reason why this might lead to problems and what are the differences between these when using videoframes as input, I don't see it from the documentation? Or why does the model.cs script create a TensorFloat instead of an ImageFeatureValue in the first place anyway if the input is a videoframe?
Found the answer here.
If Windows ML does not support your model's color format or pixel range, then you can implement conversions and tensorization. You'll create an NCHW four-dimensional tensor for 32-bit floats for your input value. See the Custom Tensorization Sample for an example of how to do this.

D3 Hierarchical Edge Bundling

I'm currently looking at the following example https://bl.ocks.org/mbostock/7607999. The json file which the chart is getting its data from is in the following format {"name":"flare.analytics.cluster.MergeEdge","size":743,"imports":[]}];
Instead of the above format, is it possible to have it as
{"imports":[],"name":"flare.analytics.cluster.MergeEdge","size":743};
Many thanks in advance for taking the time to read this.
Basically, D3.js get json data via your obj.name, so that's no matter how your json data sorting, I try a demo modify
{"name":"flare.vis.data.render.ArrowType", "size":698,"imports":[]}
to
{"size":698,"imports":[],"name":"flare.vis.data.render.ArrowType"}
and the graph still show out the same.

Forward Kinematics Skeleton Programming

I am putting together a project where I need to be able to source outside data as a means of inputting skeleton joint positions into Maya. Basically I have a spreadsheet of sequential joint positions for the skeleton which I would like to load into Maya and then link to the skin. Does anyone know a way to upload or reference these positions (as FK into Maya)?
Probably the easiest thing to do is to convert your spreadsheet data to atom format
Atom is a json based format for exchanging animation data and, since its JSON based you should be able to concoct a CSV to ATOM translator using Python's built in csv and json modules.

Cubism with genomic data (or non-timeseries data)

I'd like to hear your thoughts on what would it take to make cubism work with non timeseries data, concretely, genomic data.
These type of data has a locus (a chromosome and coordinates within that chromosome) instead of a timestamp:
chrm1 145678123 value
chrm12 45345 value
chrmX 4535 value
....
What option do you think is best, hacking cubism's core to allow for these type of data (or any type of data for that matter) or spawning a new project all together?
UPDATE: I decided to implement a modified version of cubism for DNA. I call it DNAism and you can find it here. Take a look and let me know what you think.
-drd
Cubism is probably not the right kind of library for this task. You're going to have to modify the library in a pretty significant way. Instead of doing that I'd recommend you use the d3.horizon plugin so that you can gain a lot more control by creating custom scales.
Hope this answers your question.

image data representation

I wanted to know if I would be able to decompress a png with png++ and be able to get an access to the pixels with a file pointer and store them in a 2d or a 3d array and represent them in a hex format as the final result like a hex editor would. If not could anybody please suggest me a way I can do the same .
Intended language : c++
platform : linux.
Thanks in advance .
use fread to get the values but you should know how the header is stored how many bytes of header length of data part start and end; i recommend start looking into this wiki page and try to read values using fread http://en.wikipedia.org/wiki/Portable_Network_Graphics

Resources