Jelmer Baas | 5 Nov 16:30 2014
Picon

Annotation label with styleitem auto uses bitmap font

Hi all,

I have some converted AutoCAD files in MapInfo format that I'm showing via MapScript (up-to-date, via apt
get). To show all components, each TAB file has both a 'line' layer (styleitem "auto") and an 'annotation'
layer (also set to styleitem "auto"). This has worked fine for ages, but there are two issues:

- Special characters aren't displayed
- We now have a new file, which has an odd font size

Because of this new file, I'm beging flooded with this message:
msGetRasterTextBBox(): General error message. selected renderer does not support bitmap font size 13

Both issues obviously mean MapServer is using its built-in bitmap font. Is there a way to override this?
I've tried a few options already:
- Switching to PNG instead of GIF output format
- Setting class.label properties; this has been removed in 6.2
- Creating a new labelObj, and adding it via class.addLabel; this manages to crash my python script (not
getting caught in try/catch) without leaving any logs when styleitem is still set to "auto"
- Adding a default and Arial entry in my fontlist file. This seems to be ignored.

Furthermore, I can't seem to get ANY logging from MapScript. I've tried setting debug to MS_TRUE in the
layer, mapfile, class, etc. Log file is being created (in /tmp) but remains empty.

Am I doing something wrong? Missing something? Any help would be greatly appreciated! 

Regards,
Jelmer

_______________________________________________
mapserver-users mailing list
(Continue reading)

Raffaele Morelli | 5 Nov 12:07 2014
Picon

raster layer from postgis table

Hi,

I've loaded a bunch of GTiff files into a postgis table and actually trying to
fetch tiles with a mapserver layer with a where statement in DATA definition,
eg:

DATA "PG:host=localhost port=5432 dbname='somedb' user='someuser' password='whatever'
schema='someschema' table='cooltable' where'filename=dem20.tif' mode='2'"

Testing with shp2img gives an error:  msResampleGDALToMap(): no overlap ... no result.

If I remove where condition all the rasters - different extensions - in the
table are returned in the image, which is not what I want.
I didn't found anything useful in the documentation about using where statement
(which should be quite straightforward) and I really would prefer not to create
a table for those 20 rasters...

Any hints?

--

-- 
« Nunc est bibendum, nunc pede libero pulsanda tellus »
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Stefanos Anastasiou | 4 Nov 23:44 2014
Picon

Installation of Mapserver 6.4.1

Hello.!!


I'm wondering if the installation should be made only with cmake. Can't someone just use the repos ?  I'm trying to use cmake but getting a lot or errors, probably having to do with the PREFIX path. So I'm feeling pretty confused. I'm also not that good with linux file system hierarchy.


Thanks


Stefanos

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
deduikertjes | 4 Nov 12:32 2014
Picon
Picon

Re: WFS query slow on large postgis table (and small table disappointing as well)

Even,

Thank you.

Examples of slow and fast queries:

Slow queries (not very complex) like:

<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" 
version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Query typeName="hb:jan2014_high" srsName="EPSG:900913" 
xmlns:hb="http://maps.md2.com/schemas/hb_wfs.xsd">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:Intersects>
<ogc:PropertyName></ogc:PropertyName>
<gml:Polygon xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913">
<gml:exterior>
<gml:LinearRing>
<gml:posList>493014.59839229 6795936.8942158 493014.59839229 
6796022.885872601 493102.97870623 6796022.885872601 493102.97870623 
6795936.8942158 493014.59839229 6795936.8942158</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</ogc:Intersects>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>

fast queries (only with small bbox) like:

<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" 
version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd 
http://maps.md2.com/schemas/hb_wfs.xsd

http://xxxxx/maps/xxxx/rc1/services/basic/default.map?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=jan2014_high" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Query typeName="feature:jan2014_high" srsName="EPSG:900913">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:And>
<ogc:BBOX>
<ogc:PropertyName>msGeometry</ogc:PropertyName>
<gml:Envelope xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913">
<gml:lowerCorner>491667.6470239 6795223.3576443</gml:lowerCorner>
<gml:upperCorner>494192.4576141 6796212.2616977</gml:upperCorner>
</gml:Envelope>
</ogc:BBOX>
<ogc:PropertyIsLessThan>
<ogc:PropertyName>value</ogc:PropertyName>
<ogc:Literal>0</ogc:Literal>
</ogc:PropertyIsLessThan>
</ogc:And>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>

Marco
On 04-11-14 10:41, Even Rouault wrote:
> Le lundi 03 novembre 2014 16:56:12, vous avez écrit :
>> Hi List,
>>
>> I'm experiencing real slow performance when doing WFS queries on a postgis
>> table with about 1500000 records.
>>
>> A simple spatial query (which features in a box) takes about 1 to 2
>> minutes. In postgis the same query takes less than a second. Same story
>> for attribute queries.
>> Indeed on a postgis table with some 60000 records things are still very
>> very slow.
>>
>> WMS on the other hand is flying taking less than a second for rendering
>> most tiles.
>>
>> By using the debug functions I see that mapserver fetches all features in
>> the map extent (set at map level) and then starts filtering feature by
>> feature which takes a long time.
>>
>> I found ticket http://trac.osgeo.org/mapserver/ticket/4049 which seems to
>> be related.
>>
>> Is there any way to speed up this kind of WFS queries? Is there any
>> progress on the ticket?
> Can you show the exact WFS request you send to mapserver and that is slow to
> run ? BBOX requests should use postgis spatial filtering. Perhaps you use
> something more complex ?
>
>> Any help appreciated, MArco
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-table-
>> and-small-table-disappointing-as-well-tp5170988.html Sent from the
>> Mapserver - User mailing list archive at Nabble.com.
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users <at> lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

deduikertjes | 3 Nov 16:56 2014
Picon
Picon

WFS query slow on large postgis table (and small table disappointing as well)

Hi List,

I'm experiencing real slow performance when doing WFS queries on a postgis
table with about 1500000 records.

A simple spatial query (which features in a box) takes about 1 to 2 minutes.
In postgis the same query takes less than a second. Same story for attribute
queries.
Indeed on a postgis table with some 60000 records things are still very very
slow.

WMS on the other hand is flying taking less than a second for rendering most
tiles.

By using the debug functions I see that mapserver fetches all features in
the map extent (set at map level) and then starts filtering feature by
feature which takes a long time.

I found ticket http://trac.osgeo.org/mapserver/ticket/4049 which seems to be
related.

Is there any way to speed up this kind of WFS queries? Is there any progress
on the ticket?

Any help appreciated, MArco

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/WFS-query-slow-on-large-postgis-table-and-small-table-disappointing-as-well-tp5170988.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Hari Pradhan | 3 Nov 16:27 2014
Picon

Problem with Colon in WFS Layer Name

Hello List,

I am getting the following error when requesting for WFS getfeature on the layer which includes colon in it's name (example: Analysis1:VolumeOut:VECTOR).

Failed to parse QName 'ms:Analysis1:'.


It looks like mapserver failed to parse the layer including colon. 

But as per the documentation, the restrictions to WFS layer name is that layer names can not start with a digit or have spaces in them. I doesn't say anything about the colon.

Can anyone help me to resolve this problem?


Note: The layer name is designed to include colon. We can not omit it.

Thanks,
Hari







_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Malm Paul | 27 Oct 11:23 2014

Calculation of scale in mapserver

Hi,

I wounder how MapServer can know the current scale I’m using in my client, it must be calculated from the URL BBOX. But how does WMS know the physical size of this box on the clients screen?

 

The MIN/MAX-SCALEDENOM are used in WMS but not in WFS.

I would like to search for WFS objects from objects that are visible om my screen (WMS).

To do that I need to know what scale WMS is currently using, or how it’s calculated. Otherwise I can’t filter out the correct layers in my WFS query (layers that are not WMS-rendered).

 

Any ideas?

Kind regards,

Paul

 

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Basques, Bob (CI-StPaul | 23 Oct 23:09 2014
Picon
Picon

Color-ramps for features?

All,

 

Can color ramp/ranges be used to style features, based on attribute value?

 

Thanks

 

 

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Rahkonen Jukka (Tike | 23 Oct 06:55 2014
Picon

Is kerneldensity_attribute implemented?

Hi,

I have tried to use attribute based weights in heatmaps as in RFC 108 example http://mapserver.org/development/rfc/ms-rfc-108.html
processing "KERNELDENSITY_ATTRIBUTE=POP2010"

However, this processing option does not seem to have any affect. It is not used in the MS autotest mapfile
and I wonder if it has been implemented at all yet. Does somebody know?

-Jukka Rahkonen-
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Andrea Peri | 22 Oct 20:47 2014
Picon

Re: Using cluster with spatialite ?

Just to complete information.

At the end the issue was explained to be really not an issue but
instead a break api.

In the mapserver 6.4 is need to use
"Cluster:FeatureCount"
in next coming mapserver 7.x will be use

"Cluster_FeatureCount".

Regards,

Andrea Peri

2014-10-22 16:25 GMT+02:00 Andrea Peri <aperi2007 <at> gmail.com>:
> done
>
> https://github.com/mapserver/mapserver/issues/5021
>
> Thx,
>
> A.
>
>
> 2014-10-22 15:59 GMT+02:00 Yves Jacolin <yves.jacolin <at> camptocamp.com>:
>> On Wednesday, October 22, 2014 10:56:41 Jeff McKenna wrote:
>>> On 2014-10-22 10:34 AM, Andrea Peri wrote:
>>> > Hi,
>>> > I found the expalin.
>>> >
>>> > Seeing the code I see the labelitem is not
>>> >
>>> > Cluster:FeatureCount
>>> > but instead:
>>> > Cluster_FeatureCount
>>> >
>>> > This is different from documentation.
>>> > I guess the issue is in the code.
>>> >
>>> > If confirmed, I check in last dev in repository and fill an issue if
>>> > necessary.
>>> >
>>> > Regards,
>>> >
>>> > Andrea.
>>>
>>> Careful, I believe that change was made to the unreleased 6.5-dev
>>> version.  So that is why docs have not been updated for 6.4.1
>>>
>>> -jeff
>> I confirm this, I have an old working mapfile with the Cluster:FeatureCount
>> parameter.
>>
>> I will do some testing if I have some time.
>>
>> Y.
>> --
>> Responsable Formation et Support
>> Camptocamp France SAS
>> Savoie Technolac, BP 352
>> 73377 Le Bourget du Lac, Cedex
>> Tel (France) : +33 4 79 26 57 98
>> Tel (Suisse) : 021 619 10 43
>> Mob. : +33 6 18 75 42 21
>> Fax : 04 79 70 15 81
>> Mail : yves.jacolin <at> camptocamp.com
>> http://www.camptocamp.com
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users <at> lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------

--

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Andrea Peri | 22 Oct 15:26 2014
Picon

Using cluster with spatialite ?

Hi,

I'm testing the Cluster capability of Mapserver.

I use this configuration:

    CLUSTER
      MAXDISTANCE 20  # in pixels
      REGION "ellipse"  # can be rectangle or ellipse
      #GROUP (expression)  # an expression to create separate groups
for each value
      #FILTER (expression) # a logical expression to specify the
grouping condition
    END
    LABELITEM "Cluster:FeatureCount"
    CLASS
      NAME "ingressi grotte"
     .....

But, I'm having an error:

OGR Error INvalid Cluster:FeatureCount.

The sample is take from doc so I guess the issue is somewhere else.
I'm using spatialite, sothe my doubt is if the Cluster is working with
spatialite.
I guess yes because the interface is OGR, but no other explain why

--

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Gmane