Class PostgisToJSON Converts an X3D formats in a json.
More...
|
def | __init__ |
| Constructor. More...
|
|
def | parse |
| parse method Manage the process in the class and use the appropriate process in function of the data More...
|
|
|
def | remove_comma |
| remove_comma static method Delete the comma in a string the string to transform More...
|
|
Class PostgisToJSON Converts an X3D formats in a json.
def vizitown_plugin.vt_utils_converter.PostgisToJSON.__init__ |
( |
|
self) | |
|
def vizitown_plugin.vt_utils_converter.PostgisToJSON._count_vertice |
( |
|
self, |
|
|
|
vertices |
|
) |
| |
|
private |
_count_vertice method Count the number of vertex
- Parameters
-
vertices | stock a vertex number |
- Returns
- a number of vertex
def vizitown_plugin.vt_utils_converter.PostgisToJSON._get_data |
( |
|
self, |
|
|
|
result, |
|
|
|
hasH |
|
) |
| |
|
private |
_get_data method Getter to access to the data and associated information
- Parameters
-
- Returns
- the data
def vizitown_plugin.vt_utils_converter.PostgisToJSON._get_json_geom |
( |
|
self, |
|
|
|
pointArray, |
|
|
|
height |
|
) |
| |
|
private |
_get_json_geom method Getter of a geo json data
- Parameters
-
pointArray | with the several point with coordinates |
height | to add an information of elevation |
- Returns
- a geojson file
def vizitown_plugin.vt_utils_converter.PostgisToJSON._get_json_threejs |
( |
|
self, |
|
|
|
nbFaces, |
|
|
|
nbVertices, |
|
|
|
faces, |
|
|
|
vertices |
|
) |
| |
|
private |
_get_json_threejs method Getter a threejs json data
- Parameters
-
nbFaces | to define the number of faces |
nbVertices | to define the number of vertex |
faces | stock a faces values |
vertices | stock a vertex values |
- Returns
- a threejs json file
def vizitown_plugin.vt_utils_converter.PostgisToJSON._get_polygon_point |
( |
|
self, |
|
|
|
polygon |
|
) |
| |
|
private |
_get_polygon_point method Select a points with a polygon to define a polygon
- Returns
- an array with the vertices of the polygon
def vizitown_plugin.vt_utils_converter.PostgisToJSON._get_vertices |
( |
|
self, |
|
|
|
xmldoc |
|
) |
| |
|
private |
_get_vertices method Getter of vertex data
- Parameters
-
- Returns
- a specific vertex
def vizitown_plugin.vt_utils_converter.PostgisToJSON._parse_line |
( |
|
self, |
|
|
|
dataArray |
|
) |
| |
|
private |
_parse_line method Parse a line data
- Parameters
-
dataArray | to stock the data |
- Returns
- a json file
def vizitown_plugin.vt_utils_converter.PostgisToJSON._parse_point |
( |
|
self, |
|
|
|
dataArray |
|
) |
| |
|
private |
_parse_point method Parse a point data
- Parameters
-
dataArray | to stock the data |
- Returns
- a json file
def vizitown_plugin.vt_utils_converter.PostgisToJSON._parse_polygon |
( |
|
self, |
|
|
|
dataArray |
|
) |
| |
|
private |
_parse_polygon method Parse a polygon or multipolygon data
- Parameters
-
dataArray | to stock the data |
- Returns
- a json file
def vizitown_plugin.vt_utils_converter.PostgisToJSON._parse_triangle |
( |
|
self, |
|
|
|
dataArray |
|
) |
| |
|
private |
_parse_triangle method Parse a triangle data
- Parameters
-
- Returns
- a json file
def vizitown_plugin.vt_utils_converter.PostgisToJSON._replace_metadata |
( |
|
self, |
|
|
|
exchange |
|
) |
| |
|
private |
_replace_metadata method Change the metadata by another information
- Parameters
-
exchange | the new information |
- Returns
- the new metadata
def vizitown_plugin.vt_utils_converter.PostgisToJSON.parse |
( |
|
self, |
|
|
|
resultArray, |
|
|
|
geometry, |
|
|
|
hasH, |
|
|
|
color, |
|
|
|
uuid |
|
) |
| |
parse method Manage the process in the class and use the appropriate process in function of the data
- Parameters
-
resultArray | to stock the data |
geometry | to check the type of geometry |
hasH | to define the representation of data |
color | to define the color of data |
uuid | to define the identifiant of data |
- Returns
- a json
def vizitown_plugin.vt_utils_converter.PostgisToJSON.remove_comma |
( |
|
string) | |
|
|
static |
remove_comma static method Delete the comma in a string the string to transform
- Returns
- the string after the process
vizitown_plugin.vt_utils_converter.PostgisToJSON._jsonExchange |
|
private |
vizitown_plugin.vt_utils_converter.PostgisToJSON._jsonGeom |
|
private |
vizitown_plugin.vt_utils_converter.PostgisToJSON._jsonThreejs |
|
private |
vizitown_plugin.vt_utils_converter.PostgisToJSON.color |
vizitown_plugin.vt_utils_converter.PostgisToJSON.geometry |
vizitown_plugin.vt_utils_converter.PostgisToJSON.hasH |
vizitown_plugin.vt_utils_converter.PostgisToJSON.nbPointVertice |
vizitown_plugin.vt_utils_converter.PostgisToJSON.noHeight |
vizitown_plugin.vt_utils_converter.PostgisToJSON.uuid |
The documentation for this class was generated from the following file: