Re: [MAPSERVER-USERS] Mapserver bug when generating a tiled map with MapFish

2008-08-06 Thread Eric Lemoine
Hi. Do you have maxExtent set in your map options? OpenLayers
shouldn't request tiles outside the max extent. If it does it's a bug
in OpenLayers. Another guestion: what layer type do you use?
Layer.MapServer or Layer.WMS? If you use the former, make mapserver
work as a WMS server and try using Layer.WMS to see if that fixes the
problem. Again the ideal would be some example so that we con easily
reproduce your problem. Eric

2008/8/6, Pierre-Benoit Besse <[EMAIL PROTECTED]>:
> Unfortunately there is no connection to internet on the platform I develop
> on. All is done localy.
>
> I will try to be more precise.
> I am trying to display a shapefile representing the whole world (it's a
> shapefile from Global Insight plus if it helps). I use mapfish without
> 'singleTile: true' so the layer is generated by tiles.
>
> There is no problem in the beggining when the map is zoomed to max extent.
>
> The problem occurs when I begin zooming in and trying to display
> America/Asia. One of the "colums" of tiles is drawn across the -180°/+180°
> longitude line, and those tiles are generated entirely blank (white, not
> even transparent).
>
> When I get the properties of the image (right-click on the blank tile ->
> Properties) and I search in the "Location" of the image I can find :
> mapext=179.296875+44.296875+*225.703125*
> +90.703125&imgext=179.296875+44.296875+*225.703125*+90.703125
> So I guess the problem comes from that, MapServer doesn't recognise
> longitude greater than 180 or lower than -180.
> If I'm right I would appreciate any hint on how to handle this...
>
> Otherwise it may be a mapfish issue, maybe mapfish should always generate
> tiles with borders right on -180 / +180. This is the case at the beggining,
> lef tile has mapext=90+0+180+90 and right tile has mapext=-180+0+-90+90.
> But whenever I begin zooming in it goes awry, the border of tiles is no
> longer right on -180/+180 and some tiles are generated white by MapServer.
>
> If someone needs more informations I'm ready to give it.
>
> Best regards,
>
> PB
>
> 2008/8/6 Eric Lemoine <[EMAIL PROTECTED]>
>
>> On Wed, Aug 6, 2008 at 2:28 PM, Pierre-Benoit Besse <[EMAIL PROTECTED]>
>> wrote:
>> > Isn't there anyone to help me with this ?
>> >
>> > 2008/8/4 Faldor <[EMAIL PROTECTED]>
>> >>
>> >> Hi all,
>> >>
>> >> I use Mapserver with mapfish for the client side to display shapefiles
>> >> which
>> >> I generated using ogr2ogr.
>> >>
>> >> The problem is when I try to display a tiled layer (mapfish singleTile
>> >> property set to 'false'). Some tiles are generated by mapserver
>> >> entirely
>> >> blank !
>> >>
>> >> After a few researches I think it is due to the fact that those tiles
>> are
>> >> extended "across" the -180°/+180° line.
>> >> For exemple, here is the imgext property from one of the calls to
>> >> MapServer
>> >> which render a blank tile :
>> >> imgext=178.59375+-1.40625+271.40625+91.40625
>> >>
>> >> Do you know of a way to fix this ?
>>
>> This is not enough information for anyone to help you. Could you
>> provide a link or a web page to help people see what's going on?
>>
>> --
>> Eric
>>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] Mapserver bug when generating a tiled map with MapFish

2008-08-06 Thread Pierre-Benoit Besse
Unfortunately there is no connection to internet on the platform I develop
on. All is done localy.

I will try to be more precise.
I am trying to display a shapefile representing the whole world (it's a
shapefile from Global Insight plus if it helps). I use mapfish without
'singleTile: true' so the layer is generated by tiles.

There is no problem in the beggining when the map is zoomed to max extent.

The problem occurs when I begin zooming in and trying to display
America/Asia. One of the "colums" of tiles is drawn across the -180°/+180°
longitude line, and those tiles are generated entirely blank (white, not
even transparent).

When I get the properties of the image (right-click on the blank tile ->
Properties) and I search in the "Location" of the image I can find :
mapext=179.296875+44.296875+*225.703125*
+90.703125&imgext=179.296875+44.296875+*225.703125*+90.703125
So I guess the problem comes from that, MapServer doesn't recognise
longitude greater than 180 or lower than -180.
If I'm right I would appreciate any hint on how to handle this...

Otherwise it may be a mapfish issue, maybe mapfish should always generate
tiles with borders right on -180 / +180. This is the case at the beggining,
lef tile has mapext=90+0+180+90 and right tile has mapext=-180+0+-90+90.
But whenever I begin zooming in it goes awry, the border of tiles is no
longer right on -180/+180 and some tiles are generated white by MapServer.

If someone needs more informations I'm ready to give it.

Best regards,

PB

2008/8/6 Eric Lemoine <[EMAIL PROTECTED]>

> On Wed, Aug 6, 2008 at 2:28 PM, Pierre-Benoit Besse <[EMAIL PROTECTED]>
> wrote:
> > Isn't there anyone to help me with this ?
> >
> > 2008/8/4 Faldor <[EMAIL PROTECTED]>
> >>
> >> Hi all,
> >>
> >> I use Mapserver with mapfish for the client side to display shapefiles
> >> which
> >> I generated using ogr2ogr.
> >>
> >> The problem is when I try to display a tiled layer (mapfish singleTile
> >> property set to 'false'). Some tiles are generated by mapserver entirely
> >> blank !
> >>
> >> After a few researches I think it is due to the fact that those tiles
> are
> >> extended "across" the -180°/+180° line.
> >> For exemple, here is the imgext property from one of the calls to
> >> MapServer
> >> which render a blank tile :
> >> imgext=178.59375+-1.40625+271.40625+91.40625
> >>
> >> Do you know of a way to fix this ?
>
> This is not enough information for anyone to help you. Could you
> provide a link or a web page to help people see what's going on?
>
> --
> Eric
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] Mapserver bug when generating a tiled map with MapFish

2008-08-06 Thread Daniel Morissette

Pierre-Benoit,

Unfortunately for you, MapServer has no automated way to deal with 
wrapping coordinates at the date line. If all your data is in the 
[-180,180] range and you request a map for the [180,270] range then 
MapServer doesn't find anything to render and returns a blank map.


You could possibly make a copy of all your data in the [180,540] range 
by adding +360 to all longitude values. I don't know of any tool that 
does that out of the box, but it should be easy to modify ogr2ogr to do 
that for you if you are fluent in C/C++.


Another option might be to look at modifying the MapFish scripts to 
handle the wrapping of coordinates at the +/-180 line and request maps 
from MapServer with the correct extents.


Finally, we could possibly try to handle the wrapping in MapServer... 
you could file a enhancement ticket about that. The addition sounds 
simple at first, but I fear that it may be more involved than it seems.


Daniel

Pierre-Benoit Besse wrote:

Isn't there anyone to help me with this ?

2008/8/4 Faldor <[EMAIL PROTECTED] >


Hi all,

I use Mapserver with mapfish for the client side to display
shapefiles which
I generated using ogr2ogr.

The problem is when I try to display a tiled layer (mapfish singleTile
property set to 'false'). Some tiles are generated by mapserver entirely
blank !

After a few researches I think it is due to the fact that those
tiles are
extended "across" the -180°/+180° line.
For exemple, here is the imgext property from one of the calls to
MapServer
which render a blank tile :
imgext=178.59375+-1.40625+271.40625+91.40625

Do you know of a way to fix this ?

Regards,

Pierre-Benoît
--
View this message in context:

http://www.nabble.com/Mapserver-bug-when-generating-a-tiled-map-with-MapFish-tp18813432p18813432.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org 
http://lists.osgeo.org/mailman/listinfo/mapserver-users





___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] Mapserver bug when generating a tiled map with MapFish

2008-08-06 Thread Pierre-Benoit Besse
Isn't there anyone to help me with this ?

2008/8/4 Faldor <[EMAIL PROTECTED]>

>
> Hi all,
>
> I use Mapserver with mapfish for the client side to display shapefiles
> which
> I generated using ogr2ogr.
>
> The problem is when I try to display a tiled layer (mapfish singleTile
> property set to 'false'). Some tiles are generated by mapserver entirely
> blank !
>
> After a few researches I think it is due to the fact that those tiles are
> extended "across" the -180°/+180° line.
> For exemple, here is the imgext property from one of the calls to MapServer
> which render a blank tile :
> imgext=178.59375+-1.40625+271.40625+91.40625
>
> Do you know of a way to fix this ?
>
> Regards,
>
> Pierre-Benoît
> --
> View this message in context:
> http://www.nabble.com/Mapserver-bug-when-generating-a-tiled-map-with-MapFish-tp18813432p18813432.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users