Re: [mapserver-users] error compilation for mapserver 5.2.1

2009-01-08 Thread sandric ionut
Hi Tamas:

I have attached the nmake.opt file. I have downloaded the source code for 
mapserver 5.2.1. from the mapserver website and than I have followed the 
intructions to compile mapserver

I have tried with both visual studio command promt and vcvars32.bat. I get the 
same error

Thank you,

Ionut





From: Tamas Szekeres szeker...@gmail.com
To: sandric ionut sandricio...@yahoo.com
Cc: mapserver-users@lists.osgeo.org
Sent: Thursday, January 8, 2009 12:42:45 AM
Subject: Re: [mapserver-users] error compilation for mapserver 5.2.1

Hi Ionut,

I'm guessing the library files and the includes you're compiling against might 
not relate to the same version. Could you provide a diff how you alter 
nmake.opt when compiling mapserver? Do you use the Visual Studio Command prompt 
or set up the environment manually (like using vcvars32.bat or something).

Best regards,

Tamas




2009/1/7 sandric ionut sandricio...@yahoo.com

Hello:
 
I try to compile mapserver 5.2.1. using Microsoft Visual Studio 2005. I have 
made the proper modifications to the nmake.opt file and run the compile command 
as:
 
nmake -f makefile.vc charp
 
After several errors (which I've managed to pass), I've the following error 
(see bellow)
 
How can I correct this?
 
Thank you in advance
 
Ionut
 
 ...
-DUSE_THREAD    -DIGNORE_MISSING_DATA   -DENABLE_STDERR_DEBUG    -DUSE_
GD_ANTIALIAS   -DUSE_ZLIB    -DUSE_AGG   -DWIN32 -D_WIN32 /c mapraster.c /Fo
mapraster.obj
mapraster.c
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(327) :
 warning C4005: 'TEXT' : macro redefinition
    h:\kit\mapserver-5.2.1\mapfile.h(123) : see previous definition of 'TEXT
'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(343)
: error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(345)
: error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(346)
: error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(357)
: error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(98) :
 warning C4005: 'ERROR' : macro redefinition
    h:\kit\mapserver-5.2.1\mapfile.h(52) : see previous definition of 'ERROR
'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(879)
: error C2061: syntax error : identifier 'SIZEL'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880)
: error C2061: syntax error : identifier 'szlMillimeters'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880)
: error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890)
: error C2061: syntax error : identifier 'szlMicrometers'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890)
: error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(893)
: error C2059: syntax error : '}'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1103)
 : error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1104)
 : error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1105)
 : error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1106)
 : error C2059: syntax error : 'constant'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1557)
 : warning C4005: 'TRANSPARENT' : macro redefinition
    h:\kit\mapserver-5.2.1\mapfile.h(130) : see previous definition of 'TRAN
SPARENT'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)
 : error C2146: syntax error : missing ')' before identifier 'lpsize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)
 : error C2061: syntax error : identifier 'lpsize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)
 : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025)
 : error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049)
 : error C2146: syntax error : missing ')' before identifier 'lpsize'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049)
 : error C2081: 'LPSIZE' : name in formal parameter list illegal
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049)
 : error C2061: syntax error : identifier 'lpsize'
C:\Program Files\Microsoft Visual 

Re: Fw: [mapserver-users] error compilation for mapserver 5.2.1

2009-01-08 Thread Tamas Szekeres
Hi,

We use MSVC_VER=1400 setting with MSVC2005 and SWIG-1-3-33, but I'll also
try to compile with a newer version. Does this problem occurs when compiling
the csharp stuff solely?

Best regards,

Tamas



2009/1/8 sandric ionut sandricio...@yahoo.com

 Sorry:

 And the nmake.opt file


  Hi Tamas:

 I have attached the nmake.opt file. I have downloaded the source code for
 mapserver 5.2.1. from the mapserver website and than I have followed the
 intructions to compile mapserver

 I have tried with both visual studio command promt and vcvars32.bat. I get
 the same error

 Thank you,

 Ionut

  --
 *From:* Tamas Szekeres szeker...@gmail.com
 *To:* sandric ionut sandricio...@yahoo.com
 *Cc:* mapserver-users@lists.osgeo.org
 *Sent:* Thursday, January 8, 2009 12:42:45 AM
 *Subject:* Re: [mapserver-users] error compilation for mapserver 5.2.1

 Hi Ionut,

 I'm guessing the library files and the includes you're compiling against
 might not relate to the same version. Could you provide a diff how you alter
 nmake.opt when compiling mapserver? Do you use the Visual Studio Command
 prompt or set up the environment manually (like using vcvars32.bat or
 something).

 Best regards,

 Tamas



 2009/1/7 sandric ionut sandricio...@yahoo.com

  Hello:



 I try to compile mapserver 5.2.1. using Microsoft Visual Studio 2005. I
 have made the proper modifications to the nmake.opt file and run the compile
 command as:



 nmake -f makefile.vc charp



 After several errors (which I've managed to pass), I've the following
 error (see bellow)



 How can I correct this?



 Thank you in advance



 Ionut



  ...

 -DUSE_THREAD-DIGNORE_MISSING_DATA   -DENABLE_STDERR_DEBUG
 -DUSE_
 GD_ANTIALIAS   -DUSE_ZLIB-DUSE_AGG   -DWIN32 -D_WIN32 /c
 mapraster.c /Fo
 mapraster.obj
 mapraster.c
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\winnt.h(327) :
  warning C4005: 'TEXT' : macro redefinition
 h:\kit\mapserver-5.2.1\mapfile.h(123) : see previous definition of
 'TEXT
 '
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\windef.h(343)
 : error C2059: syntax error : 'constant'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\windef.h(345)
 : error C2059: syntax error : 'constant'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\windef.h(346)
 : error C2059: syntax error : 'constant'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\windef.h(357)
 : error C2059: syntax error : 'constant'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(98) :
  warning C4005: 'ERROR' : macro redefinition
 h:\kit\mapserver-5.2.1\mapfile.h(52) : see previous definition of
 'ERROR
 '
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(879)
 : error C2061: syntax error : identifier 'SIZEL'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(880)
 : error C2061: syntax error : identifier 'szlMillimeters'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(880)
 : error C2059: syntax error : ';'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(890)
 : error C2061: syntax error : identifier 'szlMicrometers'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(890)
 : error C2059: syntax error : ';'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(893)
 : error C2059: syntax error : '}'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(1103)
  : error C2059: syntax error : 'constant'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(1104)
  : error C2059: syntax error : 'constant'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(1105)
  : error C2059: syntax error : 'constant'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(1106)
  : error C2059: syntax error : 'constant'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(1557)
  : warning C4005: 'TRANSPARENT' : macro redefinition
 h:\kit\mapserver-5.2.1\mapfile.h(130) : see previous definition of
 'TRAN
 SPARENT'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(3025)
  : error C2146: syntax error : missing ')' before identifier 'lpsize'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(3025)
  : error C2081: 'LPSIZE' : name in formal parameter list illegal
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(3025)
  : error C2061: syntax error : identifier 'lpsize'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(3025)
  : error C2059: syntax error : ';'
 C:\Program Files\Microsoft Visual Studio
 8\VC\PlatformSDK\include\wingdi.h(3025)
  : error C2059: syntax error : ')'
 C:\Program Files\Microsoft Visual Studio
 

[mapserver-users] libgdal error with php/MapScript

2009-01-08 Thread Jacolin Yves
Hello,

I get an error when loading php_mapscript.so in my apache config.

Here is my config:
* Centos 4 (in an openvz system)
* PHP 4.3.9 (with GD 2.0.28)
* Apache 2
* GD 2.0.35
* AGG 2.4
* Mapserver 5.2.1
* geos 3.0.3
* gdal-ogr 1.6.0
* proj 4.6.1

MapServer configure:
./configure 
--with-agg=/usr/local/src/build/agg-2.4 
--with-postgis 
--with-wmsclient --with-wfsclient 
--with-geos --with-proj --with-gdal=/usr/local/bin/gdal-config 
--with-ogr=/usr/local/bin/gdal-config 
--with-php=/usr/include/php/
--with-freetype=/usr/bin/freetype-config --with-eppl --with-xpm=/usr/X11R6/lib/ 
--with-gd=/usr/local/ --with-python

GDAL-OGR configure:
./configure 
--with-python 
--with-pg=/usr/local/pgsql/bin/pg_config
--without-grass

After installing all dependance and set up php config to enable php_mapscript, 
I try to look if php/mapscript is really enabled:
$ php -i | grep mapscript
give:
PHP Warning:  Unknown(): Unable to load dynamic 
library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open shared 
object file: No such file or directory in Unknown on line 0
/etc/php.d/mapscript.ini

There is no mapscript table in phpinfo() function.

Any tips to find a solution?

Thanks in advance.

Y.
-- 
Yves Jacolin
---
http://softlibre.gloobe.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Rotated TrueType Point Symbols - Issue

2009-01-08 Thread Donald Kerr
Sooner rather than later would be better for me :)

Regards,

Donald

-Original Message-
From: thomas bonfort [mailto:thomas.bonf...@gmail.com] 
Sent: 08 January 2009 12:06
To: Fawcett, David
Cc: Donald Kerr; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Rotated TrueType Point Symbols - Issue


I didn't backport this to the 5.2 branch, so 5.2.2 wouldn't be of any
use for this case.

I can backport if it's something you need asap.

cheers,
thomas

On Wed, Jan 7, 2009 at 19:12, Fawcett, David david.fawc...@state.mn.us
wrote:
 Thomas (or I guess the rest of the developers),

 Do you know when the next incremental MapServer release might be cut?
 5.2.2?

 Thanks,

 David.

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of thomas
 bonfort
 Sent: Wednesday, January 07, 2009 1:39 AM
 To: Donald Kerr
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Rotated TrueType Point Symbols - Issue


 sorry for the late answer,

 To be honest, I don't know if this is the latest or not and I don't
 really know what trunk code is :(
 it's the latest version from svn

 So, I suppose my questions are still the same i.e. do I have to
 recompile using the latest code? Yikes!
 yes, you'd need to recompile


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


[mapserver-users] Mapserver MS SQL Server Spacial

2009-01-08 Thread Donald Kerr
Is it possible to connect to MS SQL Server Spacial in the same was as
PostGis?

CONNECTIONTYPE postgis
CONNECTION user=postgres dbname=MasterMap host=localhost
DATA geom FROM topographicline USING UNIQUE toid

Or

CONNECTIONTYPE postgis
CONNECTION user=postgres dbname=MasterMap host=localhost
DATA geom FROM (SELECT toid, featurecode, textstring, orientation/10 AS
orientation, fontnumber, anchorposition, textstyle, geom FROM
cartographictext) AS foo USING UNIQUE toid

If not, is there an alternative method without altering the database?

Many thanks.

Regards,

Donald

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


Re: [mapserver-users] Trouble with mode=tile

2009-01-08 Thread Dave Rafkind
Say, was there any final answer on the tile stuff (ie was I doing it 
wrong somehow)?


Thanks!
Dave

Dave Rafkind wrote:
Map file is at the bottom of this email, world shapefile is the 
popular world_adm0 , can be gotten from here:


http://www.cipotato.org/diva/data/misc/world_adm0.zip

Paul Ramsey wrote:

QGIS doesn't know anything about the SRS of your shape file.
If you share your Shape file and Map file, then we can either
reproduce your bug or confirm you are doing something wrong and tell
you what that something is.

Paul

On Fri, Jan 2, 2009 at 1:12 PM, Dave Rafkind
drafk...@traversetechnologies.com wrote:
 

Hi, thanks for your reply. Results follow:

I can't remove the PROJECTION block, otherwise I get this error from
mapserver:
msTileSetProjectionst(): WMS server error. Cannot set new SRS on a 
map that

doesn't have any projection set. Please make sure your mapfile has a
PROJECTION defined at the top level.

QGis thinks this is the spatial information for my test shapefile, 
this is

4326 (basically unprojected), right?
+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs

If I have the PROJECTION block in the mapfile, I can indeed see 
tiles of

some kind, but it looks like each tile overlaps in its spatial extent.

See attached for wrong results..I changed some of the colors so it 
would

be more obvious.




Paul Ramsey wrote:
   

Dave,

- Remove the PROJECTION block from the MAP level (leave the one at the
LAYER level). Tile mode constructs its own output projection object,
it doesn't need map file configuration for the output projection, just
the inputs.
- Confirm that the shape file you are using *is* in fact epsg:4326
- Try manually accessing the service using tile=0 or tile=1, and see
what comes back
- Show some pictures of wrong in your next mail

P.

On Fri, Jan 2, 2009 at 12:06 PM, Dave Rafkind
drafk...@traversetechnologies.com wrote:

 

Thanks for the suggestions, but I don't think that's quite it:

1 - removing epsg:4326 from the wms_srs part of the mapfile 
didn't fix

it
2 - adding SRS=EPSG:900913 to the Virtual Earth tileSource 
string

didn't fix it

Is there anything else I can try?


Fawcett, David wrote:

   

Dave,
I am not sure if this is it, but in your WMS request, you are not
specifying a SRS.  You are advertising two SRS' in your WEB WMS
wms_srs metadata.  I wonder if MapServer is just defaulting to the
first SRS in your list in the absence of an explicit request?
David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Dave
Rafkind
Sent: Friday, January 02, 2009 12:39 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Trouble with mode=tile


Hi list, I'm using the latest ms4w on a windows XP box. When 
trying to

use
mapserver's tile mode in a Virtual Earth or Google Maps control, it
looks totally wrong (like the wrong projection is being used 
perhaps?).

What is the right way to go about this?

Here's mapserver.exe -v:

C:\ms4w\Apache\cgi-binmapserv -v
MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
OUTPUT=WBMP

OUTPUT=PDF
 OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=ICO
NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=FASTCGI SUP
PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG 
INPUT=POSTGIS

INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE

Here's the relevant part of my web page with the map control:
  map=new VEMap('myMap');
  // ...
  var layerId = myCustomTileLayer;
  var tileSource =
http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m 


aplayers=worldmode=tiletilemode=vetile=%4;
  var tileSourceSpec = new VETileSourceSpecification(layerId,
tileSource);
  // ...

Here's the last line of my EPSG file (from c:\ms4w\proj\nad\epsg)
  # google/virtual earth spherical mercator
  900913 +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 +nadgri...@null +no_defs 


And here's my map file:
MAP
 IMAGETYPE  PNG
 OUTPUTFORMAT
  NAME png
  DRIVER GD/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
  EXTENSION png
  TRANSPARENT ON
 END

 SHAPEPATH  /src/maps/mapdata
 FONTSET /src/maps/mapdata/fonts.list
 IMAGECOLOR 0 0 0

  WEB
 METADATA
  wms_title   WMS Demo Server
  wms_onlineresource

 http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m 


ap
  wms_srs EPSG:4326 EPSG:900913
 END
END

PROJECTION
init=epsg:900913
  END

 SYMBOL
  name circle
  type ellipse
  filled true
  POINTS 1 1 END
 END

 SYMBOL
  NAME 'dashed1'
  TYPE ELLIPSE
  POINTS 1 1 END
  FILLED true
  STYLE 4 4 END
 END

 SYMBOL
  NAME 'railway'
  TYPE cartoline
  LINECAP butt
  LINEJOIN miter
  LINEJOINMAXSIZE 3
  STYLE
1 10 1 10
  END
 END

 LAYER
  PROJECTION
init=epsg:4326
  END
  NAME world
  

Re: [mapserver-users] libgdal error with php/MapScript

2009-01-08 Thread Daniel Morissette

Jacolin Yves wrote:

... --with-gdal=/usr/local/bin/gdal-config ...



[...]

PHP Warning:  Unknown(): Unable to load dynamic 
library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open shared 
object file: No such file or directory in Unknown on line 0

/etc/php.d/mapscript.ini



Your libgdal.so.1 is installed in /usr/local/lib. You need to make sure 
that directory is in the system's library path. The simple way to do 
that is to add /usr/local/lib to the file /etc/ld.so.conf and then run 
/sbin/ldconfig as root to update the runtime linker's cache.


Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] libgdal error with php/MapScript

2009-01-08 Thread Jacolin Yves
Le Thursday 08 January 2009 15:39:14 Alan Boudreault, vous avez écrit :
 Yves,

 Did you look is there is any  libgdal.so* file in the lib directory?
 If there's one... but it's not named libgdal.so.1  maybe you could
 try to make a symbolic link to it.

 Alan

Alan,

the libgdal.so.1 exist, ls /usr/local/lib/libgdal* gives:
/usr/local/lib/libgdal.a  
/usr/local/lib/libgdal.la  
/usr/local/lib/libgdal.so  
/usr/local/lib/libgdal.so.1  
/usr/local/lib/libgdal.so.1.13.0

thanks

Y.
-- 
Yves Jacolin
---
http://softlibre.gloobe.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] libgdal error with php/MapScript

2009-01-08 Thread Jacolin Yves
Le Thursday 08 January 2009 15:39:14 Daniel Morissette, vous avez écrit :
 Jacolin Yves wrote:
  ... --with-gdal=/usr/local/bin/gdal-config ...

 [...]

  PHP Warning:  Unknown(): Unable to load dynamic
  library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open
  shared object file: No such file or directory in Unknown on line 0
  /etc/php.d/mapscript.ini

 Your libgdal.so.1 is installed in /usr/local/lib. You need to make sure
 that directory is in the system's library path. The simple way to do
 that is to add /usr/local/lib to the file /etc/ld.so.conf and then run
 /sbin/ldconfig as root to update the runtime linker's cache.

 Daniel
Daniel,

/etc/ld.so.conf and ldconfig command was already edited or run :(

I am building PHP5 to see if this changes something,

Thanks anyway,

Y.
-- 
Yves Jacolin
---
http://softlibre.gloobe.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] queryByRect throws an error

2009-01-08 Thread Murty Maganti
Hi Tamas

 

Yes, there is a workaround to prevent this issue. I am already taking
care in my code.

 

Thanks

Murty

From: Tamas Szekeres [mailto:szeker...@gmail.com] 
Sent: Wednesday, January 07, 2009 6:11 PM
To: Murty Maganti
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] queryByRect throws an error

 

Hi Murty,

Yes, you're correct. By setting the template parameter of these internal
layers like __embed__legend or __embed__scalebar causes the behaviour
you've reported before. However I'm not sure it should be denoted as a
bug since you could easily skip setting these parameters in your code.
Skipping these layers in the mapserver query code may cause slower
execution which is undesirable in most cases. I'm guessing there might
be some other occurrences where altering these special layers in
mapscript may also cause unexpected results.

Best regards,

Tamas




2009/1/7 Murty Maganti mmaga...@oriongis.com

Hi Tamas

 

Thanks for reply.

 

These are extracts from my code to replicate the issue

 

//Create map object

mapObj map = new mapObj(MyMap.map);

 

//draw map

map.draw() ; 

 

//Make sure some template name is defined. Otherwise, query will not be
successful.

for (int i = 0; i  map.numlayers; i++)

{

if (string.IsNullOrEmpty(m_map.getLayer(i).template))

{

m_map.getLayer(i).template = abc;

}

}

 

//Perform the query now

map.queryByRect(map.extents);

 

 

I think after a call to map.draw(), a new layer '__embed__scalebar' is
added to layers collection. Setting template name to it is performing
the query on scalebar layer as well. 

 

I think the scalebar layer is not satisfying these two conditions in
msQueryByRect method of mapquery.c and hence getting used for query

 

if(!msIsLayerQueryable(lp)) continue;

if(lp-status == MS_OFF) continue;

 

 

Please let me know if you need more info or you need any test
application.

 

 

Thanks

Murty

 

From: Tamas Szekeres [mailto:szeker...@gmail.com] 
Sent: Tuesday, January 06, 2009 3:33 PM
To: Murty Maganti
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] queryByRect throws an error

 

Hi,

Could you provide a code/mapfile sample to reconstruct the issue? I've
never experienced such a problem, I've used this function many times
though.

Best regards,

Tamas



2009/1/6 Murty Maganti mmaga...@oriongis.com

mapObj.queryByRect(...)  (using C# map script) is throwing following
exception when there is an embedded scale bar on map.

 

Exception message: msShapefileOpen(): Unable to access file. No (NULL)
filename provided.;msBuildPath: Unable to access file

 

Removing the scale bar from map file works fine. 

 


___
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 MS SQL Server Spacial

2009-01-08 Thread Dan Little
I think one of the key problems will be using the postgis connector to connect 
to MSSQL...



- Original Message 
 From: Donald Kerr donald.k...@dkerr.co.uk
 To: mapserver-users@lists.osgeo.org
 Sent: Thursday, January 8, 2009 7:33:46 AM
 Subject: [mapserver-users] Mapserver MS SQL Server Spacial
 
 Is it possible to connect to MS SQL Server Spacial in the same was as
 PostGis?
 
 CONNECTIONTYPE postgis
 CONNECTION user=postgres dbname=MasterMap host=localhost
 DATA geom FROM topographicline USING UNIQUE toid
 
 Or
 
 CONNECTIONTYPE postgis
 CONNECTION user=postgres dbname=MasterMap host=localhost
 DATA geom FROM (SELECT toid, featurecode, textstring, orientation/10 AS
 orientation, fontnumber, anchorposition, textstyle, geom FROM
 cartographictext) AS foo USING UNIQUE toid
 
 If not, is there an alternative method without altering the database?
 
 Many thanks.
 
 Regards,
 
 Donald
 
 ___
 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] ippj-5.3.dll was not found

2009-01-08 Thread Dan Little
Did you make sure all the paths were properly setup?  I think you need to set 
an env variable to point to where the DLL's are located.

Also, Mapserver tends not to run really well from the commandline.  You'd need 
to set all of the environmental variables to account for the QUERY_STRING, etc.



- Original Message 
 From: boesiii boes...@yahoo.com
 To: mapserver-users@lists.osgeo.org
 Sent: Thursday, January 8, 2009 8:03:08 AM
 Subject: [mapserver-users] ippj-5.3.dll was not found
 
 
 I just downloaded and installed OSGeo4w.  I tried to test out mapserv.exe at
 the command line but I get and error stating Application failed to start
 because ippj-5.3.dll was not found. Reinstalling the application may fix
 this problem
 
 I tried to reinstall but I still get the same error.
 -- 
 View this message in context: 
 http://n2.nabble.com/ippj-5.3.dll-was-not-found-tp2128008p2128008.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] libgdal error with php/MapScript

2009-01-08 Thread Jacolin Yves
Le Thursday 08 January 2009 15:57:01 Guillaume Sueur, vous avez écrit :
 Can't it comes from an external lib dynamiccaly linked to gdal, like
 Ecwlib or other ? did you try to call your php page from the command
 line, which can give more information on missing dependancies ?

 regards,

 Guillaume

 Jacolin Yves a écrit :
  Le Thursday 08 January 2009 15:39:14 Daniel Morissette, vous avez écrit :
  Jacolin Yves wrote:
  ... --with-gdal=/usr/local/bin/gdal-config ...
 
  [...]
 
  PHP Warning:  Unknown(): Unable to load dynamic
  library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open
  shared object file: No such file or directory in Unknown on line 0
  /etc/php.d/mapscript.ini
 
  Your libgdal.so.1 is installed in /usr/local/lib. You need to make sure
  that directory is in the system's library path. The simple way to do
  that is to add /usr/local/lib to the file /etc/ld.so.conf and then run
  /sbin/ldconfig as root to update the runtime linker's cache.
 
  Daniel
 
  Daniel,
 
  /etc/ld.so.conf and ldconfig command was already edited or run :(
 
  I am building PHP5 to see if this changes something,
 
  Thanks anyway,
 
  Y.

Sorry to Guillaume and Daniel :)

I built php5 and tested it: same problem. I realised that I stoped to test php 
with command line ;) and indeed php -i | grep mapscript send same issue.

Daniel, I tried again to run ldconfig and it is now working!

The problem was resolved by removing the build file  
in /etc/ld.so.conf/build containing /usr/local/lib/ and adding this dir 
directly in /etc/ld.so.conf (include command inside doesn't seems 
working !)

Many thanks to all,

Y.
-- 
Yves Jacolin
---
http://softlibre.gloobe.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] libgdal error with php/MapScript

2009-01-08 Thread Guillaume Sueur
Can't it comes from an external lib dynamiccaly linked to gdal, like
Ecwlib or other ? did you try to call your php page from the command
line, which can give more information on missing dependancies ?

regards,

Guillaume

Jacolin Yves a écrit :
 Le Thursday 08 January 2009 15:39:14 Daniel Morissette, vous avez écrit :
 Jacolin Yves wrote:
 ... --with-gdal=/usr/local/bin/gdal-config ...
 [...]

 PHP Warning:  Unknown(): Unable to load dynamic
 library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open
 shared object file: No such file or directory in Unknown on line 0
 /etc/php.d/mapscript.ini
 Your libgdal.so.1 is installed in /usr/local/lib. You need to make sure
 that directory is in the system's library path. The simple way to do
 that is to add /usr/local/lib to the file /etc/ld.so.conf and then run
 /sbin/ldconfig as root to update the runtime linker's cache.

 Daniel
 Daniel,
 
 /etc/ld.so.conf and ldconfig command was already edited or run :(
 
 I am building PHP5 to see if this changes something,
 
 Thanks anyway,
 
 Y.


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


Re: [mapserver-users] ippj-5.3.dll was not found

2009-01-08 Thread Frank Warmerdam

boesiii wrote:

I just downloaded and installed OSGeo4w.  I tried to test out mapserv.exe at
the command line but I get and error stating Application failed to start
because ippj-5.3.dll was not found. Reinstalling the application may fix
this problem

I tried to reinstall but I still get the same error.


Hi,

Did you by any chance install *all* OSGeo4W packages?  This is really not
wise because several packages depend on external items.  One of these is the
libjpeg-ipp package which depends on your having a special external package
installed.  To correct this particular item go into the advanced install,
and select reinstall for the libjpeg package.  This will replace the special
IPP enhanced libjpeg with the standard one.

However, if you have installed everything you will also likely have plugins
for stuff like oracle, sde and ecw that depend on external components and may
cause problems.  It might be better to wipe your C:\OSGeo4W tree and reinstall
somewhat more selectively.

I think I may need to remove the libjpeg-ipp package since you aren't the
first person to fall into the same trap.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


Re: [mapserver-users] website upgrade for older documentation

2009-01-08 Thread zach cruise
On Wed, Jan 7, 2009 at 5:29 PM, zach cruise zachc1...@gmail.com wrote:
 great website upgrade at http://www.mapserver.org/. how can i search
 for older documentation like with postgresql.org?

 http://www.postgresql.org/docs/8.1/interactive/sql-select.html
 http://www.postgresql.org/docs/8.1/static/sql-select.html
 http://www.postgresql.org/docs/8.2/interactive/sql-select.html
 http://www.postgresql.org/docs/8.2/static/sql-select.html
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ippj-5.3.dll was not found

2009-01-08 Thread boesiii

Thanks Franks,

I wiped out the folder and started from scratch, this time I only installed
what was necessary and that worked.  I now have a functioning MapServer now
I need to figure out how built a webpage using it.

I was only running it from the command line to see if it was working.




Frank Warmerdam wrote:
 
 boesiii wrote:
 I just downloaded and installed OSGeo4w.  I tried to test out mapserv.exe
 at
 the command line but I get and error stating Application failed to start
 because ippj-5.3.dll was not found. Reinstalling the application may fix
 this problem
 
 I tried to reinstall but I still get the same error.
 
 Hi,
 
 Did you by any chance install *all* OSGeo4W packages?  This is really not
 wise because several packages depend on external items.  One of these is
 the
 libjpeg-ipp package which depends on your having a special external
 package
 installed.  To correct this particular item go into the advanced install,
 and select reinstall for the libjpeg package.  This will replace the
 special
 IPP enhanced libjpeg with the standard one.
 
 However, if you have installed everything you will also likely have
 plugins
 for stuff like oracle, sde and ecw that depend on external components and
 may
 cause problems.  It might be better to wipe your C:\OSGeo4W tree and
 reinstall
 somewhat more selectively.
 
 I think I may need to remove the libjpeg-ipp package since you aren't the
 first person to fall into the same trap.
 
 Best regards,
 -- 
 ---+--
 I set the clouds in motion - turn up   | Frank Warmerdam,
 warmer...@pobox.com
 light and sound - activate the windows | http://pobox.com/~warmerdam
 and watch the world go round - Rush| Geospatial Programmer for Rent
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 

-- 
View this message in context: 
http://n2.nabble.com/ippj-5.3.dll-was-not-found-tp2128008p2128911.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] website upgrade for older documentation

2009-01-08 Thread Jeff McKenna

zach cruise wrote:

On Wed, Jan 7, 2009 at 5:29 PM, zach cruise zachc1...@gmail.com wrote:

great website upgrade at http://www.mapserver.org/. how can i search
for older documentation like with postgresql.org?



The current (5.2.1) documents should have MapServer version references 
inside them for specific functionality (such as a specific mapfile 
parameter added in 5.0).


-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


[mapserver-users] CGI mapserv.exe - BUFFER

2009-01-08 Thread Donald Kerr
I'd appreciate it if someone could give me some clarification please?

I am using the following url to return an image:

http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.mapmode=mapmapsize=500+4
00mapxy=258544+665909layers=allbuffer=2000

The documentation states, BUFFER [distance] - A distance, in the same
coordinate system as the map file, used in conjunction with MAPXY to create
an new map extent.

The coordinate system is in metres so I would expect that the width of the
image (500px) would be 2000m (2km). That doesn't seem to be the case i.e.
the returned images is, at a guess, double that.

I need clarification on what buffer is actually doing. No doubt I'm way
off the mark with the deduction above!

Many thanks.

Regards,

Donald Kerr


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


[mapserver-users] Help, Error Message: CGI variable map is not set.

2009-01-08 Thread boesiii

I just trying to get a static map to show up in my browser.

I have a map file created and I have a shapefile.

When I type http://127.0.0.1/cgi-bin/mapserv.exe?
map=/osgeo4w/apps/tutorial/htdocs/nira1.maplayer=roadsmode=map in the
address bar in Firefox.  I get an error message loadMap(): Web application
error. CGI variable map is not set.

What do I need to do get a working static map?
-- 
View this message in context: 
http://n2.nabble.com/Help%2C-Error-Message%3A-CGI-variable-%22map%22-is-not-set.-tp2129226p2129226.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] website upgrade for older documentation

2009-01-08 Thread zach cruise
thanks. any way to search 4.8 documentation? any one got archived copy
other than 
http://web.archive.org/web/20060701050731/http://mapserver.gis.umn.edu/?

On Thu, Jan 8, 2009 at 12:21 PM, Jeff McKenna
jmcke...@gatewaygeomatics.com wrote:
 zach cruise wrote:

 On Wed, Jan 7, 2009 at 5:29 PM, zach cruise zachc1...@gmail.com wrote:

 great website upgrade at http://www.mapserver.org/. how can i search
 for older documentation like with postgresql.org?

 The current (5.2.1) documents should have MapServer version references
 inside them for specific functionality (such as a specific mapfile parameter
 added in 5.0).

 -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
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] CGI mapserv.exe - BUFFER

2009-01-08 Thread Bob Basques
Donald,

I haven't tried this, but di you try using Image (pixel) values for the buffer?

bobb



 Donald Kerr donald.k...@dkerr.co.uk 01/08/09 11:47 AM 
I'd appreciate it if someone could give me some clarification please?

I am using the following url to return an image:

http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.mapmode=mapmapsize=500+4
00mapxy=258544+665909layers=allbuffer=2000

The documentation states, BUFFER [distance] - A distance, in the same
coordinate system as the map file, used in conjunction with MAPXY to create
an new map extent.

The coordinate system is in metres so I would expect that the width of the
image (500px) would be 2000m (2km). That doesn't seem to be the case i.e.
the returned images is, at a guess, double that.

I need clarification on what buffer is actually doing. No doubt I'm way
off the mark with the deduction above!

Many thanks.

Regards,

Donald Kerr


___
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] CGI mapserv.exe - BUFFER

2009-01-08 Thread Donald Kerr
Bobb,

I don't quite follow you there to be honest. The BUFFER states that it's in
the same coordinate system as the map file. How could that be changed to
image pixel values? What I'm try to do effectively is set the width of the
created image to a certain distance e.g. BUFFER=1 which (hopefully) will
give me an image that's 10km across no matter what pizel size I set in the
querystring.

Regards,

Donald


-Original Message-
From: Bob Basques [mailto:bob.basq...@ci.stpaul.mn.us] 
Sent: 08 January 2009 19:17
To: donald.k...@dkerr.co.uk; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] CGI mapserv.exe - BUFFER


Donald,

I haven't tried this, but di you try using Image (pixel) values for the
buffer?

bobb



 Donald Kerr donald.k...@dkerr.co.uk 01/08/09 11:47 AM 
I'd appreciate it if someone could give me some clarification please?

I am using the following url to return an image:

http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.mapmode=mapmapsize=500+4
00mapxy=258544+665909layers=allbuffer=2000

The documentation states, BUFFER [distance] - A distance, in the same
coordinate system as the map file, used in conjunction with MAPXY to create
an new map extent.

The coordinate system is in metres so I would expect that the width of the
image (500px) would be 2000m (2km). That doesn't seem to be the case i.e.
the returned images is, at a guess, double that.

I need clarification on what buffer is actually doing. No doubt I'm way
off the mark with the deduction above!

Many thanks.

Regards,

Donald Kerr


___
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] CGI mapserv.exe - BUFFER

2009-01-08 Thread Christopher Schmidt
On Thu, Jan 08, 2009 at 05:47:09PM -, Donald Kerr wrote:
 I'd appreciate it if someone could give me some clarification please?
 
 I am using the following url to return an image:
 
 http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.mapmode=mapmapsize=500+4
 00mapxy=258544+665909layers=allbuffer=2000
 
 The documentation states, BUFFER [distance] - A distance, in the same
 coordinate system as the map file, used in conjunction with MAPXY to create
 an new map extent.
 
 The coordinate system is in metres so I would expect that the width of the
 image (500px) would be 2000m (2km). That doesn't seem to be the case i.e.
 the returned images is, at a guess, double that.

Buffer is usually a 'radius' -- so, you've got 2000M on each side (4k
total, instead of the 2k you expect).

If you imagine picking the center piont, and drawing a $buffer_size
circle around it -- that's your extent.

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


RE: [mapserver-users] CGI mapserv.exe - BUFFER

2009-01-08 Thread Donald Kerr
Christopher,

Your email came in just as I posted a thought on my original posting. I said
that I wonder if the BUFFER is actually a
buffer to both sides of the XY specified in MAPXY!

You've confirmed that I was nearly right! If it's a radius and the width of
the image is greater than the height then the width in metres is indeed
twice what is specified in BUFFER.

Many thanks indeed.

Regards,

Donald

-Original Message-
From: Christopher Schmidt [mailto:crschm...@metacarta.com] 
Sent: 08 January 2009 19:24
To: Donald Kerr
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] CGI mapserv.exe - BUFFER


On Thu, Jan 08, 2009 at 05:47:09PM -, Donald Kerr wrote:
 I'd appreciate it if someone could give me some clarification please?
 
 I am using the following url to return an image:
 

http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.mapmode=mapmapsize=500+4
 00mapxy=258544+665909layers=allbuffer=2000
 
 The documentation states, BUFFER [distance] - A distance, in the same
 coordinate system as the map file, used in conjunction with MAPXY to
create
 an new map extent.
 
 The coordinate system is in metres so I would expect that the width of the
 image (500px) would be 2000m (2km). That doesn't seem to be the case i.e.
 the returned images is, at a guess, double that.

Buffer is usually a 'radius' -- so, you've got 2000M on each side (4k
total, instead of the 2k you expect).

If you imagine picking the center piont, and drawing a $buffer_size
circle around it -- that's your extent.

Regards,
-- 
Christopher Schmidt
MetaCarta

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


RE: [mapserver-users] CGI mapserv.exe - BUFFER

2009-01-08 Thread Fawcett, David
Donald, 

I haven't played with BUFFER, but from the docs, my assumption is that
it builds a new extent by creating a buffer of the value BUFFER around
the point coordinate that you specify.  

So, if you buffer out 1 meters from a point, you are going to get an
extent that is 2 meters wide.  Think of the buffer value as a
radius, not a diameter.  

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Donald
Kerr
Sent: Thursday, January 08, 2009 1:23 PM
To: 'Bob Basques'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] CGI mapserv.exe - BUFFER


Bobb,

I don't quite follow you there to be honest. The BUFFER states that it's
in the same coordinate system as the map file. How could that be
changed to image pixel values? What I'm try to do effectively is set the
width of the created image to a certain distance e.g. BUFFER=1 which
(hopefully) will give me an image that's 10km across no matter what
pizel size I set in the querystring.

Regards,

Donald


-Original Message-
From: Bob Basques [mailto:bob.basq...@ci.stpaul.mn.us] 
Sent: 08 January 2009 19:17
To: donald.k...@dkerr.co.uk; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] CGI mapserv.exe - BUFFER


Donald,

I haven't tried this, but di you try using Image (pixel) values for the
buffer?

bobb



 Donald Kerr donald.k...@dkerr.co.uk 01/08/09 11:47 AM 
I'd appreciate it if someone could give me some clarification please?

I am using the following url to return an image:

http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.mapmode=mapmapsize=5
00+4
00mapxy=258544+665909layers=allbuffer=2000

The documentation states, BUFFER [distance] - A distance, in the same
coordinate system as the map file, used in conjunction with MAPXY to
create an new map extent.

The coordinate system is in metres so I would expect that the width of
the image (500px) would be 2000m (2km). That doesn't seem to be the case
i.e. the returned images is, at a guess, double that.

I need clarification on what buffer is actually doing. No doubt I'm
way off the mark with the deduction above!

Many thanks.

Regards,

Donald Kerr


___
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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] CGI mapserv.exe - BUFFER

2009-01-08 Thread Bob Basques
Donald,

Ahh, I misunderstood your original question, I thought you were trying to 
buufer a feature.  You want to buffer the view with the features edges.

I ran into this same stuff a while back.  I think I eneded up (at the time) 
building a whole new BBOX value set with a serverside call.  It was a couple of 
trips to the server to get thing right, because you needed to get the feature 
BBOX first, then add in a buffer value to retrieve the real (desired) mapsize.

I think there has been some work on this since my trials with it though.  I'll 
need to deferr this to someone else I'm afraid.

Sorry about that.

bobb




 Donald Kerr donald.k...@dkerr.co.uk 01/08/09 1:23 PM 
Bobb,

I don't quite follow you there to be honest. The BUFFER states that it's in
the same coordinate system as the map file. How could that be changed to
image pixel values? What I'm try to do effectively is set the width of the
created image to a certain distance e.g. BUFFER=1 which (hopefully) will
give me an image that's 10km across no matter what pizel size I set in the
querystring.

Regards,

Donald


-Original Message-
From: Bob Basques [mailto:bob.basq...@ci.stpaul.mn.us] 
Sent: 08 January 2009 19:17
To: donald.k...@dkerr.co.uk; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] CGI mapserv.exe - BUFFER


Donald,

I haven't tried this, but di you try using Image (pixel) values for the
buffer?

bobb



 Donald Kerr donald.k...@dkerr.co.uk 01/08/09 11:47 AM 
I'd appreciate it if someone could give me some clarification please?

I am using the following url to return an image:

http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.mapmode=mapmapsize=500+4
00mapxy=258544+665909layers=allbuffer=2000

The documentation states, BUFFER [distance] - A distance, in the same
coordinate system as the map file, used in conjunction with MAPXY to create
an new map extent.

The coordinate system is in metres so I would expect that the width of the
image (500px) would be 2000m (2km). That doesn't seem to be the case i.e.
the returned images is, at a guess, double that.

I need clarification on what buffer is actually doing. No doubt I'm way
off the mark with the deduction above!

Many thanks.

Regards,

Donald Kerr


___
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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] website upgrade for older documentation

2009-01-08 Thread Dan Little
Zach,

Not trying to be a pushy guy... but is there a feature missing in 5.0 prevents 
you from upgrading?



- Original Message 
 From: zach cruise zachc1...@gmail.com
 To: Jeff McKenna jmcke...@gatewaygeomatics.com
 Cc: mapserver-users@lists.osgeo.org
 Sent: Thursday, January 8, 2009 12:31:26 PM
 Subject: Re: [mapserver-users] website upgrade for older documentation
 
 thanks. any way to search 4.8 documentation? any one got archived copy
 other than 
 http://web.archive.org/web/20060701050731/http://mapserver.gis.umn.edu/?
 
 On Thu, Jan 8, 2009 at 12:21 PM, Jeff McKenna
 wrote:
  zach cruise wrote:
 
  On Wed, Jan 7, 2009 at 5:29 PM, zach cruise wrote:
 
  great website upgrade at http://www.mapserver.org/. how can i search
  for older documentation like with postgresql.org?
 
  The current (5.2.1) documents should have MapServer version references
  inside them for specific functionality (such as a specific mapfile parameter
  added in 5.0).
 
  -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
 ___
 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] Rotated TrueType Point Symbols - Issue

2009-01-08 Thread thomas bonfort
just backported to the 5.2 branch.
Now for some nagging to release 5.2.2 :)

thomas

On Thu, Jan 8, 2009 at 14:29, Donald Kerr donald.k...@dkerr.co.uk wrote:
 Sooner rather than later would be better for me :)

 Regards,

 Donald

 -Original Message-
 From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
 Sent: 08 January 2009 12:06
 To: Fawcett, David
 Cc: Donald Kerr; mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Rotated TrueType Point Symbols - Issue


 I didn't backport this to the 5.2 branch, so 5.2.2 wouldn't be of any
 use for this case.

 I can backport if it's something you need asap.

 cheers,
 thomas

 On Wed, Jan 7, 2009 at 19:12, Fawcett, David david.fawc...@state.mn.us
 wrote:
 Thomas (or I guess the rest of the developers),

 Do you know when the next incremental MapServer release might be cut?
 5.2.2?

 Thanks,

 David.

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of thomas
 bonfort
 Sent: Wednesday, January 07, 2009 1:39 AM
 To: Donald Kerr
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Rotated TrueType Point Symbols - Issue


 sorry for the late answer,

 To be honest, I don't know if this is the latest or not and I don't
 really know what trunk code is :(
 it's the latest version from svn

 So, I suppose my questions are still the same i.e. do I have to
 recompile using the latest code? Yikes!
 yes, you'd need to recompile



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


Re: [mapserver-users] Mapserver MS SQL Server Spacial

2009-01-08 Thread Richard Greenwood
On Thu, Jan 8, 2009 at 6:33 AM, Donald Kerr donald.k...@dkerr.co.uk wrote:
 Is it possible to connect to MS SQL Server Spacial in the same was as
 PostGis?


I do not think that Microsoft SQL Server is officially supported in
MapServer yet, however you can get it working using binaries at:
  http://vbkto.dyndns.org:1280/tests/release-1400-20081013.zip

read the thread at:
  
http://mail.google.com/mail/?ui=2ik=a8159b4950view=cvfs=1tf=1ver=a9SCC6X1Wbgam=x_k6ocT3aCEJBf1qUObqFAq=release-1400-20081013.zipsearch=queryth=11cf6af5d8018b96qt=release.1.1400.1.20081013.1.zip.1

The relevant line in the layer object in the MapFile:
   CONNECTIONTYPE PLUGIN
   PLUGIN msplugin_mssql2008.dll
   CONNECTION server=.\SQLEXPRRESS; database=sc_lands; Integrated
Security=true
   DATA geom FROM ownership WITH (INDEX(geom_sidx)) USING SRID=0
USING UNIQUE id

HTH,
Rich

-- 
Richard Greenwood
richard.greenw...@gmail.com
www.greenwoodmap.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver MS SQL Server Spacial

2009-01-08 Thread pcreso



--- On Fri, 1/9/09, Richard Greenwood richard.greenw...@gmail.com wrote:

 From: Richard Greenwood richard.greenw...@gmail.com
 Subject: Re: [mapserver-users] Mapserver MS SQL Server Spacial
 To: Donald Kerr donald.k...@dkerr.co.uk
 Cc: mapserver-users@lists.osgeo.org
 Date: Friday, January 9, 2009, 4:56 PM
 On Thu, Jan 8, 2009 at 6:33 AM, Donald Kerr
 donald.k...@dkerr.co.uk wrote:
  Is it possible to connect to MS SQL Server Spacial in
 the same was as
  PostGis?
 
 
 I do not think that Microsoft SQL Server is officially
 supported in
 MapServer yet, however you can get it working using
 binaries at:
  
 http://vbkto.dyndns.org:1280/tests/release-1400-20081013.zip
 
 read the thread at:
  
 http://mail.google.com/mail/?ui=2ik=a8159b4950view=cvfs=1tf=1ver=a9SCC6X1Wbgam=x_k6ocT3aCEJBf1qUObqFAq=release-1400-20081013.zipsearch=queryth=11cf6af5d8018b96qt=release.1.1400.1.20081013.1.zip.1
 
 The relevant line in the layer object in the MapFile:
CONNECTIONTYPE PLUGIN
PLUGIN msplugin_mssql2008.dll
CONNECTION server=.\SQLEXPRRESS;
 database=sc_lands; Integrated
 Security=true
DATA geom FROM ownership WITH (INDEX(geom_sidx))
 USING SRID=0
 USING UNIQUE id
 
 HTH,
 Rich
 
 -- 
 Richard Greenwood
 richard.greenw...@gmail.com
 www.greenwoodmap.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] Trouble with mode=tile

2009-01-08 Thread Paul Ramsey
Sorry life has intervened... :/ Still on my to-do list though...

Actually, to ensure it never falls off, if you ticket it with your map
file as an attachment and cc: me on the ticket, I'll not lose it.

P

On Thu, Jan 8, 2009 at 5:54 AM, Dave Rafkind
drafk...@traversetechnologies.com wrote:
 Say, was there any final answer on the tile stuff (ie was I doing it wrong
 somehow)?

 Thanks!
 Dave

 Dave Rafkind wrote:

 Map file is at the bottom of this email, world shapefile is the popular
 world_adm0 , can be gotten from here:

 http://www.cipotato.org/diva/data/misc/world_adm0.zip

 Paul Ramsey wrote:

 QGIS doesn't know anything about the SRS of your shape file.
 If you share your Shape file and Map file, then we can either
 reproduce your bug or confirm you are doing something wrong and tell
 you what that something is.

 Paul

 On Fri, Jan 2, 2009 at 1:12 PM, Dave Rafkind
 drafk...@traversetechnologies.com wrote:


 Hi, thanks for your reply. Results follow:

 I can't remove the PROJECTION block, otherwise I get this error from
 mapserver:
 msTileSetProjectionst(): WMS server error. Cannot set new SRS on a map
 that
 doesn't have any projection set. Please make sure your mapfile has a
 PROJECTION defined at the top level.

 QGis thinks this is the spatial information for my test shapefile, this
 is
 4326 (basically unprojected), right?
 +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs

 If I have the PROJECTION block in the mapfile, I can indeed see tiles of
 some kind, but it looks like each tile overlaps in its spatial extent.

 See attached for wrong results..I changed some of the colors so it
 would
 be more obvious.




 Paul Ramsey wrote:


 Dave,

 - Remove the PROJECTION block from the MAP level (leave the one at the
 LAYER level). Tile mode constructs its own output projection object,
 it doesn't need map file configuration for the output projection, just
 the inputs.
 - Confirm that the shape file you are using *is* in fact epsg:4326
 - Try manually accessing the service using tile=0 or tile=1, and see
 what comes back
 - Show some pictures of wrong in your next mail

 P.

 On Fri, Jan 2, 2009 at 12:06 PM, Dave Rafkind
 drafk...@traversetechnologies.com wrote:



 Thanks for the suggestions, but I don't think that's quite it:

 1 - removing epsg:4326 from the wms_srs part of the mapfile didn't
 fix
 it
 2 - adding SRS=EPSG:900913 to the Virtual Earth tileSource string
 didn't fix it

 Is there anything else I can try?


 Fawcett, David wrote:



 Dave,
 I am not sure if this is it, but in your WMS request, you are not
 specifying a SRS.  You are advertising two SRS' in your WEB WMS
 wms_srs metadata.  I wonder if MapServer is just defaulting to the
 first SRS in your list in the absence of an explicit request?
 David.

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Dave
 Rafkind
 Sent: Friday, January 02, 2009 12:39 PM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Trouble with mode=tile


 Hi list, I'm using the latest ms4w on a windows XP box. When trying
 to
 use
 mapserver's tile mode in a Virtual Earth or Google Maps control, it
 looks totally wrong (like the wrong projection is being used
 perhaps?).
 What is the right way to go about this?

 Here's mapserver.exe -v:

 C:\ms4w\Apache\cgi-binmapserv -v
 MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
 OUTPUT=PDF
  OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
 SUPPORTS=ICO
 NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
 SUPPORTS=WFS_SERVER
 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
 SUPPORTS=FASTCGI SUP
 PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG
 INPUT=POSTGIS
 INPUT=OGR
  INPUT=GDAL INPUT=SHAPEFILE

 Here's the relevant part of my web page with the map control:
  map=new VEMap('myMap');
  // ...
  var layerId = myCustomTileLayer;
  var tileSource =

 http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m
 aplayers=worldmode=tiletilemode=vetile=%4;
  var tileSourceSpec = new VETileSourceSpecification(layerId,
 tileSource);
  // ...

 Here's the last line of my EPSG file (from c:\ms4w\proj\nad\epsg)
  # google/virtual earth spherical mercator
  900913 +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 +nadgri...@null +no_defs 


 And here's my map file:
 MAP
  IMAGETYPE  PNG
  OUTPUTFORMAT
  NAME png
  DRIVER GD/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
  EXTENSION png
  TRANSPARENT ON
  END

  SHAPEPATH  /src/maps/mapdata
  FONTSET /src/maps/mapdata/fonts.list
  IMAGECOLOR 0 0 0

  WEB
  METADATA
  wms_title   WMS Demo Server
  wms_onlineresource


  
 http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m
 ap
  wms_srs EPSG:4326 EPSG:900913
  END
 END

PROJECTION
init=epsg:900913
  END

  SYMBOL
 

[mapserver-users] Query result attribute sums / totals

2009-01-08 Thread Ben Madin

G'day all,

I have a straightforward query setup on a line layer showing movements  
between locations over a selected time period.


When I select query mode, the data is returned beautifully (well, it's  
nice to see it!)


#  	Date  	Species  	Number  	Purpose  	Origin  	Destination  	 
Movement id
1 	07/07/2008 	Cattle 	40 	Slaughter 	Luangprabang 	Vientiane Capital 	 
More Information
2 	15/07/2008 	Cattle 	7 	Sell To Middle Man 	Luangprabang 	Vientiane  
Capital 	More Information
3 	27/07/2008 	Cattle 	5 	Slaughter 	Luangprabang 	Vientiane Capital 	 
More Information


etc

However it would be really really great if the total Number over this  
time could be calculated as a total, and put in the footer row.


(I have done this previously using mapscript, but for time reasons  
don't want to go there at the moment.)


Is there an [attribute_sum] type of tag I can embed in the footer...  
or any other suggestions?


cheers

Ben




--

Ben Madin
REMOTE INFORMATION

t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome   WA   6725

b...@remoteinformation.com.au



Out here, it pays to 
know...


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