Re: [mapserver-users] PROBLEM IN GETTING LAYER ITEMS WITH ZOOM

2009-10-03 Thread Rahkonen Jukka
Hi,

I am usually looking at the layer with some WMS client which allows continuous 
zooming (no fixed zoom levels like with OpenLayers) and then I keep adjusting 
the MINSCALEDENOM and MAXSCALEDENOM values until the result is good enough for 
me.

-Jukka Rahkonen-

harpal singh wrote:
 
WANT TO DISPLAY LAYER ITEMS WITH VARYING ZOOMING . I HAVE SPECIFIED THE
MINSCALEDENOM UNDER EACH CLASS IN MAPFILE AND THE ZOOM FACTOR .BUT
NOT BEING ABLE TO GET THE DESIRED OUTPUT...CAN ANYBODY ASSIST ME IN
ASSIGNING THE CORRECT MIN AND MAX SCALEDENOM
THANX IN ADVANCE ..

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


[mapserver-users] Problem w/ SLD Documentation

2009-10-03 Thread Bill Thoen
I was trying to learn something about SLD this morning and while reading 
SLD by Jeff McKenna (http://mapserver.org/ogc/sld.html) I found that 
virtually all the links to examples are either 403 or 404 or FORBIDDEN. 
Am I reading the wrong docs or is this just the way the web wobbles 
sometimes?


Anyway if I need to do anything else besides whine about it here, would 
somebody please let me know what the procedure is?


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


[mapserver-users] Help Serving Tiled Tiffs

2009-10-03 Thread Daniel Walton
Thanks to all of you who've been helping me learn the ropes. I am getting
close (I hope) to being able to serve up on-the-fly-generated remote sensing
imagery using GDAL and MS. I am using the latest MS4W distribution with GDAL
1.6. I have taken Tiff images and tiled and created overviews using Frank's
suggestions:
gdal_translate -co TILED=YES in.tif out.tif
gdaladdo out.tif 2 4 8 16 32 64
When I request an image using a web browser like:
http://localhost/cgi-bin/mapserv.exe?map=R:\Temp\Test\A091003033655.mapSERVICE=WMSVERSION=1.1.0REQUEST=GetMap;
SRS=EPSG:4326BBOX=36.141921,-121.788916,36.324769,-121.565064FORMAT=image/tiffWIDTH=256HEIGHT=256STYLES=LAYERS=TEST_SWIR_TILED
all I get is a white image. The BBOX parameter is the same as my mapfile
extents, which is the same as the imagery bounds. The projections are the
same as well (EPSG 4326).

Questions:

   1. Can I pull up an image this way in a browser (using FF 3.5)
   2. If so, what am I doing wrong?
   3. What are some other points of validation I can perform to break down
   the testing a bit more?
   4. What needs to be done to be able to view the WMS images in Google
   Earth or ArcGIS explorer (e.g. adding querystring arguments via a proxy
   handler, etc?)

Thanks again MS community. I look forward to someday joining the ranks.

-Dan


My Mapfile looks like this:

MAP
  EXTENT 36.141921 -121.788916 36.324769 -121.565064
  IMAGECOLOR 255 255 255
  IMAGETYPE gif
  SIZE -1 -1
  STATUS ON
  UNITS DD
  NAME MS
  OUTPUTFORMAT
NAME GTiff
MIMETYPE image/tiff
DRIVER GDAL/GTiff
EXTENSION tif
IMAGEMODE RGB
TRANSPARENT FALSE
  END
  PROJECTION
proj=longlat
ellps=WGS84
datum=WGS84
no_defs
  END
  LEGEND
IMAGECOLOR 255 255 255
KEYSIZE 20 10
KEYSPACING 5 5
LABEL
  SIZE MEDIUM
  TYPE BITMAP
  BUFFER 0
  COLOR 0 0 0
  FORCE FALSE
  MINDISTANCE -1
  MINFEATURESIZE -1
  OFFSET 0 0
  PARTIALS TRUE
END
POSITION LL
STATUS OFF
  END
  QUERYMAP
COLOR 255 255 0
SIZE -1 -1
STATUS OFF
STYLE HILITE
  END
  SCALEBAR
ALIGN CENTER
COLOR 0 0 0
IMAGECOLOR 255 255 255
INTERVALS 4
LABEL
  SIZE MEDIUM
  TYPE BITMAP
  BUFFER 0
  COLOR 0 0 0
  FORCE FALSE
  MINDISTANCE -1
  MINFEATURESIZE -1
  OFFSET 0 0
  PARTIALS TRUE
END
POSITION LL
SIZE 200 3
STATUS OFF
STYLE 0
UNITS MILES
  END
  WEB
IMAGEPATH 
IMAGEURL 
QUERYFORMAT text/html
LEGENDFORMAT text/html
BROWSEFORMAT text/html
  END
  LAYER
DATA R:\Temp\Test\test_SWIR_tiled.tif
NAME TEST_SWIR_TILED
STATUS DEFAULT
TYPE RASTER
UNITS DD
  END
END




Dan Walton
dgwal...@gmail.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Cannot download mstutorial_data.zip ; Proxy error

2009-10-03 Thread Eugene Timmermans
When I click on http://demo.mapserver.org/tutorial/mstutorial_data.zip

on

http://www.mapserver.org/tutorial/background.html#tutorial-data

I get a :

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /tutorial/mstutorial_data.zip.

Reason: Error reading from remote server



Apache/2.0.54 (Fedora) Server at demo.mapserver.org Port 80
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Problem w/ SLD Documentation

2009-10-03 Thread Yewondwossen Assefa

Hi Bill,

There was a server crash and sew things did not get trasferred properly 
on the new server. I will make sure that they are back in service early 
next week.


regards,


Bill Thoen wrote:
I was trying to learn something about SLD this morning and while 
reading SLD by Jeff McKenna (http://mapserver.org/ogc/sld.html) I 
found that virtually all the links to examples are either 403 or 404 
or FORBIDDEN. Am I reading the wrong docs or is this just the way the 
web wobbles sometimes?


Anyway if I need to do anything else besides whine about it here, 
would somebody please let me know what the procedure is?


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




--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Can you pass draw scale into postgis SQL?

2009-10-03 Thread Stephen Woodbridge
Open an enhancement request for this. If anyone has any additional 
thoughts on this please add them to the ticket.


Thanks,
  -Steve

Stephen Woodbridge wrote:

Hi all,

I would like to be able to make my postgis queries in mapserver be aware 
of the current draw scale. Is there an easy way to do this in the 
mapfile? I would like to avoid parameter substitution since mapserver is 
already aware of the scale, it would be nice if we could just embed a 
token like [scale] in a mapserver data statement and mapserver would 
substitute that for the current draw scale.


DATA way from (
  select way, osm_id, landuse, name
from osm_landuse1 where landuse is not null
 and is_large_enough(area(way),'landuse1',[scale])
  ) as foo using unique osm_id using srid=900913

The idea here is that is_large_enough(area(way),'landuse1',[scale]) 
whould return true or false based on comparing area(way) to some value 
it looks up for 'landuse1' and the current [scale]. This would allow 
dynamic filtering of data in the database based on the current scale.


Likewise you could use the [scale] in a SQL case statement to 
dynamically change the SQL results based on scale.


It would seem that this could greatly simplify mapfiles.

-Steve W
___
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] To compile module libmapsript.so for Java

2009-10-03 Thread joel ml
hello to all, I have a question, I am making a program in Java and I want to 
use the functionalities of Mapserver, specifically I want to know as I compile 
libmapscript.so from the code source, on the platform Fedora 11. 

please any aid is welcome I need, it to migrate the program that I am doing in 
Windows to Linux. 

* already it installs swig 1.3.4, fgs 5.4.


  Yahoo! Cocina

Encontra las mejores recetas con Yahoo! Cocina.


http://ar.mujer.yahoo.com/cocina/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users