Re: [mapserver-users] Symbols for railroad rendering in svg

2016-11-18 Thread Andy Colson

Oh, also, my mapserver is:

MapServer version 7.0.2 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG 
SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=WMS_SERVER 
SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS 
INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE



On 11/18/2016 05:36 PM, TMa Teng wrote:

Thanks for sharing your method.

However that is still brush line for the railway symbol which is not supported 
when using SVG format, isn’t it? Could you verify if a wms getmap call which 
contains the railway layer and in the getmap request set the output format=SVG 
to see if that works at your side?

Thanks again,
Teng

-Original Message-
From: Andy Colson [mailto:a...@squeakycode.net]
Sent: Friday, November 18, 2016 5:52 PM
To: mapserver-users@lists.osgeo.org; TMa Teng 
Subject: Re: [mapserver-users] Symbols for railroad rendering in svg

On 11/18/2016 2:22 PM, TMa Teng wrote:

Hi all,

I am working on a project to export the wms to SVG format, it is the from the 
requirement of the features to be in vector format. And I am facing trouble to 
use the render engine to render the railroad symbol as a brush line.

RailRoad Symbol I am using is as follow:

CLASS
NAME "MD_Railroad"

STYLE
   SYMBOL "line_solid"
   SIZE 2
   COLOR 0 0 0
END
STYLE
   SYMBOL "tie"
   SIZE 6
   COLOR 0 0 0
   GAP -10
END
END

It works as expect when the return image in raster format such as PNG, but when 
using SVG it shows error:

"msDrawLineSymbol(): Renderer error. renderer does not support brushed lines"

Does anyone have any suggestion about how to design a vector-enabled symbol for 
railways please? I am using MapServer 7.0, data is in SQL Server Spatial.

Best regards,

Teng

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



Without seeing the "tie" symbol, its hard to say if mine is different.
Here's how I draw mine:

SYMBOL
NAME "railway"
TYPE truetype
FONT "Vera"
CHARACTER "|"
END

CLASS
NAME 'Railroad'
STYLE
SYMBOL 0
COLOR 0 0 0
SIZE 1
END
STYLE
SYMBOL 'railway'
COLOR 0 0 0
SIZE 7
GAP -10
END
END

-Andy



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

Re: [mapserver-users] Symbols for railroad rendering in svg

2016-11-18 Thread Andy Colson

Seems to work fine:

http://maps.camavision.com/map/jasperia?LAYERS=railroad=TRUE=WMS=1.1.1=GetMap==svg=EPSG%3A3857=-10383282.7081,5105096.2257452,-1032.7081,5127296.2257452=1998=888

-Andy


On 11/18/2016 05:36 PM, TMa Teng wrote:

Thanks for sharing your method.

However that is still brush line for the railway symbol which is not supported 
when using SVG format, isn’t it? Could you verify if a wms getmap call which 
contains the railway layer and in the getmap request set the output format=SVG 
to see if that works at your side?

Thanks again,
Teng

-Original Message-
From: Andy Colson [mailto:a...@squeakycode.net]
Sent: Friday, November 18, 2016 5:52 PM
To: mapserver-users@lists.osgeo.org; TMa Teng 
Subject: Re: [mapserver-users] Symbols for railroad rendering in svg

On 11/18/2016 2:22 PM, TMa Teng wrote:

Hi all,

I am working on a project to export the wms to SVG format, it is the from the 
requirement of the features to be in vector format. And I am facing trouble to 
use the render engine to render the railroad symbol as a brush line.

RailRoad Symbol I am using is as follow:

CLASS
NAME "MD_Railroad"

STYLE
   SYMBOL "line_solid"
   SIZE 2
   COLOR 0 0 0
END
STYLE
   SYMBOL "tie"
   SIZE 6
   COLOR 0 0 0
   GAP -10
END
END

It works as expect when the return image in raster format such as PNG, but when 
using SVG it shows error:

"msDrawLineSymbol(): Renderer error. renderer does not support brushed lines"

Does anyone have any suggestion about how to design a vector-enabled symbol for 
railways please? I am using MapServer 7.0, data is in SQL Server Spatial.

Best regards,

Teng

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



Without seeing the "tie" symbol, its hard to say if mine is different.
Here's how I draw mine:

SYMBOL
NAME "railway"
TYPE truetype
FONT "Vera"
CHARACTER "|"
END

CLASS
NAME 'Railroad'
STYLE
SYMBOL 0
COLOR 0 0 0
SIZE 1
END
STYLE
SYMBOL 'railway'
COLOR 0 0 0
SIZE 7
GAP -10
END
END

-Andy



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

Re: [mapserver-users] Symbols for railroad rendering in svg

2016-11-18 Thread TMa Teng
Thanks for sharing your method.

However that is still brush line for the railway symbol which is not supported 
when using SVG format, isn’t it? Could you verify if a wms getmap call which 
contains the railway layer and in the getmap request set the output format=SVG 
to see if that works at your side?

Thanks again,
Teng

-Original Message-
From: Andy Colson [mailto:a...@squeakycode.net] 
Sent: Friday, November 18, 2016 5:52 PM
To: mapserver-users@lists.osgeo.org; TMa Teng 
Subject: Re: [mapserver-users] Symbols for railroad rendering in svg

On 11/18/2016 2:22 PM, TMa Teng wrote:
> Hi all,
>
> I am working on a project to export the wms to SVG format, it is the from the 
> requirement of the features to be in vector format. And I am facing trouble 
> to use the render engine to render the railroad symbol as a brush line.
>
> RailRoad Symbol I am using is as follow:
>
>   CLASS
>   NAME "MD_Railroad"
>
>   STYLE
>  SYMBOL "line_solid"
>  SIZE 2
>  COLOR 0 0 0
>   END
>   STYLE
>  SYMBOL "tie"
>  SIZE 6
>  COLOR 0 0 0
>  GAP -10
>   END
>   END
>
> It works as expect when the return image in raster format such as PNG, but 
> when using SVG it shows error:
>
> "msDrawLineSymbol(): Renderer error. renderer does not support brushed lines"
>
> Does anyone have any suggestion about how to design a vector-enabled symbol 
> for railways please? I am using MapServer 7.0, data is in SQL Server Spatial.
>
> Best regards,
>
> Teng
>   
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>

Without seeing the "tie" symbol, its hard to say if mine is different. 
Here's how I draw mine:

SYMBOL
NAME "railway"
TYPE truetype
FONT "Vera"
CHARACTER "|"
END

CLASS
NAME 'Railroad'
STYLE
SYMBOL 0
COLOR 0 0 0
SIZE 1
END
STYLE
SYMBOL 'railway'
COLOR 0 0 0
SIZE 7
GAP -10
END
END

-Andy

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

Re: [mapserver-users] Symbols for railroad rendering in svg

2016-11-18 Thread Andy Colson

On 11/18/2016 2:22 PM, TMa Teng wrote:

Hi all,

I am working on a project to export the wms to SVG format, it is the from the 
requirement of the features to be in vector format. And I am facing trouble to 
use the render engine to render the railroad symbol as a brush line.

RailRoad Symbol I am using is as follow:

CLASS
NAME "MD_Railroad"

STYLE
   SYMBOL "line_solid"
   SIZE 2
   COLOR 0 0 0
END
STYLE
   SYMBOL "tie"
   SIZE 6
   COLOR 0 0 0
   GAP -10
END
END

It works as expect when the return image in raster format such as PNG, but when 
using SVG it shows error:

"msDrawLineSymbol(): Renderer error. renderer does not support brushed lines"

Does anyone have any suggestion about how to design a vector-enabled symbol for 
railways please? I am using MapServer 7.0, data is in SQL Server Spatial.

Best regards,

Teng

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



Without seeing the "tie" symbol, its hard to say if mine is different. 
Here's how I draw mine:


SYMBOL
NAME "railway"
TYPE truetype
FONT "Vera"
CHARACTER "|"
END

CLASS
NAME 'Railroad'
STYLE
SYMBOL 0
COLOR 0 0 0
SIZE 1
END
STYLE
SYMBOL 'railway'
COLOR 0 0 0
SIZE 7
GAP -10
END
END

-Andy

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

[mapserver-users] Symbols for railroad rendering in svg

2016-11-18 Thread TMa Teng
Hi all,

I am working on a project to export the wms to SVG format, it is the from the 
requirement of the features to be in vector format. And I am facing trouble to 
use the render engine to render the railroad symbol as a brush line.

RailRoad Symbol I am using is as follow: 

CLASS
NAME "MD_Railroad"

STYLE
   SYMBOL "line_solid"
   SIZE 2
   COLOR 0 0 0
END
STYLE
   SYMBOL "tie"
   SIZE 6
   COLOR 0 0 0
   GAP -10
END
END 

It works as expect when the return image in raster format such as PNG, but when 
using SVG it shows error:

"msDrawLineSymbol(): Renderer error. renderer does not support brushed lines"

Does anyone have any suggestion about how to design a vector-enabled symbol for 
railways please? I am using MapServer 7.0, data is in SQL Server Spatial.

Best regards,

Teng

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

Re: [mapserver-users] PostGIS date queries performance issues

2016-11-18 Thread Lime, Steve D (MNIT)
Tom: There were definitely changes in this area. Can you share the WFS filter 
plus the resulting SQL in each version. This is the type of thing that should 
have gotten better in 7.0 as WFS filters are translated more completely into 
native SQL. It’s possible I introduced an inefficiency in that translation 
beyond what was done for PostGIS in mapogcfilter.c in 6.4.  -Steve

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Kralidis, Tom (EC)
Sent: Thursday, November 17, 2016 8:14 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] PostGIS date queries performance issues

Hi all: using 7.0.2 against a PostgreSQL 9.3/PostGIS 2.2 instance we're getting 
very long (timeouts even) response times when doing WFS filters against 
PostgreSQL date types.

I've posted a Gist at [1] to help in reporting.  Note that this functionality 
used to work with acceptable performance in 6.4.x.

Looking deeper (see Gist) it appears that the SQL queries that MapServer crafts 
for PostgreSQL are different.  When I try the 7.0.2 based SQL in a psql prompt, 
the same very long response time results.

Any idea what could be going on here?

Thanks

..Tom

[1] https://gist.github.com/tomkralidis/006594382d6339c2047b441108a3991b
___
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] Non-square pixels when re-projecting on the fly

2016-11-18 Thread Peter Schmitt
On Fri, Nov 18, 2016 at 12:44 AM, Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi> wrote:

> I do not quite believe that your output pixels are non-square. I rather
> think that what you see are views of the native 4326 pixels reprojected
> into 3857.  In Scotland (7536002 N in epsg:3857) projecting data from 4326
> to 3857 is making quite a big stretch in Nort-South direction. With your
> test GetMap request the pixel size in output is about 2.33 millimeters
> which must mean heavy oversampling.
>
>
>
Thanks for the reply!  You are correct:  the images I displayed are zoomed
pretty far in, resulting in heavy oversampling.  Here's a sample showing
one pixel (blue highlight) on the heavily oversampled image:
http://i.imgur.com/scO8iIm.png  It is the oversampling I am trying to
understand.

Here is a heavily oversampled GetMap with data which went through gdalwarp
to reproject the data from 4326 to 3857... then I use Mapserver to display
the results setting the input & output PROJECTION blocks to 3857:
http://i.imgur.com/MrfDb1E.png I expected Mapserver reproject on the fly to
look more like this.  Instead, oversampled pixels are stretched, like this:
http://i.imgur.com/bw4pNPX.png

I played around with various `PROCESSING "RESAMPLE=resample_method"` in my
layer, but I get the same stretched output on heavily oversampled output
using Mapserver to reproject on the fly from 4326 to 3857.  When zoomed out
to near-native resolution of my monitor, the output looks great. I only
notice the stretching when oversampled. What is Mapserver using to
reproject on the fly?

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

[mapserver-users] Mapcache support for multiple format types

2016-11-18 Thread tellett
Hi all,

I'm wondering if theres any other way in mapcache to support multiple
formats (png and jpeg for example) than to create a new tileset?

For example if I have a wms 'source' called topo2_wms (that supports png and
jpeg), and a tileset called topo2cache, whats the best ways to create tiles
in both png and jpeg? Is it really necessary to create 2 tilesets, 1 called
topo2cache_png and one topo2cache_jpeg?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapcache-support-for-multiple-format-types-tp5296486.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] PostGIS date queries performance issues

2016-11-18 Thread Eichner, Andreas - SID
Besides comparing the execution plans for both query versions, you could try:
1. omit the outer ORDER BY clause (not present in MS6 and the inner one is not 
relevant for the result, so might be optimized away by the planner)
2. try the MS7 SQL without the superfluous st_intersects() part (it might not 
use the spatial index in the same way as the "&&" operator)
3. replace the time comparision part with the MS6 BETWEEN construct
4. try all at once and/or combinations of them

At least one should help you identify the cause. If you've found it post it 
here so that one could search the generating code.

HTH

> -Ursprüngliche Nachricht-
> Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] Im
> Auftrag von Kralidis, Tom (EC)
> Gesendet: Freitag, 18. November 2016 03:14
> An: mapserver-users@lists.osgeo.org
> Betreff: [mapserver-users] PostGIS date queries performance issues
> 
> Hi all: using 7.0.2 against a PostgreSQL 9.3/PostGIS 2.2 instance we're
> getting very long (timeouts even) response times when doing WFS filters
> against PostgreSQL date types.
> 
> I've posted a Gist at [1] to help in reporting.  Note that this
> functionality used to work with acceptable performance in 6.4.x.
> 
> Looking deeper (see Gist) it appears that the SQL queries that MapServer
> crafts for PostgreSQL are different.  When I try the 7.0.2 based SQL in a
> psql prompt, the same very long response time results.
> 
> Any idea what could be going on here?
> 
> Thanks
> 
> ..Tom
> 
> [1] https://gist.github.com/tomkralidis/006594382d6339c2047b441108a3991b
> ___
> 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