[OpenLayers-Users] URL too long for IE mergeNewParams & MapServer replacement variable

David Fawcett david.fawcett at gmail.com
Tue Jul 7 11:33:42 EDT 2009


Karsten,

What part of your request is taking up so many characters?

If it is the query string, perhaps you can hard code most of the query
in your map file and then only send the where clause or certain
criteria as substitutions to MapServer?

David.

On Fri, Jul 3, 2009 at 1:28 PM, karsten vennemann<karsten at terragis.net> wrote:
> I have set-up a  a dynamic layer with Mapserver and OpenLayers based on a
> user defined query of data.
>
> In my Mapserver file I have defined a PostGIS layer with a replacement
> variable. The user fills in values in a query builder html form, the
> resulting SQL string is sent via POST to a PHP page containing the
> OpenLayers map. Using mergeNewParams the SQL string is merged into the the
> request for the layer, MapServer handles the replacement variable and the
> dynamic  layers is displayed correctly. So far this works great in Firefox
> but for the most complicated queries coming out of the query builder the SQL
> string is becoming very long and the request by Openlayers to display the
> layer will exceed 2048 characters (the apparent limit for IE 7) - thus
> breaking the application...
>
> Here is my question how can I set this up so that it is still working also
> in IE (preferably without changing the data base column names and without
> using MapScript).
> Is there a way that I can use POST instead of GET to transmit the SQL string
> to MapServer somehow. Any other ideas how I can get this done ?
>
> Karsten Vennemann
> Seattle, USA
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>



More information about the Users mailing list