Re: [mapserver-users] wfs data conversion with ogr2ogr?

2008-12-16 Thread Knut Behrends
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Frank Warmerdam schrieb:
 Knut Behrends wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi all,

 I have received data from a WFS that was returned in this format:
 (Sample feature member)

   gml:featureMember
 featureSet_704 fid=featureSet_704-feature_1732
   gml:boundedBy
 gml:Box
   gml:coord
 gml:X4436682.0/gml:X
 gml:Y5783076.0/gml:Y
   /gml:coord
   gml:coord
 gml:X4441086.0/gml:X
 gml:Y5786776.0/gml:Y
   /gml:coord
 /gml:Box
   /gml:boundedBy
   GEOM_ID1732/GEOM_ID
   NAMEMarienborn/NAME
 /featureSet_704
   /gml:featureMember
 ...
 
 After successful conversion, however, only the GEOM_ID and the NAME are
 exported. The spatial information is ignored lost during the conversion.
 Maybe it's in the wrong format, but it is obviously present  in the GML
 fragment above. What can I do to convert the spatial information that is
 contained in the X and Y elements?
 
 Knut,
 
 The above feature fragment from a WFS lacks a geometry properly.  The
 boundedBy properly is normally ignored by OGR.  Following is a simple
 example of a GML feature with a point geometry attribute.
 
   gml:featureMember
 airports fid=2
   NAMEBowstring Municipal Airport/NAME
   LAT 47.5583/LAT
   LON-93.8689/LON
   ELEVATION   1372./ELEVATION
   QUADNAMEJessie Lake/QUADNAME
 
 ogr:geometryPropertygml:Pointgml:coordinates434634,5267578/gml:coordinates/gml:Point/ogr:geometryProperty
 
 /airports
   /gml:featureMember
 
 If you can influence your WFS, then producing something a bit like this
 might be good.
 

The (non-UMN-mapserver based) WFS is public, and I am acting as a WFS
client, merely retrieving data. Maybe it's just the HTTP GET request
that was misspelled or incomplete.
This was my request:
http://geoportal.geodaten.sachsen-anhalt.de/geodatenportal/servlet/gtEntryPoint?REQUEST=GetFeatureVERSION=1.0.0SERVICE=WFSTYPENAME=featureSet_704BBOX=4400161.55779751,5779082.69612775,4502841.70515686,5881251.07072079MAXFEATURES=100

Are these the correct URL parameters?

- --


Knut Behrends Phone: +49 (0) 331 288 1688
Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key)


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAklHdWYACgkQcfWHNfIsrO80hgCdETv+sJBSTYcLYTj9t76UZwwe
1IEAoKAgXrz4RwwDrmsVA6aUPkSgot6L
=RyzI
-END PGP SIGNATURE-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] simple question regarding output image

2008-12-16 Thread Benoît Andrieu
Hi,

What is the format of your Tiff input file ? 8 bit per pixel ? 3 bands ? Width 
and height ?
And what are the size of input and output images ?

The mapserver is doing computations that could take some time. If it has too 
read of lot of data in your picture, if it has to do reprojections...
You should provide results from gdalinfo on your input picture, give your 
mapfile as well as your url request.

Regards,

Benoît

Benoît Andrieu
+33.(0)1.30.08.95.21
b...@ixsea.com
benoit.andr...@gmail.com

  - Original Message - 
  From: Amiya Patra 
  To: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, December 16, 2008 1:44 PM
  Subject: [mapserver-users] simple question regarding output image


  Hi
   I have one tiff image as input. Now I am creating one output image(same). 
imagetype is gif or jpeg or png. Now the size of o/p image is too big compare 
to input image..and its takin time to load to browser .plz explain me 
Why too big?? 



--


  ___
  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] Blank image after map request

2008-12-16 Thread RODIER BATISSE, ALEXANDRE
Hi everyone,

 

I am begining with mapserver for windows and i have this problem:

 

Mapserver work (theorycally) fine, because http://localhost/cgi-bin/mapserv.exe 
request in web navigator answer No query information to decode. QUERY_STRING 
is set, but empty.

 

I have a .map file in c:\ms4w\Apache\htdocs\map\ directory. (I put it in anex).

 

But when a try to make a map request mapserver give a blank image (800x500 
pixel)

 

Whyyy!!!

 

Thank you for your help.

-

Alexandre Rodier

Asistencia Técnica del SIGA

 

Servicio de Información e Integración Ambiental
Dirección General de Patrimonio Natural y Biodiversidad
Consejería de Agricultura y Agua.
c/ Arquitecto Emilio Piñero, 1 Entresuelo C

30.007 Murcia

Tel. 968246272

Correo-e: alexandre.rod...@carm.es mailto:alexandre.rod...@carm.es 

http://www.carm.es/medioambiente http://www.carm.es/medioambiente 

-

 



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


Re: [mapserver-users] ...Question

2008-12-16 Thread Valeria Muñoz
Steve
do you know when will be release??

greetings
2008/12/16 Steve Lime steve.l...@dnr.state.mn.us

 Text expressions don't support functions. They should, and likely will,
 in the
 next release.

 Steve

  Valeria Muñoz valemu...@gmail.com 12/16/08 7:31 AM 
  Hi..

 Exist some command or clause in the MapFile for change the text(type) to
 display in the map of a label from lower to upper or upper to lower?
 something like:

 CLASS
 EXPRESSION  ('[HWYLEVEL]' = '1' and '[ONEWAY]'='0')
 TEXT (lower('[HWYLEVEL]'))
 

 greetings


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


Re: [mapserver-users] wfs data conversion with ogr2ogr?

2008-12-16 Thread Knut Behrends
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

bart...@osgis.nl schrieb:
 If you look at the XML schema, i.e.
 
 http://geoportal.geodaten.sachsen-anhalt.de/geodatenportal/servlet/gtEntryPoint?REQUEST=DescribeFeatureTypeVERSION=1.0.0SERVICE=WFSTYPENAME=featureSet_704
 
 the optional field VERWALTUNG should contain the geometry.
 
 Apparently these are not filled in the dataset that the WFS uses.
 
 So you are doing nothing wrong, and I think you should contact the
 maintainer of the WFS to ask if VERWALTUNG is present in any feature or
 that it is always non-existant.
 
 Best regards,
 Bart
 

For various erasons I don't expect the authorities that provide the data
to be very responsive.
The data is not that important, anyway. It's about placenames, and there
are many other sources for this well-known and quasi-static data.

When I have the time I'll write my own XSL transform to convert the
spatial information in the BBOX elements to gml:geometry elements. At
best, this would approximate the locations of the places with squares,
but that's better than nothing. Nice little exercise to refresh and
expand my xslt skills.

Knut
- --


Knut Behrends Phone: +49 (0) 331 288 1688
Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key)


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAklHh90ACgkQcfWHNfIsrO/0JwCfU+lBVX9v6y9gSooL/cFPJVjZ
aZ8AnR0/i8QdqRB90YRViE1fZXikEC9j
=sMsL
-END PGP SIGNATURE-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Remove Layer based on layer Name C#

2008-12-16 Thread Tamas Szekeres
Hi,

How about doing this?

layer = MapFunction.Map.getLayerByName(PointLayer);

MapFunction.Map.removeLayer(layer.index);


Best regards,

Tamas



2008/12/16 Venkat Rao Tammineni vtammin...@roulacglobal.com

   Dear All,



 I want remove layer based on Layer Name.Now I Can able to
 remove layer based on index.Is it possible to do.



 layer = MapFunction.Map.getLayerByName(PointLayer);



 MapFunction.Map.removeLayer(0);



 Thanks

 Venkat.

 ___
 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] Blank image after map request

2008-12-16 Thread Rahkonen Jukka
Hi,
 
Try first what happens if you set STATUS DEFAULT in your layer mosaico 
definitions. It that does not help then tell us how your request looks like.
 
-Jukka Rahkonen-




Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta RODIER BATISSE, 
ALEXANDRE
Lähetetty: 16. joulukuuta 2008 15:31
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] Blank image after map request



Hi everyone,

 

I am begining with mapserver for windows and i have this problem:

 

Mapserver work (theorycally) fine, because 
http://localhost/cgi-bin/mapserv.exe request in web navigator answer No query 
information to decode. QUERY_STRING is set, but empty.

 

I have a .map file in c:\ms4w\Apache\htdocs\map\ directory. (I put it 
in anex).

 

But when a try to make a map request mapserver give a blank image 
(800x500 pixel)

 

Whyyy!!!

 

Thank you for your help.

-

Alexandre Rodier

Asistencia Técnica del SIGA

 

Servicio de Información e Integración Ambiental
Dirección General de Patrimonio Natural y Biodiversidad
Consejería de Agricultura y Agua.
c/ Arquitecto Emilio Piñero, 1 Entresuelo C

30.007 Murcia

Tel. 968246272

Correo-e: alexandre.rod...@carm.es mailto:alexandre.rod...@carm.es 

http://www.carm.es/medioambiente http://www.carm.es/medioambiente 

-

 

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


Re: [mapserver-users] wfs data conversion with ogr2ogr?

2008-12-16 Thread bartvde
If you look at the XML schema, i.e.

http://geoportal.geodaten.sachsen-anhalt.de/geodatenportal/servlet/gtEntryPoint?REQUEST=DescribeFeatureTypeVERSION=1.0.0SERVICE=WFSTYPENAME=featureSet_704

the optional field VERWALTUNG should contain the geometry.

Apparently these are not filled in the dataset that the WFS uses.

So you are doing nothing wrong, and I think you should contact the
maintainer of the WFS to ask if VERWALTUNG is present in any feature or
that it is always non-existant.

Best regards,
Bart

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Frank Warmerdam schrieb:
 Knut Behrends wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi all,

 I have received data from a WFS that was returned in this format:
 (Sample feature member)

   gml:featureMember
 featureSet_704 fid=featureSet_704-feature_1732
   gml:boundedBy
 gml:Box
   gml:coord
 gml:X4436682.0/gml:X
 gml:Y5783076.0/gml:Y
   /gml:coord
   gml:coord
 gml:X4441086.0/gml:X
 gml:Y5786776.0/gml:Y
   /gml:coord
 /gml:Box
   /gml:boundedBy
   GEOM_ID1732/GEOM_ID
   NAMEMarienborn/NAME
 /featureSet_704
   /gml:featureMember
 ...

 After successful conversion, however, only the GEOM_ID and the NAME are
 exported. The spatial information is ignored lost during the
 conversion.
 Maybe it's in the wrong format, but it is obviously present  in the GML
 fragment above. What can I do to convert the spatial information that
 is
 contained in the X and Y elements?

 Knut,

 The above feature fragment from a WFS lacks a geometry properly.  The
 boundedBy properly is normally ignored by OGR.  Following is a simple
 example of a GML feature with a point geometry attribute.

   gml:featureMember
 airports fid=2
   NAMEBowstring Municipal Airport/NAME
   LAT 47.5583/LAT
   LON-93.8689/LON
   ELEVATION   1372./ELEVATION
   QUADNAMEJessie Lake/QUADNAME

 ogr:geometryPropertygml:Pointgml:coordinates434634,5267578/gml:coordinates/gml:Point/ogr:geometryProperty

 /airports
   /gml:featureMember

 If you can influence your WFS, then producing something a bit like this
 might be good.


 The (non-UMN-mapserver based) WFS is public, and I am acting as a WFS
 client, merely retrieving data. Maybe it's just the HTTP GET request
 that was misspelled or incomplete.
 This was my request:
 http://geoportal.geodaten.sachsen-anhalt.de/geodatenportal/servlet/gtEntryPoint?REQUEST=GetFeatureVERSION=1.0.0SERVICE=WFSTYPENAME=featureSet_704BBOX=4400161.55779751,5779082.69612775,4502841.70515686,5881251.07072079MAXFEATURES=100

 Are these the correct URL parameters?

 - --
 

 Knut Behrends Phone: +49 (0) 331 288 1688
 Potsdam 14473 KeyID: 0xF22CACEF (PGP Public Key)
 

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)

 iEYEARECAAYFAklHdWYACgkQcfWHNfIsrO80hgCdETv+sJBSTYcLYTj9t76UZwwe
 1IEAoKAgXrz4RwwDrmsVA6aUPkSgot6L
 =RyzI
 -END PGP SIGNATURE-
 ___
 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] simple question regarding output image

2008-12-16 Thread Benoît Andrieu
Well...

If you look at the size of your output file, the size is quite huge... ^^
12345 x 23456 pixels, that's quite a big image !! ;)

Here is the result of gdalinfo on the image :

Driver: PNG/Portable Network Graphics
Files: f:\temp\4947ac7e_29f5_0.png
Size is 12345, 23456
Coordinate System is `'
Corner Coordinates:
Upper Left  (0.0,0.0)
Lower Left  (0.0,23456.0)
Upper Right (12345.0,0.0)
Lower Right (12345.0,23456.0)
Center  ( 6172.5,11728.0)
Band 1 Block=12345x1 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)
0: 255,255,255,255
1: 0,0,0,255
2: 255,0,0,255
3: 234,233,233,255
4: 233,232,233,255
5: 234,233,234,255
6: 233,233,233,255
7: 215,148,53,255
...

Now, you should look at your map file to see why this output size :
IMAGETYPE png
#NAME mapa
SIZE 12345 23456#583 421


So, you put 12345 23456 as the optimal size for rendering the whole map and you 
commented another size (583 421).
You should try to put the size of your input file instead of 12345 23456.

Something else is coming to my mind ? Why do you want to use Mapserver to serve 
a file like this one ? Couldn't you use your web server to serve it ?

Regards,

Benoît Andrieu
+33.(0)1.30.08.95.21
b...@ixsea.com
benoit.andr...@gmail.com


  - Original Message - 
  From: Amiya Patra 
  To: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, December 16, 2008 2:23 PM
  Subject: [mapserver-users] simple question regarding output image


  hi
  Yeah If I put imagetype as gif then also o/p image size big than i/p gif..As 
well as if I put   imagetype(map file) is png or other o/p image size is still 
big



--


  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
MAP
IMAGETYPE png
#NAME mapa
SIZE 12345 23456#583 421
STATUS ON
IMAGECOLOR 255 255 255
EXTENT  0.0 0.0 475.0 486.0 #583.0 421.0
UNITS MILES
SHAPEPATH /home/nms/MapServerData/data
#
# Symbol for drawing cup symbols
#
SYMBOL
NAME xy

TYPE pixmap
IMAGE /home/nms/MapServerData/data/z.gif
END

WEB
#TEMPLATE  /home/nms/MapServerData/data/amiya.phtml
IMAGEPATH /home/nms/MapServerData/img/
IMAGEURL /img/
END

#
# Reference map
#
REFERENCE
IMAGE /home/nms/MapServerData/data/st_india.gif
SIZE 300 225
EXTENT 0.0 0.0 475.0 486.0
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
MARKER /home/nms/MapServerData/data/z.gif
MARKERSIZE 8
END

#
# Scalebar
#
SCALEBAR
LABEL
COLOR 0 0 0
ANTIALIAS true
SIZE small
END
POSITION lr
INTERVALS 2
STATUS embed
SIZE 144 5
STYLE 0
UNITS miles

BACKGROUNDCOLOR 255 0 0
IMAGECOLOR 255 255 255
COLOR 128 128 128
OUTLINECOLOR 0 0 255
TRANSPARENT off
END

LAYER
 NAME Layer1
 TYPE RASTER
 STATUS ON
 DATA st_india.gif
 CLASS
STYLE
# COLOR 110 50 100
# OUTLINECOLOR 200 200 200

END
 END


END
LAYER
 NAME Layer2
 TYPE RASTER
 STATUS OFF
 DATA st_karnatka.gif
 CLASS
STYLE
# COLOR 110 50 100
# OUTLINECOLOR 200 200 200

END
 END


END
LAYER
 NAME Layer4
 TYPE RASTER
 STATUS OFF
 DATA Bangalore
 CLASS
STYLE
# COLOR 110 50 100
# OUTLINECOLOR 200 200 200

END
 END


END
#
# GRID layer - 
#
LAYER
NAME grid
   


SIZEUNITS PIXELS
STATUS ON

[mapserver-users] simple question regarding output image

2008-12-16 Thread Amiya Patra
Hi
 I have one tiff image as input. Now I am creating one output image(same).
imagetype is gif or jpeg or png. Now the size of o/p image is too big
compare to input image..and its takin time to load to browser .plz
explain me Why too big??
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] wfs data conversion with ogr2ogr?

2008-12-16 Thread Rahkonen Jukka
Hi,

Are you sure there are data within that bounding box?

-Jukka Rahkonen-


 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
 Knut Behrends
 Lähetetty: 16. joulukuuta 2008 11:31
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: Re: [mapserver-users] wfs data conversion with ogr2ogr?
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Frank Warmerdam schrieb:
  Knut Behrends wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Hi all,
 
  I have received data from a WFS that was returned in this format:
  (Sample feature member)
 
gml:featureMember
  featureSet_704 fid=featureSet_704-feature_1732
gml:boundedBy
  gml:Box
gml:coord
  gml:X4436682.0/gml:X
  gml:Y5783076.0/gml:Y
/gml:coord
gml:coord
  gml:X4441086.0/gml:X
  gml:Y5786776.0/gml:Y
/gml:coord
  /gml:Box
/gml:boundedBy
GEOM_ID1732/GEOM_ID
NAMEMarienborn/NAME
  /featureSet_704
/gml:featureMember
  ...
  
  After successful conversion, however, only the GEOM_ID and 
 the NAME 
  are exported. The spatial information is ignored lost 
 during the conversion.
  Maybe it's in the wrong format, but it is obviously 
 present  in the 
  GML fragment above. What can I do to convert the spatial 
 information 
  that is contained in the X and Y elements?
  
  Knut,
  
  The above feature fragment from a WFS lacks a geometry 
 properly.  The 
  boundedBy properly is normally ignored by OGR.  Following 
 is a simple 
  example of a GML feature with a point geometry attribute.
  
gml:featureMember
  airports fid=2
NAMEBowstring Municipal Airport/NAME
LAT 47.5583/LAT
LON-93.8689/LON
ELEVATION   1372./ELEVATION
QUADNAMEJessie Lake/QUADNAME
  
  
 ogr:geometryPropertygml:Pointgml:coordinates434634,5267578/gml:
  coordinates/gml:Point/ogr:geometryProperty
  
  /airports
/gml:featureMember
  
  If you can influence your WFS, then producing something a bit like 
  this might be good.
  
 
 The (non-UMN-mapserver based) WFS is public, and I am acting 
 as a WFS client, merely retrieving data. Maybe it's just the 
 HTTP GET request that was misspelled or incomplete.
 This was my request:
 http://geoportal.geodaten.sachsen-anhalt.de/geodatenportal/ser
 vlet/gtEntryPoint?REQUEST=GetFeatureVERSION=1.0.0SERVICE=WF
 STYPENAME=featureSet_704BBOX=4400161.55779751,5779082.696127
 75,4502841.70515686,5881251.07072079MAXFEATURES=100
 
 Are these the correct URL parameters?
 
 - --
 __
 __
 
 Knut Behrends Phone: +49 (0) 331 288 1688
 Potsdam 14473 KeyID: 0xF22CACEF (PGP 
 Public Key)
 __
 __
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 
 iEYEARECAAYFAklHdWYACgkQcfWHNfIsrO80hgCdETv+sJBSTYcLYTj9t76UZwwe
 1IEAoKAgXrz4RwwDrmsVA6aUPkSgot6L
 =RyzI
 -END PGP SIGNATURE-
 ___
 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] Remove Layer based on layer Name C#

2008-12-16 Thread Venkat Rao Tammineni
 Dear All,

 

I want remove layer based on Layer Name.Now I Can able to
remove layer based on index.Is it possible to do.

 

layer = MapFunction.Map.getLayerByName(PointLayer);

 

MapFunction.Map.removeLayer(0);

 

Thanks

Venkat.

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


[mapserver-users] simple question regarding output image

2008-12-16 Thread Amiya Patra
oh my god..sorry mistakenly I put the size so big..my entire day
was lost.oh godanyway thanks.friend
One more thing plz tell me .in my input image the extent is the form of
pixel(like 0,0,234,345)  .Can I put the lat long instead of pixel as I know
what will be extent (lat long of 4 corner)

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


Re: [mapserver-users] ...Question

2008-12-16 Thread Steve Lime
Looking like March/April 09. With a spatial DB extension you can do this
stuff now.

Steve

 On 12/16/2008 at 9:12 AM, in message
4b56aefe0812160712u27109679hdb10df82d9d84...@mail.gmail.com, Valeria
Muñoz
valemu...@gmail.com wrote:
 Steve
 do you know when will be release??
 
 greetings
 2008/12/16 Steve Lime steve.l...@dnr.state.mn.us
 
 Text expressions don't support functions. They should, and likely
will,
 in the
 next release.

 Steve

  Valeria Muñoz valemu...@gmail.com 12/16/08 7:31 AM 
  Hi..

 Exist some command or clause in the MapFile for change the
text(type) to
 display in the map of a label from lower to upper or upper to
lower?
 something like:

 CLASS
 EXPRESSION  ('[HWYLEVEL]' = '1' and '[ONEWAY]'='0')
 TEXT (lower('[HWYLEVEL]'))
 

 greetings


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


[mapserver-users] Again: WFS: How to sort the WFS output in MS 5.x.x ?

2008-12-16 Thread Schönhammer , Herbert
Hi list,

I have posted this item some days ago, but I didn't get some help. So I want to 
repeat my question:

Until now I've been using mapserver 4.10.2 for generating wfs (for use with 
wfs-gazetteers). I determined the order of the wfs-output with the ORDER BY 
clause of the DATA-statement.

Example:
DATA 'the_geom from (SELECT the_geom, fid, str_name, haus_nr, haus_nr_zusatz, 
str_such_string, ... FROM stgk_hausnummern ORDER BY 
str_name,haus_nr,haus_nr_zusatz) as foo using unique fid using SRID=31468'

Changing the ORDER BY - clause caused changing the sort order of the output.
==

Using mapserver 5.2.0 and mapserver 5.2.1 the ORDER BY - clause has obviously 
no effect. The wfs - output is always sorted by sort order given from attribute 
fid. (could be another attribute like oid, but it is alwas used the attribute 
after USING UNIQUE ..)

Is it possible to change the sort order in mapserver 5.x.x too?
Has anybody a tipp for me, how this could be done ?

Thanks
Schoenhammer Herbert

P.S.
The generated urls are looking like:
http://myserver/cgi-bin/getows?map=/data-umn/wfs/rgb_wfs_adressen.mapREQUEST=getFeatureTypename=adressenVersion=1.0.0service=WFSfilter=%3Cogc:Filter+xmlns:ogc=%27http://ogc.org%27+xmlns:gml=%27http://www.opengis.net/gml%27%3E%3Cogc:PropertyIsLike+wildCard=%27*%27+singleChar=%27.%27+escape=%27!%27%3E%3Cogc:PropertyName%3Estr_such_string%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*MARTIN*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E


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


Re: [mapserver-users] msTileSetup(): CGI error. Tile API is not available.

2008-12-16 Thread Christopher Schmidt
On Tue, Dec 16, 2008 at 08:53:50AM -0500, Chad Clabaugh wrote:
 THANKS!
 
 Ok, it doesn't list it as supported.  But when I try to compile using
  ./configure --make-proj and make, it still doesn't list it. Even though it
 seemed to compile correctly and lists PROJ with DUSE.

I'm assuming '--make-proj' was a typo, and you meant '--with-proj'.

Is proj installed in /usr? Or is it perhaps installed in /usr/local, and
you need to point there? The docs suggest, for example:

--with-proj=/usr/local

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


[MAPSERVER-USERS] Mapserver and Apache

2008-12-16 Thread D.Nunes

Hi,

I have MapServer in my machine. But the MapServer brings an apache. I
already have an apache on my computer. 

It's possible, instead of using the apache which is inside the folder ms4w,
start to use apache I have on my computer?

Cumps.
D. Nunes
-- 
View this message in context: 
http://www.nabble.com/Mapserver-and-Apache-tp21013532p21013532.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] simple question regarding output image

2008-12-16 Thread Benoît Andrieu
You have to ask yourself if your image is in a lat long projection (epsg 4326) 
or in another projection ?

As soon as yo know, two options :
- convert the gif in geotiff by the use of gdaltranslate 
(http://www.gdal.org/gdal_translate.html) to put coordinates and coordinate 
system within,
- use a gfw file (gfw is the equivalent of tfw but for gif files), 
http://duff.ess.washington.edu/data/raster/drg/tfw.html

You're welcome,

Benoît Andrieu
+33.(0)1.30.08.95.21
b...@ixsea.com
benoit.andr...@gmail.com


  - Original Message - 
  From: Amiya Patra 
  To: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, December 16, 2008 2:59 PM
  Subject: [mapserver-users] simple question regarding output image


  oh my god..sorry mistakenly I put the size so big..my entire day 
was lost.oh godanyway thanks.friend
  One more thing plz tell me .in my input image the extent is the form of 
pixel(like 0,0,234,345)  .Can I put the lat long instead of pixel as I know 
what will be extent (lat long of 4 corner)

  Thanks 



--


  ___
  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] simple question regarding output image

2008-12-16 Thread Fawcett, David
It is difficult to help you troubleshoot questions like this unless you
include the text of your map file.  
 
What does the SIZE line say in your map file.  If you are specifying a
large image, this would cause the file size to be large.  
 
Also, what output format are you using?  If you are using AGG and
outputting to 24-bit image types, this will also cause larger file
sizes.  It is a trade off, if you want higher quality images, the files
are larger (e.g. 'There is no such thing as a free lunch...')
 
What do you mean by 'too big'?
 
How much time is it taking to load in the browser?
 
David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Amiya
Patra
Sent: Tuesday, December 16, 2008 6:45 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] simple question regarding output
image


Hi
 I have one tiff image as input. Now I am creating one output
image(same). imagetype is gif or jpeg or png. Now the size of o/p image
is too big compare to input image..and its takin time to load to
browser .plz explain me Why too big?? 


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


Re: [mapserver-users] Blank image after map request

2008-12-16 Thread Benoît Andrieu
Hi,

Could you give us the results of gdalinfo on the input tiff ? 
http://www.gdal.org/gdalinfo.html
And could you paste the url request ?

Thanks !

Regards,

Benoît

Benoît Andrieu
+33.(0)1.30.08.95.21
b...@ixsea.com
benoit.andr...@gmail.com

  - Original Message - 
  From: RODIER BATISSE, ALEXANDRE 
  To: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, December 16, 2008 2:31 PM
  Subject: [mapserver-users] Blank image after map request


  Hi everyone,

   

  I am begining with mapserver for windows and i have this problem:

   

  Mapserver work (theorycally) fine, because 
http://localhost/cgi-bin/mapserv.exe request in web navigator answer No query 
information to decode. QUERY_STRING is set, but empty.

   

  I have a .map file in c:\ms4w\Apache\htdocs\map\ directory. (I put it in 
anex).

   

  But when a try to make a map request mapserver give a blank image (800x500 
pixel)

   

  Whyyy!!!

   

  Thank you for your help.

  -

  Alexandre Rodier

  Asistencia Técnica del SIGA

   

  Servicio de Información e Integración Ambiental
  Dirección General de Patrimonio Natural y Biodiversidad
  Consejería de Agricultura y Agua.
  c/ Arquitecto Emilio Piñero, 1 Entresuelo C

  30.007 Murcia

  Tel. 968246272

  Correo-e: alexandre.rod...@carm.es

  http://www.carm.es/medioambiente

  -

   



--


  ___
  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] Again: WFS: How to sort the WFS output in MS5.x.x ?

2008-12-16 Thread Steve Lime
The presentation side of the WFS code doesn't do any sorting so that's
not the culprit. Looks like you're 
using PostGIS. Is there any way you can capture the SQL actually being
generated by MapServer and
executed by PostGIS? That would help us track this down.

Steve

 On 12/16/2008 at 4:13 AM, in message
d1982c7c00c1de409dde5f9ab94c9e6aac269a4...@mail-back01.regensburg.de,
Schönhammer, Herbert schoenhammer.herb...@regensburg.de wrote:
 Hi list,
 
 I have posted this item some days ago, but I didn't get some help. So
I want 
 to repeat my question:
 
 Until now I've been using mapserver 4.10.2 for generating wfs (for
use with 
 wfs-gazetteers). I determined the order of the wfs-output with the
ORDER BY 
 clause of the DATA-statement.
 
 Example:
 DATA 'the_geom from (SELECT the_geom, fid, str_name, haus_nr, 
 haus_nr_zusatz, str_such_string, ... FROM stgk_hausnummern ORDER BY 
 str_name,haus_nr,haus_nr_zusatz) as foo using unique fid using
SRID=31468'
 
 Changing the ORDER BY - clause caused changing the sort order of the
output.
 ==
 
 Using mapserver 5.2.0 and mapserver 5.2.1 the ORDER BY - clause has
obviously 
 no effect. The wfs - output is always sorted by sort order given from

 attribute fid. (could be another attribute like oid, but it is alwas
used the 
 attribute after USING UNIQUE ..)
 
 Is it possible to change the sort order in mapserver 5.x.x too?
 Has anybody a tipp for me, how this could be done ?
 
 Thanks
 Schoenhammer Herbert
 
 P.S.
 The generated urls are looking like:

http://myserver/cgi-bin/getows?map=/data-umn/wfs/rgb_wfs_adressen.mapREQUEST=g


etFeatureTypename=adressenVersion=1.0.0service=WFSfilter=%3Cogc:Filter+xmlns:

ogc=%27http://ogc.org%27+xmlns:gml=%27http://www.opengis.net/gml%27%3E%3Cogc:

PropertyIsLike+wildCard=%27*%27+singleChar=%27.%27+escape=%27!%27%3E%3Cogc:Pr

opertyName%3Estr_such_string%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*MARTIN*%
 3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapserver 5.2.1, centos 4.5 x86_64, compile errors using AGG

2008-12-16 Thread Stephen Woodbridge

Hi all,

I'm getting the following compile error with mapserver 5.2.1 on a new 
centos 4.5 x86_64 box. Is this a known problem? Have a fix? I didn't see 
anything helpful googling for it. Thoughts?



./configure \
  --enable-runpath \
  --enable-ignore-missing-data \
  --enable-debug \
  --with-httpd=/usr/sbin/httpd \
  --with-proj=/usr \
  --with-agg \
  --with-gd \
  --with-png \
  --with-freetype \
  --with-postgis \
  --without-tiff \
  --with-wmsclient

...


MapServer is now configured for

 -- Compiler Info -
  C compiler:gcc -g -O2 -fPIC -Wall
  C++ compiler:  g++ -g -O2 -fPIC -Wall
  Debug: -g  -DNEED_NONBLOCKING_STDERR
  Generic NINT:

 -- Renderer Settings -
  zlib support:  -DUSE_ZLIB
  png support:
  palette rgba png support:
  jpeg support:  -DUSE_JPEG
  iconv support: -DUSE_ICONV
  AGG support:   -DUSE_AGG
  AGG Freetype support:  -laggfontfreetype
  Ming(flash) support:
  PDFLib support:

 -- Support Libraries -
  Proj.4 support:-DUSE_PROJ
  Libxml2 support:
  FriBidi support:
  Curl support:  -DUSE_CURL
  FastCGI support:
  Threading support:
  GEOS support:

 -- Data Format Drivers ---
  native tiff support:
  PostGIS support:   -DUSE_POSTGIS
  EPPL7 support: -DUSE_EPPL
  ArcSDE support:
  OGR support:
  GDAL support:
  Oracle Spatial support:

 -- OGC Services --
  WMS Server:-DUSE_WMS_SVR
  WMS Client:-DUSE_WMS_LYR
  WFS Server:
  WFS Client:-DUSE_WMS_LYR
  WCS Server:
  SOS Server:

 -- MapScript -
  PHP MapScript: no


make
 ...

g++ -c -g -O2 -fPIC -Wall  -DNEED_NONBLOCKING_STDERR 
-DIGNORE_MISSING_DATA  -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR 
-DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR-DUSE_CURL 
-DUSE_WMS_SVR-DUSE_POSTGIS  -DUSE_JPEG -DUSE_PROJ -DUSE_EPPL 
-DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP 
-DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR 
-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/include 
-I/usr/include/agg2 -I/usr/include/freetype2  -I/usr/include 
-I/usr/include   -O3 -Wno-uninitialized mapagg.cpp -o mapagg.o
mapagg.h:37: error: ISO C++ forbids declaration of 'const_row_info' with 
no type

mapagg.h:37: error: typedef name may not be a nested-name-specifier
mapagg.h:37: error: expected ';' before '' token
mapagg.h:96: error: 'row_data' does not name a type
/usr/include/agg2/agg_pixfmt_rgba.h: In instantiation of 
'agg::pixfmt_alpha_blend_rgbaagg::blender_rgba_preagg::rgba8, 
agg::order_bgra, mapserv_row_ptr_cacheint, int':

mapagg.cpp:832:   instantiated from here
/usr/include/agg2/agg_pixfmt_rgba.h:1637: error: no type named 
'row_data' in 'class mapserv_row_ptr_cacheint'
/usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named 
'row_data' in 'class mapserv_row_ptr_cacheint'
mapagg.cpp: In member function 'void 
AGGMapserverRenderer::renderEllipse(double, double, double, double, 
double, agg::rgba8, agg::rgba8, double)':
mapagg.cpp:299: error: 'class agg::path_storage' has no member named 
'transform'
mapagg.cpp: In function 'void msCircleDrawShadeSymbolAGG(symbolSetObj*, 
imageObj*, pointObj*, double, styleObj*, double)':
mapagg.cpp:1056: error: 'class agg::path_storage' has no member named 
'transform'
mapagg.cpp:1080: error: 'class agg::path_storage' has no member named 
'transform'
mapagg.cpp:1123: error: 'class agg::path_storage' has no member named 
'transform'
mapagg.cpp:1156: error: 'class agg::path_storage' has no member named 
'transform'
mapagg.cpp: In function 'void msDrawMarkerSymbolAGG(symbolSetObj*, 
imageObj*, pointObj*, styleObj*, double)':
mapagg.cpp:1285: error: 'class agg::path_storage' has no member named 
'transform'
mapagg.cpp: In function 'void drawPolylineMarkers(imageObj*, shapeObj*, 
symbolSetObj*, styleObj*, double)':
mapagg.cpp:1411: error: 'class agg::path_storage' has no member named 
'transform'
mapagg.cpp:1412: error: 'class agg::path_storage' has no member named 
'transform'
mapagg.cpp:1413: error: 'class agg::path_storage' has no member named 
'transform'
mapagg.cpp: In function 'void msDrawLineSymbolAGG(symbolSetObj*, 
imageObj*, shapeObj*, styleObj*, double)':
mapagg.cpp:1692: error: 'class agg::path_storage' has no member named 
'transform'
mapagg.cpp: In function 'void msDrawShadeSymbolAGG(symbolSetObj*, 
imageObj*, shapeObj*, styleObj*, double)':
mapagg.cpp:1815: error: 'class agg::path_storage' has no member named 
'transform'
mapagg.cpp:1867: error: 'class agg::path_storage' has no member named 
'transform'
mapagg.cpp:1924: error: 'class agg::path_storage' has no member named 
'transform'

make: *** [mapagg.o] Error 1


___
mapserver-users mailing list

Re: [mapserver-users] mapserver 5.2.1, centos 4.5 x86_64, compile errors using AGG

2008-12-16 Thread Howard Butler
http://www.google.com/search?q=ISO+C%2B%2B+forbids+declaration+of+%27const_row_info%27+with+no+type 



returns

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


On Dec 16, 2008, at 4:01 PM, Stephen Woodbridge wrote:


Hi all,

I'm getting the following compile error with mapserver 5.2.1 on a  
new centos 4.5 x86_64 box. Is this a known problem? Have a fix? I  
didn't see anything helpful googling for it. Thoughts?



./configure \
 --enable-runpath \
 --enable-ignore-missing-data \
 --enable-debug \
 --with-httpd=/usr/sbin/httpd \
 --with-proj=/usr \
 --with-agg \
 --with-gd \
 --with-png \
 --with-freetype \
 --with-postgis \
 --without-tiff \
 --with-wmsclient

...


MapServer is now configured for

-- Compiler Info -
 C compiler:gcc -g -O2 -fPIC -Wall
 C++ compiler:  g++ -g -O2 -fPIC -Wall
 Debug: -g  -DNEED_NONBLOCKING_STDERR
 Generic NINT:

-- Renderer Settings -
 zlib support:  -DUSE_ZLIB
 png support:
 palette rgba png support:
 jpeg support:  -DUSE_JPEG
 iconv support: -DUSE_ICONV
 AGG support:   -DUSE_AGG
 AGG Freetype support:  -laggfontfreetype
 Ming(flash) support:
 PDFLib support:

-- Support Libraries -
 Proj.4 support:-DUSE_PROJ
 Libxml2 support:
 FriBidi support:
 Curl support:  -DUSE_CURL
 FastCGI support:
 Threading support:
 GEOS support:

-- Data Format Drivers ---
 native tiff support:
 PostGIS support:   -DUSE_POSTGIS
 EPPL7 support: -DUSE_EPPL
 ArcSDE support:
 OGR support:
 GDAL support:
 Oracle Spatial support:

-- OGC Services --
 WMS Server:-DUSE_WMS_SVR
 WMS Client:-DUSE_WMS_LYR
 WFS Server:
 WFS Client:-DUSE_WMS_LYR
 WCS Server:
 SOS Server:

-- MapScript -
 PHP MapScript: no


make
...

g++ -c -g -O2 -fPIC -Wall  -DNEED_NONBLOCKING_STDERR - 
DIGNORE_MISSING_DATA  -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR  
-DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR-DUSE_CURL - 
DUSE_WMS_SVR-DUSE_POSTGIS  -DUSE_JPEG -DUSE_PROJ -DUSE_EPPL - 
DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP - 
DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR - 
DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/include -I/ 
usr/include/agg2 -I/usr/include/freetype2  -I/usr/include -I/usr/ 
include   -O3 -Wno-uninitialized mapagg.cpp -o mapagg.o
mapagg.h:37: error: ISO C++ forbids declaration of 'const_row_info'  
with no type

mapagg.h:37: error: typedef name may not be a nested-name-specifier
mapagg.h:37: error: expected ';' before '' token
mapagg.h:96: error: 'row_data' does not name a type
/usr/include/agg2/agg_pixfmt_rgba.h: In instantiation of  
'agg::pixfmt_alpha_blend_rgbaagg::blender_rgba_preagg::rgba8,  
agg::order_bgra, mapserv_row_ptr_cacheint, int':

mapagg.cpp:832:   instantiated from here
/usr/include/agg2/agg_pixfmt_rgba.h:1637: error: no type named  
'row_data' in 'class mapserv_row_ptr_cacheint'
/usr/include/agg2/agg_pixfmt_rgba.h:1675: error: no type named  
'row_data' in 'class mapserv_row_ptr_cacheint'
mapagg.cpp: In member function 'void  
AGGMapserverRenderer::renderEllipse(double, double, double, double,  
double, agg::rgba8, agg::rgba8, double)':
mapagg.cpp:299: error: 'class agg::path_storage' has no member named  
'transform'
mapagg.cpp: In function 'void  
msCircleDrawShadeSymbolAGG(symbolSetObj*, imageObj*, pointObj*,  
double, styleObj*, double)':
mapagg.cpp:1056: error: 'class agg::path_storage' has no member  
named 'transform'
mapagg.cpp:1080: error: 'class agg::path_storage' has no member  
named 'transform'
mapagg.cpp:1123: error: 'class agg::path_storage' has no member  
named 'transform'
mapagg.cpp:1156: error: 'class agg::path_storage' has no member  
named 'transform'
mapagg.cpp: In function 'void msDrawMarkerSymbolAGG(symbolSetObj*,  
imageObj*, pointObj*, styleObj*, double)':
mapagg.cpp:1285: error: 'class agg::path_storage' has no member  
named 'transform'
mapagg.cpp: In function 'void drawPolylineMarkers(imageObj*,  
shapeObj*, symbolSetObj*, styleObj*, double)':
mapagg.cpp:1411: error: 'class agg::path_storage' has no member  
named 'transform'
mapagg.cpp:1412: error: 'class agg::path_storage' has no member  
named 'transform'
mapagg.cpp:1413: error: 'class agg::path_storage' has no member  
named 'transform'
mapagg.cpp: In function 'void msDrawLineSymbolAGG(symbolSetObj*,  
imageObj*, shapeObj*, styleObj*, double)':
mapagg.cpp:1692: error: 'class agg::path_storage' has no member  
named 'transform'
mapagg.cpp: In function 'void msDrawShadeSymbolAGG(symbolSetObj*,  
imageObj*, shapeObj*, styleObj*, double)':
mapagg.cpp:1815: error: 'class agg::path_storage' has no member  
named 'transform'
mapagg.cpp:1867: error: 'class agg::path_storage' has no member  
named 'transform'
mapagg.cpp:1924: 

Re: [mapserver-users] Legend for a layer with filter

2008-12-16 Thread Steve Lime
Your CLASS needs a name and then it should work ok.

Steve

 On 11/13/2008 at 11:31 PM, in message 491d0d1f.2070...@gslab.com, Subha
Ramakrishnan su...@gslab.com wrote:
 Hi,
 
 I want to know if it is possible to generate a legend for a layer with a 
 filter.
 I am getting a blank response with a mode=legend for this layer.
 I tried passing the parameter that i am using in the filter, in the 
 request but didn't work either.
 
 This is the layer in the mapfile:
 layer
   name filterlayer
   connectiontype postgis
   connection user= username dbname=db password=passwd host=localhost
   group world
   type polygon
   status on
   class
 style
   width 3
 color 170 153 175
 outlinecolor 000 000 000
end
   end
   filter 'id IN (%pid%)'
   data topology from dbtable
   transparency 65
   end
 
 Thank you.
 
 Regards,
 Subha
 
 
 ___
 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] Blank image after map request

2008-12-16 Thread Jeff McKenna

RODIER BATISSE, ALEXANDRE wrote:

Hi everyone,

 


I am begining with mapserver for windows and i have this problem:

 

Mapserver work (theorycally) fine, because 
http://localhost/cgi-bin/mapserv.exe request in web navigator answer “No 
query information to decode. QUERY_STRING is set, but empty”.


 

I have a .map file in c:\ms4w\Apache\htdocs\map\ directory. (I put it in 
anex).


 

But when a try to make a map request mapserver give a blank image 
(800x500 pixel)


 


Whyyy!!!



I would also start with creating a valid map image with the shp2img 
utility 
(http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img) 
and once that works move to debugging your application (or request).


-jeff


--
Jeff McKenna
FOSS4G 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] Mapserver and Apache

2008-12-16 Thread Jeff McKenna

D.Nunes wrote:

Hi,

I have MapServer in my machine. But the MapServer brings an apache. I
already have an apache on my computer. 


It's possible, instead of using the apache which is inside the folder ms4w,
start to use apache I have on my computer?

Cumps.
D. Nunes


The easiest option is to change the port number in MS4W's Apache (see 
Listen 80 in /ms4w/Apache/conf/httpd.conf), execute 
/ms4w/apache-install.bat, and then goto 127.0.0.1:yourport in a browser. 
 If you want to configure your own Apache for MapServer it's much more 
detailed, but possible.


Is the easy option an option for you?

-jeff


--
Jeff McKenna
FOSS4G 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] Mapserver and Apache

2008-12-16 Thread D.Nunes

Hi again  thanks 4 the answer.

The question where is:

If i have already an Apache running on my computador, why do i need to have
another apache inside the ms4w folder. If i could use only one apache on my
computer, my machine would be a optmized/eficient machine.

So, if you could tell me how can i do that :)

Thanks,

Cumps,

D.Nunes
-- 
View this message in context: 
http://www.nabble.com/Mapserver-and-Apache-tp21013532p21044720.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] Mapserver and Apache

2008-12-16 Thread José María Michia
2008/12/16 D.Nunes dinisnun...@gmail.com

 Hi again  thanks 4 the answer.

 The question where is:

 If i have already an Apache running on my computador, why do i need to have
 another apache inside the cd folder. If i could use only one apache on my
 computer, my machine would be a optmized/eficient machine.

 So, if you could tell me how can i do that :)

 Thanks,

 Cumps,

 D.Nunes
Hello. Sorry if you do not properly understand the problem.

I reviewed my copy of ms4w. I can not find any Apache server here.

What I found is a configuration for Apache:

/myfiles/ms4w/httpd.d/httpd_gmap.conf

You can open your local Apache configuration file. Perhaps:

/usr/local/apache2/conf/httpd.conf

And you can include a configuration file with something like:

Include /myfiles/ms4w/httpd.d/httpd_gmap.conf

And reload or restart the local apache. Of course, check the settings
to make sure that meet your needs.

Saludos
José María
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Remove Layer based on layer Name C#

2008-12-16 Thread Venkat Rao Tammineni
Dear Sir

 

 Can you please tell me how remove specific layer or at least clear the
layer form map. I can able to clear the layer based on index.but if I click
clear layer button again it is clearing whatever the 0 position next layer.

 

 For example  my map contains  the layers called  Continents and
countries and states  that is like 

0 ,1, 2 position. If I want to remove continents (0) that is in 0 position ,
if I use MapFunction.Map.removeLayer(0); , it is working fine. If I Click
the same button again countries will be the second position then the country
layer is removing .but I want to remove single layer.

 

  protected void btnClearPointLayer_Click(object sender, EventArgs e)

{

if(Page.IsPostBack)

{

MapFunction.Map.removeLayer(0);

}

 

}



Is it Possible every time  same layer removable(dynamically the same layer
will be adding).

 

I am waiting for your great response.

 

Advanced Thanks

 

Regards

 

Venkat.

From: Tamas Szekeres [mailto:szeker...@gmail.com] 
Sent: Tuesday, December 16, 2008 10:03 PM
To: Venkat Rao Tammineni
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Remove Layer based on layer Name C#

 

Hi,

How about doing this?

layer = MapFunction.Map.getLayerByName(PointLayer);

MapFunction.Map.removeLayer(layer.index);


Best regards,

Tamas




2008/12/16 Venkat Rao Tammineni vtammin...@roulacglobal.com

 Dear All,

 

I want remove layer based on Layer Name.Now I Can able to
remove layer based on index.Is it possible to do.

 

layer = MapFunction.Map.getLayerByName(PointLayer);

 

MapFunction.Map.removeLayer(0);

 

Thanks

Venkat.


___
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