UC-win/Road SDK Q&A('16.12.26)
| 1. Operating Environment Section |
| 1-1. System |
| |
|
| Q1−1−1. |
If you own a version of Delphi newer than XE2, is it possible to use the UC-win/Road SDK? |
| A1−1−1. |
The UC-win/Road SDK is specifically designed for Delphi XE2 and will not function with other versions of Delphi.
Therefore, you will need to obtain and install Delphi XE2 separately.
Please refer to the following URL from Embarcadero for information on "How to obtain licenses for DRAD Studio, Delphi, and C++Builder versions XE, XE2, XE3, XE4, XE5, XE6, XE7, XE8, and 10 Seattle (older versions)," and then acquire a license for Delphi XE2.
By obtaining a license, you gain the right to use Delphi XE2.
By entering the serial number and registration key code at the link provided in this explanation, you can download the installation image for Delphi XE2.
http://support.embarcadero.com/jp/article/40874
Please note that the academic version of Delphi does not grant rights to obtain licenses for older versions of Delphi, so you will need to purchase a new copy of Delphi XE2 separately.
However, Delphi XE2 has already been discontinued, so you will need to purchase a standard version of the latest Delphi. Also, please note that it is not possible to upgrade from an academic edition to a standard edition. |
|
|
|
|
| 2. Data creation section |
| |
|
| Q2−1. |
How can I output specific model coordinates within a project using the SDK? |
| A2−1. |
Please refer to the `ExportModelsToFile` function in the sample plugin "ModelExportPlugin."
The position property of an IF8ModelInstance object allows you to retrieve the coordinate location of the model.
On the other hand, the aforementioned function outputs coordinate positions within the internal local coordinate system of UC-win/Road.
To obtain coordinates in a global geodetic system, such as latitude and longitude, it is necessary to convert the local coordinates that were previously calculated.
(1) Conversion from local coordinates to world geodetic system coordinates
Coordinate transformations to the World Geodetic System can be performed as follows:
X := (X0 + GridSizeZ * GridDeltaZ) - _z;
Y := _x + Y0;
Z := _y;
※ _x, _y, and _z represent local coordinates, while X0 and Y0 represent the origin coordinates after coordinate transformation
※ GridSizeZ represents the number of cells in the north-south direction of the terrain grid, and GridDeltaZ represents the length of each cell in the north-south direction
The parameters required for the formula mentioned above can be obtained by evaluating the functions specified in the "World Geodetic System.txt" file within the ZIP archive provided below.
The code is also documented in the SDK's help section, "Coordinate systems and vector operations." Please refer to that as well.
(2) Conversion from local coordinates to latitude and longitude
Coordinate transformations to latitude and longitude can be performed using the functions described below.
IF8ProjectForRoad.ConvertPositionToLatLong()
Within the ExportModelsToFile function of the SDK sample ModelExportPlugin, it can be implemented in a way similar to the "latitude_longitude.txt" file within the following ZIP archive.
(Q2-1.zip) |
| 3. Error section |
|
|
|
|
|
|
| 4. Other |
|
|
|
|
|
|
|







>> Product comprehensive catalog

>> Premium membership services
>> Financial support
| Recently released products |
|
|
|