Hi Justin,
Thanks for your response.
Datastore is oracle spatial 10g, but I'm surprised if it is really depend of the Datastore.
If a feature has geometry column works fine, but I din't get never a result if feture hasn't geometry, like this one.
Tanks & regards
Balazs
Request: http://localhost:8080/geoserver/wfs?Service=WFS&Version=1.0.0&Request=GetFeature&Typename=V_S_PLR
Answer:
<?xml version="1.0" ?>
- <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://tsvie01chatt:9090/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd">
<ServiceException>java.io.IOException: Feature type: wisa:V_S_PLR does not have a default geometry at org.vfny.geoserver.global.FeatureTypeInfo.getNativeCRS(FeatureTypeInfo.java:539) at org.vfny.geoserver.wfs.responses.GetFeatureResults.addFeatures(GetFeatureResults.java:177) at org.vfny.geoserver.wfs.responses.FeatureResponse.execute(FeatureResponse.java:324) at org.vfny.geoserver.wfs.responses.FeatureResponse.execute(FeatureResponse.java:139) at org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:516) at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:315) at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:192) at org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:52) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1050) at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:103) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:269) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:687) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:492) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339) at org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)</ServiceException>
</ServiceExceptionReport>
Schema:
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <xs:schema targetNamespace="http://www.lfrz.at" xmlns:wisa="http://www.lfrz.at" xmlns:gml="http://www.opengis.net/gml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:citef="http://www.opengis.net/cite/functions" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
<xs:import namespace="http://www.opengis.net/gml" schemaLocation="http://tsvie01chatt:9090/geoserver/schemas/gml/2.1.2/feature.xsd" />
- <xs:complexType name="V_S_PLR_Type">
- <xs:complexContent>
- <xs:extension base="gml:AbstractFeatureType">
- <xs:sequence>
<xs:element type="xs:decimal" minOccurs="1" name="PLR_ID" nillable="false" maxOccurs="1" />
<xs:element type="xs:string" minOccurs="1" name="PLR_DESCRIPTION" nillable="false" maxOccurs="1" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="V_S_PLR" type="wisa:V_S_PLR_Type" substitutionGroup="gml:_Feature" />
-----Ursprüngliche Nachricht-----
Von: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Gesendet: Montag, 26. März 2007 20:14
An: Szakacs, Balazs
Cc: geotools-gt2-users@lists.sourceforge.net
Betreff: Re: [Geotools-gt2-users] GS 1.5 RC2: Can I read wfs features
without default geometry ?Hi Balazs,
It could very well depend on type of datastore you are using. If you
could include that information it would be helpful. It would also help
to know which request you are making and the entire stack trace which
results.Also, this discussion will be more appropriate if moved to
geoserver-users@anonymised.comThanks,
-Justin
Szakacs, Balazs wrote:
> Hi Group
>
>
>
> Can I read wfs features with GS 1.5 RC2 if it does not have geometry
> parameter?
>
>
>
> With GS 1.5 I can set up a feature without geometry, like GS 1.3.3, but
> if I try to read it I get a exception: "geoserver java.io.IOException:
> Feature type: <Feature name> does not have a default geometry "
>
> The same was no problem with GS 1.3.3
>
>
>
> Please let me know, how I can read it.
>
>
>
> Thanks for support
>
>
>
> Balazs
>
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Geotools-gt2-users mailing list
> Geotools-gt2-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org