[Geoserver-devel] GetFeatureInfo problem

Hey list!

I have a binary shapefile. I loaded it into geoserver as the Indexed Shape
file and set the Create Spatial Index to true. Then i created a new feature
type. Everything is ok. Then i try the identify tool in mapbuilder and i get
this exception:

Where's the problem?

7925672 [INFO] org.geotools.data.shapefile.indexed.FidIndexer -
Generating fids for file:/D:/GeoServerDataDir/data/vektorji/VOZLI.SHP
7925672 [INFO] org.vfny.geoserver.servlets.PartialBufferStrategy -
OutputStream was successfully aborted.
7925672 [SEVERE] org.vfny.geoserver.servlets.AbstractService - Service
exception occurred
org.vfny.geoserver.ServiceException: null error:Translator error
        at
org.vfny.geoserver.wfs.responses.GML2FeatureResponseDelegate.encode(GML2FeatureResponseDelegate.java:229)
        at
org.vfny.geoserver.wfs.responses.FeatureResponse.writeTo(FeatureResponse.java:138)
        at
org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:604)
        at
org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:334)
        at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:196)
        at
org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:56)
        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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java
:664)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.xml.transform.TransformerException: Translator error
        at
org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:129)
        at
org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:104)
        at
org.vfny.geoserver.wfs.responses.GML2FeatureResponseDelegate.encode(GML2FeatureResponseDelegate.java:220)
        ... 30 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: -1
        at java.lang.String.substring(String.java:1768)
        at
org.geotools.data.shapefile.indexed.FidIndexer.generate(FidIndexer.java:51)
        at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.createFeatureReader(IndexedShapefileDataStore.j
ava:428)
        at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureReader(IndexedShapefileDataStore.java
:405)
        at
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:365)
        at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:146)
        at
org.geotools.data.DefaultFeatureResults.getBounds(DefaultFeatureResults.java:191)
        at
org.geotools.data.crs.ForceCoordinateSystemFeatureResults.getBounds(ForceCoordinateSystemFeatureResults.java:
130)
        at
org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.encode(FeatureTransformer.java:404)
        at
org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(TransformerBase.java:610)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
        at
org.geotools.xml.transform.TransformerBase$Task.run(TransformerBase.java:292)
        at
org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:125)
        ... 32 more
7925672 [WARNING] org.vfny.geoserver.ServiceException - encountered
error: null error:Translator error
StackTrace: javax.xml.transform.TransformerException: Translator error
        at
org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:129)
        at
org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:104)
        at
org.vfny.geoserver.wfs.responses.GML2FeatureResponseDelegate.encode(GML2FeatureResponseDelegate.java:220)
        at
org.vfny.geoserver.wfs.responses.FeatureResponse.writeTo(FeatureResponse.java:138)
        at
org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:604)
        at
org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:334)
        at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:196)
        at
org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:56)
        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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java
:664)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: -1
        at java.lang.String.substring(String.java:1768)
        at
org.geotools.data.shapefile.indexed.FidIndexer.generate(FidIndexer.java:51)
        at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.createFeatureReader(IndexedShapefileDataStore.j
ava:428)
        at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureReader(IndexedShapefileDataStore.java
:405)
        at
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:365)
        at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:146)
        at
org.geotools.data.DefaultFeatureResults.getBounds(DefaultFeatureResults.java:191)
        at
org.geotools.data.crs.ForceCoordinateSystemFeatureResults.getBounds(ForceCoordinateSystemFeatureResults.java:
130)
        at
org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.encode(FeatureTransformer.java:404)
        at
org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(TransformerBase.java:610)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
        at
org.geotools.xml.transform.TransformerBase$Task.run(TransformerBase.java:292)
        at
org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:125)
        ... 32 more
---------
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1768)
        at
org.geotools.data.shapefile.indexed.FidIndexer.generate(FidIndexer.java:51)
        at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.createFeatureReader(IndexedShapefileDataStore.j
ava:428)
        at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureReader(IndexedShapefileDataStore.java
:405)
        at
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:365)
        at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:146)
        at
org.geotools.data.DefaultFeatureResults.getBounds(DefaultFeatureResults.java:191)
        at
org.geotools.data.crs.ForceCoordinateSystemFeatureResults.getBounds(ForceCoordinateSystemFeatureResults.java:
130)
        at
org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.encode(FeatureTransformer.java:404)
        at
org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(TransformerBase.java:610)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
        at
org.geotools.xml.transform.TransformerBase$Task.run(TransformerBase.java:292)
        at
org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:125)
        at
org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:104)
        at
org.vfny.geoserver.wfs.responses.GML2FeatureResponseDelegate.encode(GML2FeatureResponseDelegate.java:220)
        at
org.vfny.geoserver.wfs.responses.FeatureResponse.writeTo(FeatureResponse.java:138)
        at
org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:604)
        at
org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:334)
        at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:196)
        at
org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:56)
        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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java
:664)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)

--
View this message in context: http://www.nabble.com/GetFeatureInfo-problem-tf3453929.html#a9635067
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

GeoUser ha scritto:

Hey list!

I have a binary shapefile. I loaded it into geoserver as the Indexed Shape
file and set the Create Spatial Index to true. Then i created a new feature
type. Everything is ok. Then i try the identify tool in mapbuilder and i get
this exception:

Hum, Geoserver version please?
Anyways, seems to be a problem in the indexed shapefile data store indeed given the stack trace you provided.
Cheers
Andrea

Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: -1
        at java.lang.String.substring(String.java:1768)
        at
org.geotools.data.shapefile.indexed.FidIndexer.generate(FidIndexer.java:51)
        at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.createFeatureReader(IndexedShapefileDataStore.j
ava:428)
        at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureReader(IndexedShapefileDataStore.java
:405)
        at
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:365)
        at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:146)
        at
org.geotools.data.DefaultFeatureResults.getBounds(DefaultFeatureResults.java:191)
        at
org.geotools.data.crs.ForceCoordinateSystemFeatureResults.getBounds(ForceCoordinateSystemFeatureResults.java:
130)
        at

GeoUser ha scritto:

Hey list!

I have a binary shapefile. I loaded it into geoserver as the Indexed Shape
file and set the Create Spatial Index to true. Then i created a new feature
type. Everything is ok. Then i try the identify tool in mapbuilder and i get
this exception:

Where's the problem?

A quick look at the code that throws the exception:

try {
                 filename = java.net.URLDecoder.decode(shpURL.toString(),
                         "US-ASCII");
                 filename = filename.substring(0, filename.lastIndexOf(".shp"));
             } catch (java.io.UnsupportedEncodingException use) {

makes me wonder... is the file name uppercase, or at least the extension? If so, does making it lowercase fix the problem?

Cheers
Andrea

I converted files to lowercase. Now i get no exceptions. But nothing
changed? Shouldn't there be a new file that contains spatial index?

After turning on "create cpatial index" i still got only 3 files:

shape.dbf
shape.shp
shape.shx

aaime wrote:

GeoUser ha scritto:

Hey list!

I have a binary shapefile. I loaded it into geoserver as the Indexed
Shape
file and set the Create Spatial Index to true. Then i created a new
feature
type. Everything is ok. Then i try the identify tool in mapbuilder and i
get
this exception:

Hum, Geoserver version please?
Anyways, seems to be a problem in the indexed shapefile data store
indeed given the stack trace you provided.
Cheers
Andrea

Caused by: java.lang.StringIndexOutOfBoundsException: String index out
of
range: -1
        at java.lang.String.substring(String.java:1768)
        at
org.geotools.data.shapefile.indexed.FidIndexer.generate(FidIndexer.java:51)
        at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.createFeatureReader(IndexedShapefileDataStore.j
ava:428)
        at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureReader(IndexedShapefileDataStore.java
:405)
        at
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:365)
        at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:146)
        at
org.geotools.data.DefaultFeatureResults.getBounds(DefaultFeatureResults.java:191)
        at
org.geotools.data.crs.ForceCoordinateSystemFeatureResults.getBounds(ForceCoordinateSystemFeatureResults.java:
130)
        at

-------------------------------------------------------------------------
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
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
View this message in context: http://www.nabble.com/GetFeatureInfo-problem-tf3453929.html#a9804859
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

GeoUser ha scritto:

I converted files to lowercase. Now i get no exceptions. But nothing
changed? Shouldn't there be a new file that contains spatial index?

After turning on "create cpatial index" i still got only 3 files:

shape.dbf
shape.shp
shape.shx

Just checked with a random shapefile on my disk. The indexed shapefile
datastore does not create the .qix and .fix files on configuration, but
on first access. Just issue a GetMap or GetFeature request against the
datastore and you'll see the two files appear. Otherwise, there's a bug.

Cheers
Andrea

Thanks for the hint, i'll try. If this is a bug, will it get fixed?

aaime wrote:

GeoUser ha scritto:

I converted files to lowercase. Now i get no exceptions. But nothing
changed? Shouldn't there be a new file that contains spatial index?

After turning on "create cpatial index" i still got only 3 files:

shape.dbf
shape.shp
shape.shx

Just checked with a random shapefile on my disk. The indexed shapefile
datastore does not create the .qix and .fix files on configuration, but
on first access. Just issue a GetMap or GetFeature request against the
datastore and you'll see the two files appear. Otherwise, there's a bug.

Cheers
Andrea

-------------------------------------------------------------------------
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
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
View this message in context: http://www.nabble.com/GetFeatureInfo-problem-tf3453929.html#a9805127
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

GeoUser ha scritto:

Thanks for the hint, i'll try. If this is a bug, will it get fixed?

Of course it will be, but it may be that we'll fix it for 1.5.1 unless
it's really a showstopper, since we're pretty late in the 1.5.0 release
cycle. Let us know.

Cheers
Andrea

Well now that making spatial index works i have something else to ask. I have
a shapefile that contains ~~17.000 points. I load it into GS then as indexed
shapefile. Then i make a simple wms request to create fix and qix files.
Then i try mapbuilders tool WfsGetFeature. And it takes ~~11seconds to get
the result from gs even if i zoom in so there are only ~~50 points on
screen. Is it normal for this operation to take so long?

GS prints out this:

Request: null
output format:GML2
max features:2147483647
version:
queries:
  Query
   feature type: table:vozli
   filter: [ the_geom intersects POLYGON ((551664.653847085
163418.16947405055, 551664.653847085 163451.32052469734, 551
697.8048977318 163451.32052469734, 551697.8048977318 163418.16947405055,
551664.653847085 163418.16947405055)) ]
   [properties: ALL ]

3371844 [INFO] org.vfny.geoserver.servlets.AbstractService - Service
handled

--
View this message in context: http://www.nabble.com/GetFeatureInfo-problem-tf3453929.html#a9805297
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

GeoUser ha scritto:

Well now that making spatial index works i have something else to ask. I have
a shapefile that contains ~~17.000 points. I load it into GS then as indexed
shapefile. Then i make a simple wms request to create fix and qix files.
Then i try mapbuilders tool WfsGetFeature. And it takes ~~11seconds to get
the result from gs even if i zoom in so there are only ~~50 points on
screen. Is it normal for this operation to take so long?

That seems way too much. Just to make sure, you're trying to display the
layers using WFS support, so GML parsing is involved, right? I believe you're doing it in order to have editing, correct?
If this is the case, how much time does it take to perform a direct WFS call? I'm also wondering what is the exact call MapBuilder is performing (may it be that it's asking for the full layer even when you're zoomed in?).

In the Geoserver log, when you use MapBuilder you should see something like:

189109 [INFO] org.vfny.geoserver.servlets.AbstractService - handling request:
Request: null
  output format:GML2
  max features:2147483647
  version:
  queries:
   Query
    feature type: topp:states
    filter: [ the_geom intersects POLYGON ((-75.102613 40.212597, -75.102613 41.512517, -72.361859 41.512517, -72.361859 40.212597, -75.102613 40.212597)) ]
    [properties: STATE_NAME, PERSONS]

How does the request performed by MapBuilder look like?
Cheers
Andrea

This is what GS prints out if i set logging levet to ALL:

  211141 [FINE] org.vfny.geoserver.servlets.AbstractService - reading
request: request=GetFeature&typeName=table:vozli&bb
ox=555411.0302675734,165337.5122947596,555431.4265919544,165357.9086191406
211141 [FINE] org.vfny.geoserver.global.Data - getting type table:vozli
211141 [INFO] org.vfny.geoserver.servlets.AbstractService - handling
request:
Request: null
output format:GML2
max features:2147483647
version:
queries:
  Query
   feature type: table:vozli
   filter: [ the_geom intersects POLYGON ((555411.0302675734
165337.5122947596, 555411.0302675734 165357.9086191406, 555
431.4265919544 165357.9086191406, 555431.4265919544 165337.5122947596,
555411.0302675734 165337.5122947596)) ]
   [properties: ALL ]

211141 [FINE] org.vfny.geoserver.servlets.AbstractService - strategy is:
PARTIAL-BUFFER
211157 [FINE] org.vfny.geoserver.global.Data - getting type table:vozli
211157 [FINE] org.vfny.geoserver.wfs.responses.FeatureResponse - Query is
  Query
   feature type: table:vozli
   filter: [ the_geom intersects POLYGON ((555411.0302675734
165337.5122947596, 555411.0302675734 165357.9086191406, 555
431.4265919544 165357.9086191406, 555431.4265919544 165337.5122947596,
555411.0302675734 165337.5122947596)) ]
   [properties: ALL ]
To gt2: Query:
   feature type: vozli
   filter: [ the_geom intersects POLYGON ((555411.0302675734
165337.5122947596, 555411.0302675734 165357.9086191406, 555
431.4265919544 165357.9086191406, 555431.4265919544 165337.5122947596,
555411.0302675734 165337.5122947596)) ]
   [properties: ALL ]
211172 [FINE] org.vfny.geoserver.servlets.AbstractService - mime type is:
text/xml; charset=UTF-8
211172 [FINE] org.vfny.geoserver.servlets.AbstractService - content
encoding is: null

--
View this message in context: http://www.nabble.com/GetFeatureInfo-problem-tf3453929.html#a9805622
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

GeoUser ha scritto:

This is what GS prints out if i set logging levet to ALL:

  211141 [FINE] org.vfny.geoserver.servlets.AbstractService - reading
request: request=GetFeature&typeName=table:vozli&bb
ox=555411.0302675734,165337.5122947596,555431.4265919544,165357.9086191406
211141 [FINE] org.vfny.geoserver.global.Data - getting type table:vozli
211141 [INFO] org.vfny.geoserver.servlets.AbstractService - handling
request:
Request: null
output format:GML2
max features:2147483647
version:
queries:
  Query
   feature type: table:vozli
   filter: [ the_geom intersects POLYGON ((555411.0302675734
165337.5122947596, 555411.0302675734 165357.9086191406, 555
431.4265919544 165357.9086191406, 555431.4265919544 165337.5122947596,
555411.0302675734 165337.5122947596)) ]
   [properties: ALL ]

Hum, so a bbox filter is getting used after all...
I just tried out with a shapefile with 127.000 point features,
and then issues a GetFeature with bbox, took 1.3 seconds to make
Geoserver output around 100 of them on an Intel Core 2 Duo running
at 2Ghz speed.
Can you try doing the same request directly against Geoserver,
using the demo request window, and using the following as a template?

<!-- Performs a get feature with a bounding box filter. -->
<!-- The BBOX filter is a convenience for a <Not><Disjoint>, -->
<!-- it fetches all features that spatially interact with the given box. -->
<!-- This example also shows how to request specific properties, in this -->
<!-- case we just get the STATE_NAME and PERSONS -->

<wfs:GetFeature service="WFS" version="1.0.0"
   xmlns:topp="http://www.openplans.org/topp&quot;
   xmlns:wfs="http://www.opengis.net/wfs&quot;
   xmlns:ogc="http://www.opengis.net/ogc&quot;
   xmlns:gml="http://www.opengis.net/gml&quot;
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
   xsi:schemaLocation="http://www.opengis.net/wfs
                       http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
   <wfs:Query typeName="topp:gnis_pop">
     <ogc:Filter>
       <ogc:BBOX>
         <ogc:PropertyName>the_geom</ogc:PropertyName>
         <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
            <gml:coordinates>-73.102613,40.812597 -72.361859,41.512517</gml:coordinates>
         </gml:Box>
       </ogc:BBOX>
    </ogc:Filter>
   </wfs:Query>
</wfs:GetFeature>

If it's slow, then something going bad in your Geoserver, and I ask
you if you can send me data to try out (by private mail), otherwise
it's MapBuilder fault and you'll have to ask on the mb mailing list.

Cheers
Andrea

This works fine. But i did some more testing.

The problematic shapefile has many attributes (30). I deleted almost all of
them so there are only 4 atributes now. Then i loaded id int GS same way as
the old one (with all atributes). Now i have both shapefiles in GS (i
changed the name so there are no problems). Now i try same thing
(GetFeature) on the one with less atributes. And it works fast. So i guess
it's mabuilders problem?

This is the slow shape log (the one with 30 attributes):

178359 [FINE] org.vfny.geoserver.servlets.AbstractService - reading
request: request=GetFeature&typeName=table:vozli&bb
ox=553735.4503092421,163261.47048375572,553769.412967532,163295.43314204543
178359 [FINEST]
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader - setting
global request parameters
178359 [FINEST]
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader - setting
query request parameters
178375 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- adding simple element table:vozli
178375 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- reading nested: null
178375 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- found implicit all requested
178375 [FINEST] org.vfny.geoserver.wfs.requests.WfsKvpRequestReader -
bbox filter: 553735.4503092421,163261.47048375572
,553769.412967532,163295.43314204543
178375 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- adding simple element 553735.4503092421
178375 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- adding simple element 163261.47048375572
178375 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- adding simple element 553769.412967532
178375 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- adding simple element 163295.43314204543
178375 [FINE] org.vfny.geoserver.global.Data - getting type table:vozli
178375 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
178375 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
178375 [FINEST]
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader - setting
query request parameters
178375 [FINEST]
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader - setting
properties: 0
178375 [FINEST]
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader - setting
filters: 0
178375 [FINEST]
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader - query
filter: [ the_geom intersects POLYG
ON ((553735.4503092421 163261.47048375572, 553735.4503092421
163295.43314204543, 553769.412967532 163295.43314204543, 55
3769.412967532 163261.47048375572, 553735.4503092421 163261.47048375572))
]
178375 [FINER] org.vfny.geoserver.servlets.AbstractService -
serviceRequest provided with HttpServletRequest: org.apach
e.catalina.connector.RequestFacade@anonymised.com
178375 [INFO] org.vfny.geoserver.servlets.AbstractService - handling
request:
Request: null
output format:GML2
max features:2147483647
version:
queries:
  Query
   feature type: table:vozli
   filter: [ the_geom intersects POLYGON ((553735.4503092421
163261.47048375572, 553735.4503092421 163295.43314204543, 5
53769.412967532 163295.43314204543, 553769.412967532 163261.47048375572,
553735.4503092421 163261.47048375572)) ]
   [properties: ALL ]

178375 [FINE] org.vfny.geoserver.servlets.AbstractService - strategy is:
PARTIAL-BUFFER
178375 [FINER] org.vfny.geoserver.servlets.AbstractService - executing
request
178375 [FINEST] org.vfny.geoserver.wfs.responses.FeatureResponse -
execute FeatureRequest response. Called request is:
Request: null
output format:GML2
max features:2147483647
version:
queries:
  Query
   feature type: table:vozli
   filter: [ the_geom intersects POLYGON ((553735.4503092421
163261.47048375572, 553735.4503092421 163295.43314204543, 5
53769.412967532 163295.43314204543, 553769.412967532 163261.47048375572,
553735.4503092421 163261.47048375572)) ]
   [properties: ALL ]

178375 [FINEST] org.geotools.factory.FactoryFinder - Finding ClassLoader
178375 [FINEST] org.geotools.factory.FactoryFinder - Using system
ClassLoader onlyWebappClassLoader
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@anonymised.com

178375 [FINEST] org.geotools.factory.FactoryFinder - Searching resource
jar:file:/D:/apache-tomcat-5.5.20.20070214/weba
pps/geoserver/WEB-INF/lib/wfs-1.5.0-RC1.jar!/META-INF/services/org.vfny.geoserver.wfs.FeatureResponseDelegateProducerSpi

178375 [FINEST] org.geotools.factory.FactoryFinder - Reading Factory ,
has stream : true
178375 [FINEST] org.geotools.factory.FactoryFinder - Creating instance
from 'org.vfny.geoserver.wfs.responses.GML2Featu
reResponseDelegateFactory'
178375 [FINEST] org.geotools.factory.FactoryFinder - Factory name
unacceptable : 'org.vfny.geoserver.wfs.responses.GML2
FeatureResponseDelegateFactory'
178375 [FINEST] org.geotools.factory.FactoryFinder - Creating instance
from 'org.vfny.geoserver.wfs.responses.Shapefile
FeatureResponseDelegateFactory'
178375 [FINEST] org.geotools.factory.FactoryFinder - Factory name
unacceptable : 'org.vfny.geoserver.wfs.responses.Shap
efileFeatureResponseDelegateFactory'
178375 [FINE] org.vfny.geoserver.global.Data - getting type table:vozli
178375 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
178375 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
178375 [FINE] org.vfny.geoserver.wfs.responses.FeatureResponse - Query is
  Query
   feature type: table:vozli
   filter: [ the_geom intersects POLYGON ((553735.4503092421
163261.47048375572, 553735.4503092421 163295.43314204543, 5
53769.412967532 163295.43314204543, 553769.412967532 163261.47048375572,
553735.4503092421 163261.47048375572)) ]
   [properties: ALL ]
To gt2: Query:
   feature type: vozli
   filter: [ the_geom intersects POLYGON ((553735.4503092421
163261.47048375572, 553735.4503092421 163295.43314204543, 5
53769.412967532 163295.43314204543, 553769.412967532 163261.47048375572,
553735.4503092421 163261.47048375572)) ]
   [properties: ALL ]
178390 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
178390 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
178390 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
178390 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
178390 [FINER] org.vfny.geoserver.servlets.AbstractService - execution
succeed
178390 [FINEST] org.vfny.geoserver.servlets.AbstractService - getting
strategy output
178390 [FINER] org.vfny.geoserver.servlets.AbstractService - strategy
output is: org.vfny.geoserver.util.PartialBuffere
dOutputStream
178390 [FINE] org.vfny.geoserver.servlets.AbstractService - mime type is:
text/xml; charset=UTF-8
178390 [FINE] org.vfny.geoserver.servlets.AbstractService - content
encoding is: null
178390 [FINEST] org.geotools.index.rtree.FilterConsumer -
AttributeExpression ignored!
178390 [FINEST] org.geotools.data.shapefile.StreamLogging - IndexFile has
been opened. Number open: 1
178390 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Reading from
file...
178390 [FINEST] org.geotools.index.quadtree.fs.FileSystemIndexStore -
Opening QuadTree D:\GeoServerDataDir\data\vektorj
i\vozli.qix
178390 [FINEST] org.geotools.index.quadtree.fs.FileSystemIndexStore -
QuadTree opened
178390 [FINEST] org.geotools.index.quadtree.QuadTree - Querying
Env[553735.4503092421 : 553769.412967532, 163261.470483
75572 : 163295.43314204543]
178390 [FINEST] org.geotools.data.shapefile.StreamLogging - Dbase File
Reader has been opened. Number open: 1
178390 [FINEST] org.geotools.data.shapefile.StreamLogging - Shapefile
Reader has been opened. Number open: 1
178390 [FINER] org.geotools.data.shapefile.Lock - Start Read
Lock:http-8090-Processor24 has 1 locks
178390 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
178390 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
178390 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
178390 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
178406 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
178406 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
178406 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
178406 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
187609 [FINER] org.geotools.data.shapefile.Lock - unlock
Read:http-8090-Processor24 has 0 locks
187625 [FINEST] org.geotools.data.shapefile.StreamLogging - Shapefile
Reader has been closed. Number open: 0
187625 [FINEST] org.geotools.data.shapefile.StreamLogging - Dbase File
Reader has been closed. Number open: 0
187625 [FINEST] org.geotools.data.shapefile.StreamLogging -
IndexedFidReader has been closed. Number open: -1
187625 [FINEST] org.geotools.index.rtree.FilterConsumer -
AttributeExpression ignored!
187625 [FINEST] org.geotools.data.shapefile.StreamLogging - IndexFile has
been opened. Number open: 1
187625 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Reading from
file...
187625 [FINEST] org.geotools.index.quadtree.fs.FileSystemIndexStore -
Opening QuadTree D:\GeoServerDataDir\data\vektorj
i\vozli.qix
187625 [FINEST] org.geotools.index.quadtree.fs.FileSystemIndexStore -
QuadTree opened
187625 [FINEST] org.geotools.index.quadtree.QuadTree - Querying
Env[553735.4503092421 : 553769.412967532, 163261.470483
75572 : 163295.43314204543]
187625 [FINEST] org.geotools.data.shapefile.StreamLogging - Dbase File
Reader has been opened. Number open: 1
187625 [FINEST] org.geotools.data.shapefile.StreamLogging - Shapefile
Reader has been opened. Number open: 1
187625 [FINER] org.geotools.data.shapefile.Lock - Start Read
Lock:http-8090-Processor24 has 1 locks
187625 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
187625 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
187625 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
187625 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
187625 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
187625 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
187640 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
187640 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
196062 [FINER] GMLUtils - ENTRY POINT (553756.226 163282.325)
196062 [FINER] GMLUtils - RETURN Point
196890 [FINER]
org.geotools.gml.producer.FeatureTransformer$FeatureTranslator - closing
reader org.geotools.data.crs.Fo
rceCoordinateSystemFeatureReader@anonymised.com
196890 [FINER] org.geotools.data.shapefile.Lock - unlock
Read:http-8090-Processor24 has 0 locks
196890 [FINEST] org.geotools.data.shapefile.StreamLogging - Shapefile
Reader has been closed. Number open: 0
196890 [FINEST] org.geotools.data.shapefile.StreamLogging - Dbase File
Reader has been closed. Number open: 0
196890 [FINEST] org.geotools.data.shapefile.StreamLogging -
IndexedFidReader has been closed. Number open: -1
196890 [INFO] org.vfny.geoserver.servlets.AbstractService - Service
handled

This is the fast shape log (the one with 4 attributes):

264937 [FINE] org.vfny.geoserver.servlets.AbstractService - reading
request: request=GetFeature&typeName=table:vozli0&b
box=553535.8224915905,167899.32697237417,553586.7404111953,167950.24489197892
264953 [FINEST]
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader - setting
global request parameters
264953 [FINEST]
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader - setting
query request parameters
264953 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- adding simple element table:vozli0
264953 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- reading nested: null
264953 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- found implicit all requested
264953 [FINEST] org.vfny.geoserver.wfs.requests.WfsKvpRequestReader -
bbox filter: 553535.8224915905,167899.32697237417
,553586.7404111953,167950.24489197892
264953 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- adding simple element 553535.8224915905
264953 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- adding simple element 167899.32697237417
264953 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- adding simple element 553586.7404111953
264953 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader
- adding simple element 167950.24489197892
264953 [FINE] org.vfny.geoserver.global.Data - getting type table:vozli0
264953 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
264953 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
264953 [FINEST]
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader - setting
query request parameters
264953 [FINEST]
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader - setting
properties: 0
264953 [FINEST]
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader - setting
filters: 0
264953 [FINEST]
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader - query
filter: [ the_geom intersects POLYG
ON ((553535.8224915905 167899.32697237417, 553535.8224915905
167950.24489197892, 553586.7404111953 167950.24489197892, 5
53586.7404111953 167899.32697237417, 553535.8224915905
167899.32697237417)) ]
264953 [FINER] org.vfny.geoserver.servlets.AbstractService -
serviceRequest provided with HttpServletRequest: org.apach
e.catalina.connector.RequestFacade@anonymised.com
264953 [INFO] org.vfny.geoserver.servlets.AbstractService - handling
request:
Request: null
output format:GML2
max features:2147483647
version:
queries:
  Query
   feature type: table:vozli0
   filter: [ the_geom intersects POLYGON ((553535.8224915905
167899.32697237417, 553535.8224915905 167950.24489197892, 5
53586.7404111953 167950.24489197892, 553586.7404111953 167899.32697237417,
553535.8224915905 167899.32697237417)) ]
   [properties: ALL ]

264953 [FINE] org.vfny.geoserver.servlets.AbstractService - strategy is:
PARTIAL-BUFFER
264953 [FINER] org.vfny.geoserver.servlets.AbstractService - executing
request
264953 [FINEST] org.vfny.geoserver.wfs.responses.FeatureResponse -
execute FeatureRequest response. Called request is:
Request: null
output format:GML2
max features:2147483647
version:
queries:
  Query
   feature type: table:vozli0
   filter: [ the_geom intersects POLYGON ((553535.8224915905
167899.32697237417, 553535.8224915905 167950.24489197892, 5
53586.7404111953 167950.24489197892, 553586.7404111953 167899.32697237417,
553535.8224915905 167899.32697237417)) ]
   [properties: ALL ]

264953 [FINEST] org.geotools.factory.FactoryFinder - Finding ClassLoader
264953 [FINEST] org.geotools.factory.FactoryFinder - Using system
ClassLoader onlyWebappClassLoader
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@anonymised.com

264953 [FINEST] org.geotools.factory.FactoryFinder - Searching resource
jar:file:/D:/apache-tomcat-5.5.20.20070214/weba
pps/geoserver/WEB-INF/lib/wfs-1.5.0-RC1.jar!/META-INF/services/org.vfny.geoserver.wfs.FeatureResponseDelegateProducerSpi

264953 [FINEST] org.geotools.factory.FactoryFinder - Reading Factory ,
has stream : true
264953 [FINEST] org.geotools.factory.FactoryFinder - Creating instance
from 'org.vfny.geoserver.wfs.responses.GML2Featu
reResponseDelegateFactory'
264953 [FINEST] org.geotools.factory.FactoryFinder - Factory name
unacceptable : 'org.vfny.geoserver.wfs.responses.GML2
FeatureResponseDelegateFactory'
264953 [FINEST] org.geotools.factory.FactoryFinder - Creating instance
from 'org.vfny.geoserver.wfs.responses.Shapefile
FeatureResponseDelegateFactory'
264953 [FINEST] org.geotools.factory.FactoryFinder - Factory name
unacceptable : 'org.vfny.geoserver.wfs.responses.Shap
efileFeatureResponseDelegateFactory'
264953 [FINE] org.vfny.geoserver.global.Data - getting type table:vozli0
264953 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
264953 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
264953 [FINE] org.vfny.geoserver.wfs.responses.FeatureResponse - Query is
  Query
   feature type: table:vozli0
   filter: [ the_geom intersects POLYGON ((553535.8224915905
167899.32697237417, 553535.8224915905 167950.24489197892, 5
53586.7404111953 167950.24489197892, 553586.7404111953 167899.32697237417,
553535.8224915905 167899.32697237417)) ]
   [properties: ALL ]
To gt2: Query:
   feature type: vozli0
   filter: [ the_geom intersects POLYGON ((553535.8224915905
167899.32697237417, 553535.8224915905 167950.24489197892, 5
53586.7404111953 167950.24489197892, 553586.7404111953 167899.32697237417,
553535.8224915905 167899.32697237417)) ]
   [properties: ALL ]
264953 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
264968 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
264968 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
264968 [FINER] org.vfny.geoserver.global.DataStoreInfo - in string url
264968 [FINER] org.vfny.geoserver.servlets.AbstractService - execution
succeed
264968 [FINEST] org.vfny.geoserver.servlets.AbstractService - getting
strategy output
264968 [FINER] org.vfny.geoserver.servlets.AbstractService - strategy
output is: org.vfny.geoserver.util.PartialBuffere
dOutputStream
264968 [FINE] org.vfny.geoserver.servlets.AbstractService - mime type is:
text/xml; charset=UTF-8
264968 [FINE] org.vfny.geoserver.servlets.AbstractService - content
encoding is: null
264968 [FINEST] org.geotools.index.rtree.FilterConsumer -
AttributeExpression ignored!
264968 [FINEST] org.geotools.data.shapefile.StreamLogging - IndexFile has
been opened. Number open: 1
264968 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Reading from
file...
264968 [FINEST] org.geotools.index.quadtree.fs.FileSystemIndexStore -
Opening QuadTree D:\GeoServerDataDir\data\vektorj
i\vozli0.qix
264968 [FINEST] org.geotools.index.quadtree.fs.FileSystemIndexStore -
QuadTree opened
264968 [FINEST] org.geotools.index.quadtree.QuadTree - Querying
Env[553535.8224915905 : 553586.7404111953, 167899.32697
237417 : 167950.24489197892]
264968 [FINEST] org.geotools.data.shapefile.StreamLogging - Dbase File
Reader has been opened. Number open: 1
264968 [FINEST] org.geotools.data.shapefile.StreamLogging - Shapefile
Reader has been opened. Number open: 1
264968 [FINER] org.geotools.data.shapefile.Lock - Start Read
Lock:http-8090-Processor25 has 1 locks
264968 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
264968 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
264968 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
264968 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
264968 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
264984 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
264984 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
264984 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
265406 [FINER] org.geotools.data.shapefile.Lock - unlock
Read:http-8090-Processor25 has 0 locks
265406 [FINEST] org.geotools.data.shapefile.StreamLogging - Shapefile
Reader has been closed. Number open: 0
265406 [FINEST] org.geotools.data.shapefile.StreamLogging - Dbase File
Reader has been closed. Number open: 0
265406 [FINEST] org.geotools.data.shapefile.StreamLogging -
IndexedFidReader has been closed. Number open: -1
265406 [FINEST] org.geotools.index.rtree.FilterConsumer -
AttributeExpression ignored!
265406 [FINEST] org.geotools.data.shapefile.StreamLogging - IndexFile has
been opened. Number open: 1
265406 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Reading from
file...
265406 [FINEST] org.geotools.index.quadtree.fs.FileSystemIndexStore -
Opening QuadTree D:\GeoServerDataDir\data\vektorj
i\vozli0.qix
265406 [FINEST] org.geotools.index.quadtree.fs.FileSystemIndexStore -
QuadTree opened
265406 [FINEST] org.geotools.index.quadtree.QuadTree - Querying
Env[553535.8224915905 : 553586.7404111953, 167899.32697
237417 : 167950.24489197892]
265406 [FINEST] org.geotools.data.shapefile.StreamLogging - Dbase File
Reader has been opened. Number open: 1
265406 [FINEST] org.geotools.data.shapefile.StreamLogging - Shapefile
Reader has been opened. Number open: 1
265406 [FINER] org.geotools.data.shapefile.Lock - Start Read
Lock:http-8090-Processor25 has 1 locks
265422 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
265422 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
265422 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
265422 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
265422 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
265422 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
265422 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
265437 [FINEST] org.geotools.data.shapefile.shp.IndexFile - Filling
buffer...
265797 [FINER] GMLUtils - ENTRY POINT (553567.9878960355
167923.11641627908)
265797 [FINER] GMLUtils - RETURN Point
265859 [FINER]
org.geotools.gml.producer.FeatureTransformer$FeatureTranslator - closing
reader org.geotools.data.crs.Fo
rceCoordinateSystemFeatureReader@anonymised.com
265859 [FINER] org.geotools.data.shapefile.Lock - unlock
Read:http-8090-Processor25 has 0 locks
265859 [FINEST] org.geotools.data.shapefile.StreamLogging - Shapefile
Reader has been closed. Number open: 0
265859 [FINEST] org.geotools.data.shapefile.StreamLogging - Dbase File
Reader has been closed. Number open: 0
265859 [FINEST] org.geotools.data.shapefile.StreamLogging -
IndexedFidReader has been closed. Number open: -1
265859 [INFO] org.vfny.geoserver.servlets.AbstractService - Service
handled

--
View this message in context: http://www.nabble.com/GetFeatureInfo-problem-tf3453929.html#a9806565
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

GeoUser ha scritto:

This works fine. But i did some more testing.

The problematic shapefile has many attributes (30). I deleted almost all of
them so there are only 4 atributes now. Then i loaded id int GS same way as
the old one (with all atributes). Now i have both shapefiles in GS (i
changed the name so there are no problems). Now i try same thing
(GetFeature) on the one with less atributes. And it works fast. So i guess
it's mabuilders problem?

Yeah, quite likely. My guess is that mapbuilder builds a dom out of the
GetFeature output, and that is slow. The less attributes you have, the
faster it'll be. I guess you can try FireBug, it has a javascript profiler that will help you double check where the slowness is.

Cheers
Andrea

I did the profiling. And it seems it's not Mapbuilders problem.

The fast request took 90ms to complete.
The slow request took 200ms to complete.

So it's not mapbuilders problem. It has to wait for GS response. weird.

aaime wrote:

GeoUser ha scritto:

This works fine. But i did some more testing.

The problematic shapefile has many attributes (30). I deleted almost all
of
them so there are only 4 atributes now. Then i loaded id int GS same way
as
the old one (with all atributes). Now i have both shapefiles in GS (i
changed the name so there are no problems). Now i try same thing
(GetFeature) on the one with less atributes. And it works fast. So i
guess
it's mabuilders problem?

Yeah, quite likely. My guess is that mapbuilder builds a dom out of the
GetFeature output, and that is slow. The less attributes you have, the
faster it'll be. I guess you can try FireBug, it has a javascript
profiler that will help you double check where the slowness is.

Cheers
Andrea

-------------------------------------------------------------------------
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
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
View this message in context: http://www.nabble.com/GetFeatureInfo-problem-tf3453929.html#a9807238
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

GeoUser ha scritto:

I did the profiling. And it seems it's not Mapbuilders problem.

The fast request took 90ms to complete.
The slow request took 200ms to complete.

So it's not mapbuilders problem. It has to wait for GS response. weird.

Hmm... can you reproduce the slowness in a direct call to
geoserver? If so, send me the shapefile by private mail, and I'll
have a look.

Cheers
Andrea