Jörg Thomsen | 13 Mar 11:07 2014
Picon

join shp with csv

hi again,

I am still preparing my MapServer workshop for FOSGISS in Berlin next
week. Last topic is a join-example and I cannot get it to work :(

this is my join in the layer:
>   JOIN
>     NAME "test"
>     CONNECTIONTYPE CSV
>     TABLE "./shapes_join/join.csv"
>     FROM "osm_id"
>     TO "1"
> #    TO "0"
> #    TO "tab_1"
> #    TO "osm_id"
>     TYPE ONE-TO-ONE
>   END

the first lines of the csv:
> osm_id;name_join
> 21484050;Karlshorst
> 21484076;Schmöckwitz
> 21484102;Adlershof
> 27380127;Bohnsdorf
> 28094136;Schöneberg

and here is the featureonfo-output:
GetFeatureInfo results:

Layer 'places'
(Continue reading)

jcwalz | 12 Mar 15:42 2014
Picon
Picon

Raster Data

Hello,

I have a png raster image that I am adding to GeoMOOSE and it is about 3GB
in size. It takes about 10 minutes for the image to show up because the file
is so large. What is the best way of dealing with large images like this?

Thanks,

Jenna

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Raster-Data-tp5128564.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

Richard Greenwood | 12 Mar 01:03 2014
Picon

JSON template

The JSON template has [feature trimlast=","] for a single layer that may return multiple records, but I don't see that functionality for the whole JSON object. For example if I have two layers but only one returns results I end up with a trailing comma and invalid JSON.

// MapServer template
{
  [resultset layer=layer1]
  {
    [feature trimlast=","]
    { ... }
    [/feature]
  },   // might need to trim this comma if layer below doesn't return result
  [/resultset]

  [resultset layer=layer2]
  {
    [feature trimlast=","]
    { ... }
    [/feature]
  }   // no comma here because we think it's last result object
  [/resultset]
}

I can work around it by putting a comma and empty object at the end:
   ,{}
which is the way I've done it when writing JSON with standard templates, but that's sort of inconsistent with the [feature trimlast=","] option.

Am I missing anything? Should I file a feature enhancement request?

And trimlast="," does seem to need to require double, not single quotes.

Thanks,
Rich
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Jörg Thomsen | 11 Mar 16:46 2014
Picon

Complex Multi Label/Symbol Symbology

Hi,

I found this example-image:
http://mapserver.org/development/announce/6-2.html#complex-multi-label-symbol-symbology

the linked mapfile seems to be the wrong one, it creates this image:
https://github.com/mapserver/msautotest/blob/branch-6-2/renderers/expected/multilabel.png

Can anyone tell me where I can find the mapfile, that results in the
complex-multi-label-symbol-symbology-image?

Regards, Jörg

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-akademie.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_________________________________________________

MapMedia
Kartographie und raumbezogene Informationssysteme

Gillweg 3, 14193 Berlin
fon: +49 30 89 06 82-70
fax: +49 30 89 09 53-21
mail: jt <at> mapmedia.de
net:  www.mapmedia.de
_________________________________________________

Geschäftsführer: G. v. Tschirnhaus, J. Thomsen, P. Stamm
Registergericht, Berlin - Amtsgericht Charlottenburg,
HRB 89625, Umsatzsteuer-Identnummer: DE 813794062
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

TC Haddad | 10 Mar 05:35 2014
Picon

gml_[item name]_precision for GeoJSON WFS


Hello, I'm trying to use "gml_[item name]_precision" and having trouble. I've tried:

gml_ID_precision   0  

which fails with "getString(): Symbol definition error. Parsing error near (0):(line 14)", and:

gml_ID_precision   "0"

which succeeds in producing GeoJSON as expected but the setting seems to be ignored, e.g.:
{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "ID": "91.00000", "NAME": "10th and Neacoxie Avenue", "OWNER": "Gearhart, City of", "CTYPE": "Beach", "ATYPE": "Vehicle" }, "geometry": { "type": "Point", "coordinates": [ -123.92739999997939, 46.030950000943108 ] } }]}
The docs say:

Precision is the number of decimal places, and is only needed for “Real” fields

I'm not sure what "Real" fields mean, but I am trying to use it for the ID field, so maybe that is why I am failing?

I'm using Mapserver 6.2.1. with:

    OUTPUTFORMAT
        NAME "GEOJSON"
        DRIVER "OGR/GEOJSON"
        MIMETYPE "application/json; subtype=geojson"
        FORMATOPTION "STORAGE=stream"
        FORMATOPTION "FORM=SIMPLE"
    END
   

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Andrea Peri | 8 Mar 16:08 2014
Picon

Need help with RFC109: Refactor Runtime Substitution

Hi, I'm try to check if the new RFC109 is compatible with my mapfile.

I try a fast check and seem that my mapfile dont work with RFC109.
But reading the documentation I don't understand why it don't work.

The only substitutions I have are in the CLASS section:
(the db is a spatialite accessed by OGR)

  LAYER
    CONNECTIONTYPE OGR
    CONNECTION "/path-to-spatialite-db/db.sqlite"
    DATA "TABLE1"
    ....
    VALIDATION
      'code' '.*'
      'default_code' ''
    END
   .....
    CLASSITEM "THE_CODE"
    CLASS
      NAME '...'
      EXPRESSION ('[the_code]' ne '%code%')
   ....
    CLASS
      NAME '.....'
      EXPRESSION ('[the_code]' eq '%code%')

I read that the only incompatible should be inside the metadata section,
AFAIK this is not  the case.
So I guess the substitution in the CLASS section should work .
But my test don't work.

I don't understand if this is a bug or a my mis-understaind of the new RFC109.

Thx,

--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
samuelmesa@gmail.com | 7 Mar 01:02 2014
Picon

Mapcache in OSGeo4W

Hi,Do you know any way to install Mapcache in OSGeo4W.? I appreciate if you can share a guide for the compilation, or can share me the compiled module of apache for OSGeo4W.

regards,

Samuel Mesa.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
jrumbolt | 6 Mar 20:20 2014
Picon

mapcache support for virtual service endpoints

Hi All,

Mapserver allows for a wms endpoint to based on the supplied mapfile.
http://localhost/cgi-bin/mapserv?map=map1.map  is a different service than
http://localhost/cgi-bin/mapserv?map=map2.map. Get capabilites on the first
example will show only the layers in the first map file and the get
capabilites on the second one will only show the layers in it's map file.

Is there a way to configure mapcache so that something like below could be
it's own service where the get capabilites will only show that tileset
name(s)?  Something like http://localhost/mapcache/virtual1/wmts perhaps. I
want to dynamically provision a large number of wmts layers that I don't
want to end up a single wmts instance with a humongous getcaps xml file. All
of the virtual services could use the base configuration of the mapcache.xml
file.

     <source name="3ab76763-b7a8-4113-a844-9f18e0a60b08-src" type="wms"
virtual="virtual1">
        ...
        <http>
            <url>http://127.0.0.1/cgi-bin/mapserv?map=map1.map</url>
        </http>
    </source>

    <tileset name="3ab76763-b7a8-4113-a844-9f18e0a60b08">
        <source>3ab76763-b7a8-4113-a844-9f18e0a60b08-src</source>
        ...
    </tileset>

<source name="8719bfa1-5a34-4b58-b658-37a89e962bdd-src" type="wms"
virtual="virtual1">
        ...
        <http>
            <url>http://127.0.0.1/cgi-bin/mapserv?map=map1.map</url>
        </http>
    </source>

    <tileset name="8719bfa1-5a34-4b58-b658-37a89e962bdd">
        <source>8719bfa1-5a34-4b58-b658-37a89e962bdd-src</source>
        ...
    </tileset>

<source name="c23f6b81-aaa2-4567-b85c-2984108ae697-src" type="wms"
virtual="virtual2">
        ...
        <http>
            <url>http://127.0.0.1/cgi-bin/mapserv?map=map2.map</url>
        </http>
    </source>

    <tileset name="c23f6b81-aaa2-4567-b85c-2984108ae697">
        <source>c23f6b81-aaa2-4567-b85c-2984108ae697-src</source>
        ...
    </tileset>

Any idea would be appreciated.

Cheers,

Jerry

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/mapcache-support-for-virtual-service-endpoints-tp5108001.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

Pablo Cecconi | 6 Mar 03:45 2014
Picon

Itasca Legend Demo

Hi, I'm trying to find the mapfile sources for the Mapserver Itasca Legend Demo (http://demo.mapserver.org/itasca_legend/) and I can't find them. Anybody knows where can I download them? 

Thanks in advance!
Pablo
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
aborruso | 4 Mar 17:09 2014
Picon

Force label rendering without overlapping

Hi all,
I would like to render all the label of a polygon. I know that the only
solution I have for my geometries is to use LEADER.

But I have some problems. If I do not set FORCE TRUE, the labels overlap
each other and I have no LEADER line. In the below image two results I have
with Mapserver, and a sketch of my goal.

Is there a way to have a greater number of labels and leader lines?

Below my layer setting.

I'm using MapServer version 6.4.1 with GDAL 1.10.1, released 2013/08/26.

Thank you very much,

Andrea

<http://osgeo-org.1560.x6.nabble.com/file/n5107466/2014-03-04_16h57_04.png> 

LAYER
    CLASSITEM "Status"
    CONNECTION "mappa_di_base.shp"
    CONNECTIONTYPE OGR
    FILTER ('[Status]' eq '3' OR '[Status]' eq '2' OR '[Status]' eq '1')
    LABELITEM "ID"
    METADATA
      "coordsys_name"	"Popular Visualisation CRS / Mercator (deprecated)"
    END # METADATA
    NAME "geo_32633"
    STATUS ON
    TEMPLATE "query"
    TILEITEM "location"
    TYPE POLYGON
    UNITS METERS
    CLASS
      NAME "Note"
      LABEL
        ANTIALIAS TRUE
        FONT "arial"
        SIZE 10
        BUFFER 10
        OFFSET 0 0
        POSITION AUTO
        SHADOWCOLOR 255 255 255
        SHADOWSIZE 0 0
        TYPE TRUETYPE
      END # LABEL
      LEADER
        MAXDISTANCE 5000
        STYLE
          COLOR 0 255 255
          WIDTH 2
        END # STYLE
      END # LEADER
      STYLE
        ANTIALIAS TRUE
        BACKGROUNDCOLOR 255 0 128
        COLOR 255 0 128
        OUTLINECOLOR 50 50 50
        SIZE 0
        WIDTH 2
      END # STYLE
      TEMPLATE "query"
      TITLE ""
    END # CLASS
  END # LAYER

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Force-label-rendering-without-overlapping-tp5107466.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

Andrea Peri | 4 Mar 00:46 2014
Picon

Use the Filter in a WFS 2.0 server

Hi,
I'm try to invoke a mapserver set as a WFS 2.0, putting a filter in the querystring.
But the response is always empty.
I use a spatialite db ad repository.
Is it the filter working on wfs 2.0.0 ?

Thx.


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

Gmane