OpenScales 2.0 and GeoWebCache

231 views
Skip to first unread message

Farkas

unread,
Mar 5, 2012, 9:20:30 AM3/5/12
to openscales-dev
Hi,

I migrate from openscales 1.2 to 2.0, but version 2.0 not run with
geowebcache, directly conect to geoserver works fine.

has solutions ??, i configure geowebcache from geoserver, in demo
examples the tif raster layer works normaly, but in flex i receive on
error in determinates resolutions.

ERROR 1:
400: Requested horizontal resolution: 110535.04955984892 , best match:
427.5561445882886 exceeds 10% threshold. Perhaps the client is
configured with an incorrect set of scales (resolutions), or the DPI
setting is off compared to the one in GWC ?

ERROR 2:
400: X,Y values for the tile index were calculated to be
{16.96256381107079, 8.20173301267921} which had to be rounded to {17,
8} and exceeds the threshold of 10%. Perhaps the client is using the
wrong origin ?

Tanks.

WillPetty

unread,
Mar 8, 2012, 9:24:51 AM3/8/12
to opensca...@googlegroups.com
not sure what the problem could be, but so far geoserver's geowebcache is working just fine with openscales 2.0 for me.
If I run into any problems/solutions ill let you know.
 -Will

Daniel Farkas

unread,
Mar 8, 2012, 11:11:56 AM3/8/12
to opensca...@googlegroups.com
I use a specific projection EPSG:29193,
 
but not work in geowebcache, if i manual configure geowebcache.xml not work, if i use automatic geoserver configure by spring bean “gwcWMSConfig” not work too.
 
My geowebcache.xml :
 
<gridSets>
    <gridSet>    
      <name>EPSG:29193</name>
      <srs>
        <number>29193</number>
      </srs>      
      <extent>     
        <coords>
          <double>166020.2387</double>
          <double>7087605.5418</double>
          <double>833979.7613</double>
          <double>10000000.0000</double>
        </coords>        
      </extent>
      <resolutions>           
            <double>177.7584508178711</double>
            <double>88.87922540893555</double>
            <double>44.43961270446778</double>
            <double>22.21980635223389</double>
            <double>11.109903176116944</double>
            <double>5.554951588058472</double>
            <double>2.777475794029236</double>
            <double>1.388737897014618</double>
            <double>0.694368948507309</double>
            <double>0.3471844742536545</double>
            <double>0.17359223712682725</double>
            <double>0.08679611856341363</double>
            <double>0.04339805928170681</double>
            <double>0.021699029640853407</double>
        </resolutions>
      <tileHeight>256</tileHeight>
      <tileWidth>256</tileWidth>
    </gridSet>
    
  </gridSets>
 
  <layers>
    <wmsLayer>
        <name>FUNDO</name>
        <gridSubsets>
            <gridSubset>
                <gridSetName>EPSG:29193</gridSetName>
                <extent>     
                <coords>
                  <double>223613</double>
                  <double>7323828</double>
                  <double>439723</double>
                  <double>7433283</double>
                </coords>        
              </extent>                     
            </gridSubset>           
        </gridSubsets>       
        <wmsUrl>
            <string>http://localhost:8050/geoserver/wms</string>
        </wmsUrl>
        <wmsLayers>sp:FUNDO</wmsLayers>       
    </wmsLayer>
   
  </layers>
 
----------------------------------------------------------------------------------------------------------
the problem is when make the tiles grid in geowebcache. i have two instances with tomcat, 1º for geoserver, 2º for geowebcache.
 
sorry my bad english.
 
att Farkas.
--
You received this message because you are subscribed to the Google Groups "openscales-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openscales-dev/-/Mm6sY29r9ZoJ.
To post to this group, send email to opensca...@googlegroups.com.
To unsubscribe from this group, send email to openscales-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openscales-dev?hl=en.

Simon Lopez

unread,
Mar 9, 2012, 2:39:57 AM3/9/12
to opensca...@googlegroups.com
Hi,

Did you had EPSG:29193 support? By default it is not supported by OpenScales. You can add this projection on runtime like this:

ProjProjection.defs[EPSG:29193']="+proj=utm +zone=23 +south +ellps=aust_SA +units=m +no_defs";

This could be down on preinitilize event of the application for instance, so that when the map, layers, ... will need the projection, it will be found. Else, by default, OpenScales uses EPSG:4326.

Regards,
Simon L.

Le 08/03/2012 17:11, Daniel Farkas a �crit�:
I use a specific projection EPSG:29193,
�
but not work in geowebcache, if i manual configure geowebcache.xml not work, if i use automatic geoserver configure by spring bean �gwcWMSConfig� not work too.
�
My geowebcache.xml :
�
<gridSets>
��� <gridSet>����
����� <name>EPSG:29193</name>
����� <srs>
������� <number>29193</number>
����� </srs>������
����� <extent>�����
������� <coords>
��������� <double>166020.2387</double>
��������� <double>7087605.5418</double>
��������� <double>833979.7613</double>
��������� <double>10000000.0000</double>
������� </coords>��������
����� </extent>
����� <resolutions>�����������
����������� <double>177.7584508178711</double>
����������� <double>88.87922540893555</double>
����������� <double>44.43961270446778</double>
����������� <double>22.21980635223389</double>
����������� <double>11.109903176116944</double>
����������� <double>5.554951588058472</double>
����������� <double>2.777475794029236</double>
����������� <double>1.388737897014618</double>
����������� <double>0.694368948507309</double>
����������� <double>0.3471844742536545</double>
����������� <double>0.17359223712682725</double>
����������� <double>0.08679611856341363</double>
����������� <double>0.04339805928170681</double>
����������� <double>0.021699029640853407</double>
������� </resolutions>
����� <tileHeight>256</tileHeight>
����� <tileWidth>256</tileWidth>
��� </gridSet>
����
� </gridSets>
�
� <layers>
��� <wmsLayer>
������� <name>FUNDO</name>
������� <gridSubsets>
����������� <gridSubset>
��������������� <gridSetName>EPSG:29193</gridSetName>
��������������� <extent>�����
��������������� <coords>
����������������� <double>223613</double>
����������������� <double>7323828</double>
����������������� <double>439723</double>
����������������� <double>7433283</double>
��������������� </coords>��������
������������� </extent>���������������������
����������� </gridSubset>�����������
������� </gridSubsets>�������
������� <wmsUrl>
����������� <string>http://localhost:8050/geoserver/wms</string>
������� </wmsUrl>
������� <wmsLayers>sp:FUNDO</wmsLayers>�������
��� </wmsLayer>
���
� </layers>
�
----------------------------------------------------------------------------------------------------------
the problem is when make the tiles grid in geowebcache. i have two instances with tomcat, 1� for geoserver, 2� for geowebcache.
�
sorry my bad english.
�
att Farkas.
�
From: WillPetty
Sent: Thursday, March 08, 2012 11:24 AM
Subject: Re: OpenScales 2.0 and GeoWebCache
�

Farkas

unread,
Mar 9, 2012, 6:57:58 AM3/9/12
to openscales-dev
Hi i added the EPSG 29193 definition in ProjProjection.as file

'EPSG:29193': "+title=WGS 84 / UTM zone 23S +proj=utm +zone=23 +south
+ellps=aust_SA +datum=WGS84 +units=m +no_defs",

and compile swc, but not works in flash in some resolutions i receive
this error:
--------------------------------------------------------------------------------------------------------------------------------------------
400: X,Y values for the tile index were calculated to be
{16.96256381107079, 8.20173301267921} which had to be rounded to {17,
8} and exceeds the threshold of 10%. Perhaps the client is using the
wrong origin ?
--------------------------------------------------------------------------------------------------------------------------------------------
,in html demo works perfect,

Tanks.

On 9 mar, 04:39, Simon Lopez <simon.lo...@ayolo.org> wrote:
> Hi,
>
> Did you had EPSG:29193 support? By default it is not supported by
> OpenScales. You can add this projection on runtime like this:
>
> ProjProjection.defs[EPSG:29193']="+proj=utm +zone=23 +south
> +ellps=aust_SA +units=m +no_defs";
>
> This could be down on preinitilize event of the application for
> instance, so that when the map, layers, ... will need the projection, it
> will be found. Else, by default, OpenScales uses EPSG:4326.
>
> Regards,
> Simon L.
>
> Le 08/03/2012 17:11, Daniel Farkas a �crit :
>
>
>
>
>
>
>
> > I use a specific projection EPSG:29193,
> >http://www.spatialreference.org/ref/epsg/29193/
> > <http://www.spatialreference.org/ref/epsg/29193/>
> > but not work in geowebcache, if i manual configure geowebcache.xml not
> > work, if i use automatic geoserver configure by spring bean
> > �gwcWMSConfig� not work too.
> > </wmsUrl>
> > <wmsLayers>sp:FUNDO</wmsLayers>
> > </wmsLayer>
> > </layers>
> > ----------------------------------------------------------------------------------------------------------
> > the problem is when make the tiles grid in geowebcache. i have two
> > instances with tomcat, 1� for geoserver, 2� for geowebcache.
> > sorry my bad english.
> > att Farkas.
> > *From:* WillPetty <mailto:willpetty...@gmail.com>
> > *Sent:* Thursday, March 08, 2012 11:24 AM
> > *To:* opensca...@googlegroups.com
> > <mailto:opensca...@googlegroups.com>
> > *Subject:* Re: OpenScales 2.0 and GeoWebCache

Farkas

unread,
Mar 9, 2012, 11:03:43 AM3/9/12
to openscales-dev
In tests this error ocilate in some resolutions, Ex: Zoom 1 2 3 -> no
error | Zoom 4 5 6 -> error | Zoom 7 8 9 -> no error | Zoom 10 11 12 -
> error....

Farkas

unread,
Mar 14, 2012, 6:44:09 AM3/14/12
to openscales-dev
[ Resolved ] - The alignment of the grid was incorrect, calculations
and comparisons in auto cad openscales the bounds of 1.2 and 2.0 we
arrive at the solution.

On Mar 9, 1:03 pm, Farkas <daniel...@gmail.com> wrote:
> In tests this error ocilate in some resolutions, Ex: Zoom 1 2 3 -> no
> error | Zoom 4 5 6 -> error | Zoom 7 8 9 -> no error | Zoom 10 11 12 -
>
> > error....
>
> On 9 mar, 08:57, Farkas <daniel...@gmail.com> wrote:
>
>
>
> > Hi i added the EPSG 29193 definition in ProjProjection.as file
>
> > 'EPSG:29193': "+title=WGS 84 / UTM zone 23S +proj=utm +zone=23 +south
> > +ellps=aust_SA +datum=WGS84 +units=m +no_defs",
>
> > and compile swc, but not works in flash in some resolutions i receive
> > this error:
> > ---------------------------------------------------------------------------­-----------------------------------------------------------------
> > 400: X,Y values for the tile index were calculated to be
> > {16.96256381107079, 8.20173301267921} which had to be rounded to {17,
> > 8} and exceeds the threshold of 10%. Perhaps the client is using the
> > wrong origin ?
> > ---------------------------------------------------------------------------­-----------------------------------------------------------------
> > > > ---------------------------------------------------------------------------­-------------------------------
Reply all
Reply to author
Forward
0 new messages