[mapserver-users] finding php_mapserver.so

2008-05-01 Thread Tim McGeary
So our installation of Mapserver, in combination, with PMapper, we are 
getting an error that it cannot find php_mapserver.so.  While I 
configured Mapserver to work with PHP, and it went through fine, I 
cannot find the php_mapserver.so file anywhere on my server.


Was it supposed to be delivered in the mapserver package?  If so, where 
would it have gone?  If not, where can I find it?


Thanks,
Tim

--
Tim McGeary
Senior Systems Specialist
Lehigh University
610-758-4998
[EMAIL PROTECTED]
Google Talk: timmcgeary
Yahoo IM: timmcgeary
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] finding php_mapserver.so

2008-05-01 Thread Kyle Wilcox
If you installed Mapserver from source with the  ---with-php=DIR option 
and everything went ok, the php_mapscript.so file will be located in the 
mapscript/php3/ directory.  Copy this file to your PHP extensions 
directory.   You can find the extensions directory by doing a ]$ php -i 
| grep extension_dir.


You may want to rename php_mapscript.so to something like 
php_mapscript_MAPSERVERVERSION.so.


There a setting in the pmapper config files called msVersion.  You must 
set this to MAPSERVERSION if you change the name of the file.



Tim McGeary wrote:
So our installation of Mapserver, in combination, with PMapper, we are 
getting an error that it cannot find php_mapserver.so.  While I 
configured Mapserver to work with PHP, and it went through fine, I 
cannot find the php_mapserver.so file anywhere on my server.


Was it supposed to be delivered in the mapserver package?  If so, where 
would it have gone?  If not, where can I find it?


Thanks,
Tim



--

 Kyle Wilcox
 NOAA Chesapeake Bay Office
 410 Severn Avenue
 Suite 107A
 Annapolis, MD 21403
 office: (410) 295-3151
 [EMAIL PROTECTED]
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] finding php_mapserver.so

2008-05-01 Thread Tim McGeary

No, it isn't there.  I did a:

   find / -name php_mapscript.so

and it came up with nothing.  So it isn't on the server at all.  Yes, I
did install Mapserver from source.

Here's what is in mapscript/php3

[EMAIL PROTECTED] php3]# pwd
/usr/local/mapserver-5.0.2/mapscript/php3
[EMAIL PROTECTED] php3]# ls -l
total 716
drwxr-xr-x  2 root root   4096 Jan 28 10:56 examples
-rw-r--r--  1 root root   2103 Jul 26  2004 hashtable_i.c
-rw-r--r--  1 root root   4344 Apr 29 15:37 Makefile
-rwxr-xr-x  1 root root   3770 Jun 11  2007 Makefile.in
-rwxr-xr-x  1 root root   2097 Feb 14  2006 Makefile.vc
-rwxr-xr-x  1 root root  34328 Aug 16  2007 mapscript_i.c
-rw-r--r--  1 root root   1049 Feb 14  2006 nmake.opt
-rwxr-xr-x  1 root root 502728 Jan  8 12:04 php_mapscript.c
-rwxr-xr-x  1 root root  16760 Aug 16  2007 php_mapscript.h
-rw-r--r--  1 root root  17046 Jun 15  2007 php_mapscript_util.c
-rw-r--r--  1 root root   7450 Jun 15  2007 php_mapscript_util.h
-rw-r--r--  1 root root  25958 Jun 14  2005 php_proj.c
-rw-r--r--  1 root root   3103 Jul 23  2007 php_regex.c
-rwxr-xr-x  1 root root  68315 Jan  8 12:04 README
-rwxr-xr-x  1 root root   3821 Jun 21  2001 README.WIN32

Thanks,
Tim

Tim McGeary
Senior Systems Specialist
Lehigh University
610-758-4998
[EMAIL PROTECTED]
Google Talk: timmcgeary
Yahoo IM: timmcgeary

Kyle Wilcox wrote:
If you installed Mapserver from source with the  ---with-php=DIR option 
and everything went ok, the php_mapscript.so file will be located in the 
mapscript/php3/ directory.  Copy this file to your PHP extensions 
directory.   You can find the extensions directory by doing a ]$ php -i 
| grep extension_dir.


You may want to rename php_mapscript.so to something like 
php_mapscript_MAPSERVERVERSION.so.


There a setting in the pmapper config files called msVersion.  You must 
set this to MAPSERVERSION if you change the name of the file.



Tim McGeary wrote:
So our installation of Mapserver, in combination, with PMapper, we are 
getting an error that it cannot find php_mapserver.so.  While I 
configured Mapserver to work with PHP, and it went through fine, I 
cannot find the php_mapserver.so file anywhere on my server.


Was it supposed to be delivered in the mapserver package?  If so, 
where would it have gone?  If not, where can I find it?


Thanks,
Tim





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


Re: [mapserver-users] finding php_mapserver.so

2008-05-01 Thread Tim McGeary

I did specify the --with-php=DIR as --with-php=/usr/include/php/

Here's the output of the configure script for the PHP/Mapscript:

configure: checking for PHP/MapScript module options...
checking for g++ -shared ... yes
checking for location of config.h or php_config.h... 
/usr/include/php//main/php_config.h

checking whether we have PHP3 or PHP4... -DPHP4
checking whether we should use PHP's regex... yes
   found regex_extra.h - building PHP MapScript with PHP's bundled regex
   PHP/MapScript module configured.
checking if --enable-runpath requested... no
checking if --with-java-include-os-name specified... no, autodetected linux
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/php3/Makefile
config.status: creating mapscript/java/Makefile
config.status: creating mapscript/csharp/Makefile

MapServer is now configured for

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

 -- Renderer Settings -
  zlib support:
  png support:
  jpeg support:  -DUSE_JPEG
  iconv support: -DUSE_ICONV
  AGG support:
  AGG Freetype support:
  Ming(flash) support:
  PDFLib support:

 -- Data Format Drivers ---
  native tiff support:   -DUSE_TIFF
  PostGIS support:
  Proj.4 support:
  EPPL7 support: -DUSE_EPPL
  ArcSDE support:
  OGR support:
  GDAL support:
  GEOS support:
  Oracle Spatial support:
  FastCGI support:

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

 -- MapScript -
  PHP MapScript: yes


FYI, I'm running PHP 5.1.6

Tim

Tim McGeary
Senior Systems Specialist
Lehigh University
610-758-4998
[EMAIL PROTECTED]
Google Talk: timmcgeary
Yahoo IM: timmcgeary

Kyle Wilcox wrote:

Did you specify the --with-php=DIR?

DIR is obviously the directory of the php version you want to use.

Step through the output from ./configure and see what it says about 
PHP/Mapscript.  I think it is towards the end.



Tim McGeary wrote:

No, it isn't there.  I did a:

   find / -name php_mapscript.so

and it came up with nothing.  So it isn't on the server at all.  Yes, 
I did install Mapserver from source.


Here's what is in mapscript/php3

[EMAIL PROTECTED] php3]# pwd
/usr/local/mapserver-5.0.2/mapscript/php3
[EMAIL PROTECTED] php3]# ls -l
total 716
drwxr-xr-x  2 root root   4096 Jan 28 10:56 examples
-rw-r--r--  1 root root   2103 Jul 26  2004 hashtable_i.c
-rw-r--r--  1 root root   4344 Apr 29 15:37 Makefile
-rwxr-xr-x  1 root root   3770 Jun 11  2007 Makefile.in
-rwxr-xr-x  1 root root   2097 Feb 14  2006 Makefile.vc
-rwxr-xr-x  1 root root  34328 Aug 16  2007 mapscript_i.c
-rw-r--r--  1 root root   1049 Feb 14  2006 nmake.opt
-rwxr-xr-x  1 root root 502728 Jan  8 12:04 php_mapscript.c
-rwxr-xr-x  1 root root  16760 Aug 16  2007 php_mapscript.h
-rw-r--r--  1 root root  17046 Jun 15  2007 php_mapscript_util.c
-rw-r--r--  1 root root   7450 Jun 15  2007 php_mapscript_util.h
-rw-r--r--  1 root root  25958 Jun 14  2005 php_proj.c
-rw-r--r--  1 root root   3103 Jul 23  2007 php_regex.c
-rwxr-xr-x  1 root root  68315 Jan  8 12:04 README
-rwxr-xr-x  1 root root   3821 Jun 21  2001 README.WIN32

Thanks,
Tim

Tim McGeary
Senior Systems Specialist
Lehigh University
610-758-4998
[EMAIL PROTECTED]
Google Talk: timmcgeary
Yahoo IM: timmcgeary

Kyle Wilcox wrote:
If you installed Mapserver from source with the  ---with-php=DIR 
option and everything went ok, the php_mapscript.so file will be 
located in the mapscript/php3/ directory.  Copy this file to your PHP 
extensions directory.   You can find the extensions directory by 
doing a ]$ php -i | grep extension_dir.


You may want to rename php_mapscript.so to something like 
php_mapscript_MAPSERVERVERSION.so.


There a setting in the pmapper config files called msVersion.  You 
must set this to MAPSERVERSION if you change the name of the file.



Tim McGeary wrote:
So our installation of Mapserver, in combination, with PMapper, we 
are getting an error that it cannot find php_mapserver.so.  While I 
configured Mapserver to work with PHP, and it went through fine, I 
cannot find the php_mapserver.so file anywhere on my server.


Was it supposed to be delivered in the mapserver package?  If so, 
where would it have gone?  If not, where can I find it?


Thanks,
Tim






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


[mapserver-users] PostGis not displayed byMapServer

2008-05-01 Thread susanne.kalliany
Hello to everyone,

I have an (already mentioned but - as it seems to me - not yet solved) 
problem concerning PostGis used with MapServer.

My application can show shape files but not postgis-files. There are no
output files (png) generated for this layer.

Below is my mapfile.

I would be very pleased if anyone can give me some usefull hint.

Thanks a lot,

Susanne Kalliany

--
MAP
  NAME global_map
  STATUS ON
  SIZE 1000 700
  EXTENT -100300 260500 -99100 261600
  UNITS meters
  IMAGECOLOR 255 255 255
  IMAGETYPE png24

  WEB
IMAGEPATH C:\ms4w\Apache\htdocs\tmp
IMAGEURL /tmp/
  END

  LAYER
NAME Ortho
GROUP Ortho
DATA C:\ms4w\Apache\htdocs\ortho\alle_e_50cm.tif
projection
AUTO
end
TYPE RASTER
MINSCALE 10
MAXSCALE 10001
STATUS ON
DUMP TRUE
  END

  LAYER
CONNECTIONTYPE postgis
NAME UAbt
GROUP UAbt
CONNECTION user=postgres password=
dbname=tefisdb host=localhost port=5432
 STATUS ON
 TYPE line
 DATA roads_geom from roads
 CLASS
  SIZE 16
  COLOR 0 0 255
 END
DUMP TRUE
  END

END

UAbt with or without
 projection AUTO

-- 
DI. Susanne KALLIANY - [EMAIL PROTECTED]

TeFiS - www.tefis.at
Technische und forstliche Informationssysteme
(Forstliche Software und GIS)

Mobiltelephon: +43 664 1424269
Telephon: +43 316 931746-0, Fax: -15

A-8010 Graz, Schillerstrasse 58
A-1040 Wien, Schaumburgergasse 11/13



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


Re: [mapserver-users] finding php_mapserver.so

2008-05-01 Thread Kyle Wilcox

After you run configure, compile mapserver:

]$  make

You should see something like this at the end:

make[1]: Entering directory `/mapserver/directory/mapscript/php3'
g++ -shared   -o php_mapscript.so php_mapscript_util.o php_mapscript.o 
mapscript_i.o php_regex.o  -L/mapserver/directory -lmapserver -ltiff 
-ljpeg -lfreetype -lpng -lz -lXpm -lX11  -ljpeg -lgd -L/usr/lib -lgd 
-ljpeg -lfreetype -lpng -lz -lXpm -lX11  -lc -lz   -lm -lstdc++

make[1]: Leaving directory `/mapserver/directory/mapscript/php3'

]$ ls mapscript/php3/php_mapscript.so

If it isn't there, go into the mapscript/php3 directory and type:

]$ make clean  make


If that doesn't work it is beyond my knowledge!  I just know what I've 
read in the documentation.



Tim McGeary wrote:

I did specify the --with-php=DIR as --with-php=/usr/include/php/

Here's the output of the configure script for the PHP/Mapscript:

configure: checking for PHP/MapScript module options...
checking for g++ -shared ... yes
checking for location of config.h or php_config.h... 
/usr/include/php//main/php_config.h

checking whether we have PHP3 or PHP4... -DPHP4
checking whether we should use PHP's regex... yes
   found regex_extra.h - building PHP MapScript with PHP's bundled regex
   PHP/MapScript module configured.
checking if --enable-runpath requested... no
checking if --with-java-include-os-name specified... no, autodetected linux
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/php3/Makefile
config.status: creating mapscript/java/Makefile
config.status: creating mapscript/csharp/Makefile

MapServer is now configured for

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

 -- Renderer Settings -
  zlib support:
  png support:
  jpeg support:  -DUSE_JPEG
  iconv support: -DUSE_ICONV
  AGG support:
  AGG Freetype support:
  Ming(flash) support:
  PDFLib support:

 -- Data Format Drivers ---
  native tiff support:   -DUSE_TIFF
  PostGIS support:
  Proj.4 support:
  EPPL7 support: -DUSE_EPPL
  ArcSDE support:
  OGR support:
  GDAL support:
  GEOS support:
  Oracle Spatial support:
  FastCGI support:

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

 -- MapScript -
  PHP MapScript: yes


FYI, I'm running PHP 5.1.6

Tim

Tim McGeary
Senior Systems Specialist
Lehigh University
610-758-4998
[EMAIL PROTECTED]
Google Talk: timmcgeary
Yahoo IM: timmcgeary

Kyle Wilcox wrote:

Did you specify the --with-php=DIR?

DIR is obviously the directory of the php version you want to use.

Step through the output from ./configure and see what it says about 
PHP/Mapscript.  I think it is towards the end.



Tim McGeary wrote:

No, it isn't there.  I did a:

   find / -name php_mapscript.so

and it came up with nothing.  So it isn't on the server at all.  Yes, 
I did install Mapserver from source.


Here's what is in mapscript/php3

[EMAIL PROTECTED] php3]# pwd
/usr/local/mapserver-5.0.2/mapscript/php3
[EMAIL PROTECTED] php3]# ls -l
total 716
drwxr-xr-x  2 root root   4096 Jan 28 10:56 examples
-rw-r--r--  1 root root   2103 Jul 26  2004 hashtable_i.c
-rw-r--r--  1 root root   4344 Apr 29 15:37 Makefile
-rwxr-xr-x  1 root root   3770 Jun 11  2007 Makefile.in
-rwxr-xr-x  1 root root   2097 Feb 14  2006 Makefile.vc
-rwxr-xr-x  1 root root  34328 Aug 16  2007 mapscript_i.c
-rw-r--r--  1 root root   1049 Feb 14  2006 nmake.opt
-rwxr-xr-x  1 root root 502728 Jan  8 12:04 php_mapscript.c
-rwxr-xr-x  1 root root  16760 Aug 16  2007 php_mapscript.h
-rw-r--r--  1 root root  17046 Jun 15  2007 php_mapscript_util.c
-rw-r--r--  1 root root   7450 Jun 15  2007 php_mapscript_util.h
-rw-r--r--  1 root root  25958 Jun 14  2005 php_proj.c
-rw-r--r--  1 root root   3103 Jul 23  2007 php_regex.c
-rwxr-xr-x  1 root root  68315 Jan  8 12:04 README
-rwxr-xr-x  1 root root   3821 Jun 21  2001 README.WIN32

Thanks,
Tim

Tim McGeary
Senior Systems Specialist
Lehigh University
610-758-4998
[EMAIL PROTECTED]
Google Talk: timmcgeary
Yahoo IM: timmcgeary

Kyle Wilcox wrote:
If you installed Mapserver from source with the  ---with-php=DIR 
option and everything went ok, the php_mapscript.so file will be 
located in the mapscript/php3/ directory.  Copy this file to your 
PHP extensions directory.   You can find the extensions directory by 
doing a ]$ php -i | grep extension_dir.


You may want to rename php_mapscript.so to something like 
php_mapscript_MAPSERVERVERSION.so.


There a setting in the pmapper config files called msVersion.  You 
must set this to MAPSERVERSION if you change the name of the file.



Tim McGeary wrote:
So our installation of Mapserver, in combination, with 

RE: [mapserver-users] PostGis not displayed byMapServer

2008-05-01 Thread Burgholzer,Robert
Susanne,
Many things can go wrong with your postgis layer, I have two suggestions
that may get you moving on your way though:

1) Turn on the DEBUG and look at the PostGIS call on your layer.  In
MS5+ this is done by including the following in your MAP definition (top
of mapfile, you choose the logfile name of course):

DEBUG ON
CONFIG MS_ERRORFILE C:\Temp\mapserver.log

And then DEBUG ON in your layer.

2) I notice there is no projection info on your MAP or your LAYER, I
always have that as an explicit declaration. i.e.:

PROJECTION
  init=epsg:4326
END

Entries in both the MAP block and in the LAYER, where the epsg
corresponds to your projections.

HTH,

Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
[EMAIL PROTECTED]
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, May 01, 2008 11:25 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] PostGis not displayed byMapServer

Hello to everyone,

I have an (already mentioned but - as it seems to me - not yet solved) 
problem concerning PostGis used with MapServer.

My application can show shape files but not postgis-files. There are no
output files (png) generated for this layer.

Below is my mapfile.

I would be very pleased if anyone can give me some usefull hint.

Thanks a lot,

Susanne Kalliany

--
MAP
  NAME global_map
  STATUS ON
  SIZE 1000 700
  EXTENT -100300 260500 -99100 261600
  UNITS meters
  IMAGECOLOR 255 255 255
  IMAGETYPE png24

  WEB
IMAGEPATH C:\ms4w\Apache\htdocs\tmp
IMAGEURL /tmp/
  END

  LAYER
NAME Ortho
GROUP Ortho
DATA C:\ms4w\Apache\htdocs\ortho\alle_e_50cm.tif
projection
AUTO
end
TYPE RASTER
MINSCALE 10
MAXSCALE 10001
STATUS ON
DUMP TRUE
  END

  LAYER
CONNECTIONTYPE postgis
NAME UAbt
GROUP UAbt
CONNECTION user=postgres password=
dbname=tefisdb host=localhost port=5432
 STATUS ON
 TYPE line
 DATA roads_geom from roads
 CLASS
  SIZE 16
  COLOR 0 0 255
 END
DUMP TRUE
  END

END

UAbt with or without
 projection AUTO

-- 
DI. Susanne KALLIANY - [EMAIL PROTECTED]

TeFiS - www.tefis.at
Technische und forstliche Informationssysteme
(Forstliche Software und GIS)

Mobiltelephon: +43 664 1424269
Telephon: +43 316 931746-0, Fax: -15

A-8010 Graz, Schillerstrasse 58
A-1040 Wien, Schaumburgergasse 11/13



___
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] finding php_mapserver.so

2008-05-01 Thread Tim McGeary
I did the make again for kicks and sure enough it is there now.  That is 
so odd because I know I did that before.


Thank you for being persistent and patient with me.

Cheers,
Tim

Tim McGeary
Senior Systems Specialist
Lehigh University
610-758-4998
[EMAIL PROTECTED]
Google Talk: timmcgeary
Yahoo IM: timmcgeary

Kyle Wilcox wrote:

After you run configure, compile mapserver:

]$  make

You should see something like this at the end:

make[1]: Entering directory `/mapserver/directory/mapscript/php3'
g++ -shared   -o php_mapscript.so php_mapscript_util.o php_mapscript.o 
mapscript_i.o php_regex.o  -L/mapserver/directory -lmapserver -ltiff 
-ljpeg -lfreetype -lpng -lz -lXpm -lX11  -ljpeg -lgd -L/usr/lib -lgd 
-ljpeg -lfreetype -lpng -lz -lXpm -lX11  -lc -lz   -lm -lstdc++

make[1]: Leaving directory `/mapserver/directory/mapscript/php3'

]$ ls mapscript/php3/php_mapscript.so

If it isn't there, go into the mapscript/php3 directory and type:

]$ make clean  make


If that doesn't work it is beyond my knowledge!  I just know what I've 
read in the documentation.



Tim McGeary wrote:

I did specify the --with-php=DIR as --with-php=/usr/include/php/

Here's the output of the configure script for the PHP/Mapscript:

configure: checking for PHP/MapScript module options...
checking for g++ -shared ... yes
checking for location of config.h or php_config.h... 
/usr/include/php//main/php_config.h

checking whether we have PHP3 or PHP4... -DPHP4
checking whether we should use PHP's regex... yes
   found regex_extra.h - building PHP MapScript with PHP's bundled regex
   PHP/MapScript module configured.
checking if --enable-runpath requested... no
checking if --with-java-include-os-name specified... no, autodetected 
linux

configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/php3/Makefile
config.status: creating mapscript/java/Makefile
config.status: creating mapscript/csharp/Makefile

MapServer is now configured for

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

 -- Renderer Settings -
  zlib support:
  png support:
  jpeg support:  -DUSE_JPEG
  iconv support: -DUSE_ICONV
  AGG support:
  AGG Freetype support:
  Ming(flash) support:
  PDFLib support:

 -- Data Format Drivers ---
  native tiff support:   -DUSE_TIFF
  PostGIS support:
  Proj.4 support:
  EPPL7 support: -DUSE_EPPL
  ArcSDE support:
  OGR support:
  GDAL support:
  GEOS support:
  Oracle Spatial support:
  FastCGI support:

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

 -- MapScript -
  PHP MapScript: yes


FYI, I'm running PHP 5.1.6

Tim

Tim McGeary
Senior Systems Specialist
Lehigh University
610-758-4998
[EMAIL PROTECTED]
Google Talk: timmcgeary
Yahoo IM: timmcgeary

Kyle Wilcox wrote:

Did you specify the --with-php=DIR?

DIR is obviously the directory of the php version you want to use.

Step through the output from ./configure and see what it says about 
PHP/Mapscript.  I think it is towards the end.



Tim McGeary wrote:

No, it isn't there.  I did a:

   find / -name php_mapscript.so

and it came up with nothing.  So it isn't on the server at all.  
Yes, I did install Mapserver from source.


Here's what is in mapscript/php3

[EMAIL PROTECTED] php3]# pwd
/usr/local/mapserver-5.0.2/mapscript/php3
[EMAIL PROTECTED] php3]# ls -l
total 716
drwxr-xr-x  2 root root   4096 Jan 28 10:56 examples
-rw-r--r--  1 root root   2103 Jul 26  2004 hashtable_i.c
-rw-r--r--  1 root root   4344 Apr 29 15:37 Makefile
-rwxr-xr-x  1 root root   3770 Jun 11  2007 Makefile.in
-rwxr-xr-x  1 root root   2097 Feb 14  2006 Makefile.vc
-rwxr-xr-x  1 root root  34328 Aug 16  2007 mapscript_i.c
-rw-r--r--  1 root root   1049 Feb 14  2006 nmake.opt
-rwxr-xr-x  1 root root 502728 Jan  8 12:04 php_mapscript.c
-rwxr-xr-x  1 root root  16760 Aug 16  2007 php_mapscript.h
-rw-r--r--  1 root root  17046 Jun 15  2007 php_mapscript_util.c
-rw-r--r--  1 root root   7450 Jun 15  2007 php_mapscript_util.h
-rw-r--r--  1 root root  25958 Jun 14  2005 php_proj.c
-rw-r--r--  1 root root   3103 Jul 23  2007 php_regex.c
-rwxr-xr-x  1 root root  68315 Jan  8 12:04 README
-rwxr-xr-x  1 root root   3821 Jun 21  2001 README.WIN32

Thanks,
Tim

Tim McGeary
Senior Systems Specialist
Lehigh University
610-758-4998
[EMAIL PROTECTED]
Google Talk: timmcgeary
Yahoo IM: timmcgeary

Kyle Wilcox wrote:
If you installed Mapserver from source with the  ---with-php=DIR 
option and everything went ok, the php_mapscript.so file will be 
located in the mapscript/php3/ directory.  Copy this file to your 
PHP extensions directory.   You can find the extensions directory 
by doing a ]$ 

RE: [mapserver-users] PostGis not displayed byMapServer

2008-05-01 Thread Fawcett, David
For testing the layer, I would actually suggest stripping any projection
information out of the map file.  If all of the layers in the map file
are in the same projection, no projection definitions are needed.  

I would also strip it down to one layer and set the status of that layer
to DEFAULT.  

You would also want to make sure that your data falls within the
bounding box described in your extent line.  

David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Burgholzer,Robert
Sent: Thursday, May 01, 2008 11:57 AM
To: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] PostGis not displayed byMapServer


Susanne,
Many things can go wrong with your postgis layer, I have two suggestions
that may get you moving on your way though:

1) Turn on the DEBUG and look at the PostGIS call on your layer.  In
MS5+ this is done by including the following in your MAP definition (top
of mapfile, you choose the logfile name of course):

DEBUG ON
CONFIG MS_ERRORFILE C:\Temp\mapserver.log

And then DEBUG ON in your layer.

2) I notice there is no projection info on your MAP or your LAYER, I
always have that as an explicit declaration. i.e.:

PROJECTION
  init=epsg:4326
END

Entries in both the MAP block and in the LAYER, where the epsg
corresponds to your projections.

HTH,

Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
[EMAIL PROTECTED] 804-698-4405 Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, May 01, 2008 11:25 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] PostGis not displayed byMapServer

Hello to everyone,

I have an (already mentioned but - as it seems to me - not yet solved) 
problem concerning PostGis used with MapServer.

My application can show shape files but not postgis-files. There are no
output files (png) generated for this layer.

Below is my mapfile.

I would be very pleased if anyone can give me some usefull hint.

Thanks a lot,

Susanne Kalliany

--
MAP
  NAME global_map
  STATUS ON
  SIZE 1000 700
  EXTENT -100300 260500 -99100 261600
  UNITS meters
  IMAGECOLOR 255 255 255
  IMAGETYPE png24

  WEB
IMAGEPATH C:\ms4w\Apache\htdocs\tmp
IMAGEURL /tmp/
  END

  LAYER
NAME Ortho
GROUP Ortho
DATA C:\ms4w\Apache\htdocs\ortho\alle_e_50cm.tif
projection
AUTO
end
TYPE RASTER
MINSCALE 10
MAXSCALE 10001
STATUS ON
DUMP TRUE
  END

  LAYER
CONNECTIONTYPE postgis
NAME UAbt
GROUP UAbt
CONNECTION user=postgres password=
dbname=tefisdb host=localhost port=5432
 STATUS ON
 TYPE line
 DATA roads_geom from roads
 CLASS
  SIZE 16
  COLOR 0 0 255
 END
DUMP TRUE
  END

END

UAbt with or without
 projection AUTO

-- 
DI. Susanne KALLIANY - [EMAIL PROTECTED]

TeFiS - www.tefis.at
Technische und forstliche Informationssysteme
(Forstliche Software und GIS)

Mobiltelephon: +43 664 1424269
Telephon: +43 316 931746-0, Fax: -15

A-8010 Graz, Schillerstrasse 58
A-1040 Wien, Schaumburgergasse 11/13



___
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] PostGis not displayed byMapServer

2008-05-01 Thread Jeff McKenna

My thoughts:

1) MS4W is preconfigured for the following imagepath and imageurl  
settings, in case you are not aware:


  IMAGEPATH /ms4w/tmp/ms_tmp/
  IMAGEURL /ms_tmp/

2) I assume that the postgis layer is in the same projection as the  
local layer?
	- test this by setting the extents to the postgis layer and removing  
the local layer from the mapfile


3) use ogrinfo to verify the extents of the postgis layer

e.g.   ogrinfo -ro PG:host=127.0.0.1 user=postgres dbname=gmap  
yourlayername --summary


4) make sure you specified an srid when you loaded the data into postgis

   e.g.  shp2pgsql -s 42304 province.shp province  province.sql

5) here is my my working tiny mapfile with a postgis layer:

#
# Start of map file
#
#
NAME postgis
STATUS ON
SIZE 400 300
SYMBOLSET ../etc/symbols.txt
## ESPG:42304 extents:
EXTENT -220 -712631 3072800 384
UNITS METERS
SHAPEPATH ../data
IMAGECOLOR 255 255 255
FONTSET ../etc/fonts.txt


#
# Start of web interface definition
#
WEB
  IMAGEPATH /ms4w/tmp/ms_tmp/
  IMAGEURL /ms_tmp/
END

PROJECTION
  init=epsg:42304
END


#
# Start of layer definitions
#


LAYER
  NAME provinces
  TYPE POLYGON
  STATUS DEFAULT
  CONNECTIONTYPE postgis
  CONNECTION host=127.0.0.1 user=postgres port=5432 dbname=gmap
  DATA the_geom FROM province USING unique gid using srid=42304
  PROJECTION
init=epsg:42304
  END
  CLASS
NAME Land
STYLE
  COLOR 240 240 240
  OUTLINECOLOR 199 199 199
END
  END
END # layer



END # Map File

6) test your mapfile with the shp2img utility (http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img 
)


  e.g. shp2img -m gmap75_postgis.map -o test.png -map_debug 3


--jeff






On 1-May-08, at 11:24 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] 
 wrote:



Hello to everyone,

I have an (already mentioned but - as it seems to me - not yet solved)
problem concerning PostGis used with MapServer.

My application can show shape files but not postgis-files. There are  
no

output files (png) generated for this layer.

Below is my mapfile.

I would be very pleased if anyone can give me some usefull hint.

Thanks a lot,

Susanne Kalliany

--
MAP
 NAME global_map
 STATUS ON
 SIZE 1000 700
 EXTENT -100300 260500 -99100 261600
 UNITS meters
 IMAGECOLOR 255 255 255
 IMAGETYPE png24

 WEB
   IMAGEPATH C:\ms4w\Apache\htdocs\tmp
   IMAGEURL /tmp/
 END

 LAYER
   NAME Ortho
   GROUP Ortho
   DATA C:\ms4w\Apache\htdocs\ortho\alle_e_50cm.tif
   projection
   AUTO
   end
   TYPE RASTER
   MINSCALE 10
   MAXSCALE 10001
   STATUS ON
   DUMP TRUE
 END

 LAYER
   CONNECTIONTYPE postgis
   NAME UAbt
   GROUP UAbt
   CONNECTION user=postgres password=
dbname=tefisdb host=localhost port=5432
STATUS ON
TYPE line
DATA roads_geom from roads
CLASS
 SIZE 16
 COLOR 0 0 255
END
   DUMP TRUE
 END

END

UAbt with or without
projection AUTO

--
DI. Susanne KALLIANY - [EMAIL PROTECTED]

TeFiS - www.tefis.at
Technische und forstliche Informationssysteme
(Forstliche Software und GIS)

Mobiltelephon: +43 664 1424269
Telephon: +43 316 931746-0, Fax: -15

A-8010 Graz, Schillerstrasse 58
A-1040 Wien, Schaumburgergasse 11/13



___
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] finding php_mapserver.so

2008-05-01 Thread Bruce, Bob (CON)
Tim:
I believe that the problem is that you specified a trailing /
character in your name. Try using --with-php=/usr/include/php , I see
that the output from your configure has double / characters and that is
probably why you are not getting it to build the mapscript module.

Here are the messages that I got when I did the configure with the
option shown above:

checking for location of config.h or php_config.h...
/usr/include/php/main/php_config.h
checking whether we have PHP3 or PHP4... -DPHP4
checking whether we should use PHP's regex... yes
found regex_extra.h - building PHP MapScript with PHP's bundled
regex
PHP/MapScript module configured

And the php_mapscript.so file was built in the mapscript/php3 directory.

Bob Bruce

-Original Message-
From: Tim McGeary [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 01 May, 2008 10:09 AM
To: Kyle Wilcox; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] finding php_mapserver.so

I did specify the --with-php=DIR as --with-php=/usr/include/php/

Here's the output of the configure script for the PHP/Mapscript:

configure: checking for PHP/MapScript module options...
checking for g++ -shared ... yes
checking for location of config.h or php_config.h... 
/usr/include/php//main/php_config.h
checking whether we have PHP3 or PHP4... -DPHP4 checking whether we
should use PHP's regex... yes
found regex_extra.h - building PHP MapScript with PHP's bundled
regex
PHP/MapScript module configured.
checking if --enable-runpath requested... no checking if
--with-java-include-os-name specified... no, autodetected linux
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mapscript/php3/Makefile
config.status: creating mapscript/java/Makefile
config.status: creating mapscript/csharp/Makefile

MapServer is now configured for

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

  -- Renderer Settings -
   zlib support:
   png support:
   jpeg support:  -DUSE_JPEG
   iconv support: -DUSE_ICONV
   AGG support:
   AGG Freetype support:
   Ming(flash) support:
   PDFLib support:

  -- Data Format Drivers ---
   native tiff support:   -DUSE_TIFF
   PostGIS support:
   Proj.4 support:
   EPPL7 support: -DUSE_EPPL
   ArcSDE support:
   OGR support:
   GDAL support:
   GEOS support:
   Oracle Spatial support:
   FastCGI support:

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

  -- MapScript -
   PHP MapScript: yes


FYI, I'm running PHP 5.1.6

Tim

Tim McGeary
Senior Systems Specialist
Lehigh University
610-758-4998
[EMAIL PROTECTED]
Google Talk: timmcgeary
Yahoo IM: timmcgeary

Kyle Wilcox wrote:
 Did you specify the --with-php=DIR?
 
 DIR is obviously the directory of the php version you want to use.
 
 Step through the output from ./configure and see what it says about 
 PHP/Mapscript.  I think it is towards the end.
 
 
 Tim McGeary wrote:
 No, it isn't there.  I did a:

find / -name php_mapscript.so

 and it came up with nothing.  So it isn't on the server at all.  Yes,

 I did install Mapserver from source.

 Here's what is in mapscript/php3

 [EMAIL PROTECTED] php3]# pwd
 /usr/local/mapserver-5.0.2/mapscript/php3
 [EMAIL PROTECTED] php3]# ls -l
 total 716
 drwxr-xr-x  2 root root   4096 Jan 28 10:56 examples
 -rw-r--r--  1 root root   2103 Jul 26  2004 hashtable_i.c
 -rw-r--r--  1 root root   4344 Apr 29 15:37 Makefile
 -rwxr-xr-x  1 root root   3770 Jun 11  2007 Makefile.in
 -rwxr-xr-x  1 root root   2097 Feb 14  2006 Makefile.vc
 -rwxr-xr-x  1 root root  34328 Aug 16  2007 mapscript_i.c
 -rw-r--r--  1 root root   1049 Feb 14  2006 nmake.opt
 -rwxr-xr-x  1 root root 502728 Jan  8 12:04 php_mapscript.c 
 -rwxr-xr-x  1 root root  16760 Aug 16  2007 php_mapscript.h
 -rw-r--r--  1 root root  17046 Jun 15  2007 php_mapscript_util.c
 -rw-r--r--  1 root root   7450 Jun 15  2007 php_mapscript_util.h
 -rw-r--r--  1 root root  25958 Jun 14  2005 php_proj.c
 -rw-r--r--  1 root root   3103 Jul 23  2007 php_regex.c
 -rwxr-xr-x  1 root root  68315 Jan  8 12:04 README
 -rwxr-xr-x  1 root root   3821 Jun 21  2001 README.WIN32

 Thanks,
 Tim

 Tim McGeary
 Senior Systems Specialist
 Lehigh University
 610-758-4998
 [EMAIL PROTECTED]
 Google Talk: timmcgeary
 Yahoo IM: timmcgeary

 Kyle Wilcox wrote:
 If you installed Mapserver from source with the  ---with-php=DIR 
 option and everything went ok, the php_mapscript.so file will be 
 located in the mapscript/php3/ directory.  Copy this file to your
PHP
 extensions directory.   You can find the extensions directory by 
 doing a ]$ php -i | grep extension_dir.

 You 

AW: [mapserver-users] PostGis not displayed byMapServer

2008-05-01 Thread DI. Susanne Kallliany
Dear Robert, 
(and also hello to all others who helped with their advice !)

It is a shame that I did not know how to activate the debugging mode.
(And that feature also will assist me a lot with my next MapServer
programming and configuration activities ! )

With DEBUG ON, CONFIG MS_ERRORFILE C:\Temp\mapserver.log,
I got this message:

 Postgresql reports the error as 'ERROR:  column oid does not exist
 LINE 1: ...inary(force_collection(force_2d(the_geom)),'NDR'),OID::text ...

Thus, after creating a new table with oids, now everything is working !!

Thanks a lot to all of you, who did reply immediatley on my question.
It is great to get support by such a helpful community;
I appreciate it a lot !

Many dear thanks and greetings from he city of Graz in Austria 
(at the heart of Europe)

Susanne

2008-05-01, 19:27 UTC

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
Burgholzer,Robert
Gesendet: Donnerstag, 01. Mai 2008 18:57
An: mapserver-users@lists.osgeo.org
Betreff: RE: [mapserver-users] PostGis not displayed byMapServer

Susanne,
Many things can go wrong with your postgis layer, I have two suggestions
that may get you moving on your way though:

1) Turn on the DEBUG and look at the PostGIS call on your layer.  In
MS5+ this is done by including the following in your MAP definition (top
of mapfile, you choose the logfile name of course):

DEBUG ON
CONFIG MS_ERRORFILE C:\Temp\mapserver.log

And then DEBUG ON in your layer.

2) I notice there is no projection info on your MAP or your LAYER, I
always have that as an explicit declaration. i.e.:

PROJECTION
  init=epsg:4326
END

Entries in both the MAP block and in the LAYER, where the epsg
corresponds to your projections.

HTH,

Robert W. Burgholzer
Surface Water Modeler
Office of Water Supply and Planning
Virginia Department of Environmental Quality
[EMAIL PROTECTED]
804-698-4405
Open Source Modeling Tools:
http://sourceforge.net/projects/npsource/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, May 01, 2008 11:25 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] PostGis not displayed byMapServer

Hello to everyone,

I have an (already mentioned but - as it seems to me - not yet solved) 
problem concerning PostGis used with MapServer.

My application can show shape files but not postgis-files. There are no
output files (png) generated for this layer.

Below is my mapfile.

I would be very pleased if anyone can give me some usefull hint.

Thanks a lot,

Susanne Kalliany

--
MAP
  NAME global_map
  STATUS ON
  SIZE 1000 700
  EXTENT -100300 260500 -99100 261600
  UNITS meters
  IMAGECOLOR 255 255 255
  IMAGETYPE png24

  WEB
IMAGEPATH C:\ms4w\Apache\htdocs\tmp
IMAGEURL /tmp/
  END

  LAYER
NAME Ortho
GROUP Ortho
DATA C:\ms4w\Apache\htdocs\ortho\alle_e_50cm.tif
projection
AUTO
end
TYPE RASTER
MINSCALE 10
MAXSCALE 10001
STATUS ON
DUMP TRUE
  END

  LAYER
CONNECTIONTYPE postgis
NAME UAbt
GROUP UAbt
CONNECTION user=postgres password=
dbname=tefisdb host=localhost port=5432
 STATUS ON
 TYPE line
 DATA roads_geom from roads
 CLASS
  SIZE 16
  COLOR 0 0 255
 END
DUMP TRUE
  END

END

UAbt with or without
 projection AUTO

-- 
DI. Susanne KALLIANY - [EMAIL PROTECTED]

TeFiS - www.tefis.at
Technische und forstliche Informationssysteme
(Forstliche Software und GIS)

Mobiltelephon: +43 664 1424269
Telephon: +43 316 931746-0, Fax: -15

A-8010 Graz, Schillerstrasse 58
A-1040 Wien, Schaumburgergasse 11/13



___
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


[mapserver-users] PHP MapScript and Inheritance

2008-05-01 Thread Christopher Condit
I'm curious if anyone has successful inherited from the php classes
exposed by PHP MapScript. I'd to subclass both mapObj and layerObj, but
can't quite figure out how.

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