[mapserver-users] the lines one above other

2015-02-12 Thread Vladimir
 Hello All!

The task is to show multilevel junction of highway.
The lines should be at the same layer and has the same style, for example see 
orange lines on attached pic:
[img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img]
Is it possible to draw the lines one above other by an one layer?
May be some method of Z-index for features in a layer exists?
Thanks for any guidance to display this kind of crossroads. Vladimir___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] MapServer 7.0 Beta1 Released

2015-02-12 Thread thomas bonfort
The MapServer team is pleased to announce the long overdue first beta
release of MapServer 7.0. Please help us testing and let us know any
findings.

Details of the new features, migration instructions, and download links
can be found on the dedicated announcement page at
http://www.mapserver.org/development/announce/7-0.html .

Cheers,
The MapServer PSC
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapserv 7.0 and gif

2015-02-12 Thread Richard Greenwood
Very exciting to see the 7.0 beta! So I built it and satisfied the gif
dependency. I define a gif OUTPUTFORMAT definition in my map file, I
request a map with map_imagetype=image/gif but I get a PNG. So is gif
support truly gone in 7.0? And if so, it seems a little misleading to have
a libgif dependency in the build, to allow a gif OUTPUTFORMAT definition,
and to allow a map_imagetype=image/gif request.

In any case - thanks for all the work getting to 7.0!

Rich

-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] [EXTERNAL] Re: the lines one above other

2015-02-12 Thread Smith, Michael ERDC-RDE-CRREL-NH
This is also not an issue in Oracle.

M

On 2/12/15, 8:55 AM, thomas bonfort thomas.bonf...@gmail.com wrote:

Actually there is an issue opened for this, as the order by inside the
subquery is not guaranteed to be maintained in the outer query:
https://github.com/mapserver/mapserver/issues/5008 . For mssql there
has been a patch applied, for postgis it is not needed yet.

On 12 February 2015 at 08:48, Smith, Michael ERDC-RDE-CRREL-NH
michael.sm...@erdc.dren.mil wrote:
 No, MapServer respects the feature order. Using the ORDER BY with a
 database connection, MapServer will draw features in that order.

 Mike

 --
 Michael Smith

 US Army Corps
 Remote Sensing GIS/Center



 On 2/12/15, 7:52 AM, Eichner, Andreas - SID
 andreas.eich...@sid.sachsen.de wrote:

I'm not sure about this but AFAIK MapServer draws features in the order
they are returned by the query. For Shapefiles there is the sortshp
utility. If you're on a relational database like PostGIS or
OracleSpatial
you can try including the ORDER BY prio within the DATA. But since MS
wraps it into a subquery the database might still return the features
out
of order.

 -Ursprüngliche Nachricht-
 Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] Im Auftrag von Vladimir
 Gesendet: Donnerstag, 12. Februar 2015 12:02
 An: mapserver-users@lists.osgeo.org
 Betreff: [mapserver-users] the lines one above other

 Hello All!



 The task is to show multilevel junction of highway.
 The lines should be at the same layer and has the same style, for
example
 see orange lines on attached pic:
 [img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img]
 Is it possible to draw the lines one above other by an one layer?
 May be some method of Z-index for features in a layer exists?
 Thanks for any guidance to display this kind of crossroads.

 Vladimir
___
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] the lines one above other

2015-02-12 Thread Lars Fricke

  
  
Vladimir,
  
  I see, so you do not need the order of the LAYERS but the order of
  the FEATURES. I did not understand that correctly at first, sorry.
  In that case, I guess Andreas approach would be the one.
  
  Best
  
  Lars
  
  Am 12.02.2015 um 14:26 schrieb Vladimir:


  Lars. Thank you very much for response.
Please see the pics.
What I have: http://s14.postimg.org/yk40e0nq9/crossroad.jpg
What I need: http://s14.postimg.org/yk40e0nq9/crossroad.jpg
The problem is the orange roads lies in a one layer because they
are identical features(has the same type). It is done
accordingly to specificity the app. 
And I would like to escape a duplication of layers if it is
possible.
Therefore i need to locate the features one above other at a one
layer.

  
  
  
  
  ___
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] the lines one above other

2015-02-12 Thread Eichner, Andreas - SID
I'm not sure about this but AFAIK MapServer draws features in the order they 
are returned by the query. For Shapefiles there is the sortshp utility. If 
you're on a relational database like PostGIS or OracleSpatial you can try 
including the ORDER BY prio within the DATA. But since MS wraps it into a 
subquery the database might still return the features out of order. 

 -Ursprüngliche Nachricht-
 Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] Im Auftrag von Vladimir
 Gesendet: Donnerstag, 12. Februar 2015 12:02
 An: mapserver-users@lists.osgeo.org
 Betreff: [mapserver-users] the lines one above other
 
 Hello All!
 
 
 
 The task is to show multilevel junction of highway.
 The lines should be at the same layer and has the same style, for example
 see orange lines on attached pic:
 [img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img]
 Is it possible to draw the lines one above other by an one layer?
 May be some method of Z-index for features in a layer exists?
 Thanks for any guidance to display this kind of crossroads.
 
 Vladimir
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] the lines one above other

2015-02-12 Thread Lars Fricke
For me it works by sorting in the map file. I then put the needed layers 
into my WMS request. The order does not matter in the request it seems.


Best

Lars

Am 12.02.2015 um 13:52 schrieb Eichner, Andreas - SID:

I'm not sure about this but AFAIK MapServer draws features in the order they are returned 
by the query. For Shapefiles there is the sortshp utility. If you're on a relational 
database like PostGIS or OracleSpatial you can try including the ORDER BY 
prio within the DATA. But since MS wraps it into a subquery the database might 
still return the features out of order.


-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
boun...@lists.osgeo.org] Im Auftrag von Vladimir
Gesendet: Donnerstag, 12. Februar 2015 12:02
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] the lines one above other

Hello All!



The task is to show multilevel junction of highway.
The lines should be at the same layer and has the same style, for example
see orange lines on attached pic:
[img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img]
Is it possible to draw the lines one above other by an one layer?
May be some method of Z-index for features in a layer exists?
Thanks for any guidance to display this kind of crossroads.

Vladimir

___
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] the lines one above other

2015-02-12 Thread Vladimir

Andreas. Thanks for response too.
I use phpmapscript and postgis. How can I use order by  for this purpose?

Sorry. I have some correction:
What I have:  http://s18.postimg.org/vkvb8jprd/crossroad1.jpg
What I need:  http://s14.postimg.org/yk40e0nq9/crossroad.jpg




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

Re: [mapserver-users] [EXTERNAL] Re: the lines one above other

2015-02-12 Thread Smith, Michael ERDC-RDE-CRREL-NH
No, MapServer respects the feature order. Using the ORDER BY with a
database connection, MapServer will draw features in that order.

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center



On 2/12/15, 7:52 AM, Eichner, Andreas - SID
andreas.eich...@sid.sachsen.de wrote:

I'm not sure about this but AFAIK MapServer draws features in the order
they are returned by the query. For Shapefiles there is the sortshp
utility. If you're on a relational database like PostGIS or OracleSpatial
you can try including the ORDER BY prio within the DATA. But since MS
wraps it into a subquery the database might still return the features out
of order. 

 -Ursprüngliche Nachricht-
 Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] Im Auftrag von Vladimir
 Gesendet: Donnerstag, 12. Februar 2015 12:02
 An: mapserver-users@lists.osgeo.org
 Betreff: [mapserver-users] the lines one above other
 
 Hello All!
 
 
 
 The task is to show multilevel junction of highway.
 The lines should be at the same layer and has the same style, for
example
 see orange lines on attached pic:
 [img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img]
 Is it possible to draw the lines one above other by an one layer?
 May be some method of Z-index for features in a layer exists?
 Thanks for any guidance to display this kind of crossroads.
 
 Vladimir
___
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] [EXTERNAL] Re: the lines one above other

2015-02-12 Thread thomas bonfort
Actually there is an issue opened for this, as the order by inside the
subquery is not guaranteed to be maintained in the outer query:
https://github.com/mapserver/mapserver/issues/5008 . For mssql there
has been a patch applied, for postgis it is not needed yet.

On 12 February 2015 at 08:48, Smith, Michael ERDC-RDE-CRREL-NH
michael.sm...@erdc.dren.mil wrote:
 No, MapServer respects the feature order. Using the ORDER BY with a
 database connection, MapServer will draw features in that order.

 Mike

 --
 Michael Smith

 US Army Corps
 Remote Sensing GIS/Center



 On 2/12/15, 7:52 AM, Eichner, Andreas - SID
 andreas.eich...@sid.sachsen.de wrote:

I'm not sure about this but AFAIK MapServer draws features in the order
they are returned by the query. For Shapefiles there is the sortshp
utility. If you're on a relational database like PostGIS or OracleSpatial
you can try including the ORDER BY prio within the DATA. But since MS
wraps it into a subquery the database might still return the features out
of order.

 -Ursprüngliche Nachricht-
 Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] Im Auftrag von Vladimir
 Gesendet: Donnerstag, 12. Februar 2015 12:02
 An: mapserver-users@lists.osgeo.org
 Betreff: [mapserver-users] the lines one above other

 Hello All!



 The task is to show multilevel junction of highway.
 The lines should be at the same layer and has the same style, for
example
 see orange lines on attached pic:
 [img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img]
 Is it possible to draw the lines one above other by an one layer?
 May be some method of Z-index for features in a layer exists?
 Thanks for any guidance to display this kind of crossroads.

 Vladimir
___
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] the lines one above other

2015-02-12 Thread Lars Fricke

  
  
Hello Vladimir,
  
  I'm not sure if I understand right. However what I would do is the
  following:
  1) Put all sources into different layers. That is: If you have
  different street layers in different sources, you can make one
  layer each in the mapfile or you can first make one source per
  street type (if possible). You can also group layers as union
  layers: http://mapserver.org/mapfile/union.html if you need to
  (like one street type coming from different sources)
  2) In the mapfile, you can define the order how the layers are
  drawn one after the other (last layer in the mapfile is drawn
  first): http://mapserver.org/tutorial/example1-5.html
  
  I hope this helps.
  
  Best
  
  Lars
  
  Am 12.02.2015 um 12:01 schrieb Vladimir:


  Hello All!
  
  The task is
to show multilevel junction of highway.
The lines should be at the same layer and has the same style,
for example see orange lines on attached pic:
[img]http://s14.postimg.org/yk40e0nq9/crossroad.jpg[/img]
Is it possible to draw the lines one above other by an one
layer?
May be some method of Z-index for features in a layer exists?
Thanks for any guidance to display this kind of crossroads.
  Vladimir
  
  
  
  ___
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] the lines one above other

2015-02-12 Thread Vladimir

Lars. Thank you very much for response.
Please see the pics.
What I have: http://s14.postimg.org/yk40e0nq9/crossroad.jpg
What I need: http://s14.postimg.org/yk40e0nq9/crossroad.jpg
The problem is the orange roads lies in a one layer because they are identical 
features(has the same type). It is done accordingly to specificity the app. 
And I would like to escape a duplication of layers if it is possible.
Therefore i need to locate the features one above other at a one layer.

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

[mapserver-users] Segfaults with MapScript from Python

2015-02-12 Thread Jelmer Baas
Hi List,

Some of my automated renders are failing because Python crashes with an 
Segmentation fault. I've finally found at least some logs of this:
Feb 12 16:16:19 vm-ctwrender07 kernel: [276759.889265] traps: python[8002] 
general protection ip:7f104ec4f50f sp:7fff17d8d790 error:0 in 
libmapserver.so.6.4.1[7f104eb91000+1d8000]
Feb 12 15:08:01 vm-ctwrender07 kernel: [272664.046597] traps: python[7841] 
general protection ip:7f80558877b6 sp:7fff641f27c0 error:0 in 
libmapserver.so.6.4.1[7f80557c9000+1d8000]
Feb 12 13:53:01 vm-ctwrender07 kernel: [268166.881041] python[7614]: segfault 
at fffc ip 7f805588750f sp 7fff641f27c0 error 5 in 
libmapserver.so.6.4.1[7f80557c9000+1d8000]

Unfortunatly, I have no idea how to continue. I suspect this has something todo 
with odd font rendering (too large, too small), since I had issues with that 
before. Can someone match these addresses with code and find out where it 
crashes? 

Thanks in advance!

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


Re: [mapserver-users] Segfaults with MapScript from Python

2015-02-12 Thread Dan Little
I don't see any debugging symbols in there making life a little bit
more difficult.

Is your Python code very complex? Could a useful snippet be posted to a gist?

On Thu, Feb 12, 2015 at 9:44 AM, Jelmer Baas b...@speerit.nl wrote:
 Hi List,

 Some of my automated renders are failing because Python crashes with an 
 Segmentation fault. I've finally found at least some logs of this:
 Feb 12 16:16:19 vm-ctwrender07 kernel: [276759.889265] traps: python[8002] 
 general protection ip:7f104ec4f50f sp:7fff17d8d790 error:0 in 
 libmapserver.so.6.4.1[7f104eb91000+1d8000]
 Feb 12 15:08:01 vm-ctwrender07 kernel: [272664.046597] traps: python[7841] 
 general protection ip:7f80558877b6 sp:7fff641f27c0 error:0 in 
 libmapserver.so.6.4.1[7f80557c9000+1d8000]
 Feb 12 13:53:01 vm-ctwrender07 kernel: [268166.881041] python[7614]: segfault 
 at fffc ip 7f805588750f sp 7fff641f27c0 error 5 in 
 libmapserver.so.6.4.1[7f80557c9000+1d8000]

 Unfortunatly, I have no idea how to continue. I suspect this has something 
 todo with odd font rendering (too large, too small), since I had issues with 
 that before. Can someone match these addresses with code and find out where 
 it crashes?

 Thanks in advance!

 Regards,
 Jelmer
 ___
 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] Segfaults with MapScript from Python

2015-02-12 Thread Jelmer Baas
The code isn't all that complex, not much more than three layers with a postgis 
source and using an ogr_style column. 

I'll do my best to create a stripped-down script and test dataset tomorrow.

-- 
Jelmer

Van: Dan Little [theduckylit...@gmail.com]
Verzonden: donderdag 12 februari 2015 16:55
Aan: Jelmer Baas
CC: mapserver-users@lists.osgeo.org
Onderwerp: Re: [mapserver-users] Segfaults with MapScript from Python

I don't see any debugging symbols in there making life a little bit
more difficult.

Is your Python code very complex? Could a useful snippet be posted to a gist?

On Thu, Feb 12, 2015 at 9:44 AM, Jelmer Baas b...@speerit.nl wrote:
 Hi List,

 Some of my automated renders are failing because Python crashes with an 
 Segmentation fault. I've finally found at least some logs of this:
 Feb 12 16:16:19 vm-ctwrender07 kernel: [276759.889265] traps: python[8002] 
 general protection ip:7f104ec4f50f sp:7fff17d8d790 error:0 in 
 libmapserver.so.6.4.1[7f104eb91000+1d8000]
 Feb 12 15:08:01 vm-ctwrender07 kernel: [272664.046597] traps: python[7841] 
 general protection ip:7f80558877b6 sp:7fff641f27c0 error:0 in 
 libmapserver.so.6.4.1[7f80557c9000+1d8000]
 Feb 12 13:53:01 vm-ctwrender07 kernel: [268166.881041] python[7614]: segfault 
 at fffc ip 7f805588750f sp 7fff641f27c0 error 5 in 
 libmapserver.so.6.4.1[7f80557c9000+1d8000]

 Unfortunatly, I have no idea how to continue. I suspect this has something 
 todo with odd font rendering (too large, too small), since I had issues with 
 that before. Can someone match these addresses with code and find out where 
 it crashes?

 Thanks in advance!

 Regards,
 Jelmer
 ___
 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