Re: [mapserver-users] Mapserv problems on Fedora

2008-04-14 Thread Stephen 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


MapServer Message



msEvalRegex(): Regular expression error. String 
(/u/data/maps/google-agg.map) failed expression test.


Program exited normally.


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

-Steve


Frank Warmerdam wrote:

Stephen Woodbridge wrote:

==32351== Invalid write of size 1
==32351==at 0x32FAA03144: rx_bzero (in /usr/lib64/librx.so.0.0.0)
==32351==by 0x32FAA08786: regncomp (in /usr/lib64/librx.so.0.0.0)
==32351==by 0x421BF2: msEvalRegex (mapfile.c:84)
==32351==by 0x42500E: msLoadMap (mapfile.c:4529)
==32351==by 0x40BD6B: loadMap (mapserv.c:201)
==32351==by 0x40D8FD: main (mapserv.c:1132)
==32351==  Address 0x57A8820 is 0 bytes after a block of size 64 alloc'd
==32351==at 0x4A059F6: malloc (vg_replace_malloc.c:149)
==32351==by 0x4A9E44: ms_regcomp (mapregex.c:58)
==32351==by 0x421BF2: msEvalRegex (mapfile.c:84)
==32351==by 0x42500E: msLoadMap (mapfile.c:4529)
==32351==by 0x40BD6B: loadMap (mapserv.c:201)
==32351==by 0x40D8FD: main (mapserv.c:1132)


Steve,

Ugly! I don't know why it would be needed, but you could try changing this:

  regex_t* sys_regex = (regex_t*) malloc(sizeof(regex_t));

to:

  regex_t* sys_regex = (regex_t*) malloc(sizeof(regex_t)+1000);

in mapregex.c.

I suspect there is a mixup between the regex include files being
used and the library being used or possibly structures aren't being
sized properly due to some sort of type size issue.

Interestingly in my mapfile.c from the 5.0 branch line 84 of
mapfile.c is:

  if(ms_regcomp(&re, e, MS_REG_EXTENDED|MS_REG_NOSUB) != 0) {

rather than calling regncomp() directly.  Perhaps there has been
a fix since 5.0.2?

Best regards,


___
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-14 Thread Frank Warmerdam

Stephen Woodbridge wrote:

==32351== Invalid write of size 1
==32351==at 0x32FAA03144: rx_bzero (in /usr/lib64/librx.so.0.0.0)
==32351==by 0x32FAA08786: regncomp (in /usr/lib64/librx.so.0.0.0)
==32351==by 0x421BF2: msEvalRegex (mapfile.c:84)
==32351==by 0x42500E: msLoadMap (mapfile.c:4529)
==32351==by 0x40BD6B: loadMap (mapserv.c:201)
==32351==by 0x40D8FD: main (mapserv.c:1132)
==32351==  Address 0x57A8820 is 0 bytes after a block of size 64 alloc'd
==32351==at 0x4A059F6: malloc (vg_replace_malloc.c:149)
==32351==by 0x4A9E44: ms_regcomp (mapregex.c:58)
==32351==by 0x421BF2: msEvalRegex (mapfile.c:84)
==32351==by 0x42500E: msLoadMap (mapfile.c:4529)
==32351==by 0x40BD6B: loadMap (mapserv.c:201)
==32351==by 0x40D8FD: main (mapserv.c:1132)


Steve,

Ugly! I don't know why it would be needed, but you could try changing this:

  regex_t* sys_regex = (regex_t*) malloc(sizeof(regex_t));

to:

  regex_t* sys_regex = (regex_t*) malloc(sizeof(regex_t)+1000);

in mapregex.c.

I suspect there is a mixup between the regex include files being
used and the library being used or possibly structures aren't being
sized properly due to some sort of type size issue.

Interestingly in my mapfile.c from the 5.0 branch line 84 of
mapfile.c is:

  if(ms_regcomp(&re, e, MS_REG_EXTENDED|MS_REG_NOSUB) != 0) {

rather than calling regncomp() directly.  Perhaps there has been
a fix since 5.0.2?

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| President OSGeo, http://osgeo.org

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


[mapserver-users] Mapserv problems on Fedora

2008-04-14 Thread Stephen Woodbridge

Hi all,

I'm having a problem on a fedora box with mapserver. Does anyone have an 
idea what this is all about or how to run down the issue? This same 
setup works fine on my old Debian Sarge box.


Thanks,
  -Steve

Linux maps.localhost.com 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:18:33 EDT 
2007 x86_64 x86_64 x86_64 GNU/Linux


Configured like this:

./configure \
  --enable-ignore-missing-data \
  --enable-debug \
  --with-httpd=/usr/sbin/httpd \
  --with-proj=/usr \
  --with-agg=/home/woodbri/work/agg-2.4 \
  --with-gd \
  --with-gdal \
  --with-freetype \
  --with-postgis \
  --without-tiff \
  --with-wmsclient \
  --with-ogr \
  --with-wfs \

./mapserv -v
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



When I run it I get:

[EMAIL PROTECTED] mapserver-5.0.2]$ gdb ./mapserv
GNU gdb Red Hat Linux (6.6-45.fc8rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.

Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) run 
QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&imgext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&map_size=1050+825&imgx=525&imgy=412.5&imgxy=1050+825'
Starting program: /home/woodbri/work/mapserver-5.0.2/mapserv 
QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&imgext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&map_size=1050+825&imgx=525&imgy=412.5&imgxy=1050+825'

[Thread debugging using libthread_db enabled]
*** glibc detected *** /home/woodbri/work/mapserver-5.0.2/mapserv: 
free(): invalid next size (fast): 0x00723b00 ***

[New Thread 46912508259680 (LWP 32363)]
=== Backtrace: =
/lib64/libc.so.6[0x34dc072832]
/lib64/libc.so.6(cfree+0x8c)[0x34dc075f2c]
/home/woodbri/work/mapserver-5.0.2/mapserv[0x421c28]
/home/woodbri/work/mapserver-5.0.2/mapserv[0x42500f]
/home/woodbri/work/mapserver-5.0.2/mapserv[0x40bd6c]
/home/woodbri/work/mapserver-5.0.2/mapserv(main+0x1be)[0x40d8fe]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x34dc01e074]
/home/woodbri/work/mapserver-5.0.2/mapserv[0x40acc9]
=== Memory map: 
 [snip lots of stuff]
Program received signal SIGABRT, Aborted.
[Switching to Thread 46912508259680 (LWP 32363)]
0x0034dc030ec5 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install atlas.x86_64 
cfitsio.x86_64 compat-expat1.x86_64 curl.x86_64 e2fsprogs.x86_64 
expat.x86_64 fftw2.x86_64 fontconfig.x86_64 freetype.x86_64 gcc.x86_64 
gd.x86_64 gdal.x86_64 geos.x86_64 giflib.x86_64 glibc.x86_64 
grass.x86_64 jasper.x86_64 keyutils.x86_64 krb5.x86_64 libICE.x86_64 
libSM.x86_64 libX11.x86_64 libXau.x86_64 libXdmcp.x86_64 libXpm.x86_64 
libdap.x86_64 libgeotiff.x86_64 libidn.x86_64 libjpeg.x86_64 
libpng.x86_64 librx.x86_64 libselinux.x86_64 libtiff.x86_64 
libxcb.x86_64 libxml2.x86_64 mysql.x86_64 ncurses.x86_64 netcdf.x86_64 
nspr.x86_64 nss.x86_64 ogdi.x86_64 openssl.x86_64 postgresql.x86_64 
proj.x86_64 sqlite.x86_64 unixODBC.x86_64 xerces-c.x86_64 zlib.x86_64

(gdb) where
#0  0x0034dc030ec5 in raise () from /lib64/libc.so.6
#1  0x0034dc032970 in abort () from /lib64/libc.so.6
#2  0x0034dc06b0db in __libc_message () from /lib64/libc.so.6
#3  0x0034dc072832 in _int_free () from /lib64/libc.so.6
#4  0x0034dc075f2c in free () from /lib64/libc.so.6
#5  0x00421c28 in msEvalRegex (e=0x4e9873 "\\.map$",
s=0x7232a0 "/u/data/maps/google-agg.map") at mapfile.c:90
#6  0x0042500f in msLoadMap (
filename=0x7232a0 "/u/data/maps/google-agg.map", new_mappath=0x0)
at mapfile.c:4529
#7  0x0040bd6c in loadMap () at mapserv.c:201
#8  0x0040d8fe in main (argc=2, argv=0x7fffa8786dc8) at 
mapserv.c:1132

(gdb)




[EMAIL PROTECTED] mapserver-5.0.2]$ valgrind ./mapserv 
QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&imgext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&map_size=1050+825&imgx=525&imgy=412.5&imgxy=1050+825'

==32351== Memcheck, a memory error detector.
==32351== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==32351== Using LibVEX rev 173

RE: [mapserver-users] Mapserver + Openlayers legend problem

2008-04-14 Thread Fawcett, David
An embedded scale bar is just not going to work with an OpenLayers type
of interface.  (unless, I guess, you use the single, non-tiled layer
type in OpenLayers.  But then you aren't going to get the cool Googley
Goodness slippy map effect.
http://www.openlayers.org/dev/examples/mapserver_untiled.html )

The problem is that OpenLayers splits your map window request up in to
little tiles.  This allows it to easily add more tiles outside of your
map window, giving that seamless appearance.  When OpenLayers requests
all of the tiles for your map, each tile is an individual call to
MapServer and your MapServer doesn't know that all of these request are
related, they are just requests.  

So, if you have an embeded scalebar or legend, it will show up in each
tile.  If you are using OpenLayers, there might be a way to place a
legend graphic on top of your map, kind of like the overview map.
http://www.openlayers.org/dev/examples/overviewmap.html  Otherwise, you
may just want to have a spot outside of the map div where you show a
legend.  

David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, April 14, 2008 11:20 AM
To: mapserver-users@lists.osgeo.org; Emilio Ponce
Subject: Re: [mapserver-users] Mapserver + Openlayers legend problem


I have the same issue in openlayer + mapserver cgi. However, if I use
mapscript without openlayer, then it works fine. 


--- On Mon, 4/14/08, Emilio Ponce <[EMAIL PROTECTED]> wrote:

> From: Emilio Ponce <[EMAIL PROTECTED]>
> Subject: [mapserver-users] Mapserver + Openlayers legend problem
> To: mapserver-users@lists.osgeo.org
> Date: Monday, April 14, 2008, 10:17 AM
> Hi everyone,
> 
> I'm beggining with mapserver + openlayers.
> The problem is that I cannot show a legend of my layers, because if I 
> use the 'LEGEND keyword' into the mapfile, the legend
> is shown on every tile of
> the openlayers's map.
> I've found the same problem for the SCALEBAR.
> 
> The definition of the LEGEND in the mapfile is simple:
> 
> LEGEND
> STATUS EMBED
> POSITION LR
> TRANSPARENT TRUE
> END
> 
> And you can see the problem here: 
> http://www.ietcat.org/htmls04/cat/PDF_PTMB/legend_problem.gif
> 
> Does anyone know how to solve this repetition problem?
> 
> Thanks a lot!
> 
> 
> 
> 
> --
> Emilio___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


 


Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
___
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] How to reference multiple byte characters in symbol file?

2008-04-14 Thread rich.fromm

My understanding is that the only type of vector (non-bitmap) font I can use
for mapserver is a TrueType font.

I'm starting with a PostScript Type 1 font.  (And a quick test seemed to
confirm that this is not directly useable.)  I used fontforge
(http://fontforge.sourceforge.net/) to generate a TrueType font from the
PostScript font.  The problem here is that the characters I want are now
located way above the single byte range (e.g. way above character number 255
within the font.)

Is there any way to reference a multibyte character in the CHARACTER
declaration of the symbol file:

http://mapserver.gis.umn.edu/docs/reference/symbology/syntax

Something akin to the \x{ab}\x{cd} (or \x{abcd} ?) notation of Perl?  This
exact notation doesn't work for me, it just interprets the characters as
those
individual ASCII characters (i.e. backslash, lower case x, open curly brace,
etc.)  I am able to enter non-ASCII characters into the symbol file (I use
hexl-mode in emacs), but mapserver seems to interpret these as individual
byte
characters, regardless of what encoding I intend.  I have multi-byte
characters (UTF-8) in my data and deal with that with the ENCODING
declaration
within LABEL in the map file:

http://mapserver.gis.umn.edu/docs/reference/mapfile/label

But I don't see any such declaration for a symbol file.

This mailing list thread is somewhat related:

http://www.nabble.com/-UMN_MAPSERVER-USERS--Special-characters-in-mapfile-to901771.html#a901771

But it doesn't really help, since those examples are still just for single
byte chars.

This isn't an urgent need.  I am able to work around it by editing the
TrueType font file (again with fontforge) and copy the couple of chars that
I
need down to empty spots in the single byte range, and reference those
instances.  But I am curious whether or not this is doable without that kind
of hack.

- Rich

-- 
View this message in context: 
http://www.nabble.com/How-to-reference-multiple-byte-characters-in-symbol-file--tp16684878p16684878.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] Mapserver + Openlayers legend problem

2008-04-14 Thread ptang83
I have the same issue in openlayer + mapserver cgi. However, if I use mapscript 
without openlayer, then it works fine. 


--- On Mon, 4/14/08, Emilio Ponce <[EMAIL PROTECTED]> wrote:

> From: Emilio Ponce <[EMAIL PROTECTED]>
> Subject: [mapserver-users] Mapserver + Openlayers legend problem
> To: mapserver-users@lists.osgeo.org
> Date: Monday, April 14, 2008, 10:17 AM
> Hi everyone,
> 
> I'm beggining with mapserver + openlayers.
> The problem is that I cannot show a legend of my layers,
> because if I use
> the 'LEGEND keyword' into the mapfile, the legend
> is shown on every tile of
> the openlayers's map.
> I've found the same problem for the SCALEBAR.
> 
> The definition of the LEGEND in the mapfile is simple:
> 
> LEGEND
> STATUS EMBED
> POSITION LR
> TRANSPARENT TRUE
> END
> 
> And you can see the problem here:
> http://www.ietcat.org/htmls04/cat/PDF_PTMB/legend_problem.gif
> 
> Does anyone know how to solve this repetition problem?
> 
> Thanks a lot!
> 
> 
> 
> 
> -- 
> Emilio___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Reg: Mapserver 3D GIS Capabilities

2008-04-14 Thread Brent Fraser
Venkat,

  You may want to have a look at the Virtual Terrain Project
(VTP), and the recent implementation of Internet Explorer
compatible ActiveX control:

http://vterrain.org/Doc/vtocx.html

Brent Fraser
GeoAnalytic Inc.
Calgary, Alberta
- Original Message - 
From: "venkat" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>;

Sent: Monday, April 14, 2008 5:38 AM
Subject: [mapserver-users] Reg: Mapserver 3D GIS
Capabilities


> Dear All,
>
>I am Veknat,I am developing web application based on C#
asp.net.Here I
> want to use 3D gis analysis(At least i want to show my
data in 3D view).Is
> Mapserver has 3D capabilities?.Let me know..
>
> I am waiting for your great response.
>
> Advanced Thanks.
>
> Regards,
> Venkat.
>






> ___
> 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] Mapserver + Openlayers legend problem

2008-04-14 Thread Emilio Ponce
Hi everyone,

I'm beggining with mapserver + openlayers.
The problem is that I cannot show a legend of my layers, because if I use
the 'LEGEND keyword' into the mapfile, the legend is shown on every tile of
the openlayers's map.
I've found the same problem for the SCALEBAR.

The definition of the LEGEND in the mapfile is simple:

LEGEND
STATUS EMBED
POSITION LR
TRANSPARENT TRUE
END

And you can see the problem here:
http://www.ietcat.org/htmls04/cat/PDF_PTMB/legend_problem.gif

Does anyone know how to solve this repetition problem?

Thanks a lot!




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


[mapserver-users] query problem

2008-04-14 Thread Paul Alarcon


Hello
I jave a problem making a query in Internet explorer I am using javascript for 
make teh query but when i run in firefox i dont have any problem but, when i 
using  IE dont work my aplication
the code for my page is the follow

html>



  
Busqueda por CANTON





  
   


 
   
  




Buscar por:

   
   Canton
   Parroquia
   Plantel
   
   
   

 
LAGO AGRIO
GONZALO PIZARRO
PUTUMAYO
SHUSHUFINDI
PUTUMAYO
SUCUMBIOS
CASCALES
CUYABENO


 
SANTA BARBARA
EL PLAYON DE SAN FCO.
LA BONITA
LA SOFIA
ROSA FLORIDA
SANTA ELENA
EL DORADO DE CASCALES
JAMBELI
PUERTO LIBRE
PUERTO EL CARMEN 
EL REVENTADOR
GENERAL FARFAN
PALMA ROJA
NUEVA LOJA
PACAYACU
STA. ROSA DE SUCUMBIOS
SANTA CECILIA
SEVILLA
LUMBAQUI
DURENO
EL ENO
PUERTO BOLIVAR
GONZALO PIZARRO
SHUSHUFINDI
PUERTO RODRIGUEZ
TARAPOA
AGUAS NEGRAS
SAN PEDRO DE LOS CAFANES
CUYABENO
SIETE DE JULIO
SAN ROQUE
LIMONCOCHA
PAÑACOCHA



   
  
  
  
  
  



   
 
 
   Please could you give me a hand ?

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] JGW+JPG -> TIFF

2008-04-14 Thread Rahkonen Jukka
-Alkuperäinen viesti-
Lähettäjä: [EMAIL PROTECTED] puolesta: [EMAIL PROTECTED]
 
> 2) I have 80 orthofotos. Since I don't want to add a layer for each one I 
> created a tileindex with gdaltindex.exe ... the created dbf file contains one 
> column called LOCATION and has all the name of my jpegs in it but when I use 
> it in mapserver the screen stays white, no pictures show up. Anyone having 
> ideas on this?

One possibility is that Mapserver do not find the images.  Try building the 
tileindex like 
gdaltindex tileindex.shp c:\full\path\to\images\*.jpg (this is Windows syntax). 
But perhaps your tileindex already contains full path, or images are for sure 
located in the Mapserver default directory so that they can be found just by 
file name. Then I would suspect some problem with extents.

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


AW: [mapserver-users] JGW+JPG -> TIFF

2008-04-14 Thread Janosch.Skrobek
Hi,

thanks for your answer. I was able to implement one of the pictures into a new 
layer like you described. Two new problems turn up. 

1) The image quality is really bad, the picture gets all reddish and yellowish 
and seems to loose pixels. I use PNG as format for all my maps. All the other 
(polygon) look ok this way. I tried PNG24 but I'm loosing transparency there. 
Is there another recommendable image-format? or what can I do to improve the 
picture quality in mapserver?

2) I have 80 orthofotos. Since I don't want to add a layer for each one I 
created a tileindex with gdaltindex.exe ... the created dbf file contains one 
column called LOCATION and has all the name of my jpegs in it but when I use it 
in mapserver the screen stays white, no pictures show up. Anyone having ideas 
on this?

Thank you
Janosch 

-Ursprüngliche Nachricht-
Von: Carlo Pelliconi [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 10. April 2008 15:49
An: Skrobek, Janosch
Cc: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] JGW+JPG -> TIFF

Hi.
If you create a layer in the mapfile, with DATA set to your-raster.jpg, 
it automatically reads .jgw (it must have the same name of the jpg file) 
and users its informations for georeferencing it. Specify also TYPE 
raster and if you want MIN/MAXSCALE.
If you prefer tiff file, you must convert jpg in tif by means of a 
graphic editor and then translate .jgw in .tfw. It could request not 
only renaming the file, but also modify some coefficients defined inside 
the .jgw file (open it with notepad, it is simple text).

Hope this helps.
Bye

[EMAIL PROTECTED] ha scritto:
> Hello,
>
> I have a set of orthophotos which are saved as JPG. Each picture has a
> corresponding JGW file. Can I somehow implement these into a mapserver
> layer? Or do I need to create georeferenced tiffs? If so, how can I
> combine the JGW and JPGs into a tiff?
>
>
> Thank you
> Janosch
>




Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen 
enthalten.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das 
unerlaubte
Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der
rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist über 
diese
E-Mail-Adresse derzeit noch nicht möglich.



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


Re: [mapserver-users] Drawing a circle on a map

2008-04-14 Thread Sucharita Samuel
 Hi Stephen,
   Thanks for the hint. I was able to draw the circle, but
now my problem is that I want to move the centroid of the circle to the
point I click on the map.  I used the following code in the mapscript

layerObj oTempLayer = map.getLayerByName("Circle");
oTempLayer.open();
oTempLayer.status = (int)mapscript.MS_ON;
pointObj point = pixel2point(new pointObj(x, y, 0, 0));
rectObj oRect = oTempLayer.getExtent();
shapeObj oShp= oRect.toPolygon();
pointObj oPoint = oShp.getCentroid();
oPoint.setXY(point.x, point.y, 0);
oShp.draw(map, oTempLayer, oImg);
oImg = map.draw();
oTempLayer.draw(map, oImg);

Can you please help me to rectify the above code?

Thanks,
Sucharita

On Sun, Apr 13, 2008 at 10:07 PM, Stephen Woodbridge <
[EMAIL PROTECTED]> wrote:

> Atul Dravid wrote:
>
> > Try asking for Sample Code to Stephen Woodbridge...
> >
> >
> > On 4/12/08, *Stephen Woodbridge* <[EMAIL PROTECTED]  > [EMAIL PROTECTED]>> wrote:
> >
> >Sucharita Samuel wrote:
> >
> >Hi all,
> >   I want to draw a circle of 5 km radius around the point I
> >click on the map. I am using C# mapscript. Even if you can help
> >me with the php code, it will be of great help.
> >
> >
> >One way to do this is to create a template layer that defines a
> >feature that is a circle with the STATUS OFF. Then in mapscript you
> >can get the layer, set the status to ON and set the value of the
> >origin of the feature and have mapserver draw it on top of your map.
> >
> >-Steve W.
> >
> >___
> >mapserver-users mailing list
> >mapserver-users@lists.osgeo.org  > mapserver-users@lists.osgeo.org>
> >http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >
> >
> In mapscript you can change the status and the feature points to be what
> you want. Here is an example of the LAYER and a URL to display it. I will
> leave the mapscript as you homework assignment :) Actually, I don't have a
> simple example handy, nor the time to put one together at the moment. If you
> get stuck an a specific point ask the list, there are plently of people that
> can help with mapscript.
>
> -Steve
>
> MAP
>  EXTENT -180 -90 180 90
>  IMAGECOLOR 255 255 0
>  IMAGETYPE png
>  SIZE 400 200
>  UNITS DD
>
>  LAYER
>NAME "circles"
>TYPE circle
>STATUS DEFAULT
>FEATURE
>  # define circle as two points describing the opposite corners of
>  # of the bounding square about the circle
>  POINTS
>-10.0 -10.0
> 10.0  10.0
>  END
>END
>CLASS
>  STYLE
>OUTLINECOLOR 255 0 0
>  END
>END
>  END
> END
>
>
> http://mt2.imaptools.com/cgi-bin/mapserv-5.1-dev?mode=map&map=/u/data/maps/circles.map
>
>
>
> ___
> 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] Reg: Mapserver 3D GIS Capabilities

2008-04-14 Thread venkat
Dear All,

   I am Veknat,I am developing web application based on C# asp.net.Here I
want to use 3D gis analysis(At least i want to show my  data in 3D view).Is
Mapserver has 3D capabilities?.Let me know..

I am waiting for your great response.

Advanced Thanks.

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


RE: [mapserver-users] Mapserver and Microsoft SQL Server 2008

2008-04-14 Thread Chris King
 
Thanks for the reply, I did notice the geometry_columns table was missing
and at first when I added it, I got SQL errors, but after a few tweaks, I no
longer get the errors when I have a geometry_columns table in my database. I
narrowed the error down to the layer.open() command, and found where the
error occurs in the source code of the sql server plugin dll. For some
reason it cannot locate the geometry column in either the table itself or
the geometry_columns table, even though both are specified as 'the_geom'.
I'm looking into the security now, I did notice that I could not set the
owner of the geometry_columns table... CREATE TABLE geometry_columns OWNER
TO owner, SQL isn't liking the 'OWNER' part... Otherwise I'll have another
look at the webserver permissions, but those have never been a problem... 
At a bit of a loss here and running out of ideas...
Thanks
Chris

-Original Message-
From: Brent Wood [mailto:[EMAIL PROTECTED] 
Sent: 11 April 2008 10:49 PM
To: Chris King
Subject: Re: [mapserver-users] Mapserver and Microsoft SQL Server 2008


--- Chris King <[EMAIL PROTECTED]> wrote:

> Hi
> 
> I manually imported my data from postgre into SQL 2008 and the map 
> displays fine. I am now executing a the layer.queryByPoint () command 
> followed by the
> layer.getResults() command at which point the program fails and gives 
> the following error:
> 
> msMSSQL2008LayerGetItems(): Query error. msMSSQL2008LayerGetItems: 
> tried to find the geometry column in the results from the database, 
> but couldnt find it.  Is it miss-capitialized? 'the_geom'
> 
> I know when you create the tables in the postgre database you 
> explicitly add the geometry column after the table creation


I'm guessing here, never having used SQL Server

This is like it is with PostGIS because PostGIS is not fully integrated with
Postgres, but a third party addon. In SQL Sever 2008 I would assume you'd
use "alter table add ..." to add a new geometry column, like you do for any
other native datatype.

Assuming MS actually followed someone else's standard for a change, your
database should have a geometry_columns table with the metadata of your
geometry column & its table there. See if that all seems OK first. My guess
is that mapserver will be reading some info about the geometry from there...


So your first check should be that the geometry column exists in both the
table you created & the geometry_columns table.

Other than that, I can only think of a permissions problem somewhere? Is the
web server user running the mapserver cgi able to access the SQL db/table
OK??

Someone who has more SQL Server expertise will have to advise any further
:-)


HTH,

  Brent Wood

> 
> ie: SELECT 
> AddGeometryColumn('','ct_main_points','the_geom','-1','POINT',2);
> 
> when I tried this in SQL 2008 the function was not recognized and I 
> cannot find the SQL equivalent function. So I simply added the 
> geometry column when I created the table, now I have a feeling that is 
> what is causing this error.
> 
> If anyone has seen this error or knows of the AddGeometryColumn SQL 
> 2008 equivalent function, please could you let me know.
> 
> Thanks
> Chris
> 
> ___
> 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] error_output

2008-04-14 Thread Petra Pietrasová

Good morning,
I am a student of geoinformatics in the Czech Republic.
I am just finishing my diploma thesis about a map server and I have a problem 
with my aplication.
Sometimes there is an error in my client. The error of client is in displaying 
received images (they look like those saved in computer).

I am sending you four  images for illustration :
data- this is how  I can see an orthophoto map in my aplication
data_png- this is the image of orthophoto map how is saved in my computer

Can you write me please  where the problem is?
Or what do you think I should change?

Thank you 
best regards


Petra Pietrasova
Czech Republic

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


RE: [mapserver-users] Reg: 3D Mapping Capability for Mapserver

2008-04-14 Thread Piero Cavalieri

Deegree has a Java implementation of the OGC WPVS service, which can generate 
3D views from WCS/WMS and WFS. However you don't make analysis, I think (which 
kind ?)

Cheers 
 Piero


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:mapserver-users-
> [EMAIL PROTECTED] On Behalf Of Brent Wood
> Sent: venerdì 11 aprile 2008 19:36
> To: venkat; mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Reg: 3D Mapping Capability for Mapserver
> 
> 
> --- venkat <[EMAIL PROTECTED]> wrote:
> 
> > Dear All,
> >
> >   I am Venkat,I want to a stand alone application for 3D analysis.I am
> using
> > C#.net.is Mapserver having 3D mapping capability?or  is there  any other
> > open source software is available.Please let me know . I am waiting for
> your
> > great response.It is very urgent.
> 
> Hi Venkat,
> 
> Some open source options to look at:
> 
> GMT (Generic Mapping Tools) can generate & plot surfaces in 3D very
> effectively, but is not strictly a 3D analysis tool.
> 
> OpenDX is a very powerful multidimensional visualisation tool, but not
> really
> for analysis.
> 
> R can do all sorts of multidimensional modelling/statistics.
> 
> http://gmt.soest.hawaii.edu
> http://www.opendx.org
> http://www.r-project.org
> 
> 
> HTH,
> 
>   Brent Wood
> ___
> 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