[mapserver-users] Performance in regular expressions or an alternative way to select a list of features

2009-07-14 Thread Adrian Popa
Hello everyone, Here's my problem: I'm trying to highlight segments from a line layer by using an expression in a specific class. This portion of the mapfile is dynamically generated and when it is done, it is sent to mapserver for rendering. My problem is that I have to select between 10 -

RE: [mapserver-users] Performance in regular expressions or an alternative way to select a list of features

2009-07-14 Thread Nikolai Nikolov
Hi Adrian, I have used long EXPRESSION list in the past, but my data are static, so eventually I modified the map data and removed the polygons I didn't want to render. I could suggest to you to use in your map file several LAYERs or CLASSes to spread around long EXPRESSION lists. Those

Re: [mapserver-users] Performance in regular expressions or an alternative way to select a list of features

2009-07-14 Thread Adrian Popa
Hello Nikolai, As far as you know - the Layers/Classes are processed in paralel (threads)? Would it even be more efficient not to use expressions, but to use simple string matchings and dynamically generate 10-400 Classes in a layer (one class per item)? What would be the best/most scalable

[mapserver-users] Re: Reprojecting cascading WMS requests (Rob)

2009-07-14 Thread Rob
Hi Mark Thanks for the reply. But I am already putting the projection information in three places arent I? MAP PROJECTION init=epsg:27700 END WEB METADATA http://localhost/cgi-bin/mapserv.exe?map=example.map; WMS_SRS EPSG:27700 ESPG:4326 END END LAYER NAME layer

Réf. : Re: [mapserver-users] tool to generate a mapfile

2009-07-14 Thread YOUNESS ELMEDRAOUI
mapfile editor from mapfish studio can generate a file .map extension?i'm programming an application with vb .net mapserver and we want to integrate a tool to generate a mapfiles dynamicly. can i integrate a mafile editor from mapfish to my application asp .net?best regardsYounessELMEDRAOUILes

[mapserver-users] support for projectioin=NONE or CRS:1

2009-07-14 Thread Rodriguez, Heraldo
Hi everyone, We are using mapserver 5.4 with openlayers 2.7 and tilecache 2.10. Mapserver is running as a CGI application. Our data are in planar coordinates ,and since we are using mapserver as a WMS server and a WFS server we must set a projection in

[mapserver-users] Backgrounds and Graticules in Pseudo-cylindrical Projections

2009-07-14 Thread winwaed
I am using MapServer to create some web maps using equal area projections. Most of these are pseudo-cylindrical, and I am currently using Mollweide for the initial development. This works fine and I even have it working with WMS to OpenLayers (OpenLayers and adding layers from different

[mapserver-users] (min/max)scaledenom for WFS layers

2009-07-14 Thread Tom Chase
Is it possible to switch WFS layers on/off on a zoom basis in the same way as you can with WMS layers? If I specify the individual layers in my request, the layer is returned, regardless of zoom, and if I request the group name, I get Typename doesn't exist error. Should this work, and if so

Re: [mapserver-users] (min/max)scaledenom for WFS layers

2009-07-14 Thread Daniel Morissette
Tom Chase wrote: Is it possible to switch WFS layers on/off on a zoom basis in the same way as you can with WMS layers? If I specify the individual layers in my request, the layer is returned, regardless of zoom, and if I request the group name, I get Typename doesn't exist error. Should this

Re: [mapserver-users] Performance in regular expressions or analternative way to select a list of features

2009-07-14 Thread Steve Lime
Have you tried a simplified version of your regex? I think you can do: EXPRESSION /^ITEM1|ITEM2|ITEM3|ITEM4$/ You might also consider writing a temporary set of geometries if a user will continually display from that set. In that case your overhead would be in managing the set of features

Re: [mapserver-users] Backgrounds and Graticules in Pseudo-cylindrical Projections

2009-07-14 Thread Paul Ramsey
The way I would approach this would be to generate a physical graticule. That is, an actual polygonal lat/lon grid on the spacing desired and with vertex densification between the corners. The polygons can then be added and projected, color filled for the effect you want, and the outlines

[mapserver-users] Problems with shape.index after layer.addFeature (MS 5.4.1 and C#)

2009-07-14 Thread Vagner Sousa
Hi, there. I'm experiencing some troubles with the new release of MapServer. You may take a quick look at the excerpt of code bellow: if (ret == (int)MS_RETURN_VALUE.MS_SUCCESS) { resultCacheObj results = layer.getResults(); for (int i = 0; i results.numresults; i++) { int

[mapserver-users] Problems with shape.index after layer.addFeature (MS 5.4.1 and C#)

2009-07-14 Thread Vagner Sousa
Hi, there. I'm experiencing some troubles with the new release of MapServer. You may take a quick look at the excerpt of code bellow: if (ret == (int)MS_RETURN_VALUE.MS_SUCCESS) { resultCacheObj results = layer.getResults(); for (int i = 0; i results.numresults; i++) { int

[mapserver-users] Zoom to given coordinate(lat/lon) using Mapscript...

2009-07-14 Thread Paul james
How can I do that? Paul ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Mapserver Developer Needed

2009-07-14 Thread cupofnestor
I am Ryan Nestor, of Monadnock Media in Sunderland, MA, USA. We are looking for an experienced Mapserver developer to configure a server for us. We plan on putting together a system which will serve watershed data as well as DEMs and several other layers. The final product is a computer

Re: [mapserver-users] Backgrounds and Graticules in Pseudo-cylindrical Projections

2009-07-14 Thread Richard Marsden
Thanks Paul. Good thinking - combine both problems with the same solution! Cheers, Richard On Tue, Jul 14, 2009 at 9:50 AM, Paul Ramsey pram...@cleverelephant.cawrote: The way I would approach this would be to generate a physical graticule. That is, an actual polygonal lat/lon grid on the

[mapserver-users] Problems with shape.index after using layer.addFeature (MapServer 5.4.1 and .net C#)

2009-07-14 Thread Vagner Sousa
Hi, there. I'm experiencing some troubles with the new release of MapServer. You may take a quick look at the excerpt of code bellow: if (ret == (int)MS_RETURN_VALUE.MS_SUCCESS) { resultCacheObj results = layer.getResults(); for (int i = 0; i results.numresults; i++) { int

[mapserver-users] Problems with shape.index after layer.addFeature (MS 5.4.1 and C#)

2009-07-14 Thread Vagner Sousa
Hi, there. I'm experiencing some troubles with the new release of MapServer. I got the following while debugging that (Visual Studio IDE): results.getResult(0) {OSGeo.MapServer.resultCacheMemberObj} classindex: 0 shapeindex: 1 tileindex: -1 results.getResult(1)

Re: [mapserver-users] Zoom to given coordinate(lat/lon) using Mapscript...

2009-07-14 Thread Tamas Szekeres
Paul, Assuming the desired coordinates are in the same spatial reference system as the layer you could use mapObj.setCenter and mapObj.scaleExtent. Best regards, Tamas 2009/7/14 Paul james paulj...@gmail.com How can I do that? Paul ___

Re: [mapserver-users] Problems with shape.index after layer.addFeature (MS 5.4.1 and C#)

2009-07-14 Thread Tamas Szekeres
Hi, In my understanding it's up to the driver how the index is specified and it 's not safe to expose the setter of the shape index value. The most trivial option of setting the indexes to different values by the driver is to increment the index in each addfeature for the inline layers. Otherwise

[mapserver-users] How do I get a feature's index after inserting it in a layer using addFeature in the new release of MapServer? (MS 5.4.1 and C#)

2009-07-14 Thread Vagner Sousa
Hi, there. I'm experiencing some troubles with the new release of MapServer. You may take a quick look at the excerpt of code bellow: if (ret == (int)MS_RETURN_VALUE.MS_SUCCESS) {     resultCacheObj results = layer.getResults();     for (int i = 0; i results.numresults; i++)     {         int

[mapserver-users] How do I get a feature's index after inserting it in a layer using addFeature in MapServer 5.4.1? (and C#)

2009-07-14 Thread Vagner Sousa
Hi, there. I'm experiencing some troubles with the new release of MapServer. You may take a quick look at the excerpt of code bellow: if (ret == (int)MS_RETURN_VALUE.MS_SUCCESS) {    resultCacheObj results = layer.getResults();    for (int i = 0; i results.numresults; i++)    {        int

[mapserver-users] How do I get a feature's index after inserting it in a layer using addFeature in MapServer 5.4.1? (and C#)

2009-07-14 Thread Vagner Sousa
Hi, there. I'm experiencing some troubles with the new release of MapServer. The new version of MapServer auto-increments the index property of a feature as soon as it's added to a layer (unlike older releases). I know there's a couple of shape.setValue() and shape.getValue() functions one may

Re: [mapserver-users] Smaller polygon sizes when usingmapserver 5.4.1compare to 5.2.0

2009-07-14 Thread Thomas Bonfort
the previous versions of mapserver (incorrectly I think) used the value of the label buffer to expand the background billboard. You'd get nice results whith a 1 or 2 px buffer like in your case, but unusable ones when you added larger buffers. I hope we can work around this for 5.6 with the