Re: [mapserver-users] Projection takes less time than no projection ?

2012-12-04 Thread Clément MONIER
Yes, you're right ! thanks a lot !
My projection (epsg dat) def file had some errors.
I made some corrections on my proj espg dat files and it works fine with
PROJECTION "init=epsg:3785" END
Everywhere

Response times now make sense : +10% when projection's enabled (on a specific 
test tile)

De : TC Haddad [mailto:tchad...@gmail.com]
Envoyé : mardi 4 décembre 2012 17:29
À : Clément MONIER
Objet : Re: [mapserver-users] Projection takes less time than no projection ?

Strange. Maybe you should check your proj EPSG code list and search for 3785 to 
see if it is listed there (maybe it is missing for some reason?). Or if it is 
in there, compare it to the defs below to look for any mistakes

Tanya
On Tue, Dec 4, 2012 at 7:57 AM, Clément MONIER 
mailto:clement.mon...@v-trafic.com>> wrote:
I did try but it didn't give me the same map view (though requested with 
TILE=X+Y+Z)
I don't know why, but (only in the new mapfile version) if I don't put a MAP 
projection block like this

PROJECTION
"proj=merc"
"a=6378137"
"b=6378137"
"lat_ts=0.0"
"lon_0=0.0"
"x_0=0.0"
"y_0=0"
"k=1.0"
"units=m"
"nadgrids=@null"
"no_defs"
END

Instead of
PROJECTION "init=epsg:3785" END
I don't get the same map's view

De : TC Haddad [mailto:tchad...@gmail.com<mailto:tchad...@gmail.com>]
Envoyé : mardi 4 décembre 2012 16:51
À : Clément MONIER
Objet : Re: [mapserver-users] Projection takes less time than no projection ?

did you try this option for comparison?
MAP
...
PROJECTION "init=epsg:3785" END
...
LAYER
...
PROJECTION "init=epsg:3785" END
...
END
...
END

On Tue, Dec 4, 2012 at 7:23 AM, Clément MONIER 
mailto:clement.mon...@v-trafic.com>> wrote:
MAP
...
PROJECTION "init=epsg:3785" END
...
LAYER
...
PROJECTION "init=epsg:4326" END
...
END
...
END


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


Re: [mapserver-users] Projection takes less time than no projection ?

2012-12-04 Thread Smith, Michael ERDC-RDE-CRREL-NH
Clément,

There is an optimized route for reprojection from 4326 -> 3857 in MapServer 
(see http://lists.osgeo.org/pipermail/mapserver-dev/2012-February/011956.html) 
so it can be very fast. I can't see how if could be faster than no projection. 
Perhaps the 10% is just within the margin of error? Or did you do the test 
1000's of times and average the results? That might be what it takes to really 
see a difference.

Mike

--
Michael Smith
US Army Corps
Remote Sensing GIS/Center

From: Clément MONIER 
mailto:clement.mon...@v-trafic.com>>
Date: Tuesday, December 4, 2012 7:23 AM
To: "mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>" 
mailto:mapserver-users@lists.osgeo.org>>
Subject: [mapserver-users] Projection takes less time than no projection ?
Resent-From: Michael Smith 
mailto:michael.sm...@usace.army.mil>>

Hi All,

I’m using MapServer to generate tiles to overlay on a GoogleMaps base layer.
My data files are WGS84 shapefiles.

So my current mapfile was looking like :

MAP
…
PROJECTION "init=epsg:3785" END
…
LAYER
…
PROJECTION "init=epsg:4326" END
…
END
…
END

I was wondering about improving response time by disabling on-the-fly 
projection.
So I did pre-project my shp into spherical Mercator first.
And my new mapfile now looks like :

MAP
…
PROJECTION"proj=merc""a=6378137""b=6378137""lat_ts=0.0"
"lon_0=0.0""x_0=0.0""y_0=0""k=1.0""units=m""nadgrids=@null" 
   "no_defs" END
…
LAYER
…
END
…
END

I do get the same  tiles.
But when asking a single tile using both mapfile, I noticed that the response 
time was higher (about +10%) when the second mapfile was used !

Do you have any idea about what’s going on ?

Thanks  & Regards

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


[mapserver-users] Projection takes less time than no projection ?

2012-12-04 Thread Clément MONIER
Hi All,

I'm using MapServer to generate tiles to overlay on a GoogleMaps base layer.
My data files are WGS84 shapefiles.

So my current mapfile was looking like :

MAP
...
PROJECTION "init=epsg:3785" END
...
LAYER
...
PROJECTION "init=epsg:4326" END
...
END
...
END

I was wondering about improving response time by disabling on-the-fly 
projection.
So I did pre-project my shp into spherical Mercator first.
And my new mapfile now looks like :

MAP
...
PROJECTION"proj=merc""a=6378137""b=6378137""lat_ts=0.0"
"lon_0=0.0""x_0=0.0""y_0=0""k=1.0""units=m""nadgrids=@null" 
   "no_defs" END
...
LAYER
...
END
...
END

I do get the same  tiles.
But when asking a single tile using both mapfile, I noticed that the response 
time was higher (about +10%) when the second mapfile was used !

Do you have any idea about what's going on ?

Thanks  & Regards

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