[Geoserver-devel] Re: questions about link to arcsde

I think you just need to specify another style. If you have two layers -
LAYER=roads,rails then you need two styles STYLES=normal,normal - one for
each layer. This is off memory so it may be slightly wrong, but I think
it should work if you specify two styles, even if they are the same one.

On Thu, 26 Feb 2004 huohong@anonymised.com wrote:

hi,thank you for you reply!
I have known the errors,it is that the arcsde server was something wrong.And in the info.xml
<name>SDE.R90010101</name>
will be ok.
It is not as you said SIG.SDE.R90010101.

Now another question:
                                             How can I show 2 layers?
I only know show 1 layer,when I try to show 2 layer
it tells me "org.vfny.geoserver.WmsException: 2 layers requested, but found 1 styles specified. Since SLD parameter is not yet implemented, the STYLES parameter is mandatory and MUST have exactly one value per requested layer at org.vfny.geoserver.requests.readers.wms.GetMapKvpReader.parseStyles(GetMapKvpReader.java:306) ......"

would you help me another time? Thank you very much!

                                   yours
                                         holly
----- Original Message -----
From: "Chris Holmes" <cholmes@anonymised.com>
To: <huohong@anonymised.com>
Cc: <geoserver@anonymised.com>
Sent: Tuesday, February 24, 2004 2:47 AM
Subject: Re: questions about link to arcsde

> I've had other reports of arcsde not working, and the author of the module
> is a bit out of touch. I'll send him an email and see what he thinks.
> Our humble organization can not afford an arc sde installation, so I
> personally have never been able to test it. If arcsde is just using
> oracle, however, I would recommend connecting to oracle directly, as that
> datastore has been better tested.
>
> Chris
>
> On Mon, 23 Feb 2004 huohong@anonymised.com wrote:
>
> > Hi,I have downloaded GeoServer1.1.0 that is said to be including ArcSDE support.But I am not very clear about the parameters about link to ArcSDE.
> >
> > In the catalog.xml
> >
> > <datastore id="sig.sde" enabled="true" namespace="cgf"><!-- enabled is optional, defaults to true -->
> > <description>A test SDE database</description>
> > <connectionParams>
> > <parameter name="dbtype" value="arcsde"/>
> > <parameter name="server" value="spatial-server"/>
> > <parameter name="port" value="5151"/>
> > <parameter name="instance" value="sig"/>
> > <parameter name="user" value="sde"/>
> > <parameter name="password" value="sde"/>
> > </connectionParams>
> > </datastore>
> > sig is the oracle database name(oracle9i),and arcsde service name( windows 2000 service) is sig_sde.
> >
> > I add a new directory in data/featureTypes/cgf/,and in this directory I add a info.xml file.
> >
> > info.xml is as follows:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <featureType datastore="sig.sde">
> > <!-- the name of the featureType in the dataStore, for postgis it
> > should be the tablename. -->
> > <name>SDE.R90010102</name>
> >
> > <!-- EPSG code for the FeatureType -->
> > <SRS>32118</SRS>
> > <!-- service elements returned for the capabilities document. -->
> > <title>test arcsde</title>
> > <abstract>This is some random road features</abstract>
> > <keywords>road, New York City, TOPP</keywords>
> >
> > <!-- The bounding box for this featureType, in lat long coords. -->
> > <latLonBoundingBox minx="-74.27000" miny="40.50000" maxx="-73.80000" maxy="40.94000"/>
> >
> > </featureType>
> > SDE.R90010102 is a layer of a map which is stored in oracle.
> >
> > Then I type http://localhost:8080/geoserverWeb/wfs?request=GetFeature&typename=cgf:SDE.R90010102
> >
> > I can't get the results,only errors,it shows :
> >
> > <?xml version="1.0" ?>
> > - <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://www.opengis.net/ogc http://localhost:8080/geoserverWeb/data/capabilities/wfs/1.0.0/OGC-exception.xsd&quot;&gt;
> > <ServiceException>problem with FeatureResults: java.util.NoSuchElementException: there is no FeatureType named cgf:SDE.R90010102 configured in this server at org.vfny.geoserver.config.CatalogConfig.getFeatureType(CatalogConfig.java:334) at org.vfny.geoserver.responses.wfs.FeatureResponse.execute(FeatureResponse.java:251) at org.vfny.geoserver.responses.wfs.FeatureResponse.execute(FeatureResponse.java:166) at org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:280) at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:195) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.vfny.geoserver.servlets.wfs.WfsDispatcher.doResponse(WfsDispatcher.java:159) at org.vfny.geoserver.servlets.wfs.WfsDispatcher.doGet(WfsDispatcher.java:112) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853

) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catali
na.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) a
t org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536)</ServiceException>

> > </ServiceExceptionReport>
> >
> >
> > Would you help me find the reason? I will be very appreciated.
> >
> > best wishes
> > Holly
>
> --
>

--