Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] PostGIS Views as Layers

OK I'll have to get our local Postgis guru to help me set up views so I can test this. But I'll do what I can.

Jesse

When do I get an IPhone? ;P


Le 28-Jan-08 à 1:30 PM, David Garbin a écrit :

It is correct that a re-render does not show the new data in the view, even though the new data is well within the bounding box. The correct data is in the table view and it renders correctly after a restate of udig, but after a refresh in the same session.

Sent from my iPhone

On Jan 28, 2008, at 2:23 PM, Jesse Eichar <jeichar@xxxxxxxxxxxxxxx> wrote:

I'm not sure exactly what you want here. So you update one of the tables that the view is constructed from. But when you trigger a re-render it doesn't show the new data? Is that right.

Assuming so. Does it show new data if the data is well within the existing bounding box?

Jesse

Le 26-Jan-08 à 9:32 PM, David Garbin a écrit :

I am using uDIG RC13 to visualize PostGIS layers under OSX. In general, this has worked very well, but there is one last thing that I need to make this a smashing success. I want uDIG to respond to changes in the underlying PostGIS tables based on my input. I do this using views as features as follows:

1.  I create PostGIS tables with a "visible" column.
2. Based on an event, I have a trigger function manipulate the "visible" column to mark only the records I want to show. 3. I create views of the tables in PostGIS to contain only those records marked visible. The geometry column is registered for these views. 4. I add the views as layers in uDIG. When I start uDIG, it correctly displays the layers.

The problem occurs when I then trigger an event and the views change in PostGIS. When I refresh the display in uDIG, the old view disappears, but the new contents of the view do not display. It's like there is not a refresh of the geometry from the database. Ironically, the new attributes of the views display correctly in the Table window. If I then close uDIG and open it again, the correct view contents are pulled in and displayed.
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel



Back to the top