[udig-devel] 2/2 Zoom to selection

Jody Garnett jgarnett at refractions.net
Thu Oct 25 08:02:08 PDT 2007


Good hunting Vince!

Now that is fun - there is some null geometry in your table and our 
calculate bounds function is not set up to deal with that. Great you 
found a new bug!

Are you comfortable fixing this one?
Jody

Vince Darley wrote:
> At 12:42 25/10/2007, Vince Darley wrote:
>> At 20:33 24/10/2007, Jody Garnett wrote:
>>> I have tried the same thing selecting rows in the Table view; both 
>>> the button and Navigation > Show Selection are working for me.
>>> What kind of content were you using?
>>
>> It's all postgis layers.
>>
>> I did not an error in the log late yesterday, which might be 
>> relevant.  I shall have to explore more.
>
> The log error was this (a 'null' problem caused by an 
> 'extent(geometry)' function being missing):
>
> org.geotools.data.DataSourceException: Could not count null
>     at 
> org.geotools.data.postgis.PostgisFeatureStore.bounds(PostgisFeatureStore.java:948) 
>
>     at 
> org.geotools.data.postgis.PostgisFeatureStore.getBounds(PostgisFeatureStore.java:867) 
>
>     at 
> com.eurobios.schedule.tool.ZoomSelectedActivitiesTool.run(ZoomSelectedActivitiesTool.java:67) 
>
>     at 
> com.eurobios.schedule.presentation.actions.ZoomSelectedActivitiesAction.run(ZoomSelectedActivitiesAction.java:57) 
>
>     at 
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:254)
>     at 
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539) 
>
>     at 
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488) 
>
>     at 
> org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441) 
>
>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>     at 
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
>     at 
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
>     at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>     at 
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) 
>
>     at 
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>     at 
> com.eurobios.waste.rcp.ui.WasteApplication.run(WasteApplication.java:27)
>     at 
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) 
>
>     at 
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) 
>
>     at 
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) 
>
>     at 
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) 
>
>     at 
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 
>
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
>     at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>     at org.eclipse.core.launcher.Main.run(Main.java:977)
>     at org.eclipse.core.launcher.Main.main(Main.java:952)
> Caused by: org.postgresql.util.PSQLException: ERROR: function 
> extent(geometry) does not exist
>     at 
> org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1525) 
>
>     at 
> org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1309) 
>
>     at 
> org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188) 
>
>     at 
> org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452) 
>
>     at 
> org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:340) 
>
>     at 
> org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:239) 
>
>     at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at 
> org.postgresql.ds.common.PooledConnectionImpl$StatementHandler.invoke(PooledConnectionImpl.java:474) 
>
>     at $Proxy1.executeQuery(Unknown Source)
>     at 
> org.geotools.data.postgis.PostgisFeatureStore.getEnvelope(PostgisFeatureStore.java:981) 
>
>     at 
> org.geotools.data.postgis.PostgisFeatureStore.bounds(PostgisFeatureStore.java:928) 
>
>     ... 29 more 
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel



More information about the udig-devel mailing list