creating a shape file with pyshp - python-3.x

I have a question and hope someone can help me. I am trying to create a Shape File with Python3. This also works, but if I want to display the file in qgis 2.18.0, I can not zoom into the layer. The shapefile I have created with pyshp. The properties of the file indicate that there are no reference system units. How can I do this with Python? Best regards

Related

Can't use custom 3D model for visualization

I'm using the Modelica.Mechanics.MultiBody.Visualizers.FixedShape to render custom 3D models. I tried using .dxf and .stl in ASCII format but none works.
For .dxf I get no error but the model doesn't show up.
For .stl I get an error saying there is no plugin for that file type.
Please see the highlighted portions in the above image. OpenModelica supports adding an external shape using the format shapeType=modelica://<Modelica-name>/<relative-path-file-name>. Preferably create a Resources folder in the same level under the library folder and add dxf files in them. The following animation shows the same. Hope this helps!

The pictures (JPEG file) in BIM model are not shown in Forge Viewer

I create BIM model and place the pictures (JPEG file) on the model's wall using 'place decal' function and change the graphic display option to 'realistic'. The result is as picture 1.
After that, I upload model to Forge viewer. However the pictures are not shown.
My questions are:
1) Why are the pictures in my revit model not shown in Forge viewer? How can I fix this?
2) If I can fix and the pictures are shown, can I change or replace the pictures in Forge Viewer later?
Please help, thank you.
Re 1: it's possible that decals in Revit models are currently not supported by the Forge Model Derivative service. I will talk to the engineering team and update this answer when I hear back from them. In the meantime, double check whether the decal image is embedded in the Revit file or referenced externally. If the image is referenced, you would have to include it with the *.rvt file in a zip archive when uploading & translating it in Forge.
Re 2: modifying textures of existing objects in Forge Viewer is possible but more involved. It would be easier to create new geometry (for example, using SceneBuilder), and overlay the existing decals.

Object detection API xml file

I have tried and follow some tutorial about object detection API. I can see that most of us using LabelImg to create XML files for label the data. But I have a question that if inside the image we don't have the object so we not label and therefore missing an XML file?.
So we should remove that image which not contained any object or we still keep that image? And if keep how we can use this if no xml file? Because I think this image may provided negative info for model and help model not miss-detect the non-object.

.DDS to .PNG conversion in memory NodeJS

I've run into an issue where there are a collection of .dds(direct draw surface) files which I need to be able to display within an electron/react app. From what I know, a .dds file must be converted to a png/jpeg before being able to be rendered in an img tag. This must also be done completely in memory as I don't want to create additional files.
Here is what I've tried.
Preview-DDS: https://github.com/Jam3/preview-dds
DDS-Parser: https://github.com/Jam3/parse-dds
I noticed Preview-DDS has an option to convert .dds to .png yet I had no luck replicating it in memory. This isn't a subject im really knowledgable on so I'm hoping someone can get me pointed in the right direction!

visualize n-triple file python

Is there a module or tool in Python that will help me visualize RDF data?
I have a N-Triple file and want to load it in python and display the information in it visually. I am currently using RDFLib but it does not have a visualize function. Thank you.
The way I found was to convert my N-Triples file into a json file using (under input field - copied my entire n-triple file and pasted it there): http://rdf-translator.appspot.com/
Afterwards, I input the json-ld file content on this web to generate the visual graph: https://json-ld.org/playground/ -> Go at the bottom of the page and clicked on the Visualized button.
how the graph looks
Consider this tool I found very useful and user-friendly:
Ontology Visualization

Resources