Extracting parts of an MBTiles file into separate files using custom polygons - extract

I have a planet.mbtiles files and I need to create custom .mbtiles extracts using custom polygon borders and not any form of bounding box. The only two tools that I can find is mbtiles-extracts and tilelive.
mbtiles-extracts:
Seems to me the most promising i.t.o. what I need to do, but I cannot get it installed. Probably because I am a newb at nmp and don't quite get the errors when trying to install.
tilelive:
Seems to me the most trust-worthy and supported and would rather use it, but it seems I can only do a bounding box extract, but as I said, I need a polygon extract of the planet.mbtiles file.
So my questions are as follows:
Which one of the two should I use to complete the task, and depending on which one to use (probably tilelive), how do I do an extract using custom polygons instead of bounding boxes?
Is there any other way to accomplish my needs? can you please provide suggestions?

Related

Labview using output multiple times

I have a case structure and inside it I have a Boolean output to a LED. I want to use the LED again in another case, but whenever I try to copy the output it just creates a new one with a new LED. Is there a way to have them go to the same LED? I will also need to do this with the inputs, but I am guessing that it is a similar procedure.I cant wire it to the outside, because I need it to change it while it is inside some other loops. An image of the program is below. Sorry that it is messy this is my first code. Thank you for your help.
Current Use of LED:
Where I want to add it:
If it is not possible please let me know as well.
What you need to do is use local variables. If you right-click on the LEDs and select Create>Local Variable it will allow you to write to them in more than one place.
But Caution: If you do this a lot your code will get very difficult to work with. In this case, you have no choice since you can't place them in one place where they can wired from both sources but I always recommend trying to wire them first if you can.
What jamesmc86 says is correct.
However, to give you a complete overview, and if you want to use a tool that has already a built-in error terminal, you could use property nodes. In this case, you should select Value property node.
Check them out, they are very powerful and allow you to change all properties of a control/indicator.

How to get information about routes between elements using Viewer API

I'm trying to create web application using autodesk forge API, and want to get output of information about routes between elements. In brief, the application outputs the shortest path between two elements when they are selected.
I tried it using getIsolated() and isolate() but I can't understand what the "isolated" state is, so I can't.
please teach me the how to solve this challenge.
I'm sorry for my bad English.
Isolation is a way to highlight certain objects in the scene by making other objects "ghosted" (semitransparent) or hidden completely. If you want to actually select objects, use the .select() and .getSelection() methods.
Forge Viewer does not provide any path planning unfortunately. It can give you the bounding boxes of all objects in the scene (here's an example) but you would have to find the path among them yourself.

How to do an evaluation within Sparx EA's RTF generator?

I'm using Sparx EA (version 9.3) and am looking to use the RTF generator to get some info out of our repository. I would like to conditionally add and format some data, as well as show some calculated data. (i.e. say word length, number of letters in a field, etc)
How on earth can this be done? I just can't seem to see where or how this could be achieved.
Ended up looking at the problem from another direction. Using a script to iterate through the object and through the script writing evaluations into the "CreateDocumentGenerator". Messy but is getting the outcome.

Convert and add obj model to Web gl scene - without three.js

I want someone to tell me the steps to follow to convert an .obj object to json object so I can add it to my web gl scene like this : http://learningwebgl.com/blog/?p=1658
I ve tried everything. Python script, online converters etc. Every one has its flaws and I can't fix them.
I don't use the three.js lib.
Why can't you fix them?
There is no simple answer for how. The format for .obj is documented here. Read it, pull the data out you want in a format you design.
There's an infinite number of ways to convert it and an infinite number of ways to store the data. Maybe you'd like to read out the data and store the vertices in JavaScript arrays. Maybe you'd like to store them in binary which you download with XHR. Maybe you'd like to apply lossy compression to them so they download faster. Maybe you'd like to split the vertices when they reach some limit. Maybe you'd like to throw away texture coordinates because your app doesn't need them. Maybe you'd like to read higher order definitions and tessellate them into triangles. Maybe you'd like to read only some of the material parameters because you don't support all of them. Maybe you'd like to split the vertices by materials so you can more easily handle geometries with multiple materials. Maybe you'd like to reindex them so you can use gl.drawElements or maybe you'd like to flatten them so you can use gl.drawArrays.
The question you're asking is far too broad.

neo4j graph to JSON

I'm considering different options to use Neo4J graph and display it all on the web, at the moment I am considering a Java based reader of the database that creates JSON output for display by the web.
Is JSON suitable for display tree-like structures? In my case I have a parent-child(s) style organisation chart.
Could you give me an example if this is possible. Thanks.
Yes. Use JSON to pass over all the geometry: lists of nodes and edges, location and sizes of nodes, spline data for edges, etc. Convert all the data to an SVG DOM, which can be done dynamically. (Hint for HTML 4: make sure you use the SVG namespace in CreateElement.) The real trick, more than anything, is to do all the calculations before the data hits the browser. Simple calculations work fine in JavaScript, but anything complicated is best done elsewhere.
No example, unfortunately. The code I wrote is not available to the public.