[mapserver-users] hdf projection

2008-12-03 Thread guolixia84
 Hi ,
I use gdalinfo to get the metadata of subdataset of hdf. However there is not 
any projection information. And I use shp2img.exe to show my mapfile of hdf 
raster data, there is just a gray area with nothing image, I do not know how to 
write a correct mapfile of hdf, maybe the projection is the problem. I wonder 
how can I get the projection information or how can I write the correct 
mapfile. Part of my mapfile is as follows:
The map level of projection I do not know how to define, so I do not define it.
LAYER NAME preview 
DATA 
HDF4_SDS:UNKNOWN:\DATA\AMOD021KM20060726040600\AMOD021KM20060726040600.hdf:0  
  #DATA 'meteopreview.tif'
DUMP TRUE
TYPE RASTER
PROCESSING   BANDS=1

PROJECTION
AUTO
# I do not know the projection   
   
END
END
 ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] ICON Placing (Symbol) within raster file

2008-12-03 Thread Amiya Patra
Hi Steve

 But how It is  possible for raster file because in raster file symbol is
not supported. Instead of that I tried by keyimage but I am unable to
get..plz help me regarding that.
Thank you.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Postgis query

2008-12-03 Thread mark balman
Hi All

Many thanks to Paul with regards to enabling statement logging
(extremely useful to help find out what sql is being sent) and thanks
to Carlos for suggesting the joins.. this was the problem which I can
happily say that I have resolved. What an amazing combination of
software really, Mapserver and Postgis are great products..

Cheers to all

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


[mapserver-users] (no subject)

2008-12-03 Thread Venkata Bapalu Ganugula
 

 

Regards

 

 

cmd Ganugula 

ASE | Information Technology | Tata Consultancy Services Ltd

Kohinoor Park, Plot No. 1, Jubilee Gardens,cyberabad. | Hyderabad-500081

*

 66678705 

*

 9966213000 

*

 www.tatateleservices.com 

 

 


==
i-choose online store at www.tataindicom.com
Your Comfort.Your Convenience.YourChoice.
== 

DISCLAIMER:
The information contained in this message (including any attachments) is 
confidential and may be privileged. If you have received it by mistake please 
notify the sender by return e-mail and permanently delete this message and any 
attachments from your system. Any dissemination, use, review, distribution, 
printing or copying of this message in whole or in part is strictly prohibited. 
Please note that e-mails are susceptible to change.TATATELESERVICES LTD. 
(including its group companies) shall not be liable for the improper or 
incomplete transmission of the information contained in this communication nor 
for any delay in its receipt or damage to your system. TATA TELESERVICES LTD. 
(or its group companies) does not guarantee that the integrity of this 
communication has been maintained nor that this communication is free of 
viruses, interceptions or interference.
image001.gif___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ICON Placing (Symbol) within raster file

2008-12-03 Thread Steve Lime
Pixmaps are raster symbols. However, only common graphics file formats are
supported: GIF/PNG8/PNG24/JPG. If you convert your TIF to one of those then
you can use it as a symbol and marker.

Steve

 Amiya Patra [EMAIL PROTECTED] 12/03/08 2:38 AM 
Hi Steve

 But how It is  possible for raster file because in raster file symbol is
not supported. Instead of that I tried by keyimage but I am unable to
get..plz help me regarding that.
Thank you.

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


RE: [mapserver-users] (no subject)

2008-12-03 Thread Fawcett, David
Wow, that is the spammiest sig that I have ever seen!  html to boot!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Venkata
Bapalu Ganugula
Sent: Wednesday, December 03, 2008 4:01 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] (no subject)



 

 

Regards

 

 

cmd Ganugula 

ASE | Information Technology | Tata Consultancy Services Ltd

Kohinoor Park, Plot No. 1, Jubilee Gardens,cyberabad. | Hyderabad-500081

*

 66678705 

*

 9966213000 

*

 www.tatateleservices.com 

 

 

 http://corpmail.tatatel.co.in/BBImage.jpg 

==
i-choose online store at www.tataindicom.com
Your Comfort. Your Convenience. Your Choice.
==

DISCLAIMER:
The information contained in this message (including any
attachments) is confidential and may be privileged. If you have received
it by mistake please notify the sender by return e-mail and permanently
delete this message and any attachments from your system. Any
dissemination, use, review, distribution, printing or copying of this
message in whole or in part is strictly prohibited. Please note that
e-mails are susceptible to change. TATA TELESERVICES LTD. (including its
group companies) shall not be liable for the improper or incomplete
transmission of the information contained in this communication nor for
any delay in its receipt or damage to your system. TATA TELESERVICES
LTD. (or its group companies) does not guarantee that the integrity of
this communication has been maintained or that this communication is
free of viruses, interceptions or interferences. 

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


[mapserver-users] one to many issue

2008-12-03 Thread Jim Hagedorn
I'm having issues with the one to many in the join.  I keep getting error 
message about the template.  The only example is for one to one.  I have not 
been able to find anything on the mailing list on this, but then I can't search 
the mailing list.  Is there an example of a template for the one to many?

thanks


Jim Hagedorn
GIS Specialist


[cid:image001.gif@01C9552D.FE73A1D0]

Banner Associates, Inc.
409 22nd Avenue South * PO Box 298 * Brookings, South Dakota 57006
(605) 692-6342  *  Fax (605) 692-5714
www.bannerassociates.comhttp://www.bannerassociates.com/




inline: image001.gif___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] join table to shape file before query

2008-12-03 Thread Jim Hagedorn
I need to join a table with a shape file before I do a query.  I have a shape 
file with polygons and the table has info on the polys but the table could have 
multiple entries for each polygon.  I need to search on the table and then be 
able to zoom to the polygon for that entry in the table.  I have done the join 
but that is after the query and can only query the polygon but it doesn't have 
the info I need to search on.  is it possible to do the join first or somehow 
query the table and then relate back to the shapefile?

thanks


Jim Hagedorn
GIS Specialist


[cid:image001.gif@01C9552E.0806A6C0]

Banner Associates, Inc.
409 22nd Avenue South * PO Box 298 * Brookings, South Dakota 57006
(605) 692-6342  *  Fax (605) 692-5714
www.bannerassociates.comhttp://www.bannerassociates.com/




inline: image001.gif___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] join table to shape file before query

2008-12-03 Thread Steve Lime
You have to use OGR to do this and not MapServer JOINs.

Steve

 On 12/3/2008 at 10:00 AM, in message
[EMAIL PROTECTED],
Jim Hagedorn [EMAIL PROTECTED] wrote:
 I need to join a table with a shape file before I do a query.  I have a shape 
 file with polygons and the table has info on the polys but the table could 
 have multiple entries for each polygon.  I need to search on the table and 
 then be able to zoom to the polygon for that entry in the table.  I have done 
 the join but that is after the query and can only query the polygon but it 
 doesn't have the info I need to search on.  is it possible to do the join 
 first or somehow query the table and then relate back to the shapefile?
 
 thanks
 
 
 Jim Hagedorn
 GIS Specialist
 
 
 [cid:image001.gif@01C9552E.0806A6C0] 
 
 Banner Associates, Inc.
 409 22nd Avenue South * PO Box 298 * Brookings, South Dakota 57006
 (605) 692-6342  *  Fax (605) 692-5714
 www.bannerassociates.comhttp://www.bannerassociates.com/

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


[mapserver-users] Legend Blur

2008-12-03 Thread Bryn Roberts
Hi MapServer Users,
 
I would like assistance with a problem I seem to be having after moving to the 
latest ms4w package which includes MapServer 5.2.
The problem I see is that map legends look somewhat blurry when embedded into 
the map (they look fine when status is simply 'on').
 
Has anyone experienced this problem before, or have any ideas as to what may be 
going on?
Some maps have less blurry legends than others, but all maps were previously 
working fine under MapServer 5.0, and on comparison it looks like the legends 
MapServer 5.2 is drawing are slightly squashed.
 
Below is an extract of one of the map files I am experiencing this problem with.
 
MAP
 NAME abc
 STATUS ON
 SIZE 500 500
 EXTENT 227154 5165779 627108 5614539
 UNITS METERS
 IMAGECOLOR 255 255 255
 SYMBOLSET symbols.sym
 FONTSET font.list
 SHAPEPATH C:/ms4w/Apache/htdocs/abc/data/
 PROJECTION
  init=epsg:28355
 END
 
 OUTPUTFORMAT
  NAME 'AGG'
  DRIVER AGG/PNG
  IMAGEMODE RGB
 END
 
 LEGEND
  STATUS EMBED
  POSITION ll
  IMAGECOLOR 255 255 255
  LABEL
   COLOR 0 0 0
   FONT verdana
   TYPE TRUETYPE
   POSITION AUTO
   PARTIALS FALSE
   SIZE 8
   BUFFER 1
  END
 END
 
Many thanks in advance.
 
Regards,
Bryn

-
This transmission is intended solely for the person or
organisation to whom it is addressed.
It is confidential and may contain legally privileged
information. If you have received this transmission in
error,you may not use, copy or distribute it.
Please advise us by return e-mail or by phoning 61 3 62338203
and immediately delete the transmission in its entirety.
We will meet your reasonable expenses of notifying us.
Despite our use of anti-virus software, Forestry Tasmania
cannot guarantee that this transmission is virus-free.
-

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


RE: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED]

2008-12-03 Thread Justyna Lubkowski
Hi Steve,

Thanks for your reply and the tar ball with the shapefiles and map file.

I've tried your map file with the following test script.

#!/usr/bin/perl

use mapscript;

$req = new mapscript::OWSRequest( );
$req-setParameter( SERVICE, WMS );
$req-setParameter( VERSION, 1.1.0 );
$req-setParameter( REQUEST, GetCapabilities );

$map = new mapscript::mapObj( minimal_wms.map );

$map-OWSDispatch( $req ); 

The error message I get is:
Can't call method OWSDispatch without a package or object reference at
./minimal_wms.pl line 14.

I'm pretty sure that setParameter has not set SERVICE, VERSION OR
REQUEST.

Any ideas?

Cheers - Justyna.


-Original Message-
From: Steve Lime [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 2 December 2008 8:24 AM
To: Justyna Lubkowski; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED]

Your mapfile doesn't look to meet the minimum configuration requirements
for WMS. For example, there is no projection information defined. I have
a minimal WMS config example that I've attached for reference purposes. 

Steve

 On 11/26/2008 at 6:49 PM, in message
[EMAIL PROTECTED],
Justyna Lubkowski [EMAIL PROTECTED] wrote:
 Hi,
  
 I'm hoping someone can help, I've been trying to get Perl mapscript to

 work using a couple of examples from the MapScript wrappers for WxS 
 Services page http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript
  
 Using python mapscript it works, when I run it on the command line I 
 get xml output, however if I try doing the same using perl mapscript I

 get no xml output on the command line, I get errors telling me that I 
 cannot set the SERVICE, VERSION or REQUEST parameters.  I've included 
 the python and perl scripts and their respective map files below.  If 
 I  try using $req-loadParams() in the script, and pass the same 
 parameters as part of the query string, then do a wget I get a zero
length file.
  
 Am I doing something wrong?  Or is there a bug in perl mapscript?
  
 Cheers - Justyna.
  
 ===
 #!/usr/bin/python
  
 import mapscript
  
 req = mapscript.OWSRequest()
 req.setParameter( 'SERVICE', 'WMS' )
 req.setParameter( 'VERSION', '1.1.0' ) req.setParameter( 'REQUEST', 
 'GetCapabilities' )
  
 map = mapscript.mapObj( 'test.map' )
 map.OWSDispatch( req )
 ===
  
 with the following map file
  
 ===
 MAP
   SIZE 600 300
   EXTENT -180 -90 180 90
   IMAGECOLOR 180 180 250
   IMAGETYPE PNG
  
   UNITS DD
   WEB
 IMAGEPATH /html/tmp/wms
 IMAGEURL /tmp/
 METADATA
 OWS_ONLINERESOURCE http://servername/test.py;
 END
   END
  
   LAYER
 NAME  coast_polygon
 TYPE  POLYGON
 STATUS DEFAULT
 DATA coast
 CLASS
   COLOR 231 220 189
   OUTLINECOLOR 198 134 0
   NAME Coast 
 END
   END
 END
 ===
  
 I get the following errors using perl mapscript:
 cannot set wms parameter  at ./test3.pl line 6.
 cannot set version parameter  at ./test3.pl line 7.
 cannot set request parameter  at ./test3.pl line 8.
  
 ===
 #!/usr/bin/perl -w
  
 use mapscript;
  
 $req = new mapscript::OWSRequest() or die no request;
 $req-setParameter('SERVICE','WMS') or warn cannot set wms parameter 
 $!;
 $req-setParameter('VERSION','1.1.1') or warn cannot set version 
 parameter $!;
 $req-setParameter('REQUEST','GetCapabilities') or warn cannot set 
 request parameter $!;
  
 $map = new mapscript::mapObj(test3.map) or die no object;
  
 $map-OWSDispatch( $req ) or die cannot dispatch; 
 ===
  
 and its mapfile is
  
 ===
 MAP
   SIZE 600 300
   EXTENT -180 -90 180 90
   IMAGECOLOR 180 180 250
   IMAGETYPE PNG
  
   UNITS DD
   WEB
 IMAGEPATH /html/tmp/wms
 IMAGEURL /tmp/
 METADATA
 OWS_ONLINERESOURCE http://servername/test3.pl 
 END
   END
  
   LAYER
 NAME  coast_polygon
 TYPE  POLYGON
 STATUS DEFAULT
 DATA coast
 CLASS
   COLOR 231 220 189
   OUTLINECOLOR 198 134 0
   NAME Coast 
 END
   END
 END
 ===
 
 
 
 
 
  
  
  
  
 
  
  

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