Re: [mapserver-users] Oracle Locator support

2012-02-27 Thread Michael Shishcu
Hi Bill,
Here (
http://www.spatialdbadvisor.com/oracle_spatial_tips_tricks/55/oracle-locator-vs-enterprise-licensing-the-sdogeom-package)
You can find differences between Spatial and locator.
That was posted in 2007 - anyway, in general, that is true. There also had
been changes in 11g (R1 or R2 - do not remember exactly) that added a
number of features into locator from spatial.
Less words, you can easily use locator for wms/wfs services etc, with
restriction to several analytic  packages/functions.

One more thing to mention. Every feature that is available in spatial is
also accessible in locator (afair true for Oracle Enterprise and Standard
editions, not sure with XE). The only difference is licensing.
So you can develop your application, write down all the functions you used
and decide does that list fit into locator or not. If not - you go into
spatial or change your code.

regards, michael
On Tue, Feb 28, 2012 at 8:01 AM, bte...@gmail.com bte...@gmail.com wrote:

 Hi,
 I'm trying to find out if Oracle Locator can be used as an effective
 Spatial
 Database for MapServer.  I haven't been able to find a list of what is and
 isn't supported for this combination.  We've been using PostgreSQL/PostGIS
 as our spatial database and are wondering whether a shift to Oracle Locator
 is viable, or whether we'd need to go to Oracle Spatial.  The kinds of
 things we're doing are:
 - building OpenLayers applications with a high level of user functionality
 eg. multiple layers, point and polygon queries, user drawn/edited features
 (for writing to the database)
 - providing WMS services (eg. street maps)
 - providing WFS services (with filtering)
 - custom services eg. nearest feature to a point, queries on buffered
 features, etc.
 Thanks, Bill Teluk

 --
 View this message in context:
 http://osgeo-org.1560.n6.nabble.com/Oracle-Locator-support-tp4519962p4519962.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

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


Re: [mapserver-users] Troubles masking wmf service via mod_rewrite

2012-01-31 Thread Michael Shishcu
Hi Nico,
as far as I remember, RewriteRule does not know anything about Query String
in the request.
Think you'd like to use RewriteCond %{QUERY_STRING}  ^(.*)$ for that

regards, michael

On Tue, Jan 31, 2012 at 5:22 PM, Nico Alberti n...@langhirano.it wrote:

 Hi everybody and sorry if my question is both lame and mostly due to my
 lack of knowledge in using mod_rewrite, but I am having trouble changing
 the Resource URL of my wms service. I followed the instructions at
 http://mapserver.org/ogc/wms_**server.html#online-resource-**wmshttp://mapserver.org/ogc/wms_server.html#online-resource-wmsso
  I wrote this .htaccess file:

 RewriteEngine on
 RewriteRule gisservice?(.*) /cgi-bin/mapserv?map=/var/www/**
 osm-demo/mapserver-utils-svn/**osm-google.map$1

 The problem is that when a client invokes: http://127.0.0.1/gisservice?**
 VERSION=1.1.1SERVICE=WMS**REQUEST=GetCapabilitieshttp://127.0.0.1/gisservice?VERSION=1.1.1SERVICE=WMSREQUEST=GetCapabilities

 i get the error Traditional BROWSE mode requires a TEMPLATE... because,
 from what I see trying to debug mod_rewrite, all the arguments (except the
 map one) are stripped away from the url.

 Can anybody give me some hint? I can live without rewtiting the url, I
 would love to understand what's going wrong.

 Thank you in advance and sorry for my poor English.
 __**_
 mapserver-users mailing list
 mapserver-users@lists.osgeo.**org mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/mapserver-**usershttp://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] Troubles masking wmf service via mod_rewrite

2012-01-31 Thread Michael Shishcu
Oh, Nico, there's a flag you can use for that, [QSA]:
http://httpd.apache.org/docs/current/rewrite/flags.html#flag_qsa
http://www.simonecarletti.com/blog/2009/01/apache-rewriterule-and-query-string/

regards, michael
On Tue, Jan 31, 2012 at 5:22 PM, Nico Alberti n...@langhirano.it wrote:

 Hi everybody and sorry if my question is both lame and mostly due to my
 lack of knowledge in using mod_rewrite, but I am having trouble changing
 the Resource URL of my wms service. I followed the instructions at
 http://mapserver.org/ogc/wms_**server.html#online-resource-**wmshttp://mapserver.org/ogc/wms_server.html#online-resource-wmsso
  I wrote this .htaccess file:

 RewriteEngine on
 RewriteRule gisservice?(.*) /cgi-bin/mapserv?map=/var/www/**
 osm-demo/mapserver-utils-svn/**osm-google.map$1

 The problem is that when a client invokes: http://127.0.0.1/gisservice?**
 VERSION=1.1.1SERVICE=WMS**REQUEST=GetCapabilitieshttp://127.0.0.1/gisservice?VERSION=1.1.1SERVICE=WMSREQUEST=GetCapabilities

 i get the error Traditional BROWSE mode requires a TEMPLATE... because,
 from what I see trying to debug mod_rewrite, all the arguments (except the
 map one) are stripped away from the url.

 Can anybody give me some hint? I can live without rewtiting the url, I
 would love to understand what's going wrong.

 Thank you in advance and sorry for my poor English.
 __**_
 mapserver-users mailing list
 mapserver-users@lists.osgeo.**org mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/mapserver-**usershttp://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] How to fill in an area to the right of a line

2012-01-02 Thread Michael Shishcu
Hi Matt,

with symbol you are limited to 50 by default but can redefined to something
bigger, see MAXSIZE for CLASS in docs
though you can create a new polygon to cover the sea near the coast. I'm
not sure which way is faster in production, just make some tests

regards, michael

On Tue, Jan 3, 2012 at 5:25 AM, Matt McClelland m...@wildwalks.com wrote:

 Happy new year

 I am wanting to run a wide line down the coast of a map (to cover up some
 less then perfect data underneath).

 Basically I want to draw a thin blue line for the coast, and a thick (say
 1000px) light blue line to the right to cover the ocean.

 I have tried parallel lines (using Offset) but this gave a messy result.
 So I have now tried using a symbol to fill the area to the right of the
 line.  This works OK but I seem to be limited to the size.

 Any other better idea on how to solve this issue??


 this is the relevant section of the map file for the attached image.
 CLASS
 EXPRESSION 'coastline'
 STYLE
   COLOR 181 209 240
   SYMBOL coastline
   SIZE 500
   WIDTH 1
   #LINEJOIN miter
   #OFFSET 14 14
 END # STYLE
 STYLE
   COLOR 100 100 255
   WIDTH 2
 END # STYLE
 END

 SYMBOL
   NAME coastline
   TYPE vector
   FILLED true
   POINTS
 0 500
 0 1000
 500 1000
 500 500
   END # POINTS
 END # SYMBOL

 Matt  :)

 ___
 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.log does not get written every request

2011-11-14 Thread Michael Shishcu
Hi Ian,
Are you running mapserver in fcgi mode? If so, the behavior can be changed
in the config for the fcgi module, I think.
Maybe someone else can point you the right direction.
regards, michael
On Mon, Nov 14, 2011 at 6:59 AM, Ian Walberg ian.walb...@airborne.aerowrote:

 Folks,

 On our linux installations we see the mapserver.log file being written
 to every 3-5 map requests.

 Does anyone else get the same behaviour?

 Anything we can do to get the file written every time?

 Thanks

 Ian
 ___
 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] MS4W Crash: Faulting app: mapserv.exe, module: libmap.dll

2011-11-07 Thread Michael Shishcu
Hi,

I had the similar issue long time ago with v5.2 that was caused by some
features being actually not simple polygons but lines/complex polygons with
arcs.
I am not sure if this can be the issue you've got, anyway, if everything
else (memory, libs, etc.) seems to be ok, make sure the data is well.

regards, michael

On Mon, Nov 7, 2011 at 3:33 PM, vaibhavgarg vaibhavkumarg...@gmail.comwrote:

 Hi,

 I am trying to get MS4W to dish out tile for use in google maps as overlay.

 I was successful in making it work with a sample data set but when pointing
 it to the full set, it crashes:

 Windows 7 Event Log:
 /Faulting application name: mapserv.exe, version: 0.0.0.0, time stamp:
 0x4e1c9886
 Faulting module name: libmap.dll, version: 0.0.0.0, time stamp: 0x4e1c9885
 Exception code: 0xc005
 Fault offset: 0x5db6
 Faulting process id: 0xc2c
 Faulting application start time: 0x01cc9d49ca7b11ac
 Faulting application path: C:\ms4w\Apache\cgi-bin\mapserv.exe
 Faulting module path: C:\ms4w\Apache\cgi-bin\libmap.dll
 Report Id: 0c7e2d19-093d-11e1-8aea-0025228983f5/

 Apache Log:
 /[Mon Nov 07 13:02:14 2011] [error] [client 117.201.84.121] Premature end
 of
 script headers: mapserv.exe/

 The machine is Windows 7 Home Premium SP1 x64, Core i5 2500K 3.30Ghz, 8GB
 Ram, Lots of disk space

 The OS is fresh install, MS4W is fresh too.

 The Tile URL looks like this:
 /
 http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/hampshire/Hampshire.maplayers=HampshireAreas%20HampshirePoints%20HampshireLinesmode=tiletilemode=gmaptile=129599+87740+18/

 Dataset is .SHP format and about 30GB in size.


 *Map File:*The only change in the small data set and the full data set's
 map
 files is the path to the data files. Rest of it is exactly the same.

 /MAP
  NAME WMS_Server
  SIZE 256 256
  UNITS METERS
  EXTENT 399353.025466 117022.852602 399809.101028 117313.950158
  FONTSET 'fonts.txt'
  SYMBOLSET 'symbols.txt'
  STATUS ON
  PROJECTION
  proj=merc
  a=6378137
  b=6378137
  lat_ts=0.0
  lon_0=0.0
  x_0=0.0
  y_0=0
  k=1.0
  units=m
  nadgrids=@null
  no_defs
  END
  IMAGECOLOR 255 255 255
  IMAGEQUALITY 95
  IMAGETYPE png
  OUTPUTFORMAT
NAME png
DRIVER 'GD/PNG'
MIMETYPE 'image/png'
IMAGEMODE RGB
EXTENSION 'png'
  END
  LEGEND
  IMAGECOLOR 255 255 255
STATUS ON
KEYSIZE 18 12
LABEL
  TYPE BITMAP
  SIZE MEDIUM
  COLOR 0 0 89
END
  END
  WEB
IMAGEPATH '/tmp/ms_tmp/'
IMAGEURL '/tmp/'
METADATA
  'wms_title'   'Hampshire'
  'wms_onlineresource'
 '
 http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/gmap/htdocs/hampshire.map
 '
  'wms_srs' 'EPSG:4326'
  'wms_enable_request'  '*'
END
TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
  END

  LAYER
NAME 'HampshireAreas'
TYPE POLYGON
DEBUG ON
TEMPLATE fooOnlyForWMSGetFeatureInfo
DATA 'C:/ms4w/apps/Hampshire/HampshireAreas.shp'
METADATA
  'wms_title' 'HampshireAreas'
END
PROJECTION
proj=tmerc
lat_0=49
lon_0=-2
k=0.9996012717
x_0=40
y_0=-10
ellps=airy
datum=OSGB36
units=m
no_defs
END
STATUS DEFAULT
CLASSITEM 'osgb:theme'
CLASS
  NAME default
  EXPRESSION 
   STYLE
 WIDTH 0.91
 OUTLINECOLOR 0 0 0
 COLOR 179 225 155
   END
END
 /[more style classes and two layers removed for clarity, ful MAP file
 attached
 http://osgeo-org.1803224.n2.nabble.com/file/n6970353/Hampshire.map.txt
 Hampshire.map.txt ]/
  END
 END
 /

 *Please help! *

 Regards,

 Vaibhav Garg

 --
 View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/MS4W-Crash-Faulting-app-mapserv-exe-module-libmap-dll-tp6970353p6970353.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

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


Re: [mapserver-users] Maps are not generating

2011-07-10 Thread Michael Shishcu
Hi Dushi,

in the mapfile the layer has *NAME cmb_roads_rda,* but you call it from
cgi like layer=states.
You should rename your layer to states or change the layers parameter in
url

regards,
michael

On Sun, Jul 10, 2011 at 7:57 AM, Dushi dushan...@gmail.com wrote:

 Hi, I'm a newbee for GIS. I have a posgis database on my working
 environment(template_postgis). i need to retrieve the_geom column from  a
 table named cmb_roads_rda. following is my map file (test.map).
 *MAP
   IMAGETYPE  PNG
   EXTENT -97.238976 41.619778 -82.122902 49.385620
   SIZE   900 900
   IMAGECOLOR 255 255 143


   LAYER
 NAME cmb_roads_rda
 CONNECTIONTYPE postgis
 NAME cmb_roads_rda
 CONNECTION user=postgres password=817888 port=5432
 dbname=template_postgis host=localhost
 DATA the_geom from cmb_roads_rda
 STATUS   ON
 DEBUG ON
 TYPE LINE

 CLASS
   NAME   cmb_roads_rda

   STYLE
 COLOR232 232 266
 OUTLINECOLOR 32 32 33

   END
 END
 END


 END

 *I call this map file by calling the following link --
 http://localhost/cgi-bin/mapserv?map=/var/www/db/test.maplayer=statesmode=map
 but it *only generates a yellow color layer on *the browser and not
 displaying the_geom data.
 I'm using mapserver 5.6.6 with apashe2 webserver on linux mint.
 Please be kind to help on this issue. Thank you so much.

 *
 *--
 Me on Web
 http://dushan888.wordpress.com
 http://www.twitter.com/Dushi
 http://identi.ca/dushi

 ___
 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] Re: [MAPFILE] How to display Logos above Labels ?

2010-12-17 Thread Michael Shishcu
Nice, but, also try Steves suggestion ;-)
regards, michael

On 17 December 2010 10:53, Lordnecron julien.bey...@caramail.com wrote:


 Ha ha ! Great ! It works !

 POSTLABELCACHE true do exactly what I need.

 Thanks a lot for your support !
 Much much appreciated.

 Mapserver Pow ! :)
 --
 View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/MAPFILE-How-to-display-Logos-above-Labels-tp5842449p5844830.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

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


Re: [mapserver-users] Accessing NearMap tile server through MapServer

2010-12-16 Thread Michael Shishcu
Hi Neil

Actually EPSG 4326 has extent +/- 90, +/- 180. Think you do not have blank
map, but everything in a single pixel in the center ;-)
try EPSG:900913 instead

hope this helps, regards, michael

On 16 December 2010 07:49, Neil Mercer
neil.mer...@douglaspartners.com.auwrote:

  Hi,



 I’m attempting to access the NearMap service through MapServer.  Based on
 the documentation on the NearMap web site I have successfully created an XML
 file for GDAL to source imagery.  Testing via gdal_translate shows I can
 pull imagery OK.



 I’ve added the GDAL source to my mapfile as shown below, and have been able
 to have the layer show in a GetCapabilities request.  However if I attempt
 to request a map I get a blank image back from MapServer – no error, just a
 blank image.  Is there something obvious wrong?  Is there a way to verify
 the request being passed from MapServer to GDAL?



 Here’s my layer definition:



 LAYER

 NAME NearMap

 METADATA

 wms_title NearMap

 END

 TYPE RASTER

 DATA data/nearmap.xml

 STATUS ON

 PROJECTION

 init=epsg:4326

 END

 EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34

 UNITS meters

 END



 Thanks,

 Neil.

 ___
 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] [MAPFILE] How to display Logos above Labels ?

2010-12-16 Thread Michael Shishcu
maybe POSTLABELCACHE ?

On 16 December 2010 17:57, Lordnecron julien.bey...@caramail.com wrote:


 Hi,

 I'm currently writing a mapfile.
 I'm trying to display my point layer with the following CLASS :

 LAYER
NAME LAYER_DN
DATA D:\Data\DN
TYPE POINT
STATUS   ON
CLASS
SYMBOL 'D:\temp\Telecom_1_20px.png'
SIZE 15
END
 END

 This LAYER is placed ABOVE a Road Layer - GOOD
 This LAYER is displayed ABOVE the Road Layer BUT UNDER the Road Labels.
 - NOT GOOD

 Is there a way to display the POINT above the labels ?
 If not, is there a way to manage the conflict between the Road Labels  my
 point symbol ?

 Thanks a lot for your help,

 Best regards,

 Julien
 --
 View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/MAPFILE-How-to-display-Logos-above-Labels-tp5842449p5842449.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

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


Re: [mapserver-users] problems generating image

2010-11-30 Thread Michael Shishcu
Please, your map file
regards

2010/11/30 Fco. Javier García Ricca fjri...@gmail.com

 *Hello,

 I'll tried to run my application with apache+php+mapserver+pmapper in RHEL.
 I'm getting the next errors when I run my application.*

 [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
 [MapServer Error]: msDrawMap(): Failed to draw layer named 'sombras'.\n in
 /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on
 line 326, referer:
 http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolishttp://sicacpre/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
 [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
 [MapServer Error]: msDrawRaster(): Unrecognized or unsupported image
 format\n in
 /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on
 line 326, referer:
 http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolishttp://sicacpre/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
 [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
 [MapServer Error]: drawEPP():
 /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is not
 an EPPL file.\n in
 /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on
 line 326, referer:
 http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolishttp://sicacpre/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
 [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Fatal error:
 Call to a member function saveImage() on a non-object in
 /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/common.php on
 line 257, referer:
 http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolishttp://sicacpre/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis

 *I check this:*

 *./mapserv -v
 MapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
 OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
 SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE

 **gdalinfo --formats
 Supported Formats:
   VRT (rw+): Virtual Raster
   GTiff (rw+): GeoTIFF
   .
   .
   .

 *Everything seems ok and then I tried with:

 *./shp2img -m
 /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/config/necropolis/necropolis.map
 -o /var/www/html/cultura/museos/CAC/sicac/ms_tmp/prueba.jpg
 msDrawMap(): Image handling error. Failed to draw layer named 'sombras'.
 br
 msDrawRaster(): Image handling error. Unrecognized or unsupported image
 format br
 drawEPP(): Image handling error.
 /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is not
 an EPPL file. br
 *
 *I don't know what else can I try. Any idea to solve this problem.

 Thanks in advance
 **
 *
 --
 FJRicca



 ___
 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] watermark

2010-04-15 Thread Michael Shishcu
Hi.
Make sure your watermark layer in mapfile has status DEFAULT and it is
placed AFTER aerial_photo layer
regards, michael.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Any ways to increase performance of Mapserver?

2009-10-21 Thread Michael Shishcu
Hello, Adrian
add to your apache config the folowing:

ScriptAlias /fcgi-bin/ path to your mapserver binary file
Location /fcgi-bin
# The following line activates the fastCGI script to all files in
location
SetHandler fcgid-script
...
/Location
regards, michael

2009/10/21 Adrian Popa adrian_gh.p...@romtelecom.ro

  Hello again,

 I've compiled mapserver with fast cgi support and I've installed fastcgi on
 my apache. All seems ok, but I'm not sure if mapserver runs as fastcgi! I
 followed the instructions from here:
 http://mapserver.org/optimization/fastcgi.html

 Here's what I've added in the configuration:

 in httpd.conf (Apache2):

 LoadModule fastcgi_module modules/mod_fastcgi.so

 ...
 IfModule mod_fastcgi.c
   AddHandler fastcgi-script .fcgi
   FastCgiIpcDir /tmp/fastcgi
   FastCgiConfig -initial-env PROJ_LIB=/usr/share/proj -initial-env
 LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/pgsql/lib -appConnTimeout
 60 -idle-timeout 60 -init-start-delay 1  -minProcesses 2 -maxClassProcesses
 30 -startDelay 5
 /IfModule


 When httpd restarts, I get in the logs that fastcgi starts ok:
 [Wed Oct 21 15:43:04 2009] [notice] FastCGI: process manager initialized
 (pid 12570)

 I think I should somehow link mapserv to fastcgi - because I see no obvious
 connection. The script handler is only for .fcgi, but mapserver's
 compilation didn't generate any fcgi files... It seems to me, mapserver
 still runs as a cgi process. If I list the running processes when there are
 no queries to the webserver, there is no mapserv process. When I list the
 processes while doing queries, there are several mapserv processes running.

 Thanks,
 Adrian


 Adrian Popa wrote:

 Thanks,

 I'm compiling mapserver with fast-cgi support and see how that works out.

 Any idea if there is a difference in terms of speed if I make normal CGI
 queries vs WMS queries?

 Regards,
 Adrian

 Pavel Iacovlev wrote:

 Fast-cgi is one process that manages all your connections (acts more
 like apache module) cgi creates a new process for every connection so
 fast-cgi is faster and consumes less resources.
 The best performance you should get with tilecache serving TMS(If it's
 supported by your client, openlayers supports it), images are request
 directly so there is almost no overhead

 On Wed, Oct 21, 2009 at 10:42 AM, Adrian Popaadrian_gh.p...@romtelecom.ro 
 adrian_gh.p...@romtelecom.ro wrote:


  Hello, sorry for this noobie question, but I have been running mapserver as
 a cgi process and sometimes I need to make lots of calls to it to get the
 data I want. I have used TileCache to get the layers I need and which don't
 change over time and it speeds things up considerably.

 I was wondering - is it possible (and is it more efficient?) to run
 mapserver as fast-cgi? Would it increase speed? The mapserver in the cgi-bin
 directory is already a binary file - so I'm not sure if fast-cgi would do
 any good.

 Also, would I have any extra speed benefits if I make WMS queries instead of
 regular cgi queries?

 Thank you,
 Adrian

 ___
 mapserver-users mailing 
 listmapserver-us...@lists.osgeo.orghttp://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 produces interlaced PNGs even if I configured the map to output noninterlaced PNGs

2009-10-14 Thread Michael Shishcu
hi, Adrian
try to add ... MIMETYPE image/png...
regards, michael

2009/10/14 Adrian Popa adrian_gh.p...@romtelecom.ro

  Hello all,

 My goal is to setup tilecache (which is proving to be a real pain), and so
 far I've noticed that even if I configured my map to generate noninterlaced
 PNGs (instructions here:
 http://www.mapserver.org/faq.html#why-doesn-t-pil-python-imaging-library-open-my-pngs),
 it still generates interlaced PNGs.

 Here is my outputformat (the only one defined) in my map:
 OUTPUTFORMAT
 NAME 'AGG'
 DRIVER AGG/PNG
 IMAGEMODE RGBA
 TRANSPARENT ON
 FORMATOPTION INTERLACE=OFF
 END

 The parameters that get sent to my mapserver instance are:
  BBOX2896046.12635,5831228.011975,2935181.884825,5870363.77045EXCEPTIONS
 application/vnd.ogc.se_inimageFORMATpng HEIGHT256LAYERS
 Judete,RuralSate,Rural,Urban,roads,roads-buc,buildings,GranitaJudeteMAP
 /var/www/html/map/rtc_base.map 
 MAP_IMAGETYPEaggMAXEXTENTleft-bottom=(20.26,43.16)
 right-top=(29.7,48.46)MAXRESOLUTION156543REQUESTGetMapSERVICEWMSSRS
 EPSG:900913STYLES
 TRANSITIONEFFECTresizeTRANSPARENTfalseUNITSmVERSION1.1.1 WIDTH256
 I'm not sure if MAP_IMAGETYPE=agg is the one which selects the outputformat
 or not, but the map seems to be rendered with AGG (I could be wrong, of
 course).

 So, what am I missing here? Is there another parameter that should be sent
 to mapserver to select the outputformat?

 By the way, the image file generated has these properties: img.png: PNG
 image, 256 x 256, 8-bit colormap, interlaced

 Thanks,
 Adrian


 ___
 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] Is there TileCache for MS4W tutorial?

2009-09-19 Thread Michael Shishcu
Hi
there are some links, if this helps
http://viswaug.wordpress.com/2008/02/03/setting-up-tilecache-on-iis/
http://oegeo.wordpress.com/2008/03/08/the-5-minute-guide-to-setting-up-tilecache-on-windows/
http://oegeo.wordpress.com/2008/03/10/tilecache-on-windows-part-2-mod_python/

regards, michael

2009/9/19 Rahkonen Jukka jukka.rahko...@mmmtike.fi

 Hi,

 This time I would like to try TileCache.  Is there any step-by-step
 tutorial available about how to install TileCache in front of Mapserver
 MS4W?  Getting TileCache CGI running would be enough to start with but
 mod_python interests me also.

 -Jukka Rahkonen-
 ___
 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] Symbols and Transparency

2009-09-17 Thread Michael Shishcu
Hi, Adam
just a thought: can you try to specify an opacity property for your layer (I
mean OPACITY 99, or any other than 100).

regards, michael

2009/9/18 Adam Eskreis aeskr...@gmail.com

 Hi all,
 Quick question regarding symbols and transparency.  I have a lot of symbols
 that I am displaying on my map, however, the problem I am having is the
 symbols are not rendering transparently.  When two symbols are near each
 other, one will sometimes block another with a part of the image which
 should render as transparent.

 I am positive that each symbol png is transparent.  I am using mapserver
 5.4.0 and using PNG images, rendering them using GD.  Any suggestions?

 -Adam

 ___
 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] (no subject)

2009-09-16 Thread Michael Shishcu
Ur are welcome
Regards,
Michael

2009/9/16 harpal singh harpalh...@gmail.com

 THANX MICHAEL FOR YOUR ADVISE
 NOW MY PROGRAM IS RUNNING JUST BECOZ OF U ...
 NOW IT SEEMS LIKE THAT I M READY TO DO SOME MORE STUFF WITH MAPSERVER
 HARPAL SINGH

 ___
 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 Error]: msLoadMap()

2009-09-15 Thread Michael Shishcu

 Hi


Seems you are using mapserver 5.4
In your MAP-file the first word (except for comments) must be MAP (see the
error message)
also,  can you post here contents of the map-file...

Regards,
michael

2009/9/15 harpal singh harpalh...@gmail.com

 I am new to map servers… I have written my first program …..and I am having
 problem ……I have written a simple hello world programon windows and it is
 showing problems……

 Error is --
 *Warning*: [MapServer Error]: msLoadMap(): First token must be MAP, this
 doesn't look like a mapfile. in *C:\OSGeo4W\apache\htdocs\hello.php* on
 line *6*

 *Warning*: Failed to open map file C:\OSGeo4W\apache\htdocs/hello.map in *
 C:\OSGeo4W\apache\htdocs\hello.php* on line *6*

 *Fatal error*: Call to a member function draw() on a non-object in *
 C:\OSGeo4W\apache\htdocs\hello.php* on line *8*

 I have tried so much but it is not sorted out ….. plz help me in doing so
 …….. thanx in advance …





 The code is

 ?php

  dl(php_mapscript.dll);

  $map_path=C:\OSGeo4W\apache\htdocs/;

 $map = ms_newMapObj($map_path.hello.map);

 $image=$map-draw();

  $image_url=$image-saveWebImage();

  ?

 HTML

 HEAD

 TITLEMAPSERVER HELLO WORLD/TITLE

 /HEAD

 BODY

 IMG SRC=?php echo $image_url;?

 /BODY

 /HTML

  The hello.map file is in the C:\OSGeo4W\apache\htdocs directory ……. And
 the hello.php file is also in the same directory.
 Plz help me I will be greatful to u
 ___
 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