Topology: How to create topogeometry from existing faces?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Topology: How to create topogeometry from existing faces?

Jan Michálek
I have some edges and centroids with some atributes.
I imported edges to topo using TopoGeo_AddLineString.
And I polygonized toposchema.

I want to create relation with polygons with centroid attribute table.

I can do something like

SELECT centro.*                                                                     
, topology.ST_GetFaceGeometry(                                                 
   'topo', topology.GetFaceByPoint('topo', geom, 0)                          
) geom FROM centro;

For obtain face geometry.

But if I want have topogeometry, I need to create normal geometry and create topogeometry from this.

Is there another way, how to create topogeometry from face id?

I can insert face id into topo.relation and create topogeometry from this by query, but is it a right way? Can I used some functionality in topology for doing this.

Thanks Je;

--
Jelen
Starší čeledín datovýho chlíva

_______________________________________________
postgis-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/postgis-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Topology: How to create topogeometry from existing faces?

Jan Michálek
I find solution,i think, that CreateTopoGeom should help me with this.

2017-04-17 13:37 GMT+02:00 Jan Michálek <[hidden email]>:
I have some edges and centroids with some atributes.
I imported edges to topo using TopoGeo_AddLineString.
And I polygonized toposchema.

I want to create relation with polygons with centroid attribute table.

I can do something like

SELECT centro.*                                                                     
, topology.ST_GetFaceGeometry(                                                 
   'topo', topology.GetFaceByPoint('topo', geom, 0)                          
) geom FROM centro;

For obtain face geometry.

But if I want have topogeometry, I need to create normal geometry and create topogeometry from this.

Is there another way, how to create topogeometry from face id?

I can insert face id into topo.relation and create topogeometry from this by query, but is it a right way? Can I used some functionality in topology for doing this.

Thanks Je;

--
Jelen
Starší čeledín datovýho chlíva



--
Jelen
Starší čeledín datovýho chlíva

_______________________________________________
postgis-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/postgis-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Topology: How to create topogeometry from existing faces?

Sandro Santilli-3
On Mon, Apr 17, 2017 at 02:37:38PM +0200, Jan Michálek wrote:
> I find solution,i think, that CreateTopoGeom should help me with this.

Confirmed, glad you found your way :)

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   https://strk.kbt.io/services.html
_______________________________________________
postgis-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/postgis-users
Loading...