<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16446"></HEAD>
<BODY 
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<DIV dir=ltr align=left><SPAN class=631545300-06072012><FONT color=#0000ff 
size=2 face=Arial>Sam,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=631545300-06072012><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=631545300-06072012><FONT color=#0000ff 
size=2 face=Arial>Which version of PostGIS 2.0.  I see it on my generated 
legacy.sql for 2.0.1.  I recall it was put in before 2.0 release as well, 
but in interim versions prior to 2.0.0 release it may have still 
been packaged in core file or accidentally 
left out.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=631545300-06072012><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=631545300-06072012><FONT color=#0000ff 
size=2 face=Arial>My 2.0.1 legacy.sql has this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=631545300-06072012><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=631545300-06072012><FONT color=#0000ff 
size=2 face=Arial>-- Deprecation in 1.2.3<BR>CREATE OR REPLACE FUNCTION 
AsText(geometry)<BR> RETURNS TEXT<BR> AS 
'$libdir/postgis-2.0','LWGEOM_asText'<BR> LANGUAGE 'c' IMMUTABLE 
STRICT; </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=631545300-06072012> </SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=631545300-06072012></SPAN><FONT 
face=Arial><FONT color=#0000ff><FONT size=2>H<SPAN class=631545300-06072012>ope 
that helps,</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=631545300-06072012></SPAN><SPAN 
class=631545300-06072012></SPAN><FONT face=Arial><FONT color=#0000ff><FONT 
size=2>R<SPAN class=631545300-06072012>egina</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=631545300-06072012></SPAN><SPAN 
class=631545300-06072012></SPAN><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><A href="http://www.postgis.us">h<SPAN 
class=631545300-06072012>ttp://www.postgis.us</A></SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=631545300-06072012></SPAN></FONT></FONT></FONT><BR> </DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
dir=ltr>
  <DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
  <HR tabIndex=-1>
  <FONT size=2 face=Tahoma><B>From:</B> 
  postgis-users-bounces@postgis.refractions.net 
  [mailto:postgis-users-bounces@postgis.refractions.net] <B>On Behalf Of 
  </B>Samuel Smith<BR><B>Sent:</B> Thursday, July 05, 2012 10:17 
  AM<BR><B>To:</B> postgis-users@postgis.refractions.net<BR><B>Subject:</B> 
  [postgis-users] ??: ??: Postgis 2.0 and geoserver 2.1 rc4<BR></FONT><BR></DIV>
  <DIV></DIV>
  <H1 
  style="LINE-HEIGHT: normal; WIDOWS: 2; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT-FAMILY: verdana, arial, helvetica; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(101,101,153); FONT-SIZE: 15pt; WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><SPAN 
  style="FONT-FAMILY: courier; WHITE-SPACE: pre; COLOR: rgb(0,0,0); FONT-SIZE: 13px; FONT-WEIGHT: normal" 
  class=Apple-style-span>Hey Regina,</SPAN></H1>
  <DIV><SPAN 
  style="FONT-FAMILY: courier; WHITE-SPACE: pre; COLOR: rgb(0,0,0); FONT-SIZE: 13px; FONT-WEIGHT: normal" 
  class=Apple-style-span><BR></SPAN></DIV>
  <DIV><SPAN 
  style="FONT-FAMILY: courier; WHITE-SPACE: pre; COLOR: rgb(0,0,0); FONT-SIZE: 13px; FONT-WEIGHT: normal" 
  class=Apple-style-span>Excuse what might be a silly question, but in that 
  legacy.sql file I can't find an (st_)AsText function, just 
  st_text().</SPAN></DIV>
  <DIV><SPAN 
  style="FONT-FAMILY: courier; WHITE-SPACE: pre; COLOR: rgb(0,0,0); FONT-SIZE: 13px; FONT-WEIGHT: normal" 
  class=Apple-style-span><BR></SPAN></DIV>
  <DIV><FONT class=Apple-style-span face=courier><SPAN 
  style="WHITE-SPACE: pre; FONT-SIZE: 13px" class=Apple-style-span>--- 
  Deprecation in 1.5.0 CREATE OR REPLACE FUNCTION st_text(geometry) RETURNS text 
  AS '$libdir/postgis-2.0','LWGEOM_to_text' LANGUAGE 'C' IMMUTABLE STRICT; 
  </SPAN></FONT><SPAN 
  style="FONT-FAMILY: courier; WHITE-SPACE: pre; COLOR: rgb(0,0,0); FONT-SIZE: 13px; FONT-WEIGHT: normal" 
  class=Apple-style-span></SPAN></DIV>
  <DIV><SPAN 
  style="FONT-FAMILY: courier; WHITE-SPACE: pre; COLOR: rgb(0,0,0); FONT-SIZE: 13px; FONT-WEIGHT: normal" 
  class=Apple-style-span><BR></SPAN></DIV>
  <DIV><SPAN 
  style="FONT-FAMILY: courier; WHITE-SPACE: pre; COLOR: rgb(0,0,0); FONT-SIZE: 13px; FONT-WEIGHT: normal" 
  class=Apple-style-span>Restoring just the minimal set of functions needed to 
  resolve this issue, is that the droid we're looking for? (along with force_2d 
  and envelope, which I could find).</SPAN></DIV>
  <DIV><SPAN 
  style="FONT-FAMILY: courier; WHITE-SPACE: pre; COLOR: rgb(0,0,0); FONT-SIZE: 13px; FONT-WEIGHT: normal" 
  class=Apple-style-span><BR></SPAN></DIV>
  <DIV><SPAN 
  style="FONT-FAMILY: courier; WHITE-SPACE: pre; COLOR: rgb(0,0,0); FONT-SIZE: 13px; FONT-WEIGHT: normal" 
  class=Apple-style-span>Cheers, Sam</SPAN></DIV>
  <H1 
  style="LINE-HEIGHT: normal; WIDOWS: 2; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT-FAMILY: verdana, arial, helvetica; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(101,101,153); FONT-SIZE: 15pt; WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><SPAN 
  style="FONT-FAMILY: courier; WHITE-SPACE: pre; COLOR: rgb(0,0,0); FONT-SIZE: 13px; FONT-WEIGHT: normal" 
  class=Apple-style-span>====</SPAN></H1>
  <H1 
  style="LINE-HEIGHT: normal; WIDOWS: 2; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT-FAMILY: verdana, arial, helvetica; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(101,101,153); FONT-SIZE: 15pt; WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><SPAN 
  style="FONT-FAMILY: courier; WHITE-SPACE: pre; COLOR: rgb(0,0,0); FONT-SIZE: 13px; FONT-WEIGHT: normal" 
  class=Apple-style-span>I think you just need to install the AsText, force_2d, 
  Envelope functions from the attached file (based on what you have below). but 
  safe enough to install all if you want.</SPAN></H1><PRE style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 10pt courier; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"> 
Hope that helps,
Regina
<A href="http://www.postgis.us/">http://www.postgis.us</A>


  _____  

From: <A href="http://postgis.refractions.net/mailman/listinfo/postgis-users">postgis-users-bounces at postgis.refractions.net</A> [mailto:<A href="http://postgis.refractions.net/mailman/listinfo/postgis-users">postgis-users-bounces at postgis.refractions.net</A>] On Behalf Of ??
Sent: Tuesday, April 19, 2011 9:37 AM
To: PostGIS Users Discussion
Subject: [postgis-users] ??: ??: Postgis 2.0 and geoserver 2.1 rc4


I'm sorry that the error happened again. Here is the information in the postgis log and geoserver also gave a error report. 
I am not sure whether I have installed the function right. Someone told me just to ran it like SQL languags... So I did like that...
 
the information in the postgis log :
 
2011-04-19 20:58:12 HKT FATAL:  the database system is starting up
2011-04-19 20:58:13 HKT LOG:  database system is ready to accept connections
2011-04-19 20:58:13 HKT LOG:  autovacuum launcher started
2011-04-19 21:03:41 HKT ERROR:  relation "public.gt_pk_metadata" does not exist at character 15
2011-04-19 21:03:41 HKT STATEMENT:  SELECT * FROM public.GT_PK_METADATA
2011-04-19 21:03:47 HKT ERROR:  function envelope(box2d) does not exist at character 24
2011-04-19 21:03:47 HKT HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
2011-04-19 21:03:47 HKT STATEMENT:  select AsText(force_2d(Envelope(ST_Estimated_Extent('public', 'nyc_buildings', 'the_geom'))))
2011-04-19 21:03:47 HKT ERROR:  function envelope(box3d_extent) does not exist at character 30
2011-04-19 21:03:47 HKT HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
2011-04-19 21:03:47 HKT STATEMENT:  SELECT ST_AsText(ST_Force_2D(Envelope(ST_Extent("the_geom"::geometry)))) FROM "public"."nyc_buildings"
 
the imformation in geoserver:
Oops, something went wrong...
Sorry, something unexpected happened on the server.
Here's an error report you can include in a JIRA bug report about this issue: 
java.lang.RuntimeException: java.io.IOException: Error occured calculating bounds
 at org.geotools.jdbc.JDBCFeatureSource.getBoundsInternal(JDBCFeatureSource.java:476)
 at org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:178)
 at org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:369)
 at org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:341)
 at org.geotools.data.SimpleFeatureSourceBridge.getBounds(SimpleFeatureSourceBridge.java:49)
 at org.vfny.geoserver.global.GeoServerFeatureSource.getBounds(GeoServerFeatureSource.java:529)
 at org.geoserver.catalog.CatalogBuilder.getNativeBounds(CatalogBuilder.java:463)
 at org.geoserver.web.data.resource.BasicResourceConfig$1.onSubmit(BasicResourceConfig.java:115)
 at org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:68)
 at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:143)
 at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
 at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300)
 at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
 at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
 at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
 at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484)
 at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:160)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
 at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:158)
 at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
 at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
 at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
 at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
 at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:23)
 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:68)
 at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:64)
 at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:64)
 at org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:64)
 at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:64)
 at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:64)
 at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:64)
 at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:64)
 at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:64)
 at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:192)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:64)
 at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:192)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:64)
 at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:99)
 at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:64)
 at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:99)
 at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:64)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:394)
 at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:99)
 at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:192)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:185)
 at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:64)
 at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:39)
 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:48)
 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:394)
 at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
 at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
 at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
 at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:185)
 at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:71)
 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183)
 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
 at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
 at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
 at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 at org.mortbay.jetty.Server.handle(Server.java:324)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
 at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
 at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
 at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Caused by: java.io.IOException: Error occured calculating bounds
 at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:1136)
 at org.geotools.jdbc.JDBCFeatureSource.getBoundsInternal(JDBCFeatureSource.java:469)
 ... 154 more
Caused by: org.postgresql.util.PSQLException: ERROR: function envelope(box3d_extent) does not exist
  建议:No function matches the given name and argument types. You might need to add explicit type casts.
  位置:30
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
 at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
 at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353)
 at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:252)
 at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
 at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
 at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:1112)
 ... 155 more

 
------------------ 原始邮件 ------------------
发件人: "Paragon Corporation"<<A href="http://postgis.refractions.net/mailman/listinfo/postgis-users">lr at pcorp.us</A>>;
发送时间: 2011年4月18日(星期一) 晚上10:33
收件人: "'PostGIS Users Discussion'"<<A href="http://postgis.refractions.net/mailman/listinfo/postgis-users">postgis-users at postgis.refractions.net</A>>; 
主题: Re: [postgis-users] ??: Postgis 2.0 and geoserver 2.1 rc4
 
I suspect this is my fault since I cleared out most of the deprecated functions in this ticket:
<A href="http://trac.osgeo.org/postgis/ticket/737">http://trac.osgeo.org/postgis/ticket/737</A>
 
and evidentally geoserver is still using some.
 
I'm guessing it is the removal of st_box2d that is posing a problem but can't be sure: try installing this function to see if it solves your problem:
 
 CREATE OR REPLACE FUNCTION st_box2d(geometry)
 RETURNS box2d
 AS '$libdir/postgis-2.0','LWGEOM_to_BOX2DFLOAT4'
 LANGUAGE 'C' IMMUTABLE STRICT;
 
(Note this function in its current form may change before release).
 
If that doesn't fix it, it would be great if you look in your postgresql/pg_log folder at the last log file.  It should show the sql error it is trying to run that is failing.
 
There is a legacy.sql file that also gets copied during install for people that need to run with old installs of applications that use removed functions.  This I'm testing right now to get rid of the remaining install bugs in it and to add a regress test for it.
 
Hope that helps,
Regina
<A href="http://www.postgis.us/">http://www.postgis.us</A> <<A href="http://www.postgis.us/">http://www.postgis.us/</A>> 
 

  _____  

From: <A href="http://postgis.refractions.net/mailman/listinfo/postgis-users">postgis-users-bounces at postgis.refractions.net</A> [mailto:<A href="http://postgis.refractions.net/mailman/listinfo/postgis-users">postgis-users-bounces at postgis.refractions.net</A>] On Behalf Of ??
Sent: Monday, April 18, 2011 8:06 AM
To: PostGIS Users Discussion
Subject: [postgis-users] ??: Postgis 2.0 and geoserver 2.1 rc4


Thanks for your kind-hearted answer. The data from the table is the same.
There is a sample data in geoserver's user documentation named nyc_buildings.sql.
When we use PostgreSQL9.0、postgis 1.5 and geoserver 2.1 rc4 to publish this data, everything goes all right.
But when we change postgis1.5 to postgis2.0, the problem comes....
There are two bouding boxes to fill. When we clicked Compute from data or Compute from Native bounds, the error happened...

Someone says that postgis API has changed in 2.0 for bounding boxes. So the error happens. Do you agree with him? And if it is true, does it mean that we can't use postgis2.0 to publish the layer or there is a need of other tools to solve it? I'm looking forword to your reply. Thank you very much.

 
 
------------------ 原始邮件 ------------------
发件人: "Maria Arias de Reyna"<<A href="http://postgis.refractions.net/mailman/listinfo/postgis-users">marias at emergya.es</A>>;
发送时间: 2011年4月18日(星期一) 下午3:18
收件人: "PostGIS Users Discussion"<<A href="http://postgis.refractions.net/mailman/listinfo/postgis-users">postgis-users at postgis.refractions.net</A>>; 
主题: Re: [postgis-users] Postgis 2.0 and geoserver 2.1 rc4
 
El Monday 18 April 2011, 龙龙 escribió:
><I> Hi, I am getting the following error when trying to add a layer from a
</I>><I> postgis 2.0 database: java.lang.RuntimeException: java.io.IOException:
</I>><I> Error occured calculating bounds at
</I>><I> org.geotools.jdbc.JDBCFeatureSource.getBoundsInternal(JDBCFeatureSource.ja
</I>><I> va:476) at
</I>><I> org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java
</I>><I> :178) at
</I>><I> org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSourc
</I>><I> e.java:369) at
</I>><I> org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSourc
</I>><I> e.java:341) at
</I>><I> org.geotools.data.SimpleFeatureSourceBridge.getBounds(SimpleFeatureSourceB
</I>><I> ridge.java:49) at
</I>><I> org.vfny.geoserver.global.GeoServerFeatureSource.getBounds(GeoServerFeatur
</I>><I> eSource.java:529) at
</I>><I> org.geoserver.catalog.CatalogBuilder.getNativeBounds(CatalogBuilder.java:4
</I>><I> 63) at
</I>><I> org.geoserver.web.data.resource.BasicResourceConfig$1.onSubmit(BasicResour
</I>><I> ceConfig.java:115) at
</I>><I> org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubm
</I>><I> itLink.java:68) at
</I>><I> org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitB
</I>><I> ehavior.java:143) at
</I>><I> org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:17
</I>><I> 7) at
</I>><I> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefau
</I>><I> ltAjaxBehavior.java:300) at
</I>><I> org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.
</I>><I> processEvents(BehaviorRequestTarget.java:119) at
</I>><I> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(Abst
</I>><I> ractRequestCycleProcessor.java:92) at
</I>><I> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1
</I>><I> 250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at
</I>><I> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) at
</I>><I> org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at
</I>><I> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484)
</I>><I> at
</I>><I> org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:16
</I>><I> 0) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at
</I>><I> javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at
</I>><I> org.springframework.web.servlet.mvc.ServletWrappingController.handleReques
</I>><I> tInternal(ServletWrappingController.java:158) at
</I>><I> org.springframework.web.servlet.mvc.AbstractController.handleRequest(Abstr
</I>><I> actController.java:153) at
</I>><I> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(
</I>><I> SimpleControllerHandlerAdapter.java:48) at
</I>><I> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherSer
</I>><I> vlet.java:875) at
</I>><I> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServ
</I>><I> let.java:809) at ....
</I>><I> 
</I>><I> But this problem doesn't exist when I use postgis 1.5. So, is this a
</I>><I> postgis problem or a geoserver problem. How shall I deal with it?
</I>

The data from the table is the same? 

I had this error once when the geometry column wasn't correctly defined. Are 
you sure the table is defined on the geometry_columns table?

Can you look inside geoserver to see which is the exact sql sentence that is 
used there?

-- 
María Arias de Reyna Domínguez
Área de Operaciones

Emergya Consultoría 
Tfno: +34 954 51 75 77 / +34 607 43 74 27
Fax: +34 954 51 64 73 
<A href="http://www.emergya.es">www.emergya.es</A> 
_______________________________________________
postgis-users mailing list
<A href="http://postgis.refractions.net/mailman/listinfo/postgis-users">postgis-users at postgis.refractions.net</A>
<A href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</A>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <<A href="http://postgis.refractions.net/pipermail/postgis-users/attachments/20110419/8726171e/attachment.html">http://postgis.refractions.net/pipermail/postgis-users/attachments/20110419/8726171e/attachment.html</A>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: legacy.sql
Type: application/octet-stream
Size: 48488 bytes
Desc: not available
URL: <<A href="http://postgis.refractions.net/pipermail/postgis-users/attachments/20110419/8726171e/attachment.obj">http://postgis.refractions.net/pipermail/postgis-users/attachments/20110419/8726171e/attachment.obj</A>>
</PRE>
  <HR 
  style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: medium Times; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">

  <DIV 
  style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 10pt verdana, arial, helvetica; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR 
  class=webkit-block-placeholder></DIV>
  <UL 
  style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: medium Times; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
    <LI style="FONT-FAMILY: verdana, arial, helvetica; FONT-SIZE: 10pt">Previous 
    message: <A 
    href="http://postgis.refractions.net/pipermail/postgis-users/2011-April/029447.html">[postgis-users] 
    回复: ??: Postgis 2.0 and geoserver 2.1 rc4</A>
    <LI style="FONT-FAMILY: verdana, arial, helvetica; FONT-SIZE: 10pt">Next 
    message: <A 
    href="http://postgis.refractions.net/pipermail/postgis-users/2011-April/029449.html">[postgis-users] 
    Clip and select outside an polygon</A>
    <LI style="FONT-FAMILY: verdana, arial, helvetica; FONT-SIZE: 10pt"><B 
    style="FONT-FAMILY: verdana, arial, helvetica; COLOR: rgb(101,101,153); FONT-WEIGHT: bold">Messages 
    sorted by:</B> <A 
    href="http://postgis.refractions.net/pipermail/postgis-users/2011-April/date.html#29453">[ 
    date ]</A> <A 
    href="http://postgis.refractions.net/pipermail/postgis-users/2011-April/thread.html#29453">[ 
    thread ]</A> <A 
    href="http://postgis.refractions.net/pipermail/postgis-users/2011-April/subject.html#29453">[ 
    subject ]</A> <A 
    href="http://postgis.refractions.net/pipermail/postgis-users/2011-April/author.html#29453">[ 
    author ]</A></LI></UL>
  <DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>