[mapserver-users] Want to create a dynamic GPS Tracking using MapServer

2012-01-31 Thread Vivaldi Al Barado


Hi friends. I plan to create a map that can display the GPS tracking 
dynamically. 
For the best choice, what is needed to make GPS tracking dynamically using 
MapServer? Please guide. 
Thank you so much for your explanations and your kindness.

Best Regards
Gozali___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] PostGIS query

2012-01-31 Thread Julien Cigar

Hello,

Is there a way to (deeply) modify the SQL query in a PostGIS layer?
I would like to add some JOIN, additional WHERE clauses, etc
As I'm afraid that Run-time Substitution isn't flexible enough for 
this case ... is there any other possibility, other than mapscript?


I guess there is no possibility to define variables, conditions, etc in 
a .map file .. ?


Thanks,
Julien

--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
attachment: jcigar.vcf___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] C compiler for compiling on GNU

2012-01-31 Thread Paul Maddock
Hi all,

I've just started working on implementing mapserver into one of my company's 
servers which is using GNU.  A little background on the server I'm using: my IT 
contact whom set up the server has sudo rights while he has me interacting with 
the server via a likewise-open setup, which from what I gather allows me to 
have access via a windows machine (correct me if I'm wrong).  Now, I've 
downloaded mapserver-6.0.1.tar.gz, untared/zipped the file.  I went to move 
into the new mapserver-6.0.1 directory and run ./configure. This is what bash 
shot back at me:
Checking for gcc... no
Checking for cc... no
Checking for cl... no
Configure: error: no acceptable C compiler found in $PATH

I understand I need a C compiler, specifically the GCC Multilanguage compiler 
but I don't know where to download gcc-4.6.2 to or whether that need compiling 
to (It seems a bit redundant to compile a compiler).  Mind you I when I ran 
./configure, it was on my personal directory.

Any help in compiling mapserver would be great.

Many Thanks.

Sincerely,
Paul A. Maddock


___
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] Troubles masking wmf service via mod_rewrite

2012-01-31 Thread thomas bonfort
there seems to be something wrong in the docs, have a look at
http://trac.osgeo.org/mapserver/ticket/3310 for a working rewriterule.

--
thomas

On Tue, Jan 31, 2012 at 16:22, 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-wms so 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=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
 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] PostGIS query

2012-01-31 Thread Carlos Ruiz
Julien,

Have you tried with views ? When I need to map complex queries I build a view 
to just handle the where clauses.

Cheers from México

 
IC Carlos Ruiz




 From: Julien Cigar jci...@ulb.ac.be
To: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org 
Sent: Tuesday, January 31, 2012 6:38 AM
Subject: [mapserver-users] PostGIS query
 
Hello,

Is there a way to (deeply) modify the SQL query in a PostGIS layer?
I would like to add some JOIN, additional WHERE clauses, etc
As I'm afraid that Run-time Substitution isn't flexible enough for this case 
... is there any other possibility, other than mapscript?

I guess there is no possibility to define variables, conditions, etc in a .map 
file .. ?

Thanks,
Julien

-- No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

___
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] Want to create a dynamic GPS Tracking using MapServer

2012-01-31 Thread Brent Fraser

Gozali,

  Due to the dynamic nature of the data, a spatial relational database 
such as PostGIS would be a good choice for the data storage.  The tables 
would depend on which features are important to you (positions, tracks, 
etc).


  Populating the tables from GPS data would likely require some custom 
coding.


There were a couple of sessions at FOSS4G 2007:

http://www.foss4g2007.org/presentations/view.php?abstract_id=83
http://www.foss4g2007.org/presentations/view.php?abstract_id=253

Best Regards,
Brent Fraser


On 1/31/2012 1:37 AM, Vivaldi Al Barado wrote:


Hi friends. I plan to create a map that can display the GPS tracking 
dynamically.
For the best choice, what is needed to make GPS tracking dynamically 
using MapServer? Please guide.

Thank you so much for your explanations and your kindness.

Best Regards
Gozali


___
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 and TileCache, parsing error thereby no cached images

2012-01-31 Thread Michael Markieta
My data is in WGS84 Major Auxiliary Sphere (as outputted by ArcGIS)..
EPSG:3857

   - Using 
thishttp://rinnerweb.arts.ryerson.ca/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/moot2_dev/hii_railroads.mapREQUEST=GetMapWIDTH=500HEIGHT=500LAYERS=HII_railroadsVERSION=1.1.1SRS=EPSG:3857bbox=-10995797.347,5031174.730,-7855157.347,7815054.730MAPUNIT=DecimalDegreeFORMAT=image/pngClientId=CLIENTMODE=TiledWmsRasterSourceGetMap
request, I have verified that my data is in fact queryable

So I changed a few settings in my tilecache.cfg as so based on the GetMap
query:

[HII_railroads]
type=WMS
url=http://141.117.104.183/cgi-bin/mapserv.exe
mapfile=C:/ms4w/Apache/htdocs/moot2_dev/hii_railroads.map
extension=png
layers=HII_railroads
srs=EPSG:3857
size=256,256
bbox=-10995797.347,5031174.730,-7855157.347,7815054.730
resolutions=10226.494362992187,5113.247181496094,2556.623590748047,1278.3117953740234,639.1558976870117,319.57794884350585,159.78897442175293,79.89448721087646,39.94724360543823,19.973621802719116,9.986810901359558,4.993405450679779,2.4967027253398895,1.2483513626699447,0.6241756813349724,0.3120878406674862,0.1560439203337431,0.07802196016687155,0.03901098008343577,0.019505490041717886

Still no luck http://rinnerweb.arts.ryerson.ca/moot2_dev/, darn.
You can see that layer hii_6 doesnt produce any images and I am given this
error when I explore the
urlhttp://rinnerweb.arts.ryerson.ca/cgi-bin/tilecache.cgi?LAYERS=HII_railroadsFORMAT=image%2FpngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG%3A3857BBOX=-10995797.347,6283519.00125,-9743453.07575,7535863.2725WIDTH=256HEIGHT=256to
these tiles:

An error occurred: can't find resolution index for 4891.969810.
Available resolutions are:
[10226.494362992187, 5113.247181496094, 2556.623590748047,
1278.3117953740234, 639.1558976870117, 319.57794884350585,
159.78897442175293, 79.89448721087646, 39.94724360543823,
19.973621802719116, 9.986810901359558, 4.993405450679779,
2.4967027253398895, 1.2483513626699447, 0.6241756813349724,
0.3120878406674862, 0.1560439203337431, 0.07802196016687155,
0.03901098008343577, 0.019505490041717886]


Michael Markieta - (416) 833 5581
--
Research Assistant - Department of Geography 
Bachelor of Arts Candidate - Geographic Analysis
Ryerson University
Toronto, ON, Canada
--
www.spatialanalysis.ca



On Mon, Jan 30, 2012 at 11:06 AM, Michael Markieta markiet...@gmail.comwrote:

 Which formatting is considered correct? Would this be the source of the
 parsing error?

 [HII_railroads]
   type=WMS
   url=http://141.117.104.183/cgi-bin/mapserv.exe
   mapfile=C:/ms4w/Apache/htdocs/moot2_dev/hii_railroads.map
   extension=png
   layers=HII_railroads

 or

  [HII_railroads]
 type=WMS
 url=http://141.117.104.183/cgi-bin/mapserv.exe
 mapfile=C:/ms4w/Apache/htdocs/moot2_dev/hii_railroads.map
 extension=png
 layers=HII_railroads

 *Note the indentation.


 Michael Markieta - (416) 833 5581
 --
 Research Assistant - Department of Geography 
 Bachelor of Arts Candidate - Geographic Analysis
 Ryerson University
 Toronto, ON, Canada
 --
 www.spatialanalysis.ca



 On Mon, Jan 30, 2012 at 2:11 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi
  wrote:

 **
 Hi,

 Perhaps it has something to do with newline characters?
 [line 82]: '  type=WMS\n'

 -Jukka Rahkonen-

  --
  Michael Markieta  wrote:

  Hi all,

 Original question was posted here:
 http://gis.stackexchange.com/questions/19459/tilecache-and-mapserver-not-producing-images-and-raising-parsing-error

 Just a forewarning, I will try to be as extensive with my question as
 possible. Due to a number of reasons why this might not be working, I have
 posted all sorts of portions of my debugging below.

 Web map located here http://rinnerweb.arts.ryerson.ca/moot2_dev

 Tile cache is being setup as a test run for the hii_5 layer in
 OpenLayers. MapServer is the backend.

 I am trying to get TileCache to cache images of my MapServer WMS.
 However, no images are produced. The TileCache is trying to load the
 tiles (as you can see on the live page), however, no images are returned.

 When I follow the 
 pathhttp://rinnerweb.arts.ryerson.ca/cgi-bin/tilecache.cgi?LAYERS=HII_railroadsFORMAT=image/pngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG:3857BBOX=-10592586.767623,5113378.756775,-9340242.496373,6365723.028025WIDTH=256HEIGHT=256of
  one of the image tiles, I see this error:

 An error occurred: File contains parsing errors: 
 C:\ms4w\Apache\cgi-bin\tilecache.cfg
 [line 82]: '  type=WMS\n'
 [line 83]: '  url=http://141.117.104.183/cgi-bin/mapserv.exe\n'
 [line 84]: '  
 mapfile=C:/ms4w/Apache/htdocs/moot2_dev/hii_railroads.map\n'
 [line 85]: '  extension=png\n'
 [line 86]: '  layers=HII_railroads\n'
   File C:\ms4w\Apache\cgi-bin\TileCache\Service.py, 

[mapserver-users] Style a polygon with Horizontal, Vertical, or Diagonal Lines using SLD?

2012-01-31 Thread Paul Edwards
Hi All!

I'm wondering if anyone has experience styling maps with horizontal,
vertical, or diagonal lines when using MapServer WMS and a custom provided
SLD? The documentation states:

http://mapserver.org/ogc/sld.html#named-styles-support

A Fill can be a solid fill or be a Graphic Fill, which is either a
well-known Mark symbol (e.g., square, circle, triangle, star, cross, x) or
an ExternalGraphic element (e.g., gif, png) available through a URL


This pretty clearly states that the way to accomplish my goal is by tiling
an externally referenced image that has the line oriented the way I want,
but then we lose the coloring options. GeoServer has some cool SLD
extensions that are outside the spec (see link below) and I was wondering
if MapServer had anything similar?

http://docs.geoserver.org/stable/en/user/styling/sld-extensions/pointsymbols.html#the-shape-symbols

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


Re: [mapserver-users] Mapserver and TileCache, parsing error thereby no cached images

2012-01-31 Thread Rahkonen Jukka
Hi,

Maybe the error means what is says and the size of image (256x256 pixels) does 
not suit any of the supported scales with the given BBOX. WMS-C requests be 
exactly correct to suit the cached tiles.

QGis and uDig support WMS-C so that they read the GetCapabilities from the 
service and adjust the GetMap requests accordingly automatically.

-Jukka Rahkonen-



Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] käyttäjän Michael Markieta 
[markiet...@gmail.com] puolesta
Lähetetty: 31. tammikuuta 2012 20:39
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] Mapserver and TileCache, parsing error thereby no 
cached images


My data is in WGS84 Major Auxiliary Sphere (as outputted by ArcGIS).. EPSG:3857

  *   Using 
thishttp://rinnerweb.arts.ryerson.ca/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/moot2_dev/hii_railroads.mapREQUEST=GetMapWIDTH=500HEIGHT=500LAYERS=HII_railroadsVERSION=1.1.1SRS=EPSG:3857bbox=-10995797.347,5031174.730,-7855157.347,7815054.730MAPUNIT=DecimalDegreeFORMAT=image/pngClientId=CLIENTMODE=TiledWmsRasterSource
 GetMap request, I have verified that my data is in fact queryable

So I changed a few settings in my tilecache.cfg as so based on the GetMap query:

[HII_railroads]
type=WMS
url=http://141.117.104.183/cgi-bin/mapserv.exe
mapfile=C:/ms4w/Apache/htdocs/moot2_dev/hii_railroads.map
extension=png
layers=HII_railroads
srs=EPSG:3857
size=256,256
bbox=-10995797.347,5031174.730,-7855157.347,7815054.730
resolutions=10226.494362992187,5113.247181496094,2556.623590748047,1278.3117953740234,639.1558976870117,319.57794884350585,159.78897442175293,79.89448721087646,39.94724360543823,19.973621802719116,9.986810901359558,4.993405450679779,2.4967027253398895,1.2483513626699447,0.6241756813349724,0.3120878406674862,0.1560439203337431,0.07802196016687155,0.03901098008343577,0.019505490041717886


Still no luckhttp://rinnerweb.arts.ryerson.ca/moot2_dev/, darn.

You can see that layer hii_6 doesnt produce any images and I am given this 
error when I explore the 
urlhttp://rinnerweb.arts.ryerson.ca/cgi-bin/tilecache.cgi?LAYERS=HII_railroadsFORMAT=image%2FpngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=SRS=EPSG%3A3857BBOX=-10995797.347,6283519.00125,-9743453.07575,7535863.2725WIDTH=256HEIGHT=256
 to these tiles:


An error occurred: can't find resolution index for 4891.969810. Available 
resolutions are:
[10226.494362992187, 5113.247181496094, 2556.623590748047, 1278.3117953740234, 
639.1558976870117, 319.57794884350585, 159.78897442175293, 79.89448721087646, 
39.94724360543823, 19.973621802719116, 9.986810901359558, 4.993405450679779, 
2.4967027253398895, 1.2483513626699447, 0.6241756813349724, 0.3120878406674862, 
0.1560439203337431, 0.07802196016687155, 0.03901098008343577, 
0.019505490041717886]


Michael Markieta - (416) 833 5581
--
Research Assistant - Department of Geography 
Bachelor of Arts Candidate - Geographic Analysis
Ryerson University
Toronto, ON, Canada
--
www.spatialanalysis.cahttp://www.spatialanalysis.ca



On Mon, Jan 30, 2012 at 11:06 AM, Michael Markieta 
markiet...@gmail.commailto:markiet...@gmail.com wrote:
Which formatting is considered correct? Would this be the source of the parsing 
error?


[HII_railroads]
  type=WMS
  url=http://141.117.104.183/cgi-bin/mapserv.exe
  mapfile=C:/ms4w/Apache/htdocs/moot2_dev/hii_railroads.map
  extension=png
  layers=HII_railroads

or

[HII_railroads]
type=WMS
url=http://141.117.104.183/cgi-bin/mapserv.exe
mapfile=C:/ms4w/Apache/htdocs/moot2_dev/hii_railroads.map
extension=png
layers=HII_railroads

*Note the indentation.


Michael Markieta - (416) 833 5581tel:%28416%29%20833%205581
--
Research Assistant - Department of Geography 
Bachelor of Arts Candidate - Geographic Analysis
Ryerson University
Toronto, ON, Canada
--
www.spatialanalysis.cahttp://www.spatialanalysis.ca



On Mon, Jan 30, 2012 at 2:11 AM, Rahkonen Jukka 
jukka.rahko...@mmmtike.fimailto:jukka.rahko...@mmmtike.fi wrote:
Hi,

Perhaps it has something to do with newline characters?
[line 82]: '  type=WMS\n'

-Jukka Rahkonen-


Michael Markieta  wrote:

 Hi all,

Original question was posted here: 
http://gis.stackexchange.com/questions/19459/tilecache-and-mapserver-not-producing-images-and-raising-parsing-error

Just a forewarning, I will try to be as extensive with my question as possible. 
Due to a number of reasons why this might not be working, I have posted all 
sorts of portions of my debugging below.

Web map located herehttp://rinnerweb.arts.ryerson.ca/moot2_dev

Tile cache is being setup as a test run for the hii_5 layer in OpenLayers. 
MapServer is the backend.

I am trying to get TileCache to cache images of my MapServer WMS. However,