[OpenLayers-Users] Performance Tuning in Internet Explorer
Andreas Hocevar
ahocevar at opengeo.org
Tue Sep 22 16:46:52 EDT 2009
jim.meyer at concept-solutions.com wrote:
> Hi Christopher,
>
> We are using GeoServer (not MapServer). Is there a way to take all
> of the client-side options and pass them in a request to GeoServer so that
> GeoServer will interpret and style the variable shape data correctly?
>
For styling, you can use the sld_body url parameter. For filtering, you
can use the cql_filter url parameter. Alternatively, you can also use
OGC filters in the sld that you provide as sld_body. One caveat is the
url length, which, if longer than ~2000 characters, causes problems in
Internet Explorer. To avoid this, you may want to check out the patch
found at http://trac.openlayers.org/ticket/2224, which creates POST
requests instead of GET.
Regards,
Andreas.
> Thanks,
> Jim
>
> Jim Meyer
> Java Programmer
> ConceptSolutions, LLC
> We Make Business Intelligent
> 703.889.8434 [desk]
> 703.391.9041[fax]
> www.Concept-Solutions.com
>
> -----Original Message-----
> From: Christopher Schmidt [mailto:crschmidt at metacarta.com]
> Sent: Tuesday, September 22, 2009 2:06 PM
> To: jim.meyer at concept-solutions.com
> Subject: Re: [OpenLayers-Users] Performance Tuning in Internet Explorer
>
> On Tue, Sep 22, 2009 at 01:41:34PM -0400, jim.meyer at concept-solutions.com
> wrote:
>
>> Hi Till,
>>
>> We are using a lot of checkboxes on the client-side to generate a
>>
> complex
>
>> query that determines which shapes to display. This information is sent
>>
> to
>
>> the server where a complex query runs and returns JSON to the client with
>> the shape data. These shapes are rendered in a different color based upon
>> their time to activation. I don't believe they are static enough to be
>>
> able
>
>> to use WMS.
>>
>
> There isn't naything that you can do in OpenLayers that you can't do with
> some other server side rendering code -- either using MapServer or some
> other
> tool. You really aren't going to be able to render that many things at once
> in a clientside browser.
>
> Other suggestions people have offered, like setting a max for features
> returned at 100 or some such, also likely bear investigation.
>
> -- Chris
>
>
>> Thanks,
>> Jim
>>
>> Jim Meyer
>> Java Programmer
>> ConceptSolutions, LLC
>> We Make Business Intelligent
>> 703.889.8434 [desk]
>> 703.391.9041[fax]
>> www.Concept-Solutions.com
>>
>> -----Original Message-----
>> From: Till Adams [mailto:adams at terrestris.de]
>> Sent: Tuesday, September 22, 2009 1:00 PM
>> To: jim.meyer at concept-solutions.com
>> Cc: users at openlayers.org
>> Subject: Re: [OpenLayers-Users] Performance Tuning in Internet Explorer
>>
>> Jim,
>>
>> if it is just necessary to *SHOW* the shapes you probably might check to
>> serve them as WMS (try UMN or GeoServer) or pure as UMN-CGI service ?
>>
>> Doing that, your performance is an issue of the WMS server and not of
>> OpenLayers and there are many screws to work on like indexing,
>> scale-dependency and so on...and you are more browser independet,
>> because the only thing to show is an png or gif image.
>>
>> Till
>>
>>
>>
>>> Hi Christopher,
>>>
>>> We are rendering active airspaces on our map. We are required to
>>>
>> render
>>
>>> this many shapes on the map. Any other ideas?
>>>
>>> Thanks,
>>> Jim
>>>
>>> Jim Meyer
>>> Java Programmer
>>> ConceptSolutions, LLC
>>> We Make Business Intelligent
>>> 703.889.8434 [desk]
>>> 703.391.9041[fax]
>>> www.Concept-Solutions.com
>>>
>>> -----Original Message-----
>>> From: Christopher Schmidt [mailto:crschmidt at metacarta.com]
>>> Sent: Tuesday, September 22, 2009 11:37 AM
>>> To: jim.meyer at concept-solutions.com
>>> Cc: users at openlayers.org
>>> Subject: Re: [OpenLayers-Users] Performance Tuning in Internet Explorer
>>>
>>> On Tue, Sep 22, 2009 at 10:34:42AM -0400,
>>>
> jim.meyer at concept-solutions.com
>
>>> wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> We are rendering a vector layer that has 1000+ shapes. Currently,
>>>>
> it
>
>>>>
>>>>
>>> is
>>>
>>>
>>>> very slow in IE. Any ideas as to where to start to improve
>>>>
> performance?
>
>>>>
>>>>
>>> Render fewer shapes.
>>>
>>> Regards,
>>>
>>>
>> --
>> ----------------------------------------------------------
>> terrestris GmbH & Co. KG
>> Irmintrudisstrasse 17
>> 53111 Bonn
>> Germany
>>
>> Till Adams
>> Geschäftsführung
>>
>> Tel: +49 (0)228 / 962 899-52
>> Fax: +49 (0)228 / 962 899-57
>> adams at terrestris.de http://www.terrestris.de
>> Amtsgericht Bonn, HRA 6835
>> ---------------------------------------------------------
>>
>> Komplementärin:
>>
>> terrestris Verwaltungs GmbH
>>
>> vertreten durch:
>> Hinrich Paulsen, Till Adams
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list