Re: [mapserver-users] Farsi right-to-left labels

2008-03-17 Thread Micha Silver

Daniel Morissette wrote:

Copying what I wrote earlier this morning on the ka-map list (sorry 
for those on both lists):


FYI there is an open MapServer ticket about this:
  http://trac.osgeo.org/mapserver/ticket/956

The ticket even includes a patch that you may want to try. I'll try to 
address this one for MapServer 5.2.



Great news!
I'll be building a new mapserver setup soon (currently running 4.10.3). 
I think that Ehud Shabatai's patch for bidi support is only against 
versions around 4.6.x. If  there's anything newer, I'd be happy to try. 
I've got plenty of data in PostGIS with hebrew labels waiting to be 
used. And version 5.2 is still quite a ways off, I guess.


Thanks,
Micha

Daniel





--
Micha Silver
Arava Development Co
+972-8-6592270

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


[mapserver-users] activate axtivex by default

2008-03-17 Thread Janosch.Skrobek
Hello everyone!

I have implemented a javascript rubber box in my mapserver application.
Whenever someone using internet explorer 6 trys to use the apllication
they have to click once so the applet gets activated and again after
each time the page has reloaded ... Pretty annoying ... does anyone know
how to avoid this?

Thanks in advance!
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


[MAPSERVER-USERS] cs2cs problems

2008-03-17 Thread cfb

Hi,

I’m having problems with the projection again. I’ve got a shape in
epsg:23030 (ED50 UTM 30N), but I want to set my service in epsg:4230
(ETRS89). I’ve changed the extent, the wms_boundingbox and the
wms_latlonboundingbox of my header’s mapfile to geographic coordinates
(epsg:4230 for ED50), and in the projection object (always in the header, in
the layer object I leave epsg:23030) I put:

PROJECTION
   'cs2cs +from +init=epsg:4230 +to +proj=4258 +no_defs +no_defs +no_defs
+no_defs +ellps=GRS80 +datum=ETRS89 +no_defs +units=m'  
END http://www.nabble.com/file/p16092875/epsg epsg 

For the second reference system, I’ve also tried with “+proj=longlat” and
with “+init=epsg:4258”, but I get always the same error: 

msProcessProjection(): Projection library error. projection not named

The epsg file of my proj4 is attached (ms4w v. 2.2.7, MapServer 5.0.2)

Thanks in advance!!

-- 
View this message in context: 
http://www.nabble.com/cs2cs-problems-tp16092875p16092875.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


[mapserver-users] SET MAPSERVER-USERS DIGEST

2008-03-17 Thread Ben Thompson
SET MAPSERVER-USERS DIGEST
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] AGG vs. GD: Label placement problems

2008-03-17 Thread Daniel Morissette

Doyon, Jean-Francois wrote:


Labels that are to the left of the point seem to be placed differently ... Look top-right 
(Les Escoumins, Saint Anne de Port Neuf, etc ...) for an example, though it 
happens all over the place I think.  Labels to the right of the point however seem ok.

Is this a bug? A design change?  Can anything be done from the mapfiel to 
mitigate this?



A few days ago, ThomasB wrote on mapserver-dev that in AGG mode, gd is 
still used [...] for the calculation of label sizes (thus some subtle 
discreptancies in label placement, mostly visible if using a label 
backgroundcolor):


http://lists.osgeo.org/pipermail/mapserver-dev/2008-March/006868.html

Maybe that's what your running into? Hopefully Thomas will see this and 
comment.


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


Re: [mapserver-users] Farsi right-to-left labels

2008-03-17 Thread Daniel Morissette

Micha Silver wrote:
I'll be building a new mapserver setup soon (currently running 4.10.3). 
I think that Ehud Shabatai's patch for bidi support is only against 
versions around 4.6.x. If  there's anything newer, I'd be happy to try. 
I've got plenty of data in PostGIS with hebrew labels waiting to be 
used. And version 5.2 is still quite a ways off, I guess.




Micha,

See ticket #956, we have ported the patches to 5.0 and committed the 
required changes to SVN trunk:

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

If you cannot use 5.1 (svn trunk) then you could try to patch your 5.0 
source using the diffs from:

  http://trac.osgeo.org/mapserver/changeset/7457?format=diffnew=7457

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


[mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables to shp2img?

2008-03-17 Thread John Smith
can i pass variables to shp2img, say?

shp2img -m ...map -o ...gif %variable1% %variable2%

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


VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img?

2008-03-17 Thread Rahkonen Jukka

If you use Windows, make a batch file, let's say run.bat
shp2img -m ...map -o ...gif %1% %2%

Then send from command line:

run.bat variable1 variable2 (they will be inserted in place of %1 and %2)

-Jukka Rahkonen-


-Alkuperäinen viesti-
Lähettäjä: [EMAIL PROTECTED] puolesta: John Smith
Lähetetty: ma 17.3.2008 22:33
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img?
 
can i pass variables to shp2img, say?

shp2img -m ...map -o ...gif %variable1% %variable2%

jzs
___
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 and fastcgi-benefits?

2008-03-17 Thread Kai Behncke
Hello list,

I`m testing MapServer with fast-cgi to see if there`s a benefit in performance.

I succesfully compiled MapServer with fast-cgi, in my Apache 2.2 at Debian Etch 
the mod_fastcgi is activated, the httpd.conf has the needed entries and in my 
mapfile I set 
PROCESSING CLOSE_CONNECTION=DEFER
to a very expensive Layer (the data are shapefiles).

But if I check the performance with siege
(siege -c 4 -r 10 
http://localhost/cgi-bin/mapserv?map=/var/www/wms_ogc/wms_server.map)
I don`t see any performance benefits in comparison to MapServer without 
fastcgi??

Am I do something wrong??
What is the benefit of fast-cgi?
Should`t it be faster than normal-cgi?

Thank you very much in advance, Kai
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img?

2008-03-17 Thread Stephen Woodbridge

You can do it with the mapserv executable from the commandline via

mapserv QUERY_STRING='map=/path/tofile.mapvalue=foovalue2=bar...'

-Steve W


John Smith wrote:

thks but i fail to see the benefit of that- does shp2img.exe know what
to do with these inserted variables?

i want to use variables in the map file for a postgis query, like
%var%. passing [-m ...map?value=%var%] throws a msEvalRegex() error.
jzs

On Mon, Mar 17, 2008 at 4:38 PM, Rahkonen Jukka
[EMAIL PROTECTED] wrote:

If you use Windows, make a batch file, let's say run.bat
shp2img -m ...map -o ...gif %1% %2%

Then send from command line:

run.bat variable1 variable2 (they will be inserted in place of %1 and %2)

-Jukka Rahkonen-


-Alkuperäinen viesti-
Lähettäjä: [EMAIL PROTECTED] puolesta: John Smith
Lähetetty: ma 17.3.2008 22:33
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img?

can i pass variables to shp2img, say?

shp2img -m ...map -o ...gif %variable1% %variable2%

jzs
___
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: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variablestoshp2img?

2008-03-17 Thread Rahkonen Jukka
Sorry, I should have asked you to to clarify a bit your question.  Anyway, sure 
it is possible to pass variables with a number of ways by using what ever 
scripting or programming language you wish.  But where are you going to catch 
those variables, and for what purpose? Are you getting them by yourself or 
would you like to get them from web users? And which one do you want to pass 
them, to shp2img or to the mapfile there behind? With shp2img you cannot do 
interactive database queries, I fear.

-Jukka-


-Alkuperäinen viesti-
Lähettäjä: [EMAIL PROTECTED] puolesta: John Smith
Lähetetty: ma 17.3.2008 22:55
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: Re: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass 
variablestoshp2img?
 
thks but i fail to see the benefit of that- does shp2img.exe know what
to do with these inserted variables?

i want to use variables in the map file for a postgis query, like
%var%. passing [-m ...map?value=%var%] throws a msEvalRegex() error.
jzs

On Mon, Mar 17, 2008 at 4:38 PM, Rahkonen Jukka
[EMAIL PROTECTED] wrote:

 If you use Windows, make a batch file, let's say run.bat
 shp2img -m ...map -o ...gif %1% %2%

 Then send from command line:

 run.bat variable1 variable2 (they will be inserted in place of %1 and %2)

 -Jukka Rahkonen-


 -Alkuperäinen viesti-
 Lähettäjä: [EMAIL PROTECTED] puolesta: John Smith
 Lähetetty: ma 17.3.2008 22:33
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img?

 can i pass variables to shp2img, say?

 shp2img -m ...map -o ...gif %variable1% %variable2%

 jzs
 ___
 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] MapServer and fastcgi-benefits?

2008-03-17 Thread Frank Warmerdam

Kai Behncke wrote:

Hello list,

I`m testing MapServer with fast-cgi to see if there`s a benefit in performance.

I succesfully compiled MapServer with fast-cgi, in my Apache 2.2 at Debian Etch the mod_fastcgi is activated, the httpd.conf has the needed entries and in my mapfile I set 
PROCESSING CLOSE_CONNECTION=DEFER

to a very expensive Layer (the data are shapefiles).

But if I check the performance with siege
(siege -c 4 -r 10 
http://localhost/cgi-bin/mapserv?map=/var/www/wms_ogc/wms_server.map)
I don`t see any performance benefits in comparison to MapServer without 
fastcgi??

Am I do something wrong??
What is the benefit of fast-cgi?
Should`t it be faster than normal-cgi?


Kai,

FastCGI can be helpful for layers with a high connection cost.  Even large
shapefiles don't take long to open so the benefit of fastcgi is negligable
(and in fact the shapefile layer type ignores CLOSE_CONNECTION).  The benefit
becomes significant with SDE, and Oracle layers primarily though I've heard
reports of measurable improvements with PostGIS or OGR depending on the
situation.

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


Re: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault

2008-03-17 Thread rich.fromm


Dave Fuhry wrote:
 
 Oops, forgot to CC mapserver-users.
 
 -- Forwarded message --
 From: Dave Fuhry [EMAIL PROTECTED]
 Date: Wed, Mar 12, 2008 at 6:33 PM
 Subject: Re: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault
 To: Ivan Mincik [EMAIL PROTECTED]
 
 ...
 
  So essentially, the patch should be modified to remove the ROLLBACKs
  from msPOSTGISLayerGetShape() in a safe way.
 

Just to make sure I'm properly interpreting the status of what's getting to
be a bit of a long thread here...

You're saying that this patch:
http://trac.osgeo.org/mapserver/attachment/ticket/2497/ms_postgis_begin_to_connect.diff
from this bug:
http://trac.osgeo.org/mapserver/ticket/2497
is not entirely correct and should be modified?
But this change has not happened yet, I gather?

I assume that if/when there's a new patch, notice will be posted either in
this mailing list thread or that bug?

I ask b/c I build mapserver from source and am currently using that patch,
and I want to make sure I recompile if that patch changes.

Thanks.

- Rich

-- 
View this message in context: 
http://www.nabble.com/CLOSE_CONNECTION%3DDEFERSegmentation-fault-tp15786741p16112199.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] msProcessProjection(): Projection library error.

2008-03-17 Thread rich.fromm


rich.fromm wrote:
 
 Just wanted to give a little update here...
 
 After on a few occasions (admittedly rare) seeing mapserver crashes in
 java
 mapscript calls to mapObj.new() (discussed earlier in this thread) while
 under
 heavy load, I decided to to wrap the call to new mapObj(String filename)
 in a
 synchronized() {} block in my java code.  This did not have a significant
 impact on performance, and I have not again seen the crash, even after
 long
 (24 hours) stress tests.
 
 While this doesn't prove anything, it is my belief that there is probably
 some
 threading/locking/synchronization issue in mapObj.new(), and that this is
 separate from what has already been reported as bug 2533
 (http://trac.osgeo.org/mapserver/ticket/2533), and that in the absence of
 any
 other bugfix, that this is a reasonable workaround.
 
 I will file this as a separate bug.
 

This is now filed as bug 2550:
http://trac.osgeo.org/mapserver/ticket/2550

- Rich

-- 
View this message in context: 
http://www.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-tp15815968p16112218.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