[mapserver-users] [Fwd: Re: [Cartoweb-users] From Windows XP to CentOS]

2008-04-28 Thread Fabio D'Ovidio

Hi list!
I am problems on installing php\mapscript and proj on CentOS5 (in order 
to use cartoweb3)..

Could you help me? (See the attached e-mail)

Thanks

--
Ing. Fabio D'Ovidio

INOVA Open Solutions s.r.l.
Web : http://www.inovaos.it
Tel.: 081 197 57 600
mail: [EMAIL PROTECTED]

---BeginMessage---

Hi Oliver!
I did as following:

# PROJ 4.5.0 http://www.remotesensing.org/proj
#---
mkdir /usr/local/src/proj
cd /usr/local/src/proj
wget ftp://ftp.remotesensing.org/proj/proj-4.5.0.tar.gz
tar zxvf proj-4.5.0.tar.gz
chown -R root.root proj-4.5.0
find proj-4.5.0 -type d | xargs chmod 755
cd proj-4.5.0
./configure
make
make install
ldconfig


# GEOS http://geos.refractions.net
#---
mkdir /usr/local/src/geos
cd /usr/local/src/geos
wget http://geos.refractions.net/geos-2.2.3.tar.bz2
tar jxvf geos-2.2.3.tar.bz2
chown -R root.root geos-2.2.3
find geos-2.2.3 -type d | xargs chmod 755
cd geos-2.2.3
./configure
make
make install
ldconfig


# POSTGIS 1.2.0 http://www.postgis.org
#---
mkdir /usr/local/src/postgis
cd /usr/local/src/postgis
wget http://www.postgis.org/download/postgis-1.2.0.tar.gz
tar zxvf postgis-1.2.0.tar.gz
chown -R root.root postgis-1.2.0
cd postgis-1.2.0
./configure
make
make install
ldconfig

# su - postgres
# createdb prova
# createlang plpgsql prova
# psql -f /usr/share/lwpostgis.sql -d prova
# psql -f /usr/share/spatial_ref_sys.sql -d prova


# GDAL 1.3.2 http://www.remotesensing.org/gdal/
#---
mkdir /usr/local/src/gdal
cd /usr/local/src/gdal
wget http://www.gdal.org/dl/gdal-1.3.2.tar.gz
tar zxvf gdal-1.3.2.tar.gz
chown -R root.root gdal-1.3.2
cd gdal-1.3.2
./configure
make
make install
ldconfig


# MapServer 4.10.0 http://mapserver.gis.umn.edu/
#---
mkdir /usr/local/src/mapserver
cd /usr/local/src/mapserver
wget http://cvs.gis.umn.edu/dist/mapserver-4.10.0.tar.gz
tar zxvf mapserver-4.10.0.tar.gz
chown -R root.root mapserver-4.10.0
cd mapserver-4.10.0
./configure --with-wfs --with-wcs --with-wmsclient --with-wfsclient \
   --with-proj --with-ogr --with-gdal --with-postgis --with-php=/usr/include/php
make
install -s mapserv /var/www/cgi-bin
install -s mapscript/php3/php_mapscript.so /usr/lib/php/modules
ln -s php_mapscript.so /usr/lib/php/modules/php_mapscript_4.10.0.so
install -s legend /usr/local/bin
install -s scalebar   /usr/local/bin
install -s shp2img/usr/local/bin
install -s shptree/usr/local/bin
install -s shptreetst /usr/local/bin
install -s shptreevis /usr/local/bin
install -s sortshp/usr/local/bin
install -s tile4ms/usr/local/bin


Extensions in my php.ini are:

extension=php_mapscript.so
extension=pgsql.so
extension=mbstring.so
extension=pdo.so
extension=xmlrpc.so
extension=gd.so
extension=xsl.so
extension=pdo_sqlite.so
extension=libcurl.so
extension=soap.so

Oliver Christen ha scritto:
it seems to be a projection error, so I presume the proj library is 
not installed correctly


regards
Oliver



Hi list!
I developed a cartoweb plugin for an application of mine on Windows 
Xp and now I'm migrating the project on Linux CentOS5.

I have two problem but I don't know why:

1. I installed apache, php, php\mapscript, mapserver and I have no 
error displayed in info.php that check for php_mapscript.so module

2. I loaded extensions e.g. php_mapscript.so in php.ini
3. I configured PEAR extension for php in order to connect DBs


The errors are:

1. Call to undefined function ms_newprojectionobj() (but 
php_mapscript module is loaded)

2. Unable to recenter on feature ids

What's worng?

Fabio

___
Cartoweb-users mailing list
[EMAIL PROTECTED]
http://lists.maptools.org/mailman/listinfo/cartoweb-users






--
Ing. Fabio D'Ovidio

INOVA Open Solutions s.r.l.
Web : http://www.inovaos.it
Tel.: 081 197 57 600
mail: [EMAIL PROTECTED]


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


Re: [mapserver-users] multiple tiffs in one layer

2008-04-28 Thread Kyle Wilcox
Each geotiff will need to be a layer.  You can use the GROUP tag inside 
each of the layers to display them together.


Attila Berényi wrote:

Dear List,

I'd like to know that is it possible to display separate geotiffs on one 
layer?
Now I'm able to include more than one DATA line in the LAYER 
specification, but only the last one is displayed


Any help would be very much appreciated,

Thanks,

Attila




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


--

 Kyle Wilcox
 NOAA Chesapeake Bay Office
 410 Severn Avenue
 Suite 107A
 Annapolis, MD 21403
 office: (410) 295-3151
 [EMAIL PROTECTED]

 A: It takes over twice as long to understand the conversation.
 Q: What's wrong with top-posting?
 A: Top-posting.
 Q: What's the worst thing about plain text email discussions?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Large scale PDF output on Windows

2008-04-28 Thread Yewondwossen Assefa

Brent,



  If there's enough interest, I'd be willing to contribute the code 
changes he made if there's a Mapserver developer/committer willing to 
review, upgrade them to v5,and test (and it may require an RFC as there 
was a map file addition to OUTPUTFORMAT/FORMATOPTIONS, I think).




I would be willing to review/apply patches on this. I have created a bug 
on this http://trac.osgeo.org/mapserver/ticket/2596.


Best Regards


Brent Fraser

Kristian Thy wrote:

On Thu, Apr 24, Flavio Hendry wrote:

Discussed the issue a while ago with Frank Warmerdam. He had less
problems on a LINUX System running on a 64bit machine (he supposes it
could go as high as 25'000 pixels). On Windows 32 it bangs at around
10'000 to 14'000 pixels depending on content. Did not try on Windows 64.


Thanks to advice from the list, I now have huge orthophoto pdfs. But now
I have another problem - using png output, I get nice 24 bit images, but
my pdf output is dithered 8 bit. The relevant part of my map file:

IMAGETYPE png24
OUTPUTFORMAT
NAME png
MIMETYPE image/png
DRIVER AGG/PNG
EXTENSION png
IMAGEMODE RGB
TRANSPARENT FALSE
END #outputformat
OUTPUTFORMAT
NAME pdf
MIMETYPE application/x-pdf
DRIVER pdf
EXTENSION pdf
IMAGEMODE RGB
FORMATOPTION OUTPUT_TYPE=RASTER
TRANSPARENT FALSE
END #outputformat

Removing the FORMATOPTION makes no difference.

http://quovadis.dk/dl/ortho.png
http://quovadis.dk/dl/ortho.pdf

The commandline incantation used to produce the images:

$ shp2img -m ddo.map -o ortho.pdf -s 1654 1169 -l DDO -e 659000 
6058000 663200 6060970 -i pdf


Does the pdf driver support 24 bit at all? Can I do 24 bit pngs and
assemble the pdfs by hand?

\\kristian

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





--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925


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


Re: [mapserver-users] multiple tiffs in one layer

2008-04-28 Thread Kristian Thy
On Mon, Apr 28, Kyle Wilcox wrote:
 Each geotiff will need to be a layer.  You can use the GROUP tag inside 
 each of the layers to display them together.
 
 Attila Berényi wrote:
 Dear List,
 
 I'd like to know that is it possible to display separate geotiffs on one 
 layer?
 Now I'm able to include more than one DATA line in the LAYER 
 specification, but only the last one is displayed
 
 Any help would be very much appreciated,
 
 Thanks,
 
 Attila
 -- 
 
  Kyle Wilcox
  NOAA Chesapeake Bay Office
  410 Severn Avenue
  Suite 107A
  Annapolis, MD 21403
  office: (410) 295-3151
  [EMAIL PROTECTED]
 
  A: It takes over twice as long to understand the conversation.
  Q: What's wrong with top-posting?
  A: Top-posting.
  Q: What's the worst thing about plain text email discussions?

I find it rather amusing that you not only top-post wrong information,
but even have a signature saying the worst thing about email discussions
is top-posting.

As that other guy said, there's no need to make a layer per tiff. Just
index them and use TILEINDEX.

\\kristian
-- 
... et nemo ex vobis interrogat me: »Quo vadis?«
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Open source metadata tools/alternatives

2008-04-28 Thread Diego Guidi
  I would like to know if there are open-source  tools available which
  allow me to write/keep
  metadata in accordance to the standards that are out there.

AFAIK the available opensource software that manages metadata are
GeoNetwork (http://geonetwork-opensource.org/) and CATMDEdit
(http://catmdedit.sourceforge.net/), but I'm unable to see how to
integrate with mapserver.
A brand new software that is currentry in beta stage is Metabeta
(http://servizi.regione.toscana.it/sgr-iso19115/), but at this time is
related to italian community.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Open source metadata tools/alternatives

2008-04-28 Thread Oliver Lichte
Hi Steven,

this is what I found today.
http://geonetwork-opensource.org/

Perhaps, what you are looking for?

Regards,
Oliver

Am Montag 28 April 2008 19:24 schrieb Steven De Vriendt:
 Hi,

 I would like to turn this question to the Mapserver community as it is
 a community which
 will be involved in writing/keeping metadata. I would like to know if
 there are tools
 available to maintain metadata. I know Mapserver is a means to
 serve/retrieve spatial data layers, but I woudl like to know how do you
 keep guys keep metadata.
 Serving data is one thing, but keeping track of the metadata (source,
 quality, accuracy,...)
 is another.
 I would like to know if there are open-source  tools available which
 allow me to write/keep
 metadata in accordance to the standards that are out there.

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

-- 
Diplom-Informatiker  Carl-von-Ossietzky-Straße 9-11
AG Integrative Modellierung  D-26129 Oldenburg
Institut für Chemie und Biologie des Meeres  Tel.: +49-441-798-3622 Fax: -3404
Carl-v.-Ossietzky Universität Oldenburg  www.icbm.de/impulse
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Open source metadata tools/alternatives

2008-04-28 Thread Kralidis,Tom [Burlington]

You can use these tools to manage your metadata, and, at least in GeoNetwork's 
case, you can publish them to a CS-W catalog.

To integrate with MapServer, one idea is to set the 
LAYER/METADATA/ows_metadataurl_href value to that of a URL which will return 
the given metadata record (in FGDC, TC211, etc.).

..Tom



-Original Message-
From: [EMAIL PROTECTED] on behalf of Diego Guidi
Sent: Mon 28-Apr-08 13:40
To: Steven De Vriendt
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Open source metadata tools/alternatives
 
  I would like to know if there are open-source  tools available which
  allow me to write/keep
  metadata in accordance to the standards that are out there.

AFAIK the available opensource software that manages metadata are
GeoNetwork (http://geonetwork-opensource.org/) and CATMDEdit
(http://catmdedit.sourceforge.net/), but I'm unable to see how to
integrate with mapserver.
A brand new software that is currentry in beta stage is Metabeta
(http://servizi.regione.toscana.it/sgr-iso19115/), but at this time is
related to italian community.
___
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] Mapserv problems on Fedora

2008-04-28 Thread Stephen Woodbridge

Philippe,

My regex crash was because of a bug in mapserver
http://trac.osgeo.org/mapserver/ticket/2577#comment:8

which has been fixed now in svn. It was specifically related to a crash 
cause when AGG FORMATOPTION PALETTE=file could not open file.


Hope this helps,
  -Steve W

Philippe Kruschitz wrote:



You --must-- compile and install the last version of
gd, the gd version on RHEL 5 and 5.1 is broken, also
on centos and fedora core 8.

Be sure to replace the old gd version on /usr/lib,
also check the simlinks on /usr/lib, then run ldconfig
as root.

If you use mapserver with phpmapscript install php-gd
with yum.

Hope this helps.

Saludos.

--
Nahum Castro
Leon, Guanajuato, Mexico
http://www.leon-linux.com
e-mail: pedro1_72 [en] yahoo [punto] com



I did pretty much everything you said before compiling mapserver (i didn't
have mapscript, though).

I tried to to change the malloc value, as frank warmerdam suggested, with
exactly the same result as stephen woodbridge: the crash is fixed, but the
regular expression systematically fails.

Anyone has an idea? Did Stephen fixed it?

Regards,

Phil



Quote S. Woodbridge:

Hi Frank,

Adding more to to the malloc fixed the crash, but the regex is failing
:( and should be ok:

Breakpoint 1, msEvalRegex (e=0x4e9873 \\.map$,
 s=0x7232a0 /u/data/maps/google-agg.map) at mapfile.c:79

...

89if(ms_regexec(re, s, 0, NULL, 0) != 0) { /* no match */
(gdb) p ms_regexec(re, s, 0, 0, 0)
$1 = 1
(gdb) c
Continuing.
Content-type: text/html

HTML
HEADTITLEMapServer Message/TITLE/HEAD
!-- MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=EPPL7
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --
BODY BGCOLOR=#FF
msEvalRegex(): Regular expression error. String
(/u/data/maps/google-agg.map) failed expression test.
/BODY/HTML
Program exited normally.


This should NOT be happening. Arrrgh!
Anyone else using fc8 on a x86_84 box?

-Steve



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