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:
-
Crawl, upload, or add a dataset that can be published via an HSPC service. This can be an HSPC dataset or an LGSx dataset containing a point cloud. 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. -
Once the HSPC dataset is available in LuciadFusion Studio, create a product and add the dataset to it.
-
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:
-
Go to the LuciadRIA Data Formats sample.
-
Click Connect to … .
-
Select HSPC.
-
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.