Almacenamiento de un archivo de SketchUp en PostGIS

Pregunta:

Lo siento si esta es una pregunta relativamente tonta, pero me preguntaba si hay alguna manera de almacenar un archivo SketchUp (.skp) en una base de datos PostGIS. Estaba pensando como una gota, pero no estaba seguro de si alguien había tenido éxito con esto. El registro sería una ubicación puntual. En este momento estoy haciendo un enlace de ruta de archivo al archivo en el directorio, pero esperaba que hubiera una forma de almacenar el archivo en la base de datos. Me gustaría usar esto para el almacenamiento de datos, pero también como un medio para recuperar y ver los datos.

Gracias…

Respuesta:

Collada (COLLAborative Design Asset) es un formato 3D que fue desarrollado inicialmente por Sony

se puede importar a PostGIS como entidades 3D

USAGE : collada2pgsql [options] colladafile [schema.]table

OPTIONS :
-s
Set the SRID field. If not specified it defaults to -1.
-d
Drops the table, then recreates it with current collada file data.
-c
Appends shape file into current table, must be exactly the same table schema.
!!! : The options -d and -a are mutually exclusive.
-g
Specify the name of the geometry column (mostly useful in append mode).
-t
Import collada file data with informations about textures.
-dir
Specify the directory where the textures will be stored.
default: '/tmp/textures'
-I
Create a GiST index on the geometry column.
-?
Display this help screen.

Fuente: http://postgisand3d.blogspot.com/2008/06/collada-import.html

Leave a Comment

Your email address will not be published. Required fields are marked *

web tasarım