[mapserver-users] Mapfile from Postgis, just Background No Map?

2010-08-03 Thread elisabeth theresia
Good day all,
i want to ask, i have file shp that already convert to Postgis, then i want to 
appear it in mapfile named:map_postgis.map then check in: 
http://localhost/cgi-bin/mapserv.exe?map=i:/Spatial/mapfile/map_postgis.map&mode=map,
 but that i found just background no Map. why?

shp: kec_kasus_DBD
db in postgis: db_SpatialSura
table: tb_kasusdbd
mapfile: map_postgis
for checking: i want to see column 'kecamatan'

here my mapfile:
MAP

NAME kec_kasus_DBD
IMAGETYPE JPEG
EXTENT -123.950500 -183.224900 299.457000 145.260600
STATUS ON
UNITS DD
SIZE 546 388
IMAGECOLOR 255 241 215 
SHAPEPATH "i:\Spatial\shp_kec"
FONTSET "i:\Spatial\font\font.dat"
UNITS KILOMETERS



#DATA
LAYER
NAME "tb_kasusdbd"
STATUS ON
TYPE POLYGON
CONNECTIONTYPE POSTGIS
CONNECTION "user=dbee dbname=dbSpatialSura host=localhost port=5432 
password=xx"
DATA "the_geom FROM tb_kasusdbd USING UNIQUE code_kec"
MINSCALE 10
   

#FILTER "type= 'jumdbd_08'"
CLASS


NAME "kecamatan"
STYLE
COLOR 255 22 22
OUTLINECOLOR 67 70 31
WIDTH 2
ANTIALIAS TRUE
END#style
END#class

END#layer
END#map

Thanks :)



  

map_postgis.map
Description: Binary data
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] vector pdf output

2010-08-03 Thread Worth Lutz
Does MapServer support vector PDF output??

 

Also I am experimenting on ver. 5.6.3 with pdf output and am getting some
output but it does not look like the png output.  I also have not yet
figured out why I sometimes get nothing for some layers.  Still
experimenting.

 

Can anyone point me to some examples?

 

Is the cairo/pdf output available in the svn trunk?  If I compile that will
I be able to experiment with it?  Any advise on trying that?

 

Worth

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


Re: [mapserver-users] Raster Strategies Examples

2010-08-03 Thread Jan Hartmann



On 08/03/10 16:06, Daniel Morissette wrote:


Jan, Jeff,

If you have ideas of an easier mechanism to help determine scales that
you would like to see added in MapServer then please share them... I'd
be happy to help improve this.

As a rule of thumb, for raster maps  I compute the scale that displays 
one pixel from the raster file  as exactly one screen pixel.  The 
optimal Maxscale-Minscale breakpoints between two raster maps are 
generally exactly in the middle of those basic scales  (depends a bit on 
format and compression ratio). For vector maps I start with the scale 
needed to display
the whole map on a 1000*1000 screen (becoming the largest Minscale) and 
try to figure out efficient breakpoints for smaller scales by counting 
the number of elements in the files. Most of the time, my 
Maxscale/Minscale pairs for different layers are derived by 
multiplying/dividing by two, on the basis of those basic values.


Those are just rules of thumb of course. I'm not sure whether they could 
or should be generalized into MapServer directives.


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


Re: [mapserver-users] php_mapscript with apache-php-dso

2010-08-03 Thread Jan Hartmann

 Yes, that did it. Thanks Daniel

Jan

On 08/03/10 15:28, Daniel Morissette wrote:

We do this in FGS so that's definitely possible.

Try adding a "PassEnv LD_LIBRARY_PATH" after the SetEnv directive in
your httpd.conf. PassEnv is required for CGI's to receive the env vars,
and it seems that it is also required for DSO modules.

Daniel

Jan Hartmann wrote:

  Hi folks,

I have compiled php-mapscript to run under a Linux Apache server with
php installed as a dynamic module. My whole binary tree is under $HOME,
and programs find their libraries via the environment variable
LD_LIBRARY_PATH. Everything works beautiful with PHP installed as a CGI
binary, but when PHP is installed as a module, Apache complains at
startup that it cannot find the GDAL libraries. It *does* find the
PHP-MapScript module, but that module tries to load GDAL, and that
library isn't visible, although LD_LIBRARY_PATH is set in Apache's
configuration with the SetEnv directive. Other local libraries, like
PostgreSQL, are loaded without  any problem.

Things are fixed when I set the library environment in /etc/ld.so.conf
and run the ldconfig command, but that can only be done by root. I want
to create binary distributions that are completely on the user level,
not needing any root access at all. Does anyone have a solution for this?

Jan
___
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] Re: what is the way to get feature info inmapserver?

2010-08-03 Thread Kiks

Thanks Jukka,
but the problem was that I'm using SQL Server 2008, without appling the
patch resolved with this ticket

http://trac.osgeo.org/mapserver/ticket/3058

As I said in my last post, I'm not sure I can overwrite the
msplugin_mssql2008.dll to resolve.

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5368561.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: RE [Polluriel potentiel] [mapserver-users] what is the way to get feature info in mapserver?

2010-08-03 Thread Kiks

My server side problem was a resolved issue with Sql Server 2008.
http://osgeo-org.1803224.n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tt4631781.html#a4631781

Now I'm trying to upgrade the mapserver version, but I've got some doubts
about the best way to upgrade.
Since I've made some manual changes to some proj files, I wondered if I can
upgrade only the msplugin_mssql2008.dll that I've originally installed
through the MS4W package.

thanks everybody for the great support :-)

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5368531.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] Raster Strategies Examples

2010-08-03 Thread Stephen Woodbridge

Daniel Morissette wrote:

Jan Hartmann wrote:

Would it make sense to add this functionality to MapServer? Finding
scale breakpoints is a hassle indeed!



Jeff McKenna wrote:

I've always used a simple CGI template containing the [scaledenom] parameter.
I plan to simplify this for MS4W users.



Jan, Jeff,

If you have ideas of an easier mechanism to help determine scales that
you would like to see added in MapServer then please share them... I'd
be happy to help improve this.



I always setup a trivial OpenLayers viewer with the scale control turned 
on and it displays the scale over the map. This has the benefit, that I 
can make changes to the mapfile and see them in OL by just a slight pan 
to refresh the map. I use singleTile: true, ratio:1 on the layer.


This has the advantage of bringing the scale value and the map together 
so you can better visualize the changes and see the effect of changes.


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


Re: [mapserver-users] Raster Strategies Examples

2010-08-03 Thread Daniel Morissette
Jan Hartmann wrote:
> 
> Would it make sense to add this functionality to MapServer? Finding
> scale breakpoints is a hassle indeed!
> 

Jeff McKenna wrote:
> I've always used a simple CGI template containing the [scaledenom] parameter.
> I plan to simplify this for MS4W users.


Jan, Jeff,

If you have ideas of an easier mechanism to help determine scales that
you would like to see added in MapServer then please share them... I'd
be happy to help improve this.

-- 
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] Raster Strategies Examples

2010-08-03 Thread Jeff McKenna




- How can i calculate the scale where i should create another layer of 
the

tiles, or i shoud see it with some tests?


I find the MapServer scale values very confusing myself.  If I want
to compute the scale for particular request (for instance to establish
breakpoints for MINSCALE/MAXSCALE), I do a request at the target resolution
with shp2img and debug output on and examine the debug output for the scale
reported.



I've always used a simple CGI template containing the [scaledenom] 
parameter.

I plan to simplify this for MS4W users.

-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/


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


Re: [mapserver-users] php_mapscript with apache-php-dso

2010-08-03 Thread Daniel Morissette
We do this in FGS so that's definitely possible.

Try adding a "PassEnv LD_LIBRARY_PATH" after the SetEnv directive in
your httpd.conf. PassEnv is required for CGI's to receive the env vars,
and it seems that it is also required for DSO modules.

Daniel

Jan Hartmann wrote:
>  Hi folks,
> 
> I have compiled php-mapscript to run under a Linux Apache server with
> php installed as a dynamic module. My whole binary tree is under $HOME,
> and programs find their libraries via the environment variable
> LD_LIBRARY_PATH. Everything works beautiful with PHP installed as a CGI
> binary, but when PHP is installed as a module, Apache complains at
> startup that it cannot find the GDAL libraries. It *does* find the
> PHP-MapScript module, but that module tries to load GDAL, and that
> library isn't visible, although LD_LIBRARY_PATH is set in Apache's
> configuration with the SetEnv directive. Other local libraries, like
> PostgreSQL, are loaded without  any problem.
> 
> Things are fixed when I set the library environment in /etc/ld.so.conf
> and run the ldconfig command, but that can only be done by root. I want
> to create binary distributions that are completely on the user level,
> not needing any root access at all. Does anyone have a solution for this?
> 
> Jan
> ___
> 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] Raster Strategies Examples

2010-08-03 Thread Jan Hartmann



On 08/03/10 14:12, Frank Warmerdam wrote:



I find the MapServer scale values very confusing myself.  If I want
to compute the scale for particular request (for instance to establish
breakpoints for MINSCALE/MAXSCALE), I do a request at the target 
resolution
with shp2img and debug output on and examine the debug output for the 
scale

reported.

Would it make sense to add this functionality to MapServer? Finding 
scale breakpoints is a hassle indeed!


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


[mapserver-users] php_mapscript with apache-php-dso

2010-08-03 Thread Jan Hartmann

 Hi folks,

I have compiled php-mapscript to run under a Linux Apache server with 
php installed as a dynamic module. My whole binary tree is under $HOME, 
and programs find their libraries via the environment variable 
LD_LIBRARY_PATH. Everything works beautiful with PHP installed as a CGI 
binary, but when PHP is installed as a module, Apache complains at 
startup that it cannot find the GDAL libraries. It *does* find the 
PHP-MapScript module, but that module tries to load GDAL, and that 
library isn't visible, although LD_LIBRARY_PATH is set in Apache's 
configuration with the SetEnv directive. Other local libraries, like 
PostgreSQL, are loaded without  any problem.


Things are fixed when I set the library environment in /etc/ld.so.conf 
and run the ldconfig command, but that can only be done by root. I want 
to create binary distributions that are completely on the user level, 
not needing any root access at all. Does anyone have a solution for this?


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


Re: [mapserver-users] Raster Strategies Examples

2010-08-03 Thread Frank Warmerdam


Folks,

I'm sorry for speaking up on this without having read the other replies.
Forgive me for repeating information.

Edi.Karadumi wrote:

as you may know, i have very slow performance when i zoom out and im stucked
here. As i have read i should make a copy of the tiles with reduced
resolution. Merge the tiles together and use min/max scale to show different
layers in different scales. the min/max scales i zoom in/out are
100/120. Now my questions are

- How can i calculate the scale where i should create another layer of the
tiles, or i shoud see it with some tests?


I find the MapServer scale values very confusing myself.  If I want
to compute the scale for particular request (for instance to establish
breakpoints for MINSCALE/MAXSCALE), I do a request at the target resolution
with shp2img and debug output on and examine the debug output for the scale
reported.

- how much should be the resolution of the new layer? 


You basically want to move to a new mosaiced overview layer at the point
where a map request is likely to request several tiles at once.  If
we, roughly, assume a map request is on the order of 500x500 then at
32 times reduction in resolution would give a request over an area of
16000 x 16000 which is certain to touch several of your 6000 x 6000
base files.  So, I'd aim to have this merged mosaic at approximately
1/32nd of the resolution of the original imagery.

1200GB of full res imagery reduced to 1/32nd resolution is only about 1GB
so it is a very managable size for an overview layer.


- is there any tools or program to merge the tiles? merging 6000 tiles with
the gdalwarp by writing the command by myself is frustrating


gdalwarp can take multiple input files in one run, but there are
some issues with how gdalwarp is implemented that make it not scale
well to many input files without great care.  Since the input files
are quite a modest size I would suggest using gdal_merge.py to
mosaic them at a reduced resolution.  If your original imagery were
5m pixels something like:

gdal_merge.py -o overview_mosaic.tif -ps 160 160 */*.tif

might do the trick.


- how many tiles should i merge together to create the new layer? (how many
tiles should have the new layer) i know that in each zoomscale its better to
appear only one tile but i dont know how to calculate it

- the tiles that i should merge are the originals or those with internal
tiling and overviews?


If you use gdal_merge.py, it is best to use input files that have overviews
already built.  This will ensure that the mosaic built uses the same
downsampling technique (ie. averaging) that you used to build the overviews.
It will also make the mosaicing much faster.

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