milad nidal | 19 May 19:01 2016
Picon

Problem with label offset

Hi,

I have updated Mapserver to version 7 on linux. I started to have a problem with label offset. I do not know if somebody else has the same problem with offset

                       LABEL

                                   COLOR 0 0 0

                                   ANGLE FOLLOW

                                   FONT "arial"

                                   TYPE truetype

                                   POSITION CC # same error with AUTO

                                   SIZE 7

                                   BUFFER                   5

                                   OFFSET                    4 99

                        END

 I got internal server error..

 

thanks

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
hosain mohammadi | 19 May 08:17 2016
Picon

ms4w 3.1.4 mapcache

hello there 
i active mapcache in ms4w 3.1.4 with it's introduction
and run successfully image in tmp folder , in example is openlayers2

but i'd like use mapcache ms4w via openlayers 3 and my code is below

                        new ol.layer.Tile({
                        title: 'Chabahar',    
                        source: new ol.source.TileWMS({
                        params: {
                                          'LAYERS': 'chabahar',
                                          'FORMAT': 'image/png',
                                          'TILED': true
                                     },
                        serverType: 'mapserver'
                                                       })
                                        })  ,


but no image save in tmp directory

do you have some offer?

thanks

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
ankur chitranshi | 19 May 07:39 2016
Picon

how to define a scale in mapfile of mapscript mode in ms4w

Hi All, 

we required a map should be dispalyed at scale of  1:4000 

ration in mapserver(ms4w)  in map file of mapscript mode


can any body help me ???????????


thanks in advanced

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Vogt, Robert (RCIS | 18 May 20:17 2016

Testing x64 MapServer

Good afternoon I’m trying to set up x64 MapServer on Windows 2012 server.

 

I’ve been partially successful in that the MapServer dll’s are all there but when I run my .map file through shp2img.exe

 

The process is failing on a .map file that worked previously.

 

This is what the map file looks like …

 

MAP

  NAME USA1

  SYMBOLSET "e:\arcgisserver\basedata\symbols.txt"

  FONTSET "e:\arcgisserver\basedata\fonts.txt"

  STATUS ON

  IMAGETYPE PNG8

  RESOLUTION 72

  IMAGECOLOR 255 255 255

  SHAPEPATH "e:\arcgisserver\basedata"

  UNITS METERS

  PROJECTION "proj=lcc" "lat_1=20" "lat_2=60" "lat_0=40" "lon_0=-112.52116185" "x_0=0" "y_0=0" "ellps=GRS80" "units=m" "datum=NAD83" END

  SIZE 1500 1500

  EXTENT -45292.7219576058 780481.616003812 45290.5126012127 871065.05991903

  LAYER

    STATUS DEFAULT

    CONNECTIONTYPE PLUGIN CONNECTION "server=Left Blank on purpose, I’ve tested the connection with a .udl file on the server"

    PLUGIN "msplugin_mssql2008.dll"

    DATA "shape(geography) from FARMMAPS.GIS.STATE USING INDEX S7_idx USING UNIQUE OBJECTID USING SRID=4269"

    NAME "States"

    TYPE POLYGON

    STATUS DEFAULT

    PROJECTION "proj=longlat" "ellps=GRS80" "datum=NAD83" "no_defs" END

    LABELITEM "state"

    CLASS

      NAME "States"

      STYLE

        SYMBOL 0

        WIDTH 2 OUTLINECOLOR 255 0 0

      END

      LABEL TYPE truetype

        FONT arial

        PRIORITY 2

        ALIGN center

        SIZE 10

        COLOR 255 0 0

        OUTLINECOLOR 255 255 255

        OUTLINEWIDTH 2

        MINDISTANCE 300

        ANGLE AUTO

        WRAP "~"

      END

    END

  END

END

 

 

I have tested the SQL connection string with a .udl file on the server and it is working.

The out put of shp2img.exe looks like this…

 

PS E:\rcis\web\MapServerDlls> ./shp2img.exe -m E:\RCIS\Web\MapServerDlls\MapServerTest\map4.map -o E:\RCIS\Web\MapServer

Dlls\MapServerTest\image1.png -all_debug 5

msLoadMap(): 0.000s

msDrawMap(): rendering using outputformat named png8 (AGG/PNG8).

msDrawMap(): WMS/WFS set-up and query, 0.000s

msDrawMap(): Image handling error. Failed to draw layer named 'States'.

msDrawMap(): Image handling error. Failed to draw layer named 'States'. <br>

msFreeMap(): freeing map at 00000067B88C2DE0.

 

 

Any help is greatly appreciated!!

 

Thank you so much!!

 

-Bob

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Ricardo Queiroz | 18 May 14:48 2016
Picon

MS4W and Oracle

This is my first mail to this list, and sorry about english (not my native language)

I've a software with ms4w 1.3.4 and pgsql9.5 (and postgis 2.2.2) and works fine, so i need to convert all the app to use oracle (client request =/, i'm using oracle client 11.2.0.3.0). I follow the steps of the ms4w installation and when  write "mapserv -v" in console the oraclespatian appears, so the next step was test the connection layer, there's ok, when i change some parameters (to wrong) in the conn string the connect fail, but here's the problem, when i set a data in the layer (simple sql) allways return a error and i can't resolve this, don't know if is some mapserver config or else.

Basic example of layer (trying draw a point):

$objLayer = ms_newLayerObj($objMap);
$objLayer ->set("name", "layer_oracle");
$objLayer ->setConnectionType(MS_ORACLESPATIAL);
$objLayer ->set("connection", "user/pass <at> tnsName");
$objLayer ->setProcessing("CLOSE_CONNECTION=DEFER");
$objLayer ->set("type", MS_LAYER_POINT);

$data = "THE_GEOM from (select PK_ID, NAME as LABELITEM, THE_GEOM from user.TABLE_POINT) USING SRID 29193";
$objLayer ->set("data", $data); unset($data);

$objLayer ->set("labelitem", "LABELITEM");
$objLayer ->set("template", "layer.html");
$objLayer ->set("header", "layer.html");
$objLayer ->set("footer", "layer.html");

$objClass= ms_newClassObj($objLayer );
$objClass->set("name", "POINT");

$objStyle= ms_newStyleObj($objClass);
$objStyle->set("symbolname", "dot_purple");

$objLabel= new labelObj();
$objLabel->color->setRGB(217, 242, 230);
$objLabel->outlinecolor->setRGB(0, 0, 0);
$objLabel->set("font", "luxi-bold");
$objLabel->set("size", 9);
$objLabel->set("position", MS_UC);
$objLabel->set("partials", MS_TRUE);
$objLabel->set("mindistance",100);
$objLabel->set("buffer",4);

$objClass->addLabel($objLabel);
$objLayer ->set("status", MS_ON);

$objLayer ->free(); $objClass->free(); $objStyle->free(); $objLabel->free();
unset($objLayer); unset($objClass); unset($objStyle); unset($objLabel);

I get the error message: 
Warning: mapObj::draw(): [MapServer Error]: msDrawMap(): Failed to draw layer named 'layer_oracle'. in...
Warning: mapObj::draw(): [MapServer Error]: msOracleSpatialLayerWhichShapes(): Check your data statement and server logs in...

When i change some var on set("connection") i get the error conn msg, so i can connect, just can't draw the point
Warning: mapObj::draw(): [MapServer Error]: msOracleSpatialLayerOpen(): Cannot create OCI Handlers. Connection failure. Check your logs and the connection string. in


The same example works fine when i change to postgis (using the same table "structure").
Oracle table and the record:
CREATE TABLE TABLE_POINT
(
PK_ID NUMBER, 
NAME VARCHAR2(30 BYTE), 
THE_GEOM  SDO_GEOMETRY, 
PRIMARY KEY (PK_ID)
)

insert into TABLE_POINT(PK_ID, NAME, THE_GEOM) values(1, 'Point 1', MDSYS.SDO_GEOMETRY(2001,29193,MDSYS.SDO_POINT_TYPE(798062.7655190326,7459237.923282569,null),null,null));


Thanks,

Ricardo Queiroz
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
ankur chitranshi | 18 May 08:11 2016
Picon

mapserver(ms4w) map script mode mode

hello all,

 can any body help me out in how to per-define map scale manually in mapserver(ms4w) map script mode mode


_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Ankur Kumar | 18 May 08:11 2016
Picon

help in mapserver mapfile scale define

hello All,

 can any body help me out in how to per-define map scale manually in mapserver(ms4w) map script mode mode
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
hosain mohammadi | 16 May 11:46 2016
Picon

WFS service with mapserever and show in openlayers 3

hello there

i'd like to create WFS service like below URL the format is geojson


and want to show this service in openlayers 3 
some one has experience about this 
 thanks
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
G. Allegri | 16 May 10:53 2016
Picon
Gravatar

runtime CONNECTION string partial substitution

Hello,
I'm trying to define a layer where the Sqlite DB connection should be set dynamically through runtime sustitution.

e.g.

LAYER
    NAME mylayer
    TYPE POINT
    CONNECTIONTYPE OGR
    VALIDATION
        "db" "[a-z]+"
    END
    CONNECTION "/var/www/dbs/%db%.sqlite"
    DATA "mytable"
END

The point layers works fine if  %db% is set statically but if I try to define it through get query values nothing is returned:


The documentation says that runtime sustitution should work for CONNECTION param too. What am I doing wrong?

Thanks,
Giovanni

--
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
reuven | 16 May 03:48 2016
Picon

Re: interesting

Hi!

 

Take a look at what I've just read, this is so interesting, read more at http://phynteshisi.thequantumgroup.net/exhibit.php

 

reuven <at> levitt.net

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Robert Sanson | 16 May 00:28 2016

mapcache_seed fill in missing tiles?

Hi

 

Is it possible to use mapcache_seed to fill in missing tiles?

 

Many thanks,


Robert L. Sanson

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

Gmane