This article details how to create an HSPC service and load the data from that service in LuciadRIA.

In this article, it’s assumed that you know how to crawl, upload, or add data, and how to create products and create services in LuciadFusion, either through the web interface or through the REST API.

Creating an HSPC service

To load HSPC data in LuciadRIA, you must first create a LuciadFusion HSPC service so that LuciadRIA can connect to it.

To create an HSPC service:

  1. Crawl, upload, or add the HSPC dataset. You can use either the LuciadFusion Studio web application or the Studio REST API. If you add an HSPC dataset directly, use the path to the tree.hspc file.

  2. Once the HSPC dataset is available in LuciadFusion Studio, create a product and add the HSPC dataset to it.

  3. Create a service of type HSPC and add the product from the previous step to it. Note that an HSPC service can contain only 1 product, and that each product can contain only 1 HSPC dataset.
    You have now created the HSPC service.

Loading the data in LuciadRIA

To load data from an HSPC service in LuciadRIA, you need the endpoint URL of the service. You can find this URL on the service detail page in the LuciadFusion Studio web application. If you are using the Studio REST API, look at the endpointUrl property of the service object.

With the endpoint URL, you can load the data from the HSPC service in the LuciadRIA Data Formats sample:

  1. Go to the LuciadRIA Data Formats sample.

  2. Click Connect to …​ .

  3. Select HSPC.

  4. Enter the endpoint URL in the URL field and click Load.
    The sample now loads the data from the HSPC service.

To load data from an HSPC service in your own LuciadRIA project, follow the Visualize point clouds LuciadRIA tutorial.

For more information, check out the LuciadRIA HSPC documentation.