Re: [mapserver-users] Mapserver segfaulting

2008-11-18 Thread thomas bonfort
the shipped gcc with 8.10 does not play nice with mapserver and gdal.
Try setting your compile optimisation flag to -O0 and -O2 to see if
this fixes the segfault.

--
thomas

On Wed, Nov 19, 2008 at 02:17, Frank Warmerdam <[EMAIL PROTECTED]> wrote:
> Sam Ingarfield wrote:
>>
>> G'day;
>>
>> I am having a few problems with mapserver segfaulting when it tries to
>> draw a map. Am a little stumped as to why...
>>
>> Am on Ubuntu 8.10, x64. Started with the packaged mapserver that came with
>> it (5.0.x) but have moved up in the world firstly to 5.2.0 and am now using
>> 5.3-dev from the nightly builds (this one was the 17th I think). All
>> versions have produced the same segfault.
>>
>> The call the browser makes is as follows:
>>
>> http://192.168.0.35/cgi-bin/mapserv?map=/var/www/wa_coast.map&LAYERS=possie&FORMAT=image%2Fpng&ISBASELAYER=false&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=115.9375,-32.1875,117.25,-30.875&WIDTH=256&HEIGHT=256
>> 
>>
>> Which returns a 500 error.
>>
>> Examination of the syslog produces:
>> Nov 19 10:13:06 spoor kernel: [130315.478944] mapserv[4986]: segfault at
>> 7fff04e39ff8 ip 7f0efbb2ae6e sp 7fff04e3a000 error 6 in
>> libgdal1.5.0.so.1.12.2[7f0efb9f2000+4f4000]
>
> Sam,
>
> Is the crash consistent with this request?  Do other requests succeed?
>
> It looks like it is crashing in GDAL.
>
> I would suggest that you run and run mapserv at the commandline with the
> same request.  If you can reproduce the crash that way, then try running
> it in gdb and getting a traceback.  You may want to rebuild GDAL with
> debug info though that may be a hassle if you are using a pre-packaged GDAL.
>
> What input raster formats are you using?
>
> 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| Geospatial Programmer for Rent
>
> ___
> 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] Re: [gdal-dev] Can I change SOURCE_EXTRA setting at compile time?

2008-11-18 Thread Roger André
Hi Frank,

You're absolutely right.  Changing those values in mapresample.c to 10
removed the artifacts when using a WMS request.  They're still present when
the request is made via mapscript though.  I need to manually code a
mapscript example though, because right now I'm testing that via TileCache,
and I'm not 100% certain how the image is being requested.  Can you think of
a reason why WMS would be different from a straight read and reproject
through mapscript?

cc'ing TileCache list and mapserver lists as well
--

On Tue, Nov 18, 2008 at 5:58 PM, Frank Warmerdam <[EMAIL PROTECTED]>wrote:

> Roger André wrote:
>
>> Hi Frank,
>>
>> I've theorized all sorts of reasons for what I'm seeing.  So far none of
>> them are right.  Basically, if I take a really high-res epsg:4326 image, and
>> serve it up through Mapserver in epsg:900913, there are instances where I
>> get images back which are missing rows of pixels at the bottom of the image.
>>  If I reduce the resolution of the image the lines go away.  I haven't yet
>> figured out at what resolution the problem starts to appear.
>>
>> I just tested the idea of changing the values in the warper code:
>> First:
>> nResWinSize += 100;
>> Then:
>> nResWinSize += 500;
>>
>> Then rebuilt gdal.   Didn't seem to make a difference.
>>
>
> Roger,
>
> Are you sure the GDAL warper is being used? If the reprojection is being
> done by MapServer it will be using the MapServer warper.
>
> Try changing the +- 1.0 values to larger values in the following code in
> mapserver's mapresample.c:
>
> /*  */
> /*  Project desired extents out by 2 pixels, and then strip to  */
> /*  available data. */
> /*  */
>memcpy( &sOrigSrcExtent, &sSrcExtent, sizeof(sSrcExtent) );
>
>sSrcExtent.minx = floor(sSrcExtent.minx-1.0);
>sSrcExtent.maxx = ceil (sSrcExtent.maxx+1.0);
>sSrcExtent.miny = floor(sSrcExtent.miny-1.0);
>sSrcExtent.maxy = ceil (sSrcExtent.maxy+1.0);
>
>
> See if that helps.  Currently there is no processing option that does
> what SOURCE_EXTRA does, though it might be worth adding one.
>
>
> 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| Geospatial Programmer for Rent
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Failed to show Arabic labels with MapServer 5.2

2008-11-18 Thread TC Haddad
Jackey

I've subscribed to your ticket in case I can be of further help down the road.

In the meantime, based on looking at your last example, the labels
without OUTLINECOLOR are pretty good, the one thing I would recommend
further is decreasing your font size by a point or two. This will
minimize the occurence of small fractures that happen when the label
bends around a tight curve (something almost inevitable).

On Tue, Nov 18, 2008 at 5:27 PM, Jackey Cheung <[EMAIL PROTECTED]> wrote:

> Following TC's suggestion, I've done a test.
>
> With this map file layer:
>
> LAYER
> NAME"road"
> STATUSDEFAULT
> TYPELINE
> UNITSMETERS
> CONNECTIONTYPEPOSTGIS
> CONNECTION"host=localhost dbname=ttt user=uuu
> password=xxx"
> DATA"geom FROM view_road_ar USING UNIQUE
> oid USING SRID=4326"
>
> LABELITEM"name"
>
> CLASS
> STYLE
> WIDTH16
> COLOR0 0 0
> ANTIALIASTRUE
> END
> STYLE
> WIDTH15.8
> COLOR255 200 64
> ANTIALIASTRUE
> END
> LABEL
> ANGLEFOLLOW
> ENCODING"UTF-8"
> COLOR0 0 0
> OUTLINECOLOR255 255 255
> TYPETRUETYPE
> FONTarial
> SIZE24
> ANTIALIASTRUE
> POSITIONAUTO
> PARTIALSFALSE
> BUFFER50
> END
> END
> END
>
> With nothing changed, only change the ANGLE to AUTO and FOLLOW, the
> generated images confirms the different processs of ANGLE AUTO & FOLLOW.
> Then I've done one more test which uses ANGLE FOLLOW, but with OUTLINECOLOR
> removed, then generated image shows "fractured" words.
>
> ___
> 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: Fwd: [mapserver-users] Failed to show Arabic labels with MapServer 5.2

2008-11-18 Thread Jackey Cheung
Dear Stephen,

I've filed a ticket http://trac.osgeo.org/mapserver/ticket/2812.

Thank you very much for the help! Thank you TC, Stephen, and Dane.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: Fwd: [mapserver-users] Failed to show Arabic labels with MapServer 5.2

2008-11-18 Thread Stephen Woodbridge

OK, this is great. I think I learned something new then.
With ANGLE AUTO you can ask GD to draw the whole string at the specified 
angle. But there is not equivalent function in GD for ANGLE FOLLOW. The 
only way we can do that is one character at a time, changing the 
insertion point and angle of each character.


I know Thomas has put a lot of effort into make the AGG render well 
integrated with mapserver. It would probably be a good idea to document 
this issue and the fact that the outlinecolor is what is causing in a 
bug. http://trac.osgeo.org/mapserver/  If you do not have an OSGeo 
userid, follow the link to get one first.


Thank you for your patience and Thank you, Tanya, for your excellent 
observations on this issue.


-Steve W


Jackey Cheung wrote:

Following TC's suggestion, I've done a test.

With this map file layer:

LAYER
NAME"road"
STATUSDEFAULT
TYPELINE
UNITSMETERS
CONNECTIONTYPEPOSTGIS
CONNECTION"host=localhost dbname=ttt user=uuu 
password=xxx"
DATA"geom FROM view_road_ar USING 
UNIQUE oid USING SRID=4326"


LABELITEM"name"

CLASS
STYLE
WIDTH16
COLOR0 0 0
ANTIALIASTRUE
END
STYLE
WIDTH15.8
COLOR255 200 64
ANTIALIASTRUE
END
LABEL
ANGLEFOLLOW

ENCODING"UTF-8"
COLOR0 0 0
OUTLINECOLOR255 255 255
TYPETRUETYPE
FONTarial
SIZE24
ANTIALIASTRUE
POSITIONAUTO
PARTIALSFALSE
BUFFER50
END
END
END

With nothing changed, only change the ANGLE to AUTO and FOLLOW, the 
generated images confirms the different processs of ANGLE AUTO & FOLLOW.
Then I've done one more test which uses ANGLE FOLLOW, but with 
OUTLINECOLOR removed, then generated image shows "fractured" words.














___
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] help

2008-11-18 Thread Alexander Petkov
On 11/18/08, Jeff McKenna <[EMAIL PROTECTED]> wrote:
> Attila Borbás wrote:
>
> > Hello,
> >
> > I ve got a big problem with php/mapscript.I ve tried a simple "hello
> world" example (from Beginning MapServer Open Source GIS Development) and I
> didn't get any error message, but the browser couldn't generate the rendered
> pic. I don't know what the problem could be, but all codes what I ve made
> had the same problem. I attached the bad codes. Thx for ur help and I'm
> looking forward to your answer.
> >
> > _The php/mapscript file:_
> >
> >  > dl('php_mapscript.dll');
> >
> > $image_name =
> sprintf("phpms-hello%0.6d",rand(0,99)).".png";
> >
> > $map =
> ms_newMapObj("c:/ms4w/Apache/htdocs/hello_world/hello.map");
> >
> > $image=$map->draw();
> >
> > $image->saveImage("c:/ms4w/tmp/ms_tmp/".$image_name);
> >
> > ?>
> >
> > 
> > PHP MapScript Hello World
> > 
> > 
> > >src="c:/ms4w/tmp/ms_tmp/">
> > 
> > 
> > 
> >
> > _The map file:_
> >
> > # "Hello World" mapfile
> > NAME "Hello World"
> > SIZE 400 300
> > IMAGECOLOR 249 245 186
> > IMAGETYPE png
> > EXTENT -1.0 -1.0 1.0 1.0
> > WEB
> > IMAGEPATH "c:/ms4w/tmp/ms_tmp/tmp/"
> > IMAGEURL "/tmp/"
> > END
> > LAYER STATUS default
> > TYPE point
> > FEATURE
> >  POINTS  0.00 0.00 END
> >  TEXT "Hello World"
> > END # end feature
> > CLASS
> >  STYLE
> >   COLOR 255 0 0
> >  END
> >  LABEL
> >   TYPE bitmap
> >  END
> > END
> > END
> > END
> >
> >
> >
>
>  here are some comments:
>
>
>  - MS4W is pre-configured for the following settings:
>
>   IMAGEPATH "/ms4w/tmp/ms_tmp/"
>   IMAGEURL  "/ms_tmp/"
>
>  Make sure to use those settings in all of your MS4W mapfiles.
>
>  - you can test that your mapfile generates a map image properly by using
> the shp2img commandline utility, that is included in MS4W
> (http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img)
>
>  - MS4W also comes with a small PHP file that can generate a map image (see
> /ms4w/Apache/htdocs/quickmap.php)
>
>  --
>  Jeff McKenna
>  FOSS4G Consulting and Training Services
>  http://www.gatewaygeomatics.com/

On a related note--I wasted about 2hrs last night scratching my head
as to why php/mapscript wasn't working... It turned out the
php_mapscript library was from the 5.0.2 mapserver release, while the
mapserver executable was 5.2.0.

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


Fwd: [mapserver-users] Failed to show Arabic labels with MapServer 5.2

2008-11-18 Thread Jackey Cheung
Following TC's suggestion, I've done a test.

With this map file layer:

LAYER
NAME"road"
STATUSDEFAULT
TYPELINE
UNITSMETERS
CONNECTIONTYPEPOSTGIS
CONNECTION"host=localhost dbname=ttt user=uuu
password=xxx"
DATA"geom FROM view_road_ar USING UNIQUE
oid USING SRID=4326"

LABELITEM"name"

CLASS
STYLE
WIDTH16
COLOR0 0 0
ANTIALIASTRUE
END
STYLE
WIDTH15.8
COLOR255 200 64
ANTIALIASTRUE
END
LABEL
ANGLEFOLLOW
ENCODING"UTF-8"
COLOR0 0 0
OUTLINECOLOR255 255 255
TYPETRUETYPE
FONTarial
SIZE24
ANTIALIASTRUE
POSITIONAUTO
PARTIALSFALSE
BUFFER50
END
END
END

With nothing changed, only change the ANGLE to AUTO and FOLLOW, the
generated images confirms the different processs of ANGLE AUTO & FOLLOW.
Then I've done one more test which uses ANGLE FOLLOW, but with OUTLINECOLOR
removed, then generated image shows "fractured" words.
<><><>___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver segfaulting

2008-11-18 Thread Frank Warmerdam

Sam Ingarfield wrote:

G'day;

I am having a few problems with mapserver segfaulting when it tries to 
draw a map. Am a little stumped as to why...


Am on Ubuntu 8.10, x64. Started with the packaged mapserver that came 
with it (5.0.x) but have moved up in the world firstly to 5.2.0 and am 
now using 5.3-dev from the nightly builds (this one was the 17th I 
think). All versions have produced the same segfault.


The call the browser makes is as follows:
http://192.168.0.35/cgi-bin/mapserv?map=/var/www/wa_coast.map&LAYERS=possie&FORMAT=image%2Fpng&ISBASELAYER=false&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=115.9375,-32.1875,117.25,-30.875&WIDTH=256&HEIGHT=256 



Which returns a 500 error.

Examination of the syslog produces:
Nov 19 10:13:06 spoor kernel: [130315.478944] mapserv[4986]: segfault at 
7fff04e39ff8 ip 7f0efbb2ae6e sp 7fff04e3a000 error 6 in 
libgdal1.5.0.so.1.12.2[7f0efb9f2000+4f4000]


Sam,

Is the crash consistent with this request?  Do other requests succeed?

It looks like it is crashing in GDAL.

I would suggest that you run and run mapserv at the commandline with the
same request.  If you can reproduce the crash that way, then try running
it in gdb and getting a traceback.  You may want to rebuild GDAL with
debug info though that may be a hassle if you are using a pre-packaged GDAL.

What input raster formats are you using?

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| Geospatial Programmer for Rent

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


[mapserver-users] Mapserver segfaulting

2008-11-18 Thread Sam Ingarfield
G'day;

I am having a few problems with mapserver segfaulting when it tries to draw
a map. Am a little stumped as to why...

Am on Ubuntu 8.10, x64. Started with the packaged mapserver that came with
it (5.0.x) but have moved up in the world firstly to 5.2.0 and am now using
5.3-dev from the nightly builds (this one was the 17th I think). All
versions have produced the same segfault.

The call the browser makes is as follows:
http://192.168.0.35/cgi-bin/mapserv?map=/var/www/wa_coast.map&LAYERS=possie&FORMAT=image%2Fpng&ISBASELAYER=false&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=115.9375,-32.1875,117.25,-30.875&WIDTH=256&HEIGHT=256

Which returns a 500 error.

Examination of the syslog produces:
Nov 19 10:13:06 spoor kernel: [130315.478944] mapserv[4986]: segfault at
7fff04e39ff8 ip 7f0efbb2ae6e sp 7fff04e3a000 error 6 in
libgdal1.5.0.so.1.12.2[7f0efb9f2000+4f4000]

Any help would be appreciated.
Cheers;
Sam Ingarfield
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] help

2008-11-18 Thread Jeff McKenna

Attila Borbás wrote:

Hello,

I ve got a big problem with php/mapscript.I ve tried a simple "hello 
world" example (from Beginning MapServer Open Source GIS Development) 
and I didn't get any error message, but the browser couldn't generate 
the rendered pic. I don't know what the problem could be, but all codes 
what I ve made had the same problem. I attached the bad codes. Thx for 
ur help and I'm looking forward to your answer.


_The php/mapscript file:_

draw();

$image->saveImage("c:/ms4w/tmp/ms_tmp/".$image_name);

?>


PHP MapScript Hello World







_The map file:_

# "Hello World" mapfile
NAME "Hello World"
SIZE 400 300
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.0 -1.0 1.0 1.0
WEB
 IMAGEPATH "c:/ms4w/tmp/ms_tmp/tmp/"
 IMAGEURL "/tmp/"
END
LAYER 
 STATUS default

 TYPE point
 FEATURE
  POINTS  0.00 0.00 END
  TEXT "Hello World"
 END # end feature
 CLASS
  STYLE
   COLOR 255 0 0
  END
  LABEL
   TYPE bitmap
  END
 END
END
END




here are some comments:


- MS4W is pre-configured for the following settings:

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

Make sure to use those settings in all of your MS4W mapfiles.

- you can test that your mapfile generates a map image properly by using 
the shp2img commandline utility, that is included in MS4W 
(http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img)


- MS4W also comes with a small PHP file that can generate a map image 
(see /ms4w/Apache/htdocs/quickmap.php)


--
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] help

2008-11-18 Thread Attila Borbás
Hello,

I ve got a big problem with php/mapscript.I ve tried a simple "hello world"
example (from Beginning MapServer Open Source GIS Development) and I didn't
get any error message, but the browser couldn't generate the rendered pic. I
don't know what the problem could be, but all codes what I ve made had the
same problem. I attached the bad codes. Thx for ur help and I'm looking
forward to your answer.

*The php/mapscript file:*

draw();

$image->saveImage("c:/ms4w/tmp/ms_tmp/".$image_name);

?>


PHP MapScript Hello World







*The map file:*

# "Hello World" mapfile
NAME "Hello World"
SIZE 400 300
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.0 -1.0 1.0 1.0
WEB
 IMAGEPATH "c:/ms4w/tmp/ms_tmp/tmp/"
 IMAGEURL "/tmp/"
END
LAYER
 STATUS default
 TYPE point
 FEATURE
  POINTS  0.00 0.00 END
  TEXT "Hello World"
 END # end feature
 CLASS
  STYLE
   COLOR 255 0 0
  END
  LABEL
   TYPE bitmap
  END
 END
END
END
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Failed to show Arabic labels with MapServer 5.2

2008-11-18 Thread TC Haddad
on re-reading Steve W's point #2 - perhaps the specific bug is that
there is a difference with when in the sequence of drawing,
OUTLINECOLOR is applied

i) when ANGLE is AUTO, OUTLINECOLOR is applied after the whole label is drawn

ii) when ANGLE is FOLLOW, OUTLINECOLOR is applied after each letter is drawn

so this ends up making a joined Arabic label look "fractured" if both
OUTLINECOLOR and ANGLE FOLLOW are used at the same time.

TH

On Tue, Nov 18, 2008 at 12:32 PM, TC Haddad <[EMAIL PROTECTED]> wrote:
> Jackey,
>
> I can read Arabic, and from the most recent attachments you sent I
> think the labels are printing fine. That is,  I do see the problem you
> are referring to, but the cause is not the font (the joined letters
> are as they should be).
>
> The real problem that I see is the fact that you are using
> OUTLINECOLOR. This is putting a 1 pixel white outline on *each*
> letter.
>
> This approach works in English and languages where the letters don't
> attach in printed form. But in Arabic, where whole worlds are joined,
> the outline should be applied at the level of the word, not at the
> level of the letter.
>
> As far as I know this feature does not exist in Mapserver at the
> moment, so it would have to be requested.
>
> Tanya
>
>
>
> On Tue, Nov 18, 2008 at 12:14 PM, Stephen Woodbridge
> <[EMAIL PROTECTED]> wrote:
>> Jackey,
>>
>> I'm not sure how much more I can help other than to say:
>>
>> 1) make sure you are building with fribidi2 version 0.19.1+
>> 2) Since character are generated individually on rotated labels, there may
>> be an issue. Thomas Bonfort would be the person that implemented the AGG.
>> You should probably try doing this with the AGG driver if you have not tried
>> that yet. That is what I'm using.
>> 3) try to locate a better/different font that supports Arabic
>>
>> -Steve
>>
>> Jackey Cheung wrote:
>>>
>>> Steve,
>>>
>>> Thanks for the advise, but we've tried the Arial font already in the first
>>> test, it's just the same. We thought it was the fribidi2's problem since
>>> 0.19.1 doesn't have their configure script changed, and tried the 0.10.9,
>>> but it's all the same, every word is broken.
>>>
>>>
>>> On Mon, Nov 17, 2008 at 11:15 PM, Stephen Woodbridge
>>> <[EMAIL PROTECTED] > wrote:
>>>
>>>Jackey,
>>>
>>>Try locating a different font. if the text is being rendered as
>>>glyphs and they look correct, but is missing the joining
>>>information, it is likely that the font you are using does not
>>>include the joining glyphs.
>>>
>>>If you are using a windows machine, try getting mapserver via the
>>>fonts.txt file to point to the arial.ttf in the fonts folder. And
>>>change you FONT "..." to select the windows arial font. This assumes
>>>that you can display arabic text correctly using the arial font from
>>>a windows application like excel.
>>>
>>>-Steve W.
>>>
>>>Jackey Cheung wrote:
>>>
>>>Greetings!
>>>
>>>
>>>We've build the MapServer 5.2 on a Linux server, with fribidi2
>>>0.19.1, to
>>>try show Arabic labels. But the words has been broken down to
>>>characters in
>>>the generated images (line.png). Then we've tried on a MS4W
>>>2.3.0 server,
>>>but the images (ms4w.png) are even worse.
>>>
>>>We are using PostGIS, and the database is using UTF8 (pgpr.png),
>>>while all
>>>Arabic data can be shown correctly (pg.png) on my English
>>>Windows XP, and
>>>
>>>we've tried some more machines, or on IE, to make sure that
>>>Arabic text in
>>>database are really UTF8.
>>>
>>>Here's the images: http://www3.mapasia.com/jackout/ara.png
>>>
>>>
>>>The part of the map file is as follow, where the "arbic-trans"
>>>is a Arabic
>>>TrueType font named "Arabic Transparent":
>>>LABEL
>>>ANGLE FOLLOW
>>>PRIORITY [priority]
>>>ENCODING "UTF-8"
>>>COLOR 0 0 0
>>>OUTLINECOLOR 255 255 255
>>>TYPE TRUETYPE
>>>FONT "arbic-trans"
>>>SIZE 7
>>>POSITION AUTO
>>>PARTIALS FALSE
>>>MINDISTANCE 500
>>>BUFFER 1
>>>MINFEATURESIZE 50
>>>END
>>>
>>>Could anyone please help.
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
>>>___
>>>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

Re: [mapserver-users] MS 5.2 make error: " yes: invalid option -- f "

2008-11-18 Thread Daniel Morissette
It seems that the --with-ld-shared config option is not bullet-proof... 
it is intended to be used to specify the link command to use to build 
shared libs, and calling it with no argument results in the link command 
being set to "yes"... and then you get the error that you got.


If you don't need it (and I don't think you do) then take it out.

I have also modified the configure script in trunk (future 5.4) to 
ignore --with-ld-shared if it is passed with no argument to avoid this 
error.


Daniel

Eduardo Kanegae wrote:

Hi all,

I´m trying to build MapServer 5.2.0 under CentOS 5 using the following config:

./configure --disable-ignore-missing-data --enable-point-z-m
--disable-gcov --with-freetype=/usr/local/bin/freetype-config
-with-zlib=/usr --with-png=/usr --with-jpeg=/usr --with-xpm=/usr
--with-libiconv=/usr/local --with-gd=/usr/local --with-pdf=/usr/local
--with-agg=/usr/local/src/agg --with-eppl --with-proj --with-threads
--with-geos --with-ogr --with-gdal  --without-tiff
--with-postgis=/usr/bin/pg_config --with-ming=/usr/local --with-wms
--with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-sos
--with-curl-config=/usr/bin/curl-config
--with-xml2-config=/usr/bin/xml2-config --with-fastcgi=/usr/local
--with-httpd=/usr/sbin/httpd --with-php=/usr --with-ld-shared 2>&1 |
tee configure.log

But, after some time running make I got:

***
yes: invalid option -- f
***
This message appears just after the line:
***
yes  -fprofile-arcs -ftest-coverage -o php_mapscript.so
php_mapscript_util.o php_mapscript.o mapscript_i.o php_regex.o
-L/usr/src/webmapit/mapserver-5.2.0 -lmapserver -L/usr/local/lib
-lfcgi  -L/usr/lib -lxml2 -lz -lm -L/usr/kerberos/lib -lcurl
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl
-lcrypto -lz   -L/usr/local/lib -lming   -L/usr/lib -lpq  -L/usr/lib
-ljpeg -lfreetype -L/usr/lib -lpng -L/usr/lib -lz -L/usr/lib -lXpm
-lX11 -L/usr/local/lib -liconv -L/usr/local/lib -lgdal
-L/usr/local/lib -lgeos_c -I/usr/include -lsqlite3 -L/usr -L/usr/lib
-lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/local/lib -lxerces-c
-lpthread -L/usr/local/GeoExpressSDK6/lib/Release
-L/usr/local/GeoExpressSDK6/3rd-party/lib/Release -lltidsdk -lpthread
-lltikdu -L/usr/local/lib -lNCSEcw -lNCSCnet -lNCSUtil -L/usr
-L/usr/lib -ljasper -L/usr/lib -lhdf5 -L/usr -L/usr/lib -logdi31
-L/usr -L/usr/lib -lnetcdf -lpq -L/usr/lib -lpq -lpthread -lm -lrt
-ldl -L/usr/kerberos/lib -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -L/usr/lib/mysql
-lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto
-L/usr/local/lib -lgeos_c  -lpthread -lproj -L/usr/local/src/agg/src
-lagg  -L/usr/local/lib -lpdf -L/usr/local/lib -lgd -L/usr/lib -ljpeg
-lfreetype -L/usr/lib -lpng -L/usr/lib -lz -L/usr/lib -lXpm -lX11
-L/usr/local/lib -liconv -L/usr/local/lib -liconv -L/usr/lib -lz   -lm
-lstdc++
***
and then "make[1]: *** [php_mapscript.so] Error 1" is shown.

I already tried to setup CCFLAGS and CXXFLAGS to gcc34/g++34 or
mpicc/mpicxx compilers but the same error happens.

Does anybody has any tip?

best regards,




--
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] Failed to show Arabic labels with MapServer 5.2

2008-11-18 Thread Stephen Woodbridge

Jackey,

I'm not sure how much more I can help other than to say:

1) make sure you are building with fribidi2 version 0.19.1+
2) Since character are generated individually on rotated labels, there 
may be an issue. Thomas Bonfort would be the person that implemented the 
AGG. You should probably try doing this with the AGG driver if you have 
not tried that yet. That is what I'm using.

3) try to locate a better/different font that supports Arabic

-Steve

Jackey Cheung wrote:

Steve,

Thanks for the advise, but we've tried the Arial font already in the 
first test, it's just the same. We thought it was the fribidi2's problem 
since 0.19.1 doesn't have their configure script changed, and tried the 
0.10.9, but it's all the same, every word is broken.



On Mon, Nov 17, 2008 at 11:15 PM, Stephen Woodbridge 
<[EMAIL PROTECTED] > wrote:


Jackey,

Try locating a different font. if the text is being rendered as
glyphs and they look correct, but is missing the joining
information, it is likely that the font you are using does not
include the joining glyphs.

If you are using a windows machine, try getting mapserver via the
fonts.txt file to point to the arial.ttf in the fonts folder. And
change you FONT "..." to select the windows arial font. This assumes
that you can display arabic text correctly using the arial font from
a windows application like excel.

-Steve W.

Jackey Cheung wrote:

Greetings!


We've build the MapServer 5.2 on a Linux server, with fribidi2
0.19.1, to
try show Arabic labels. But the words has been broken down to
characters in
the generated images (line.png). Then we've tried on a MS4W
2.3.0 server,
but the images (ms4w.png) are even worse.

We are using PostGIS, and the database is using UTF8 (pgpr.png),
while all
Arabic data can be shown correctly (pg.png) on my English
Windows XP, and

we've tried some more machines, or on IE, to make sure that
Arabic text in
database are really UTF8.

Here's the images: http://www3.mapasia.com/jackout/ara.png


The part of the map file is as follow, where the "arbic-trans"
is a Arabic
TrueType font named "Arabic Transparent":
LABEL
ANGLE FOLLOW
PRIORITY [priority]
ENCODING "UTF-8"
COLOR 0 0 0
OUTLINECOLOR 255 255 255
TYPE TRUETYPE
FONT "arbic-trans"
SIZE 7
POSITION AUTO
PARTIALS FALSE
MINDISTANCE 500
BUFFER 1
MINFEATURESIZE 50
END

Could anyone please help.






___
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] Mapscript QueryByAttributes & Rendering problem.

2008-11-18 Thread Daniel Morissette
I'm not setup to test this, but it seems to me that calling 
msResetErrorList() in the exception handling block might do the trick.


Daniel

asd asd wrote:
I came across a problem while using python mapscript's queryByAttribute 
function. I have a layer containing the fieldname "STATE" amongst 
others. Issuing:


try:
   layer.queryByAttribute(map,"STA","AZ",MS_MULTIPLE)
except:
   print "attribute error"
   pass

By now the mapserver exception is caught for the faulty attribute. If a 
draw function is now issued:


map.draw()

The following error occurs:

: msDrawMap(): Image handling error. Failed 
to draw layer named 'countries'. msDBFGetItemIndex(): DBASE file error. Item 'STA' 
not found.

I reproduced it many times and in many occasions. I tried to clear any 
result cache but in vain. Shouldn;t mapserver handle the situation more 
logically?




--
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] help with WMS_LAYER_GROUP

2008-11-18 Thread Daniel Morissette

Hi Steve,

Which version of MapServer do you use? There was an issue in V5.0.0 and 
older that was fixed only in 5.0.1. I wonder if that's what you're 
running into:


  http://trac.osgeo.org/mapserver/ticket/2312

If you are using 5.0.1 or a more recent release then perhaps you could 
file a ticket with a short mapfile to reproduce and we'll have a look.


Daniel

[EMAIL PROTECTED] wrote:


Hi,
I'm using WMS_LAYER_GROUP in METADATA instead of GROUP keyword
I have three layers in my mapFile

The first layer  has
"WMS_LAYER_GROUP"   "/Risques/"

Second has
"WMS_LAYER_GROUP"   "/Infrastructures/Santé"

Third has
"WMS_LAYER_GROUP"   "/Infrastructures/Scolaires"

When I connect to my WMS with Gaia or gvSig I got the following hoerarchy


Where PACC Santé is the wms_title of the MAP.
* Keyword Group is not in the layer defition

Someone has more details on WMS_LAYER_GROUP?
thanks,
Steve




/Steve Toutant, M. Sc./
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de santé publique du Québec
945, avenue Wolfe
Québec, Qc G1V 5B3

Tél.: (418) 650-5115 #5281
Fax.: (418) 654-3144_
[EMAIL PROTECTED] _
__http://www.inspq.qc.ca_ 

 





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



--
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] ms4w (fastcgi) and oracle 10?

2008-11-18 Thread zach cruise
sql*plus returns this error:
ORA-06553: PLS-221: 'SDO_GEOM' is not a procedure or is undefined
06553. 0 - "PLS-%s: %s"
*Cause:
*Action:
Error at Line:x Column:x

"select ID, GEOM from STATES" works though. i have oracle locator not
spatial, if that matters. also column GEOM is type SDO_GEOMETRY with
MDSYS.SPATIAL_INDEX.

On Tue, Nov 18, 2008 at 12:49 PM, Rahkonen Jukka
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Have you checked that the SQL statement
> SELECT ID, GEOM FROM STATES WHERE SDO_FILTER(
> GEOM, MDSYS.SDO_GEOM(2003, 90112,
> NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO
> _ORDINATE_ARRAY(-179,-89.517,179,83.517) ),'querytype=window')
> = 'TRUE'
>
> works from SQL*Plus or something else that you are using with your Oracle? If 
> not, then investigate and adjust the DATA string accordingly.
>
> -Jukka Rahkonen-
>
>
>
>
>
> -Alkuperäinen viesti-
> Lähettäjä: [EMAIL PROTECTED] puolesta: zach cruise
> Lähetetty: ti 18.11.2008 19:44
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Kopio: Richard Polk; Smith,Michael ERDC-CRREL-NH
> Aihe: Re: [mapserver-users] ms4w (fastcgi) and oracle 10?
>
> thanks mike, but i get the same ora-x errors when using either:
>
> shp2img -m oracle.map -o oracle.png -all_debug 10
> msOracleSpatialLayerOpen called with: GEOM from STATES using unique ID
> srid 90112
> msOracleSpatialLayerOpen. Shared connection not available. Creating one.
> msConnPoolRegister(layername,username/[EMAIL PROTECTED],019A68E8)
> msOracleSpatialLayerFreeItemInfo was called.
> msOracleSpatialLayerWhichShapes was called.
> msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data:
> SELECT ID, GEOM FROM STATES WHERE SDO_FILTER( GEOM,
> MDSYS.SDO_GEOM(2003, 90112,
> NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-179,-89.517,179,83.517)
> ),'querytype=window') = 'TRUE'
> msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error:
> ORA-29900: operator binding does not exist
> ORA-06540: PL/SQL: compilation error
> ORA-06553: PLS-907: cannot load library unit MDSYS.SDO_3GL (referenced
> by MDSYS.SDO_FILTER)
>  . Query statement: SELECT ID, GEOM FROM STATES WHERE SDO_FILTER(
> GEOM, MDSYS.SDO_GEOM(2003, 90112,
> NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO
> _ORDINATE_ARRAY(-179,-89.517,179,83.517) ),'querytype=window')
> = 'TRUE' . Check your data statement.
>
> using 4.8 with /ignored-libmap/oracle10g/libmap.dll. how do i tell if
> i have native or ogr support for oracle 10g? i also edited httpd.conf
> (did i need to?) from
> http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto, but
> still no luck.
>
> On Tue, Nov 18, 2008 at 6:42 AM, Smith, Michael ERDC-CRREL-NH
> <[EMAIL PROTECTED]> wrote:
>> Zach,
>>
>> Your DATA statement is almost correct. If you are going to use the UNIQUE
>> keyword (for supporting queries), you must put a column name after UNIQUE
>> and before the SRID.
>>
>> Either of these would work:
>>
>> DATA ' GEOM from STATES using UNIQUE ID srid 90112'
>>
>> or
>>
>> DATA ' GEOM from STATES using srid 90112'
>>
>> Assuming you have a column named ID, of course.
>>
>> Mike
>>
>>
>> --
>> Michael Smith
>> RSGIS Center
>> ERDC - CRREL
>> US Army Corps of Engineers
>>
>>
>>
>>
>> On 11/17/08  8:21 PM, "zach cruise" <[EMAIL PROTECTED]> wrote:
>>
>>> troubleshooting info on 4.8 box with /ignored-libmap/oracle10g/libmap.dll:
>>> shp2img -m oracle.map -o oracle.png -all_debug 10
>>> msOracleSpatialLayerOpen called with: GEOMETRY from STATES using
>>> unique srid 90112
>>> msOracleSpatialLayerOpen. Shared connection not available. Creating one.
>>> msConnPoolRegister(layername,username/[EMAIL PROTECTED],019A68E8)
>>> msOracleSpatialLayerFreeItemInfo was called.
>>> msOracleSpatialLayerWhichShapes was called.
>>> msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error parsing
>>> OracleSpatial DATA variable. Must be:'geometry_column FROM table_name
>>> [USING UNIQUE  SRID srid# FUNCTION]' or 'geometry_column FROM
>>> (SELECT stmt) [USING UNIQUE  SRID srid# FUNCTION]'. If want to
>>> set the FUNCTION statement you can use: FILTER, RELATE, GEOMRELATE or
>>> NONE. Your data statement: GEOM from STATES using unique srid 90112
>>>
>>> On Mon, Nov 17, 2008 at 7:34 PM, zach cruise <[EMAIL PROTECTED]> wrote:
 btw i got oracle 10 client (with tnsnames.ora) on 4.8 box. other than
 returning multiple ora- errors, 4.8 also returns "web template
 error" if i use /ignored-libmap/oracle10g/libmap.dll. this error is
 even for only shapefile maps. error goes away when i switch back to
 normal libmap.dll.

 On Mon, Nov 17, 2008 at 5:56 PM, zach cruise <[EMAIL PROTECTED]> wrote:
> looks like mod_fastcgi is not an option with ms4w and oracle 10.
> anyway it had little benefits.
>
> i now got mapserver 5.2 and 4.8:
> i thought 5.2 had native built-in support for oracle 10, but it is
> giving me "OracleSpatial is not supported" error. i also thought 4.8
> could get

Re: [mapserver-users] ms4w (fastcgi) and oracle 10?

2008-11-18 Thread Rahkonen Jukka
Hi,

Have you checked that the SQL statement
SELECT ID, GEOM FROM STATES WHERE SDO_FILTER(
GEOM, MDSYS.SDO_GEOM(2003, 90112,
NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO
_ORDINATE_ARRAY(-179,-89.517,179,83.517) ),'querytype=window')
= 'TRUE'

works from SQL*Plus or something else that you are using with your Oracle? If 
not, then investigate and adjust the DATA string accordingly.

-Jukka Rahkonen-





-Alkuperäinen viesti-
Lähettäjä: [EMAIL PROTECTED] puolesta: zach cruise
Lähetetty: ti 18.11.2008 19:44
Vastaanottaja: mapserver-users@lists.osgeo.org
Kopio: Richard Polk; Smith,Michael ERDC-CRREL-NH
Aihe: Re: [mapserver-users] ms4w (fastcgi) and oracle 10?
 
thanks mike, but i get the same ora-x errors when using either:

shp2img -m oracle.map -o oracle.png -all_debug 10
msOracleSpatialLayerOpen called with: GEOM from STATES using unique ID
srid 90112
msOracleSpatialLayerOpen. Shared connection not available. Creating one.
msConnPoolRegister(layername,username/[EMAIL PROTECTED],019A68E8)
msOracleSpatialLayerFreeItemInfo was called.
msOracleSpatialLayerWhichShapes was called.
msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data:
SELECT ID, GEOM FROM STATES WHERE SDO_FILTER( GEOM,
MDSYS.SDO_GEOM(2003, 90112,
NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-179,-89.517,179,83.517)
),'querytype=window') = 'TRUE'
msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error:
ORA-29900: operator binding does not exist
ORA-06540: PL/SQL: compilation error
ORA-06553: PLS-907: cannot load library unit MDSYS.SDO_3GL (referenced
by MDSYS.SDO_FILTER)
 . Query statement: SELECT ID, GEOM FROM STATES WHERE SDO_FILTER(
GEOM, MDSYS.SDO_GEOM(2003, 90112,
NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO
_ORDINATE_ARRAY(-179,-89.517,179,83.517) ),'querytype=window')
= 'TRUE' . Check your data statement.

using 4.8 with /ignored-libmap/oracle10g/libmap.dll. how do i tell if
i have native or ogr support for oracle 10g? i also edited httpd.conf
(did i need to?) from
http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto, but
still no luck.

On Tue, Nov 18, 2008 at 6:42 AM, Smith, Michael ERDC-CRREL-NH
<[EMAIL PROTECTED]> wrote:
> Zach,
>
> Your DATA statement is almost correct. If you are going to use the UNIQUE
> keyword (for supporting queries), you must put a column name after UNIQUE
> and before the SRID.
>
> Either of these would work:
>
> DATA ' GEOM from STATES using UNIQUE ID srid 90112'
>
> or
>
> DATA ' GEOM from STATES using srid 90112'
>
> Assuming you have a column named ID, of course.
>
> Mike
>
>
> --
> Michael Smith
> RSGIS Center
> ERDC - CRREL
> US Army Corps of Engineers
>
>
>
>
> On 11/17/08  8:21 PM, "zach cruise" <[EMAIL PROTECTED]> wrote:
>
>> troubleshooting info on 4.8 box with /ignored-libmap/oracle10g/libmap.dll:
>> shp2img -m oracle.map -o oracle.png -all_debug 10
>> msOracleSpatialLayerOpen called with: GEOMETRY from STATES using
>> unique srid 90112
>> msOracleSpatialLayerOpen. Shared connection not available. Creating one.
>> msConnPoolRegister(layername,username/[EMAIL PROTECTED],019A68E8)
>> msOracleSpatialLayerFreeItemInfo was called.
>> msOracleSpatialLayerWhichShapes was called.
>> msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error parsing
>> OracleSpatial DATA variable. Must be:'geometry_column FROM table_name
>> [USING UNIQUE  SRID srid# FUNCTION]' or 'geometry_column FROM
>> (SELECT stmt) [USING UNIQUE  SRID srid# FUNCTION]'. If want to
>> set the FUNCTION statement you can use: FILTER, RELATE, GEOMRELATE or
>> NONE. Your data statement: GEOM from STATES using unique srid 90112
>>
>> On Mon, Nov 17, 2008 at 7:34 PM, zach cruise <[EMAIL PROTECTED]> wrote:
>>> btw i got oracle 10 client (with tnsnames.ora) on 4.8 box. other than
>>> returning multiple ora- errors, 4.8 also returns "web template
>>> error" if i use /ignored-libmap/oracle10g/libmap.dll. this error is
>>> even for only shapefile maps. error goes away when i switch back to
>>> normal libmap.dll.
>>>
>>> On Mon, Nov 17, 2008 at 5:56 PM, zach cruise <[EMAIL PROTECTED]> wrote:
 looks like mod_fastcgi is not an option with ms4w and oracle 10.
 anyway it had little benefits.

 i now got mapserver 5.2 and 4.8:
 i thought 5.2 had native built-in support for oracle 10, but it is
 giving me "OracleSpatial is not supported" error. i also thought 4.8
 could get ogr support for oracle 10 by following the steps on

> http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g>>>
> .
 4.8 connects, but returns multiple ORA- errors.

 so:
 do i have to install oracle 10 client locally and make changes to
 httpd.conf for 5.2 to work?
 how do i find correct srid for 4.8 to work? (DATA "GEOMETRY from
 (select GEOMETRY from STATES where NAME = 'New York')")
 any performance difference between native built-in and ogr supports?

 On Fri, Nov 14, 2008 at 6:22 PM,

Re: [mapserver-users] ms4w (fastcgi) and oracle 10?

2008-11-18 Thread zach cruise
thanks mike, but i get the same ora-x errors when using either:

shp2img -m oracle.map -o oracle.png -all_debug 10
msOracleSpatialLayerOpen called with: GEOM from STATES using unique ID
srid 90112
msOracleSpatialLayerOpen. Shared connection not available. Creating one.
msConnPoolRegister(layername,username/[EMAIL PROTECTED],019A68E8)
msOracleSpatialLayerFreeItemInfo was called.
msOracleSpatialLayerWhichShapes was called.
msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data:
SELECT ID, GEOM FROM STATES WHERE SDO_FILTER( GEOM,
MDSYS.SDO_GEOM(2003, 90112,
NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-179,-89.517,179,83.517)
),'querytype=window') = 'TRUE'
msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error:
ORA-29900: operator binding does not exist
ORA-06540: PL/SQL: compilation error
ORA-06553: PLS-907: cannot load library unit MDSYS.SDO_3GL (referenced
by MDSYS.SDO_FILTER)
 . Query statement: SELECT ID, GEOM FROM STATES WHERE SDO_FILTER(
GEOM, MDSYS.SDO_GEOM(2003, 90112,
NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO
_ORDINATE_ARRAY(-179,-89.517,179,83.517) ),'querytype=window')
= 'TRUE' . Check your data statement.

using 4.8 with /ignored-libmap/oracle10g/libmap.dll. how do i tell if
i have native or ogr support for oracle 10g? i also edited httpd.conf
(did i need to?) from
http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto, but
still no luck.

On Tue, Nov 18, 2008 at 6:42 AM, Smith, Michael ERDC-CRREL-NH
<[EMAIL PROTECTED]> wrote:
> Zach,
>
> Your DATA statement is almost correct. If you are going to use the UNIQUE
> keyword (for supporting queries), you must put a column name after UNIQUE
> and before the SRID.
>
> Either of these would work:
>
> DATA ' GEOM from STATES using UNIQUE ID srid 90112'
>
> or
>
> DATA ' GEOM from STATES using srid 90112'
>
> Assuming you have a column named ID, of course.
>
> Mike
>
>
> --
> Michael Smith
> RSGIS Center
> ERDC - CRREL
> US Army Corps of Engineers
>
>
>
>
> On 11/17/08  8:21 PM, "zach cruise" <[EMAIL PROTECTED]> wrote:
>
>> troubleshooting info on 4.8 box with /ignored-libmap/oracle10g/libmap.dll:
>> shp2img -m oracle.map -o oracle.png -all_debug 10
>> msOracleSpatialLayerOpen called with: GEOMETRY from STATES using
>> unique srid 90112
>> msOracleSpatialLayerOpen. Shared connection not available. Creating one.
>> msConnPoolRegister(layername,username/[EMAIL PROTECTED],019A68E8)
>> msOracleSpatialLayerFreeItemInfo was called.
>> msOracleSpatialLayerWhichShapes was called.
>> msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error parsing
>> OracleSpatial DATA variable. Must be:'geometry_column FROM table_name
>> [USING UNIQUE  SRID srid# FUNCTION]' or 'geometry_column FROM
>> (SELECT stmt) [USING UNIQUE  SRID srid# FUNCTION]'. If want to
>> set the FUNCTION statement you can use: FILTER, RELATE, GEOMRELATE or
>> NONE. Your data statement: GEOM from STATES using unique srid 90112
>>
>> On Mon, Nov 17, 2008 at 7:34 PM, zach cruise <[EMAIL PROTECTED]> wrote:
>>> btw i got oracle 10 client (with tnsnames.ora) on 4.8 box. other than
>>> returning multiple ora- errors, 4.8 also returns "web template
>>> error" if i use /ignored-libmap/oracle10g/libmap.dll. this error is
>>> even for only shapefile maps. error goes away when i switch back to
>>> normal libmap.dll.
>>>
>>> On Mon, Nov 17, 2008 at 5:56 PM, zach cruise <[EMAIL PROTECTED]> wrote:
 looks like mod_fastcgi is not an option with ms4w and oracle 10.
 anyway it had little benefits.

 i now got mapserver 5.2 and 4.8:
 i thought 5.2 had native built-in support for oracle 10, but it is
 giving me "OracleSpatial is not supported" error. i also thought 4.8
 could get ogr support for oracle 10 by following the steps on

> http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g>>>
> .
 4.8 connects, but returns multiple ORA- errors.

 so:
 do i have to install oracle 10 client locally and make changes to
 httpd.conf for 5.2 to work?
 how do i find correct srid for 4.8 to work? (DATA "GEOMETRY from
 (select GEOMETRY from STATES where NAME = 'New York')")
 any performance difference between native built-in and ogr supports?

 On Fri, Nov 14, 2008 at 6:22 PM, Jeff McKenna
 <[EMAIL PROTECTED]> wrote:
> zach cruise wrote:
>>
>> does current ms4w with fastcgi work with oracle 10?
>>
>> here're warnings
>> http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi
>>
>> http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-Windows-to1
>> 8394152.html
>> in testing this was successful with PostgreSQL 8.3.1 / PostGIS 1.3.3,
>> but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: "mod_fcgid: get
>> overlap result error")
>>
>> if not, any workarounds?
>
> I tested and wrote that note...and am not aware of a workaround yet. You
> should also send this ques

Re: [MAPSERVER-USERS] Problem TEMPLATE to use getfeatureinfo.html

2008-11-18 Thread Tellett

Hi Tio,

The 'ttt' template should exist but it should be blank. Open an empty
document
in notepad or textpad etc and save that empty document as 'ttt.html'. Each
layer
in the mapfile has to reference a template in order for that layer to be
considered 
queryable by mapserver. If you want your getfeatureinfo results to be
presented in 
html format however, you will have to write an html template that fits your
data 
(with header and footer if you want multiple results returned). If all your
layers 
reference the 'ttt' template, the only output formats for getfeatureinfo
results you
can use are text/plain and text/gml. hope that helps a little,

Tom





Hello

I try to use the example provided by getfeatureinfo.html Mapfish.org
I joined the mail 3 files:
map.js configuration layers with getfeaturesinfo
http://www.nomorepasting.com/getpaste.php?pasteid=21979
websig_norm.map: server configuration wms

I have an error in execution:

Content-type: application / vnd.ogc.se_xml
http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd";>


msReturnPage (): Unable to access file. ttt.html





-- 
View this message in context: 
http://www.nabble.com/Problem-TEMPLATE-to-use-getfeatureinfo.html-tp20543794p20558306.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] ms4w (fastcgi) and oracle 10?

2008-11-18 Thread Smith, Michael ERDC-CRREL-NH
Zach,

Your DATA statement is almost correct. If you are going to use the UNIQUE
keyword (for supporting queries), you must put a column name after UNIQUE
and before the SRID.

Either of these would work:

DATA ' GEOM from STATES using UNIQUE ID srid 90112'

or

DATA ' GEOM from STATES using srid 90112'

Assuming you have a column named ID, of course.

Mike


-- 
Michael Smith
RSGIS Center
ERDC - CRREL
US Army Corps of Engineers




On 11/17/08  8:21 PM, "zach cruise" <[EMAIL PROTECTED]> wrote:

> troubleshooting info on 4.8 box with /ignored-libmap/oracle10g/libmap.dll:
> shp2img -m oracle.map -o oracle.png -all_debug 10
> msOracleSpatialLayerOpen called with: GEOMETRY from STATES using
> unique srid 90112
> msOracleSpatialLayerOpen. Shared connection not available. Creating one.
> msConnPoolRegister(layername,username/[EMAIL PROTECTED],019A68E8)
> msOracleSpatialLayerFreeItemInfo was called.
> msOracleSpatialLayerWhichShapes was called.
> msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error parsing
> OracleSpatial DATA variable. Must be:'geometry_column FROM table_name
> [USING UNIQUE  SRID srid# FUNCTION]' or 'geometry_column FROM
> (SELECT stmt) [USING UNIQUE  SRID srid# FUNCTION]'. If want to
> set the FUNCTION statement you can use: FILTER, RELATE, GEOMRELATE or
> NONE. Your data statement: GEOM from STATES using unique srid 90112
> 
> On Mon, Nov 17, 2008 at 7:34 PM, zach cruise <[EMAIL PROTECTED]> wrote:
>> btw i got oracle 10 client (with tnsnames.ora) on 4.8 box. other than
>> returning multiple ora- errors, 4.8 also returns "web template
>> error" if i use /ignored-libmap/oracle10g/libmap.dll. this error is
>> even for only shapefile maps. error goes away when i switch back to
>> normal libmap.dll.
>> 
>> On Mon, Nov 17, 2008 at 5:56 PM, zach cruise <[EMAIL PROTECTED]> wrote:
>>> looks like mod_fastcgi is not an option with ms4w and oracle 10.
>>> anyway it had little benefits.
>>> 
>>> i now got mapserver 5.2 and 4.8:
>>> i thought 5.2 had native built-in support for oracle 10, but it is
>>> giving me "OracleSpatial is not supported" error. i also thought 4.8
>>> could get ogr support for oracle 10 by following the steps on
>>> 
http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g>>>
.
>>> 4.8 connects, but returns multiple ORA- errors.
>>> 
>>> so:
>>> do i have to install oracle 10 client locally and make changes to
>>> httpd.conf for 5.2 to work?
>>> how do i find correct srid for 4.8 to work? (DATA "GEOMETRY from
>>> (select GEOMETRY from STATES where NAME = 'New York')")
>>> any performance difference between native built-in and ogr supports?
>>> 
>>> On Fri, Nov 14, 2008 at 6:22 PM, Jeff McKenna
>>> <[EMAIL PROTECTED]> wrote:
 zach cruise wrote:
> 
> does current ms4w with fastcgi work with oracle 10?
> 
> here're warnings
> http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi
> 
> http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-Windows-to1
> 8394152.html
> in testing this was successful with PostgreSQL 8.3.1 / PostGIS 1.3.3,
> but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: "mod_fcgid: get
> overlap result error")
> 
> if not, any workarounds?
 
 I tested and wrote that note...and am not aware of a workaround yet. You
 should also send this question to the MS4W mailing list (subscribe at:
 http://lists.maptools.org/mailman/listinfo/ms4w-users)
 
 
 --
 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] TRANSPARENCY PROBLEM

2008-11-18 Thread Pietro Giannini
Also you must set the transparency (opacity in ms5) at LAYER level.
The scale is from 1 - very transparent, almost invisible - to 100 - full
color.
I use this as mapfile:
___
map
...
imagetype   png
...
outputformat
namepng
driver  "gd/png"
mimetype"image/png"
imagemode   rgb
extension   "png"
end
...
layer
...
transparency20  # from 1 to 100
...
end
...
end


No matter set the TRANSPARENT ON at map level

let me know

ciao  pg



-- 
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E




On Mar, Novembre 18, 2008 01:16, ntiamoah bernard wrote:
> I mean transparent but not completely transparent
>
> --- On Mon, 11/17/08, Pietro Giannini <[EMAIL PROTECTED]> wrote:
>
> From: Pietro Giannini <[EMAIL PROTECTED]>
> Subject: Re: [mapserver-users] TRANSPARENCY PROBLEM
> To: mapserver-users@lists.osgeo.org
> Date: Monday, November 17, 2008, 1:34 PM
>
> John,
> what do you mean when you say "transparent colored polygon"?
> ... pg
>
>
> On Lun, Novembre 17, 2008 18:16, John Kummun wrote:
>> hi Pietro,
>> I made some changes you suggested but i only get faded layer. I want to
>> be
>> able to see through it to see the aerial photo. I tried COLOR -1 -1 -1
>> but
>> it makes the polygon hollow...my doesn't like that. He wants
> transparent
>> colored polygon. I hope you understand what i am trying say. Here is the
>> mapfile again. Please copy and make changes you feel is the best for me:
>> MAP
>>  NAME 'School_boundary'
>>  SIZE 800 650
>>  STATUS ON
>>  EXTENT  347683.125124 1652890.274125 458837.845673 1759026.124282
>>  UNITS feet
>>  FONTSET '../fonts/fonts.list'
>>  SYMBOLSET '../symbols/symbol.sym'
>>  TRANSPARENT ON
>>  IMAGETYPE PNG
>>  QUERYMAP
>>   STATUS ON
>>   STYLE SELECTED
>>  END
>>  WEB
>>    IMAGEURL "/ms4w/tmp/ms_tmp/"
>>    IMAGEPATH "/ms4w/tmp/ms_tmp/"
>>  END
>>  LEGEND
>>   STATUS ON
>>  END
>>
>>   LAYER
>>     NAME 'School_district'
>>     TYPE POLYGON
>>     DATA
>>
> '/ms4w/apps/GeoMOOSE/maps_countydemo/social_service/school_boundaries.shp'
>>     METADATA
>>   'wms_title' 'school_boundary'
>>     END
>>     STATUS DEFAULT
>>     TRANSPARENCY 25
>>     #MAXSCALE 200
>>     LABELITEM 'NAME'
>>     CLASS
>>    NAME 'school_district'
>>    SYMBOL 0
>>    SIZE 2
>>    OUTLINECOLOR 0 255 170
>>    COLOR 224 255 255
>>     LABEL
>>   TYPE TRUETYPE
>>   FONT arial
>>   SIZE 8
>>   COLOR 233 122 100
>>   ANGLE 0
>>   POSITION CC
>>   MINDISTANCE 250
>>   BUFFER 1
>>   WRAP " "
>>  END
>>     END
>>   END
>> END
>>  
>> thanks
>> John
>>
>> --- On Mon, 11/17/08, Pietro Giannini <[EMAIL PROTECTED]> wrote:
>>
>> From: Pietro Giannini <[EMAIL PROTECTED]>
>> Subject: Re: [mapserver-users] TRANSPARENCY PROBLEM
>> To: mapserver-users@lists.osgeo.org
>> Date: Monday, November 17, 2008, 8:57 AM
>>
>> Hi john,
>> simply omit the whole STYLE in the class, this make the layer
>> transparent.
>> Or, if this seems dirty, set COLOR -1 -1 -1 and OUTLINECOLOR -1 -1 -1.
>> In fact the TRANSPARENCY 1 render a very faded layer, while TRANSPARENCY
>> 0
>> is like TRANSPARENCY 100...
>>
>> (TRANSPARENCY is deprecated in ms5, use OPACITY)
>>
>> let me know, ciao
>> .pg
>>
>>
>> --
>> Pietro Giannini
>> Bytewise srl - Area GIS
>> 41°50'38.58"N 12°29'13.39"E
>>
>>
>>
>> On Lun, Novembre 17, 2008 17:00, ntiamoah bernard wrote:
>>> Hi guys,
>>> I need suggestions for the following problem:
>>>  
>>>  I want to put transparency on polygon layer so that aerial photo
> could
>> be
>>> seen below it. I have tried TRANSPARECY and OPACITY but i only get
> faded
>>> not transparent layer. My imagetype is PNG. Here is the mapfile
>>>  
>>> MAP
>>>  NAME 'School_boundary'
>>>  SIZE 800 650
>>>  STATUS ON
>>>  EXTENT  347683.125124 1652890.274125 458837.845673 1759026.124282
>>>  UNITS feet
>>>  FONTSET '../fonts/fonts.list'
>>>  SYMBOLSET '../symbols/symbol.sym'
>>>     OUTPUTFORMAT
>>>     NAME 'png'
>>>     DRIVER GD/PNG
>>>     IMAGEMODE RGBA
>>>     EXTENSION "png"

>>>     FORMATOPTION "FULL_RESOLUTION=TRUE"
>>>     FORMATOPTION "INTERLACE=OFF"
>>>     TRANSPARENT ON
>>>     END #end outputformat
>>>  #IMAGETYPE PNG
>>>  QUERYMAP
>>>   STATUS ON
>>>   STYLE SELECTED
>>>  END
>>>  WEB
>>>    IMAGEURL "/ms4w/tmp/ms_tmp/"
>>>    IMAGEPATH "/ms4w/tmp/ms_tmp/"
>>>  END
>>>  LEGEND
>>>   STATUS ON
>>>  END
>>>
>>>   LAYER
>>>     NAME 'School_district'
>>>     TYPE POLYGON
>>>     DATA
>>>
>>
> '/ms4w/apps/GeoMOOSE/maps_countydemo/social_service/school_boundaries.shp'
>>>     METADATA
>>>   'wms_title' 'school_boundary'
>>>     END
>>>