Re: [mapserver-users] PHP mapscript - browser showing blank page

2009-03-03 Thread kapilmanoj

Hi pietro,

 As you suggested me, i checked the error_log file , there is no such error
related to php. Actually in my case, its projecting the imagecolor 256 255
255 , the faded green color with the respective width and height in the
browser,  but it not showing up the map layers . its stumbling.

what could be a problem?
can you probe this problem?

thanks.
kapilmanoj 

Pietro Giannini wrote:
 
 Hi Kapilmanoj,
 
 1) maybe it is an error on
 IMAGECOLOR 256 255 255
 the first integer must be = 255.
 if not:
 
 2) try to intercept mapserver errors calling the map image in cgi mode:
 
 http://localhost/cgi-bin/mapserv?map=/path/to/kerala.mapmode=maplayer=keralalayer=modis_jpllayer=...
 if it works,
 
 3) see the php_errors log file (set in php.ini, error_log directive).
 
 bye
 .pg
 
 kmanoj-pg7 kmanoj-pg7 ha scritto:
 Dear users,

 I am using  mapserver 5.0.3 , php 5.2.5 version on fedora 9. I am 
 trying to work out the examples given in the mapserver site, but i am 
 getting the blank page when i call the link through browser

 http://localhost/mapfiles/sampletest/htdocs/kerala.php


  Mapscript is working fine without making any problem, but when i 
 trying to import mapfile in PHP and cascade it through the mapserver, 
 it rendering blank page in the browser.
 i think it could be a problem of extent.

 Herewith i am attaching my mapfile and php file for your kind perusal

 can anyone please puzzled out this problem.

 suggestion will be appreciated.

 Thanks,
 kapilmanoj

 

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
   
 
 
 -- 
 Pietro Giannini
 Bytewise srl - Area GIS
 41°50'38.58N 12°29'13.39E
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 

-- 
View this message in context: 
http://n2.nabble.com/PHP-mapscript---browser-showing-blank-page-tp2408448p2414557.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


Re: [mapserver-users] PHP mapscript - browser showing blank page

2009-03-03 Thread Pietro Giannini

Kapilmanoj, check the extent of your data sources.
Maybe you set wrong extent in map file, so the layers are visible but no 
data overlays the defined window.

bye
...pg

kapilmanoj ha scritto:

Hi pietro,

 As you suggested me, i checked the error_log file , there is no such error
related to php. Actually in my case, its projecting the imagecolor 256 255
255 , the faded green color with the respective width and height in the
browser,  but it not showing up the map layers . its stumbling.

what could be a problem?
can you probe this problem?

thanks.
kapilmanoj 


Pietro Giannini wrote:
  

Hi Kapilmanoj,

1) maybe it is an error on
IMAGECOLOR 256 255 255
the first integer must be = 255.
if not:

2) try to intercept mapserver errors calling the map image in cgi mode:

http://localhost/cgi-bin/mapserv?map=/path/to/kerala.mapmode=maplayer=keralalayer=modis_jpllayer=...

if it works,

3) see the php_errors log file (set in php.ini, error_log directive).

bye
.pg

kmanoj-pg7 kmanoj-pg7 ha scritto:


Dear users,

I am using  mapserver 5.0.3 , php 5.2.5 version on fedora 9. I am 
trying to work out the examples given in the mapserver site, but i am 
getting the blank page when i call the link through browser


http://localhost/mapfiles/sampletest/htdocs/kerala.php


 Mapscript is working fine without making any problem, but when i 
trying to import mapfile in PHP and cascade it through the mapserver, 
it rendering blank page in the browser.

i think it could be a problem of extent.

Herewith i am attaching my mapfile and php file for your kind perusal

can anyone please puzzled out this problem.

suggestion will be appreciated.

Thanks,
kapilmanoj



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

--
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58N 12°29'13.39E


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





  



--
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58N 12°29'13.39E

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


[mapserver-users] Mapserver WMS seem not to read +towgs84 parameters

2009-03-03 Thread Rahkonen Jukka
Hi,
 
I am using  Mapserver version 5.2.0 from MS4W delivery through WMS
1.1.1.  and I was now trying to add the missing +towgs84 parameters for
the Finnish epsg:2393 projection.  I located the epsg file from
MS4W\proj\nad directory and edited it from this:
# KKJ / Finland Uniform Coordinate System
2393 +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=350 +y_0=0
+ellps=intl +units=m +no_defs  
 
to this:
# KKJ / Finland Uniform Coordinate System
2393 +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=350 +y_0=0
+ellps=intl
+towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964
+units=m +no_defs  
 
However, adding +towgs84 parameters do not have any effect on the
Mapserver output.  I am sure that this certain epsg file is read,
because commenting out the 2393 line makes Mapserver to stop working
with my mapfile.  In addition, I can make map to shift by editing +x_0
and +y_0 parameters.  I had even another try by skipping the whole epsg
file by giving the projection directly in the layer definitions of my
mapfile as 
 PROJECTION
  proj=tmerc
  lat_0=0
  lon_0=27
  k=1
  x_0=350
  y_0=0
  ellps=intl
 
towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964
  units=m
  no_defs
END
 
Here I can see exactly the same behaviour.  Editing other parameters,
like lon_0, x_0 and y_0 are really changing the output, while editing
towgs84 parameters or leaving them out totally has no effect.  It looks
to me that towgs84 parameters are not read at all, or all the parameters
are interpreted as zeros.  However, I can't believe that this error
wouldn't have been noticed by others so far.  So I am just giving the
parameters in a wrong way?
 
The ESRI projection file at MS4W\proj\nad\ doest have 2393 definitions
with a bit different towgs84 values.  Giving my  layer definition as
init=esri:2393 does not change anything, Mapserver does not use
towgs84 parameters.
 
-Jukka Rahkonen-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How to use NQUERY to identify features at a point?

2009-03-03 Thread Arjen de Korte
Steve, Dan,

Thank you for your answers. Using imgext and imgsize was the solution!

In this case query instead of nquery was not an option, since query only
returns one result.

In case I would like to query by bounding box (instead of point), would
the correct query be something like

http://localhost/cgi-bin/mapserv.exe?map=my.mapmode=nquerymapext=minx+miny+maxx+maxylayers=pointsimgext=1.33+51.285252+5.678991+55.101323imgsize=594+522
?

I.e. imgxy for a point query becomes mapext for a bbox query?

Thanks again for your help, kind regards,

Arjen.



On Mon, 02 Mar 2009 08:41 -0600, Steve Lime
steve.l...@dnr.state.mn.us wrote:
 Arjen: Try using imgext instead of mapext, and imgsize instead of
 mapsize. Those params are used
 to convert the mouse click (imgxy) into map coordinates.
 
 Steve
 
  Arjen de Korte arje...@gmx.net 03/02/09 4:57 AM 
 Dear Mapserver users,
 
 I would like to use a Mapserver NQUERY to identify features at a point
 on a map. I am now calling the following url using AJAX (I have defined
 XML templates in my mapfile to get an XML result):
 
 http://localhost/cgi-bin/mapserv.exe?map=my.mapmode=nqueryimgxy=45+246layers=pointsmapext=1.33+51.285252+5.678991+55.101323mapsize=594+522
 
 I am getting a result, but Mapserver returns ALL features in the given
 bounding box (mapext), while I would like to get the features around the
 point given in imgxy (within the tolerance as defined in the mapfile). I
 have also tried this with mapxy and map coordinates instead of imgxy,
 but this gives the same results.
 
 My Mapserver version is 5.0.0.
 
 Could someone instruct me on the correct usage of NQUERY in this case?
 
 Thank you, kind regards,
 
 Arjen.
 ___
 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


[mapserver-users] Database connection in postgresql

2009-03-03 Thread rohan phatak
Hello friends,
   I am using map server application in which i am displaying my map in
web browser.  I  am creating button in that browser and on that button i
want to attach my database connection means if i click this button  the
database/tables  should be open  so how to proceed that?
   And my next question how to connect shape file to the postgresql in
mapserver??
THANKS IN ADVANCE.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] (no subject)

2009-03-03 Thread Dan Little
Check the documentation on the metaTile it requires having PIL installed but 
that is not really a big hassle.




From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 6:17:10 AM
Subject: [mapserver-users] (no subject)

Hi,
 
We are using Mapserver to produce tiles for a web application, using Tilecache 
as the caching mechanism. 
 
When we were building the system, we figured out that tiles requested does not 
fit well side by side (the roads of one tile does not fit the prolongation of 
the same road in the next tile). To eliminate this issue, we had to issue an 
extra 10 pixels (around the whole tile) request to Mapserver and then cut them. 
 
Then another problem arose: we could not make this with the labels because they 
appeared cut in one tile and there was no prolongation of it on the next tile. 
The solution was to divide it into different layers: one for the roads with the 
10 pixels buffer and another for the labels without buffer. This has the impact 
of duplicating the total number of images.
 
Anyone known an alternate solution for this problem?
 
Isn't Mapserver capable of serving images that fit well side by side?
 
Thanks in advance!


check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox. More than messages 


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


Re: [mapserver-users] Database connection in postgresql

2009-03-03 Thread Alexandre Dube

rohan phatak wrote:

Hello friends,
   I am using map server application in which i am displaying my 
map in  web browser.  I  am creating button in that browser and on 
that button i want to attach my database connection means if i click 
this button  the database/tables  should be open  so how to proceed that?


I'm not sure what/why you're trying to accomplish that, but you could 
take a look at this (1).  You might be interested.


   And my next question how to connect shape file to the 
postgresql in mapserver??


If you mean : how do I connect mapserver to a postgis table : 
http://mapserver.org/input/vector/postgis.html


If you mean : how do I transform my shapfile to a postgis table : use 
the shp2pgsql tool. 
http://www.postgis.org/documentation/manual-1.3/ch04.html#id2743056



THANKS IN ADVANCE.



Regards,

Alexandre

(1) http://geo.openplans.org/geoext/drake/tags/v0.1/apps/drake/drake1.html




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



--
Alexandre Dubé
Mapgears
www.mapgears.com

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


RE: [mapserver-users ] Mapserver images d oesn't fit well on a tiling scheme‏

2009-03-03 Thread Nelson Correia


 

With metaTile I can issue a pre-defined number of tiles that fit well. But this 
is per-request (if I'm right). For instance, if I make two consecutive requests 
of 4 tiles each from consecutive map zones, I get two sets of tiles that does 
not fit with each other (the first 4 do not fit side by side with the second 4).

 

The problem with that approach is that tiles from the same request fit well, 
but in order to construct a map like VE or Google Maps I need that tiles from 
different requests to always fit well.

 

Please tell me If I am wrong.

 


Date: Tue, 3 Mar 2009 05:44:05 -0800
From: danlit...@yahoo.com
Subject: Re: [mapserver-users] (no subject)
To: nelson...@hotmail.com; mapserver-users@lists.osgeo.org





Check the documentation on the metaTile it requires having PIL installed but 
that is not really a big hassle.




From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 6:17:10 AM
Subject: [mapserver-users] (no subject)

Hi,
 
We are using Mapserver to produce tiles for a web application, using Tilecache 
as the caching mechanism. 
 
When we were building the system, we figured out that tiles requested does not 
fit well side by side (the roads of one tile does not fit the prolongation of 
the same road in the next tile). To eliminate this issue, we had to issue an 
extra 10 pixels (around the whole tile) request to Mapserver and then cut them. 
 
Then another problem arose: we could not make this with the labels because they 
appeared cut in one tile and there was no prolongation of it on the next tile. 
The solution was to divide it into different layers: one for the roads with the 
10 pixels buffer and another for the labels without buffer. This has the impact 
of duplicating the total number of images.
 
Anyone known an alternate solution for this problem?
 
Isn't Mapserver capable of serving images that fit well side by side?
 
Thanks in advance!



check out the rest of the Windows Live™. More than mail–Windows Live™ goes way 
beyond your inbox. More than messages 


_
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver images doesn' t fit well on a tiling scheme‏

2009-03-03 Thread Dan Little
I think you're a bit wrong there.  If you build the Cache using tilecache, when 
you use the metaTiles it will take a larger sample than the image being 
generated, for example if you have a 3x3 meta tile grid, the center tile of 
the nine-tile grid will be used.  I had the exact same problem you are 
describing, but then setup the tilecache generator to use metatiles and things 
started to work beautifully -- including labels.





From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 8:11:16 AM
Subject: RE: [mapserver-users] Mapserver images doesn't fit well on a tiling 
scheme‏

 
 
With metaTile I can issue a pre-defined number of tiles that fit well. But this 
is per-request (if I'm right). For instance, if I make two consecutive requests 
of 4 tiles each from consecutive map zones, I get two sets of tiles that does 
not fit with each other (the first 4 do not fit side by side with the second 4).
 
The problem with that approach is that tiles from the same request fit well, 
but in order to construct a map like VE or Google Maps I need that tiles from 
different requests to always fit well.
 
Please tell me If I am wrong.
 

 Date: Tue, 3 Mar 2009 05:44:05 -0800
From: danlit...@yahoo.com
Subject: Re: [mapserver-users] (no subject)
To: nelson...@hotmail.com; mapserver-users@lists.osgeo.org

 
Check the documentation on the metaTile it requires having PIL installed but 
that is not really a big hassle.




 From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 6:17:10 AM
Subject: [mapserver-users] (no subject)

Hi,
 
We are using Mapserver to produce tiles for a web application, using Tilecache 
as the caching mechanism. 
 
When we were building the system, we figured out that tiles requested does not 
fit well side by side (the roads of one tile does not fit the prolongation of 
the same road in the next tile). To eliminate this issue, we had to issue an 
extra 10 pixels (around the whole tile) request to Mapserver and then cut them. 
 
Then another problem arose: we could not make this with the labels because they 
appeared cut in one tile and there was no prolongati on of it on the next tile. 
The solution was to divide it into different layers: one for the roads with the 
10 pixels buffer and another for the labels without buffer. This has the impact 
of duplicating the total number of images.
 
Anyone known an alternate solution for this problem?
 
Isn't Mapserver capable of serving images that fit well side by side?
 
Thanks in advance!


 check out the rest of the Windows Live™. More than mail–Windows Live™ goes way 
beyond your inbox. More than messages 


check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox. More than messages


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


[mapserver-users] Re: Mapserver WMS seem not to read +towgs84 parameters

2009-03-03 Thread Rahkonen Jukka
I forget to mention that I am using epsg:3067 in my WMS requests while image 
data is in epsg:2393 so Mapserver for sure is reprojecting. 
 
-Jukka-
 


Lähettäjä: Rahkonen Jukka 
Lähetetty: 3. maaliskuuta 2009 14:59
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: Mapserver WMS seem not to read +towgs84 parameters



Hi,
 
I am using  Mapserver version 5.2.0 from MS4W delivery through WMS 
1.1.1.  and I was now trying to add the missing +towgs84 parameters for the 
Finnish epsg:2393 projection.  I located the epsg file from MS4W\proj\nad 
directory and edited it from this:
# KKJ / Finland Uniform Coordinate System
2393 +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=350 +y_0=0 
+ellps=intl +units=m +no_defs  
 
to this:
# KKJ / Finland Uniform Coordinate System
2393 +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=350 +y_0=0 
+ellps=intl +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 
+units=m +no_defs  
 
However, adding +towgs84 parameters do not have any effect on the 
Mapserver output.  I am sure that this certain epsg file is read, because 
commenting out the 2393 line makes Mapserver to stop working with my mapfile. 
 In addition, I can make map to shift by editing +x_0 and +y_0 parameters.  I 
had even another try by skipping the whole epsg file by giving the projection 
directly in the layer definitions of my mapfile as 
 PROJECTION
  proj=tmerc
  lat_0=0
  lon_0=27
  k=1
  x_0=350
  y_0=0
  ellps=intl
  
towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964
  units=m
  no_defs
END
 
Here I can see exactly the same behaviour.  Editing other parameters, 
like lon_0, x_0 and y_0 are really changing the output, while editing towgs84 
parameters or leaving them out totally has no effect.  It looks to me that 
towgs84 parameters are not read at all, or all the parameters are interpreted 
as zeros.  However, I can't believe that this error wouldn't have been noticed 
by others so far.  So I am just giving the parameters in a wrong way?
 
The ESRI projection file at MS4W\proj\nad\ doest have 2393 
definitions with a bit different towgs84 values.  Giving my  layer definition 
as init=esri:2393 does not change anything, Mapserver does not use towgs84 
parameters.
 
-Jukka Rahkonen-

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


Re: [mapserver-users] How to use NQUERY to identify features at apoint?

2009-03-03 Thread Steve Lime
You have two choices:

  1) just use mapext or
  2) use imgbox in conjunction with imgext and imgsize

Option 1 is used when you're operating independent of a map interface (usually) 
and
option 2 is common when your bbox is given in pixels (i.e. drawing a box on a 
map).

Steve

 Arjen de Korte arje...@gmx.net 03/03/09 7:28 AM 
Steve, Dan,

Thank you for your answers. Using imgext and imgsize was the solution!

In this case query instead of nquery was not an option, since query only
returns one result.

In case I would like to query by bounding box (instead of point), would
the correct query be something like

http://localhost/cgi-bin/mapserv.exe?map=my.mapmode=nquerymapext=minx+miny+maxx+maxylayers=pointsimgext=1.33+51.285252+5.678991+55.101323imgsize=594+522
?

I.e. imgxy for a point query becomes mapext for a bbox query?

Thanks again for your help, kind regards,

Arjen.



On Mon, 02 Mar 2009 08:41 -0600, Steve Lime
steve.l...@dnr.state.mn.us wrote:
 Arjen: Try using imgext instead of mapext, and imgsize instead of
 mapsize. Those params are used
 to convert the mouse click (imgxy) into map coordinates.
 
 Steve
 
  Arjen de Korte arje...@gmx.net 03/02/09 4:57 AM 
 Dear Mapserver users,
 
 I would like to use a Mapserver NQUERY to identify features at a point
 on a map. I am now calling the following url using AJAX (I have defined
 XML templates in my mapfile to get an XML result):
 
 http://localhost/cgi-bin/mapserv.exe?map=my.mapmode=nqueryimgxy=45+246layers=pointsmapext=1.33+51.285252+5.678991+55.101323mapsize=594+522
 
 I am getting a result, but Mapserver returns ALL features in the given
 bounding box (mapext), while I would like to get the features around the
 point given in imgxy (within the tolerance as defined in the mapfile). I
 have also tried this with mapxy and map coordinates instead of imgxy,
 but this gives the same results.
 
 My Mapserver version is 5.0.0.
 
 Could someone instruct me on the correct usage of NQUERY in this case?
 
 Thank you, kind regards,
 
 Arjen.
 ___
 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

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


RE: [mapserver-users ] Mapserver images d oesn't fit well on a tiling scheme‏

2009-03-03 Thread Nelson Correia


 I'm not sure if I got it right... When I request a 3x3 meta tile grid, 
tilecache only caches the center image? What if I request the image on the 
right of it and again another image to the right? Tilecache will issue new and 
overlapped requests to Mapserver? Or for the second request it will reuse a 
tile from the previous 3x3 request?

 


Date: Tue, 3 Mar 2009 06:46:58 -0800
From: danlit...@yahoo.com
Subject: Re: [mapserver-users] Mapserver images doesn't fit well on a tiling 
scheme‏
To: nelson...@hotmail.com; mapserver-users@lists.osgeo.org





I think you're a bit wrong there.  If you build the Cache using tilecache, when 
you use the metaTiles it will take a larger sample than the image being 
generated, for example if you have a 3x3 meta tile grid, the center tile of 
the nine-tile grid will be used.  I had the exact same problem you are 
describing, but then setup the tilecache generator to use metatiles and things 
started to work beautifully -- including labels.





From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 8:11:16 AM
Subject: RE: [mapserver-users] Mapserver images doesn't fit well on a tiling 
scheme‏




 
With metaTile I can issue a pre-defined number of tiles that fit well. But this 
is per-request (if I'm right). For instance, if I make two consecutive requests 
of 4 tiles each from consecutive map zones, I get two sets of tiles that does 
not fit with each other (the first 4 do not fit side by side with the second 4).
 
The problem with that approach is that tiles from the same request fit well, 
but in order to construct a map like VE or Google Maps I need that tiles from 
different requests to always fit well.
 
Please tell me If I am wrong.
 


Date: Tue, 3 Mar 2009 05:44:05 -0800
From: danlit...@yahoo.com
Subject: Re: [mapserver-users] (no subject)
To: nelson...@hotmail.com; mapserver-users@lists.osgeo.org





Check the documentation on the metaTile it requires having PIL installed but 
that is not really a big hassle.




From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 6:17:10 AM
Subject: [mapserver-users] (no subject)

Hi,
 
We are using Mapserver to produce tiles for a web application, using Tilecache 
as the caching mechanism. 
 
When we were building the system, we figured out that tiles requested does not 
fit well side by side (the roads of one tile does not fit the prolongation of 
the same road in the next tile). To eliminate this issue, we had to issue an 
extra 10 pixels (around the whole tile) request to Mapserver and then cut them. 
 
Then another problem arose: we could not make this with the labels because they 
appeared cut in one tile and there was no prolongati on of it on the next tile. 
The solution was to divide it into different layers: one for the roads with the 
10 pixels buffer and another for the labels without buffer. This has the impact 
of duplicating the total number of images.
 
Anyone known an alternate solution for this problem?
 
Isn't Mapserver capable of serving images that fit well side by side?
 
Thanks in advance!

_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver images doesn' t fit well on a tiling scheme‏

2009-03-03 Thread Dan Little
There are two steps to a tilecache...
Step 1: Seeding it.
Step 2: Querying from it.

Metatile usefulness is best seen while seeding the tile cache.  If you look at 
the attached graphic (a rough estimation of a 3x3 meta-tile setup) then you'll 
see as the tilecache seed iterates through the map, it oversamples the map 
and uses the center image to represent the tile (A).  When moving onto the 
next tile (B), it performs the same over-sampling.  Since the map is then 
never at the edge of the generation you do not see errors with off-map lines 
and labelling at the edges.

Now, there two ways to query the tilecache:
1) As a WMS service.  IMO, this is slow you can do as you wish but I've always 
thought this to be quite a bit slower than taking the oppurunity to fully seed 
a tilecache.  In this scenario if you have a cache hit there is no additional 
generation costs.  If you have a cache miss the generation cost is greater, 
but mapserver, PIL, etc., are very efficient at generating images.  The actual 
cost of generating a 256x256 image and the cost of geneerating a 768x768 image 
is not terribly significant.  Plus, once it has been done for a tile, it never 
needs to be done again.

2) As a tilecache, this is where you just serve up the directory as a 
TileCache.  This is a lot faster but assumes you have fully seeded your cache.  
In this scenario you have no additional generation costs, all of that work has 
been done up front.





From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 10:17:08 AM
Subject: RE: [mapserver-users] Mapserver images doesn't fit well on a tiling 
scheme‏

 
 I'm not sure if I got it right... When I request a 3x3 meta tile grid, 
tilecache only caches the center image? What if I request the image on the 
right of it and again another image to the right? Tilecache will issue new and 
overlapped requests to Mapserver? Or for the second request it will reuse a 
tile from the previous 3x3 request?
 

 Date: Tue, 3 Mar 2009 06:46:58 -0800
From: danlit...@yahoo.com
Subject: Re: [mapserver-users] Mapserver images doesn't fit well on a tiling 
scheme‏
To: nelson...@hotmail.com; mapserver-users@lists.osgeo.org

 
I think you're a bit wrong there.  If you build the Cache using tilecache, when 
you use the metaTiles it will take a larger sample than the image being 
generated, for example if you have a 3x3 meta tile grid, the center tile of 
the nine-tile grid will be used.  I had the exact same problem you are 
describing, but then setup the tilecache generator to use metatiles and things 
started to work beautifully -- including labels.





 From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 8:11:16 AM
Subject: RE: [mapserver-users] Mapserver images doesn't fit well on a tiling 
scheme‏

 
 
With metaTile I can issue a pre-defined number of tiles that fit well. But this 
is per-request (if I'm right). For instance, if I make two consecutive requests 
of 4 tiles each from consecutive map zones, I get two sets of tiles that does 
not fit with each other (the first 4 do not fit side by side with the second 4).
 
The problem with that approach is that tiles from the same request fit well, 
but in order to construct a map like VE or Google Maps I need that tiles from 
different requests to always fit well.
 
Please tell me If I am wrong.
 

 Date: Tue, 3 Mar 2009 05:44:05 -0800
From: danlit...@yahoo.com
Subject: Re: [mapserver-users] (no subject)
To: nelson...@hotmail.com; mapserver-users@lists.osgeo.org

 
Check the documentation on the metaTile it requires having PIL installed but 
that is not really a big hassle.




 From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 6:17:10 AM
Subject: [mapserver-users] (no subject)

Hi,
 
We are using Mapserver to produce tiles for a web application, using Tilecache 
as the caching mechanism. 
 
When we were building the system, we figured out that tiles requested does not 
fit well side by side (the roads of one tile does not fit the prolongation of 
the same road in the next tile). To eliminate this issue, we had to issue an 
extra 10 pixels (around the whole tile) request to Mapserver and then cut them. 
 
Then another problem arose: we could not make this with the labels because they 
appeared cut in one tile and there was no prolongati on of it on the next tile. 
The solution was to divide it into different layers: one for the roads with the 
10 pixels buffer and another for the labels without buffer. This has the impact 
of duplicating the total number of images.
 
Anyone known an alternate solution for this problem?
 
Isn't Mapserver capable of serving images that fit well side by side?
 
Thanks in advance!


Re: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme???

2009-03-03 Thread Christopher Schmidt
On Tue, Mar 03, 2009 at 08:31:05AM -0800, Dan Little wrote:
 There are two steps to a tilecache...
 Step 1: Seeding it.
 Step 2: Querying from it.
 
 Metatile usefulness is best seen while seeding the tile cache.  If you look 
 at the attached graphic (a rough estimation of a 3x3 meta-tile setup) then 
 you'll see as the tilecache seed iterates through the map, it oversamples 
 the map and uses the center image to represent the tile (A).  When moving 
 onto the next tile (B), it performs the same over-sampling.  Since the map 
 is then never at the edge of the generation you do not see errors with 
 off-map lines and labelling at the edges.

This is incorrect.

Instead, what happens, is that when you request, A, B, or C, the 3x3
grid centered around B is rendered. when you request tile D, E, or F, the
3x3 grid around E is rendered.

In each case, a metaBuffer sized pixel boundary on all sides is created.
So, a 3x3 metaTile is actually 768 (3*256) + 20  (2 * 10) - 788 pixels
big. This way, things near the edges of tiles are still included, and
you get fewer missed labels becasue the labels that san across the edges
of A and B are included, where they wouldn't have been before.

Regards,
-- 
Christopher Schmidt
MetaCarta
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] DGN V8 mapserver

2009-03-03 Thread Holger Schiebold

Hi,

is it possible to use Microstation DGN V8 files in Mapserver? I know it works 
for V7 files using OGR but I need this functionality for V8 files also. Could 
this work using the dgndirect library and (if so) can it be integrated in GDAL?
Has anyone of you some experience with that? Would there be differences to V7 
files in handling them, especially the use of autostyling?

Thanks in advance,

Holger 


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


Re: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme???

2009-03-03 Thread thomas bonfort
To summarize, here is the way to *completely* avoid truncated labels
and edge artifacts:

* use a 10 pixel metabuffer in your tilecache config (the number of
metatiles is irrelevant, but as Chris points out, there'll be more
labels included if you use a 3x3 (or more) metatiling scheme than a
1x1 one :

metaTile=true
metaSize=3,3
metaBuffer=10

* set a 10 pixel edge buffer in mapserver (so no labels are rendered
in the 10 pixels on the edges of the image) :
WEB
METADATA
labelcache_map_edge_buffer -10
END
END

* use PARTIALS FALSE in all your label blocks

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


Re: [mapserver-users] Re: Mapserver WMS seem not to read +towgs84 parameters

2009-03-03 Thread Frank Warmerdam

Rahkonen Jukka wrote:
I forget to mention that I am using epsg:3067 in my WMS requests while 
image data is in epsg:2393 so Mapserver for sure is reprojecting.


Jukka,

I believe the problem is that EPSG:3067 expands as:

  +proj=utm +zone=35 +ellps=GRS80 +units=m +no_defs

with no +towgs84 value.  From PROJ 4.6.0 on datum shifts are only
applied if we know datum information for the source and destination
coordinate system.

If you want ETRS89 treated as equivelent to WGS84 you might want to
add a +towgs84=0,0,0 in the EPSG 3067 entry in the epsg file too.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


Re: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme???

2009-03-03 Thread Dan Little

Thanks Chris and Thomas for clarifying... I think my thoughts were correct and 
my descriptions were not... go figure.

MfG


- Original Message 
 From: thomas bonfort thomas.bonf...@gmail.com
 To: Christopher Schmidt crschm...@metacarta.com
 Cc: Dan Little danlit...@yahoo.com; mapserver-users@lists.osgeo.org
 Sent: Tuesday, March 3, 2009 12:01:45 PM
 Subject: Re: [mapserver-users] Mapserver images doesn't fit well on a tiling  
 scheme???
 
 To summarize, here is the way to *completely* avoid truncated labels
 and edge artifacts:
 
 * use a 10 pixel metabuffer in your tilecache config (the number of
 metatiles is irrelevant, but as Chris points out, there'll be more
 labels included if you use a 3x3 (or more) metatiling scheme than a
 1x1 one :
 
 metaTile=true
 metaSize=3,3
 metaBuffer=10
 
 * set a 10 pixel edge buffer in mapserver (so no labels are rendered
 in the 10 pixels on the edges of the image) :
 WEB
 METADATA
 labelcache_map_edge_buffer -10
 END
 END
 
 * use PARTIALS FALSE in all your label blocks
 
 --
 Thomas Bonfort
 CampToCamp



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