[Geoserver-users] how many layers can show the OpenLayers??

Hi, I have a map whit 85 layers, but in Iexplorer showme only squares of color pink in the map, but in firefox showme the map correctly.
If I set only 80 layers in bot browsers showme the map correctly.

Until how many layers lets to me show the Iexplorer?? to somebody has passed him the same??

this is my code, maybe somebody could correct to me in case of error. Thanks

#map { width: 806px; height: 560px; border: 1px solid black; } #wrapper { width: 836px; } #location { float: right; }

WMS Example

Shows the basic use of openlayers using a WMS layer

Este es mi primer Demo!!
···

Arturo Juárez Lima

.

Arturo Juàrez ha scritto:

Hi, I have a map whit 85 layers, but in Iexplorer showme only squares of color pink in the map, but in firefox showme the map correctly.
If I set only 80 layers in bot browsers showme the map correctly.

Until how many layers lets to me show the Iexplorer?? to somebody has passed him the same??

That is happening because the server is almost dying trying to render
all that information within the http timeouts. If you really have to
render that much in tiled form, use GeoWebCache, and leave directly to
GeoServer only the layers that do change often (if you have any).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

I don't believe OpenLayers has any built-in limit to how many WMS layers you can pack into an OpenLayers.Layer.WMS. However, in Internet Explorer there is a hard limit of how long a URL can be, which indirectly imposes a limit on how many layers can be combined in a single WMS layer. I suggest you use the WMS->Contents section of the GeoServer admin console to create a layer group combining the layers you would like to use in OpenLayers; then you will not have to fit all the layer names into the URL.

(A POST request is not an option here since OpenLayers uses IMG elements for the tiles of the maps.)

Hope this helps,
-David Winslow

Arturo Juàrez wrote:

Hi, I have a map whit 85 layers, but in Iexplorer showme only squares of color pink in the map, but in firefox showme the map correctly.
If I set only 80 layers in bot browsers showme the map correctly.

Until how many layers lets to me show the Iexplorer?? to somebody has passed him the same??

this is my code, maybe somebody could correct to me in case of error. Thanks

<html xmlns="http://www.w3.org/1999/xhtml&quot;&gt;
  <head>
     <style type="text/css">
            #map {
                width: 806px;
                height: 560px;
                border: 1px solid black;
            }
            #wrapper {
                width: 836px;
            }
            #location {
                float: right;
            }
        </style>

    <link rel="stylesheet" href="http://172.16.23.21:8080/geoserver/OpenLayers/theme/default/style.css&quot; type="text/css" />
   <link rel="stylesheet" href="style.css" type="text/css" />
    <script src="http://172.16.23.21:8080/geoserver/OpenLayers/OpenLayers.js&quot;&gt;&lt;/script&gt;
    <script type="text/javascript">
        var lon = -100;
        var lat = 20.60;
        var zoom = 8;
        var map, layer;

        function init(){
         var options = {
                          maxScale: 100,
                          numZoomLevels: 2
                          };

            map = new OpenLayers.Map( 'map', options );
            layer = new OpenLayers.Layer.WMS( "layers de Queretaro",
                    "http://172.16.23.21:8080/geoserver/wms&quot;,
            {layers: 'tur:LMA,local:Colonias01,local:Colonias04,local:Colonias05,local:Colonias06,local:Colonias07,local:Colonias08,local:Colonias09,local:Colonias11,local:Colonias12,local:Colonias14,local:Colonias16,local:Colonias17,lManzanas:manzanas_01,lManzanas:manzanas_02,lManzanas:manzanas_03,lManzanas:manzanas_04,lManzanas:manzanas_05,lManzanas:manzanas_06,lManzanas:manzanas_07,lManzanas:manzanas_08,lManzanas:manzanas_09,lManzanas:manzanas_10,lManzanas:manzanas_11,lManzanas:manzanas_12,lManzanas:manzanas_13,lManzanas:manzanas_14,lManzanas:manzanas_15,lManzanas:manzanas_16,lManzanas:manzanas_17,lManzanas:manzanas_18,predios:predios_01,predios:predios_02,predios:predios_03,predios:predios_04,predios:predios_05,predios:predios_06,predios:predios_07,predios:predios_08,predios:predios_09,predios:predios_10,predios:predios_11,predios:predios_12,predios:predios_13,predios:predios_14,predios:predios_15,predios:predios_16,predios:predios_17,predios:predios_18,lcalle:calles_01,lcalle:calles_02,lcall e:calles_03,lcalle:calles_04,lcalle:calles_05,lcalle:calles_06,lcalle:calles_07,lcalle:calles_08,lcalle:calles_09,lcalle:calles_10,lcalle:calles_11,lcalle:calles_12,lcalle:calles_13,lcalle:calles_14,lcalle:calles_15,lcalle:calles_16,lcalle:calles_17,lcalle:calles_18,Construcciones:construcciones_01,Construcciones:construcciones_02,Construcciones:construcciones_03,Construcciones:construcciones_04,Construcciones:construcciones_05,Construcciones:construcciones_06,Construcciones:construcciones_07,Construcciones:construcciones_16,Construcciones:construcciones_17'} );//,Construcciones:construcciones_11,Construcciones:construcciones_12,Construcciones:construcciones_13'} );

            map.addLayer(layer);

            map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
            map.addControl( new OpenLayers.Control.LayerSwitcher() );
        map.addControl( new OpenLayers.Control.Scale($('scale')));
        map.addControl( new OpenLayers.Control.PanZoomBar());
// <link rel="stylesheet" href="style.css" type="text/css" />
        }
    </script>
  </head>
  <body onload="init()">
    <h1 id="title">WMS Example</h1>

    <div id="tags">
    </div>
    <p id="shortdesc">
        Shows the basic use of openlayers using a WMS layer
    </p>

    <div id="map" class="bigmap"></div>

    <div id="docs">
        Este es mi primer Demo!!
    </div>
  </body>
</html>

--

*//**/Arturo Juárez Lima/*

/./

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  

oooo:-), Definitively I am a novice, How I am do that?, all my layers are shapes, in this moment I don’t have a backend (like postgis or arcsde) only shapes

thanks
David Winslow escribió:

···

Arturo Juárez Lima

I don’t believe OpenLayers has any built-in limit to how many WMS layers you can pack into an OpenLayers.Layer.WMS. However, in Internet Explorer there is a hard limit of how long a URL can be, which indirectly imposes a limit on how many layers can be combined in a single WMS layer. I suggest you use the WMS->Contents section of the GeoServer admin console to create a layer group combining the layers you would like to use in OpenLayers; then you will not have to fit all the layer names into the URL.

(A POST request is not an option here since OpenLayers uses IMG elements for the tiles of the maps.)

Hope this helps,
-David Winslow

Arturo Juàrez wrote:

Hi, I have a map whit 85 layers, but in Iexplorer showme only squares of color pink in the map, but in firefox showme the map correctly.
If I set only 80 layers in bot browsers showme the map correctly.

Until how many layers lets to me show the Iexplorer?? to somebody has passed him the same??

this is my code, maybe somebody could correct to me in case of error. Thanks

#map { width: 806px; height: 560px; border: 1px solid black; } #wrapper { width: 836px; } #location { float: right; }

WMS Example

Shows the basic use of openlayers using a WMS layer

Este es mi primer Demo!!

//**/Arturo Juárez Lima/

/./



This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

sorry, I am very ashamed, What is GeoWebCache? Andrea Aime escribió:

···

Arturo Juárez Lima

Arturo Juàrez ha scritto:

Hi, I have a map whit 85 layers, but in Iexplorer showme only squares of color pink in the map, but in firefox showme the map correctly.
If I set only 80 layers in bot browsers showme the map correctly.

Until how many layers lets to me show the Iexplorer?? to somebody has passed him the same??

That is happening because the server is almost dying trying to render
all that information within the http timeouts. If you really have to
render that much in tiled form, use GeoWebCache, and leave directly to
GeoServer only the layers that do change often (if you have any).

Cheers
Andrea

Arturo Juàrez ha scritto:

sorry, I am very ashamed, What is GeoWebCache?

www.geowebcache.org

A tile cache, if your map does not change often, it does not
make sense to regenerate over and over the same tiles, better
do it once and save the results on disk, and then directly
serve the results. Depending on your setup, it's 10-100 times
faster than rendering them on the fly.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Yes, my layers almost do not change, I will read the url that you sendme, thanks again.
Andrea Aime escribió:

···

Arturo Juárez Lima

Arturo Juàrez ha scritto:

sorry, I am very ashamed, What is GeoWebCache?

www.geowebcache.org

A tile cache, if your map does not change often, it does not
make sense to regenerate over and over the same tiles, better
do it once and save the results on disk, and then directly
serve the results. Depending on your setup, it’s 10-100 times
faster than rendering them on the fly.

Cheers
Andrea

Hi, How call my combined layers for OpenLayer?? I was make the combined with name “edo_qro”

Thanks
David Winslow escribió:

···

Arturo Juárez Lima

I don’t believe OpenLayers has any built-in limit to how many WMS layers you can pack into an OpenLayers.Layer.WMS. However, in Internet Explorer there is a hard limit of how long a URL can be, which indirectly imposes a limit on how many layers can be combined in a single WMS layer. I suggest you use the WMS->Contents section of the GeoServer admin console to create a layer group combining the layers you would like to use in OpenLayers; then you will not have to fit all the layer names into the URL.

(A POST request is not an option here since OpenLayers uses IMG elements for the tiles of the maps.)

Hope this helps,
-David Winslow

Arturo Juàrez wrote:

Hi, I have a map whit 85 layers, but in Iexplorer showme only squares of color pink in the map, but in firefox showme the map correctly.
If I set only 80 layers in bot browsers showme the map correctly.

Until how many layers lets to me show the Iexplorer?? to somebody has passed him the same??

this is my code, maybe somebody could correct to me in case of error. Thanks

#map { width: 806px; height: 560px; border: 1px solid black; } #wrapper { width: 836px; } #location { float: right; }

WMS Example

Shows the basic use of openlayers using a WMS layer

Este es mi primer Demo!!

//**/Arturo Juárez Lima/

/./



This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Just use
layers: 'edo_qro'
instead of the layers parameter you have set now.

Hope this helps,
-David Winslow

Arturo Juàrez wrote:

Hi, How call my combined layers for OpenLayer?? I was make the combined with name "edo_qro"

Thanks

*//**/Arturo Juárez Lima/*

David Winslow escribió:

I don't believe OpenLayers has any built-in limit to how many WMS layers you can pack into an OpenLayers.Layer.WMS. However, in Internet Explorer there is a hard limit of how long a URL can be, which indirectly imposes a limit on how many layers can be combined in a single WMS layer. I suggest you use the WMS->Contents section of the GeoServer admin console to create a layer group combining the layers you would like to use in OpenLayers; then you will not have to fit all the layer names into the URL.

(A POST request is not an option here since OpenLayers uses IMG elements for the tiles of the maps.)

Hope this helps,
-David Winslow

Arturo Juàrez wrote:

Hi, I have a map whit 85 layers, but in Iexplorer showme only squares of color pink in the map, but in firefox showme the map correctly.
If I set only 80 layers in bot browsers showme the map correctly.

Until how many layers lets to me show the Iexplorer?? to somebody has passed him the same??

this is my code, maybe somebody could correct to me in case of error. Thanks

<html xmlns="http://www.w3.org/1999/xhtml&quot;&gt;
  <head>
     <style type="text/css">
            #map {
                width: 806px;
                height: 560px;
                border: 1px solid black;
            }
            #wrapper {
                width: 836px;
            }
            #location {
                float: right;
            }
        </style>

    <link rel="stylesheet" href="http://172.16.23.21:8080/geoserver/OpenLayers/theme/default/style.css&quot; type="text/css" />
   <link rel="stylesheet" href="style.css" type="text/css" />
    <script src="http://172.16.23.21:8080/geoserver/OpenLayers/OpenLayers.js&quot;&gt;&lt;/script&gt;

    <script type="text/javascript">
        var lon = -100;
        var lat = 20.60;
        var zoom = 8;
        var map, layer;

        function init(){
         var options = {
                          maxScale: 100,
                          numZoomLevels: 2
                          };

            map = new OpenLayers.Map( 'map', options );
            layer = new OpenLayers.Layer.WMS( "layers de Queretaro",
                    "http://172.16.23.21:8080/geoserver/wms&quot;,
            {layers: 'tur:LMA,local:Colonias01,local:Colonias04,local:Colonias05,local:Colonias06,local:Colonias07,local:Colonias08,local:Colonias09,local:Colonias11,local:Colonias12,local:Colonias14,local:Colonias16,local:Colonias17,lManzanas:manzanas_01,lManzanas:manzanas_02,lManzanas:manzanas_03,lManzanas:manzanas_04,lManzanas:manzanas_05,lManzanas:manzanas_06,lManzanas:manzanas_07,lManzanas:manzanas_08,lManzanas:manzanas_09,lManzanas:manzanas_10,lManzanas:manzanas_11,lManzanas:manzanas_12,lManzanas:manzanas_13,lManzanas:manzanas_14,lManzanas:manzanas_15,lManzanas:manzanas_16,lManzanas:manzanas_17,lManzanas:manzanas_18,predios:predios_01,predios:predios_02,predios:predios_03,predios:predios_04,predios:predios_05,predios:predios_06,predios:predios_07,predios:predios_08,predios:predios_09,predios:predios_10,predios:predios_11,predios:predios_12,predios:predios_13,predios:predios_14,predios:predios_15,predios:predios_16,predios:predios_17,predios:predios_18,lcalle:calles_01,lcalle:calles_02,lcall e:calles_03,lcalle:calles_04,lcalle:calles_05,lcalle:calles_06,lcalle:calles_07,lcalle:calles_08,lcalle:calles_09,lcalle:calles_10,lcalle:calles_11,lcalle:calles_12,lcalle:calles_13,lcalle:calles_14,lcalle:calles_15,lcalle:calles_16,lcalle:calles_17,lcalle:calles_18,Construcciones:construcciones_01,Construcciones:construcciones_02,Construcciones:construcciones_03,Construcciones:construcciones_04,Construcciones:construcciones_05,Construcciones:construcciones_06,Construcciones:construcciones_07,Construcciones:construcciones_16,Construcciones:construcciones_17'} );//,Construcciones:construcciones_11,Construcciones:construcciones_12,Construcciones:construcciones_13'} );

            map.addLayer(layer);

            map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
            map.addControl( new OpenLayers.Control.LayerSwitcher() );
        map.addControl( new OpenLayers.Control.Scale($('scale')));
        map.addControl( new OpenLayers.Control.PanZoomBar());
// <link rel="stylesheet" href="style.css" type="text/css" />
        }
    </script>
  </head>
  <body onload="init()">
    <h1 id="title">WMS Example</h1>

    <div id="tags">
    </div>
    <p id="shortdesc">
        Shows the basic use of openlayers using a WMS layer
    </p>

    <div id="map" class="bigmap"></div>

    <div id="docs">
        Este es mi primer Demo!!
    </div>
  </body>
</html>

--

*//**/Arturo Juárez Lima/*

/./

------------------------------------------------------------------------

-------------------------------------------------------------------------

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  

Thanks, whit this, now its working in Iexplorer.
David Winslow escribió:

···

Arturo Juárez Lima

Just use
layers: ‘edo_qro’
instead of the layers parameter you have set now.

Hope this helps,
-David Winslow

Arturo Juàrez wrote:

Hi, How call my combined layers for OpenLayer?? I was make the combined with name “edo_qro”

Thanks

//**/Arturo Juárez Lima/

David Winslow escribió:

I don’t believe OpenLayers has any built-in limit to how many WMS layers you can pack into an OpenLayers.Layer.WMS. However, in Internet Explorer there is a hard limit of how long a URL can be, which indirectly imposes a limit on how many layers can be combined in a single WMS layer. I suggest you use the WMS->Contents section of the GeoServer admin console to create a layer group combining the layers you would like to use in OpenLayers; then you will not have to fit all the layer names into the URL.

(A POST request is not an option here since OpenLayers uses IMG elements for the tiles of the maps.)

Hope this helps,
-David Winslow

Arturo Juàrez wrote:

Hi, I have a map whit 85 layers, but in Iexplorer showme only squares of color pink in the map, but in firefox showme the map correctly.
If I set only 80 layers in bot browsers showme the map correctly.

Until how many layers lets to me show the Iexplorer?? to somebody has passed him the same??

this is my code, maybe somebody could correct to me in case of error. Thanks

#map { width: 806px; height: 560px; border: 1px solid black; } #wrapper { width: 836px; } #location { float: right; }

WMS Example

Shows the basic use of openlayers using a WMS layer

Este es mi primer Demo!!

//**/Arturo Juárez Lima/

/./



This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Andrea, I was install de geoserverWebCache (gwc), but I was read that only work with EPSG: 4326, 900913. the EPSG that I am use is 32614.
well, I was trying change a layer demo to 4326 but not showme the layer in the map, I was go to entity → edit, I was change the SRS to 4326 ->generate → send → apply.

are There other option like gwc?
are there a extension for other EPSG??
wich are the step for change a EPSG??

<Confusión>

Thanks again
Andrea Aime escribió:

···

Arturo Juárez Lima

Arturo Juàrez ha scritto:

sorry, I am very ashamed, What is GeoWebCache?

www.geowebcache.org

A tile cache, if your map does not change often, it does not
make sense to regenerate over and over the same tiles, better
do it once and save the results on disk, and then directly
serve the results. Depending on your setup, it’s 10-100 times
faster than rendering them on the fly.

Cheers
Andrea

Hi,

the gwc plugin for GeoServer is automatically configured and can only output 4326 and 900913. The standalone version of GeoWebCache can support any projection, but you have to manually edit geowebcache.xml.

I'm working on a way to let the plugin version be sumplemented by such a configuration file, should be done early next week.

( Either way, you should not change your feature type configuration away from the corrects CRS for your data )

-Arne

Arturo Juàrez wrote:

Hi Andrea, I was install de geoserverWebCache (gwc), but I was read that only work with EPSG: 4326, 900913. the EPSG that I am use is 32614.
well, I was trying change a layer demo to 4326 but not showme the layer in the map, I was go to entity -> edit, I was change the SRS to 4326 ->generate -> send -> apply.

are There other option like gwc?
are there a extension for other EPSG??
wich are the step for change a EPSG??

<Confusión>

Thanks again

*//**/ Arturo Juárez Lima/*

Andrea Aime escribió:

Arturo Juàrez ha scritto:

sorry, I am very ashamed, What is GeoWebCache?

www.geowebcache.org

A tile cache, if your map does not change often, it does not
make sense to regenerate over and over the same tiles, better
do it once and save the results on disk, and then directly
serve the results. Depending on your setup, it's 10-100 times
faster than rendering them on the fly.

Cheers
Andrea

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

Arturo Juàrez schreef:

···

From your question it looks like you don’t know what an EPSG is. EPSG (or SRS) stands for your coordinate reference system, changing it only in geoserver will cause your points to be on the wrong location. You need to perform a reprojection of your data in postgis, Arcgis or whatever package you have. Reproject it to 4326, and then reload it in geoserver. Then you’ll be able to use geowebcache.

Hth,
Jonas

Hi, is right, in this moment I can see like work the GWC, is very nice, but when I was want make my page, I was put this code (like to example)

body { font-family: sans-serif; font-weight: bold; font-size: .8em; } body { border: 0px; margin: 0px; padding: 0px; } #map { width: 85%; height: 85%; border: 0px; padding: 0px; }
...

but doesn’t showme the map, is correct my code?? thanks
I think that maybe the error is in this part of code

var demolayer = new OpenLayers.Layer.WMS(
“edo_qro”,“http://172.16.23.21:8080/geoserver/gwc/service/wms”,
{layers: ‘edo_qro’, format: ‘image/png’} );
Arne Kepp escribió:

···

Arturo Juárez Lima

Hi,

the gwc plugin for GeoServer is automatically configured and can only output 4326 and 900913. The standalone version of GeoWebCache can support any projection, but you have to manually edit geowebcache.xml.

I’m working on a way to let the plugin version be sumplemented by such a configuration file, should be done early next week.

( Either way, you should not change your feature type configuration away from the corrects CRS for your data )

-Arne

Arturo Juàrez wrote:

Hi Andrea, I was install de geoserverWebCache (gwc), but I was read that only work with EPSG: 4326, 900913. the EPSG that I am use is 32614.
well, I was trying change a layer demo to 4326 but not showme the layer in the map, I was go to entity → edit, I was change the SRS to 4326 ->generate → send → apply.

are There other option like gwc?
are there a extension for other EPSG??
wich are the step for change a EPSG??

<Confusión>

Thanks again

//**/ Arturo Juárez Lima/

Andrea Aime escribió:

Arturo Juàrez ha scritto:

sorry, I am very ashamed, What is GeoWebCache?

www.geowebcache.org

A tile cache, if your map does not change often, it does not
make sense to regenerate over and over the same tiles, better
do it once and save the results on disk, and then directly
serve the results. Depending on your setup, it’s 10-100 times
faster than rendering them on the fly.

Cheers
Andrea



This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users