GPX for custom map - gpx

How to design a gpx file for a custom map?

A GPX file usually contains GPS waypoints, tracks or routes or any combination thereof. The gpx format itself has nothing to do with the representation of such data on a map.

GPX(the GPS Exchange Format) is a light-weight XML data format for the interchange of GPS data (waypoints, routes, and tracks) between applications and Web services on the Internet.
Click here to visit Online GPX file generator.
Click here to visit Custom Online GPX viewer.
To know more about GPX click here

Here is the schema documentation of GPX file. It will help you to create a valid file. It doesn't depend on the type of map.

Related

Is there any way to convert ..PNG image to .DWG file & how to get manifest file along with converted .DWG for drawing_package in azure maps indoor?

Prerequisites
To create indoor maps:
=>Make an Azure Maps account
=>Obtain a primary subscription key, also known as the primary key or the subscription key.
=>Create a Creator resource
=>Download the Sample Drawing package.(https://learn.microsoft.com/en-us/azure/azure-maps/tutorial-creator-indoor-maps)
Requirement: 1). I have sample .PNG image. I wanna convert this to .DWG and After conversion , I should be able to edit data in .DWG Is it possible ??
2). As you see above azure maps team provided some sample "Sample Drawing Package" for indoor map. This package you can download from the above link. If you download and open, there you can see 3 .dwg files (Basement.dwg,Ground.dwg, Level_2.dwg) along with manifest.json file.
So, How can I generate my own manifest.json file relates to converted
(.PNG to .DWG) file?
NOTE:
I have used https://www.reaconverter.com/convert/png_to_dwg.html and https://www.3ds.com/products-services/draftsight-cad-software/download-draftsight/?wockw=Draftsight for converting .png to .dwg
Sample png file : Floor03 Vertical.png,
After conversion dwg file : ConvertedFile.dwg
So, I request anyone suggest how can I get my own (conversion .png to .dwg) drawing_package along with manifest.json data ?
You will need to manually define your own manifest.json file. CAD tools are what architects use to design buildings. Another way to create a map is to use MS Graph. A script would have to be written to output the manifest.json, so that is something you would have to write.
If you would like to make a feature request please do it in https://feedback.azure.com/forums/909172-azure-maps and share here so others can vote.
The manifest.json is used to describe the DWG file for conversion to an indoor map. This file isn't automatically generated. Please see Drawing Requirements for additional details.

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

I need a web based document viewer in which i can show my tiff images

I need a web based document viewer, open sourced(free), in which i can show my tiff images.
I've gone through so many links however couldn't found any product which supports the tiff format, and can be used within my java code.
I have used Viewone-Pro and it completly fulfill all our needs, however, its not an open source product, so if any other product providing such features available, we would like to use that further.
Please suggest.

What is a 'Collada' scene graph?

What is a Collada scene graph?
Can I take a scene that I've downloaded from Google 3D warehouse and somehow convert it to a Collada scene graph?
Does the process somehow segment the scene?
COLLADA is the standard XML description language available for most if not all 3D applications. Google Earth is using COLLADA for the 3D models placed on to of the earth. Google Sketchup can import and export COLLADA models. Google Warehouse offer most if not all models in the COLLADA format. Google KMZ format is a ZIP file that contains COLLADA (.DAE) files(s), textures, and GIS placement information.
XML is a text based format, so you can look into a COLLADA document with any text editor, although a XML editor is highly recommended for large files, or for easier navigation. COLLADA is defined by its specification (in English and Japanese) and its Schema (.xsd) which enable COLLADA documents to be tested for validation by standard XML tools. Editors such as 'daenotepad' available on github will also provide help editing COLLADA documents based on the information stored in the schema.
A COLLADA document contains many different elements, one of the element is the < visual_scene > which contains the instance of geometries withing the the visual scene organized in a tree of locations. That is what is often referred incorrectly as the 'scene graph'. A scene graph is a run-time technology used by a lot of 3D rendering engines, which is similar to the but has many active run-time attributes such as 'switch' 'Level of detail' 'script' ... which COLLADA is not defining. COLLADA is merely defining the necessary data for enabling any applications, scene graph based or not, modeling tools or graphics engines to find the information they need a and communicate back and forth.

Render image or pdf stream from SQL database in asp.net

I have a table with documents saved some of them in pdf, some of them image.
I want to create a web app, to show the images (that can be either pdf, either jpg) in the same control.
I can manage to see pdf, if I set the Response.ContentType = "application/pdf" or image if I set "application/jpg". But the problem is that how can I get the file type, having only the stream saved into the database? Does it have the stream the file type information in it?
Thanks.
No, a stream does not have a content type associated with it. If you had the original filename, you could attempt to derive the content type from that, but it wouldn't be foolproof.
Many file formats have a series of "magic bytes" that allow you to detect what (might) be in the file. PDF, for example, begins with the bytes "%PDF" (note: I'm not an expert on PDF, and there may be situations where that is not true).
If you have no other option, you could attempt to parse the file using various libraries until you found one that worked (System.Drawing.Image.FromStream(), iTextSharp, etc).

Resources