alok mathur | 15 Apr 18:58 2015
Picon

Kml + mapserver

Hi Lars,

I have a KML with multiple placemarks in it. Now i want to read each Placemark and make it a different layer in mapfile.

Is it a right way to do so and also in case of multigeometry how to handle that with fid.

Let me know in case of any concern.

for eg

KML
----------
<Folder>
<name>Fibertech
<Placemark>
<name>P1</name>
...

</Placemark>
<Placemark>
<name>P2</name>
...

</Placemark>
</Folder>
MAP file
-----------------

LAYER
NAME ""
...
DATA "select * from "Fibertech" where fid =1;
..
END

LAYER
NAME ""
...
DATA "select * from "Fibertech" where fid =2;
..
END

--
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
alok mathur | 15 Apr 16:24 2015
Picon

KML

Hi,

I have a KML as below:

<?xml version="1.0" encoding="UTF-8"?>
<Document>
  <name>doc</name>
  <open>0</open>
 <Placemark>
  <name>SF Marina Harbor Master</name>
  <visibility>0</visibility>
  <MultiGeometry>
    <LineString>
      <!-- north wall -->
      <coordinates>
        -122.4425587930444,37.80666418607323,0
        -122.4428379594768,37.80663578323093,0
      </coordinates>
    </LineString>
    <LineString>
      <!-- south wall -->
      <coordinates>
        -122.4425509770566,37.80662588061205,0
        -122.4428340530617,37.8065999493009,0
      </coordinates>
    </LineString>
<Point> <coordinates>-90.86948943473118,48.25450093195546,0</coordinates> </Point>
  </MultiGeometry>
</Placemark>
</Document>
</kml>

------------

In DATA part of the map file i want to use a query. but i able to do so.

Example

DATA "select * from 'doc' where fid=1;

any one please suggest how to show all the geometries using FID.

Thanks!

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

Re: mapserver 6.4.1 - special characters in legend

Thanks but I have tried that option and it does not work.

 

I have for example in my mapfile

         

FONTSET "DEPORTES_FUTBOL/fonts/fontset.txt"

         

          LEGEND

                     KEYSIZE 30 12

                     LABEL

                        FONT Arial         

                        SIZE LARGE

                        COLOR 0 255 0

                     END

          END

 

and the content of  fontset.txt  is

 

Arial   ARIAL.TTF

 

 

and i get "Campos de f.tbol" in green color but u character it´s yet wrong

 

 

I had this service published with old mapserver version (5.x) and windows server, and only i have in my myfile

LEGEND

                     KEYSIZE 30 12

END

 

and it worked well.

De: thomas bonfort [mailto:thomas.bonfort <at> gmail.com]
Enviado el: miércoles, 15 de abril de 2015 11:38
Para: Carmen Delia Hernández Pérez
Asunto: Re: [mapserver-users] mapserver 6.4.1 - special characters in legend

 

Use a truetype font for your legend.

--
Thomas

On Apr 15, 2015 12:36 PM, "Carmen Delia Hernández Pérez" <cdhernandez <at> tenerife.es> wrote:

Hi!

 

I am installing Mapserver 6.4.1 on CentOS 7 for publish  WMS services. I have been installing all dependencies and I compiled mapserver. Mapserver works. The WMS services work well except with legends  generation . In layers with one special character ( accent, ñ ) in its title, legend is wrong.

 

For example:

LAYER

                          NAME "Campos_futbol"

                          STATUS ON

                          METADATA

                                       "ows_title"          "Campos de fútbol"

 

                          ...

 

When I do one GetLegendGraphic query it returns "Campos de f.tbol" in layer description because the "u character  accented" is wrong.

 

I don´t know where is the problem because when I do one GetFeatureInfo query  or  one GetCapabilities query,  these characters are show correctly. My apache has  ISO-8859-1 encoding by default.

------------------------------------------------------------------------------------------------------------------

 

GetFeatureInfo results:

 

Layer 'Campos_futbol'

  Feature 38:

    NOMBRE = 'Campo de Fútbol de La Matanza'

 

------------------------------------------------------------------------------------------------------------------

GetCapabilities results:

 

<?xml version="1.0" encoding="ISO-8859-1"?>

 

........

 

<Layer queryable="1" opaque="0" cascaded="0">

<Name>Campos_futbol</Name>

<Title>Campos de fútbol</Title>

 

------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------

 

 

Someone has idea where can be the problem? Can it be I have some library incorrect?

 

My Mapserver  is configured so:

 

# mapserv -v

 

MapServer version 6.4.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

 

 

Thanks in advance!!

 

Carmen


_______________________________________________
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
Picon

mapserver 6.4.1 - special characters in legend

Hi!

 

I am installing Mapserver 6.4.1 on CentOS 7 for publish  WMS services. I have been installing all dependencies and I compiled mapserver. Mapserver works. The WMS services work well except with legends  generation . In layers with one special character ( accent, ñ ) in its title, legend is wrong.

 

For example:

LAYER

                          NAME "Campos_futbol"

                          STATUS ON

                          METADATA

                                       "ows_title"          "Campos de fútbol"

 

                          ...

 

When I do one GetLegendGraphic query it returns "Campos de f.tbol" in layer description because the "u character  accented" is wrong.

 

I don´t know where is the problem because when I do one GetFeatureInfo query  or  one GetCapabilities query,  these characters are show correctly. My apache has  ISO-8859-1 encoding by default.

------------------------------------------------------------------------------------------------------------------

 

GetFeatureInfo results:

 

Layer 'Campos_futbol'

  Feature 38:

    NOMBRE = 'Campo de Fútbol de La Matanza'

 

------------------------------------------------------------------------------------------------------------------

GetCapabilities results:

 

<?xml version="1.0" encoding="ISO-8859-1"?>

 

........

 

<Layer queryable="1" opaque="0" cascaded="0">

<Name>Campos_futbol</Name>

<Title>Campos de fútbol</Title>

 

------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------

 

 

Someone has idea where can be the problem? Can it be I have some library incorrect?

 

My Mapserver  is configured so:

 

# mapserv -v

 

MapServer version 6.4.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

 

 

Thanks in advance!!

 

Carmen

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
wiltomap | 15 Apr 09:14 2015
Picon

Anchorpoint for pixmap symbol?

Hi all,

I need to set an anchorpoint for a pixmap symbol (*png file). Is there a way
to achieve that in a mapfile? So far, I have tested the following code
inside a mapfile, which gives no result:

SYMBOL
	NAME 'mySymbol'
	TYPE pixmap
        ANCHORPOINT 0 1
	IMAGE "symbols/mySymbol.png"
END

Any idea on this topic? I'm using MapServer 6.4.1.

Thanks!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Anchorpoint-for-pixmap-symbol-tp5201394.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 | 13 Apr 03:03 2015
Picon

gis internals determine 32/64 bit

If I'm looking at an existing binary installation of mapserv and gdal from GIS Internals, how can I determine if it is 32 bit or 64 bit? It seems like such a simple question that I imagine I will be embarrassed by the simple answer but my Windows Foo just isn't with me tonight.

Thanks,
Rich 

--
Richard W. Greenwood, PLS
www.greenwoodmap.com
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Marco Afonso | 11 Apr 13:35 2015
Picon

Fwd: Ubuntu Trusty, MapServer 6.4.1, Gdal 1.11


One last note...

When requesting the mapfile thought cgi-bin/mapserv it was working!
But we are requesting the WMS through PHP mapscript (for a number of reasons) so... my guess is that after compiling gdal with ecw I should had reboot apache so it could reload the new gdal version :)

Thank you Jukka, Richard and Jeff for your help :)

2015-04-11 12:23 GMT+01:00 Marco Afonso <mafonso333 <at> gmail.com>:
Reboot and... voilá! It is working! :)

Cheers

2015-04-11 12:02 GMT+01:00 Rahkonen Jukka (MML) <jukka.rahkonen <at> maanmittauslaitos.fi>:
So does it work with one tiff on Linux? If yes the file access theory is wrong.

Jukka
Lähettäjä: Marco Afonso
Lähetetty: ‎11.‎4.‎2015 13:57
Vastaanottaja: Rahkonen Jukka (MML)

Kopio: mapserver
Aihe: Re: [mapserver-users] Ubuntu Trusty, MapServer 6.4.1, Gdal 1.11

Hi Jukka,

We have exactly the same MS configuration, shapefile and ECW files working a older windows machine, so it seems to me that it is something to do with ms on linux.

As I stated before, gdalinfo and ogrinfo are reading corretly the shapefile and ecw files throught command line.

What file permitions would be required?

Thanks

2015-04-11 11:21 GMT+01:00 Rahkonen Jukka (MML) <jukka.rahkonen <at> maanmittauslaitos.fi>:

Hi,

 

About how to test I have only one advice: Do it systematically.

 

Being systematically means building something pretty simple that works first and add new stuff one and only one step at a time. Somehow like:

 

Problem is that ECW layer through tileindex does not work.

 

1.)    Does it work with one ECW? It did not, you fixed the build and gdalinfo is OK now but did you also test that MapServer is now OK with one ECW?

2.)    If it is working with ECW then good.  If it is not, make an additional test by converting one  ECW into GeoTIFF and test your layer with it. If it is OK there is still something wrong with ECW support. If GeoTIFF does not work there is something else wrong and you must fix it before you can even know if the issue has to do with ECW at all.

3.)     If one GeoTIFF and one ECW is OK then perhaps something is wrong with the tileindex. Make a new tileindex that contains a) only that one GeoTIFF you created in step 2 b) the same for the one original ECW. Do they work?

 

Test with the file /home/mapas/dados/raster/ortos2012/006003Argb_12_d73.ecw. Does it exist? Is it empty? Can’t it be accessed due to wrong path or missing rights?

 

(): Unable to access file. Corrupt, empty or missing file &#39;/home/mapas/dados/raster/ortos2012/006003Argb_12_d73.ecw&#39; for layer &#39;ortos2012&#39;. 

 

As a general rule, add DEBUG 5 into your layer when debugging, and I suggest to add always PROJECTION blocks into MAP and LAYER level.

 

-Jukka Rahkonen-

 

 

Lähettäjä: mapserver-users-bounces <at> lists.osgeo.org [mailto:mapserver-users-bounces <at> lists.osgeo.org] Puolesta Marco Afonso
Lähetetty: 10. huhtikuuta 2015 17:25
Vastaanottaja: Jeff McKenna
Kopio: mapserver
Aihe: Re: [mapserver-users] Ubuntu Trusty, MapServer 6.4.1, Gdal 1.11

 

Hi again,

 

Ok Jeff, I can change if I find something new.

 

Not solved yet :p

 

Ok, recompiled libecwj2 and gdal. gdalinfo is now reading the ecw correctly.

 

But I still get the mapserver error... are there any further tests that I can do?

 

Thanks.

 

2015-04-10 15:07 GMT+01:00 Jeff McKenna <jmckenna <at> gatewaygeomatics.com>:

On 2015-04-10 10:34 AM, Marco Afonso wrote:


Found this

 

And reading moreover on http://trac.osgeo.org/gdal/wiki/ECW

Those wiki pages are wonderful; please as you head down this path don't be afraid to update that ECW build wiki with any notes or changes you noticed.  Thanks!

-jeff




--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/







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




--

Regards,

Marco Afonso




--
Regards,
Marco Afonso




--
Regards,
Marco Afonso




--
Regards,
Marco Afonso




--
Regards,
Marco Afonso

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Marco Afonso | 11 Apr 13:35 2015
Picon

Fwd: Ubuntu Trusty, MapServer 6.4.1, Gdal 1.11


Reboot and... voilá! It is working! :)

Cheers

2015-04-11 12:02 GMT+01:00 Rahkonen Jukka (MML) <jukka.rahkonen <at> maanmittauslaitos.fi>:
So does it work with one tiff on Linux? If yes the file access theory is wrong.

Jukka
Lähettäjä: Marco Afonso
Lähetetty: ‎11.‎4.‎2015 13:57
Vastaanottaja: Rahkonen Jukka (MML)

Kopio: mapserver
Aihe: Re: [mapserver-users] Ubuntu Trusty, MapServer 6.4.1, Gdal 1.11

Hi Jukka,

We have exactly the same MS configuration, shapefile and ECW files working a older windows machine, so it seems to me that it is something to do with ms on linux.

As I stated before, gdalinfo and ogrinfo are reading corretly the shapefile and ecw files throught command line.

What file permitions would be required?

Thanks

2015-04-11 11:21 GMT+01:00 Rahkonen Jukka (MML) <jukka.rahkonen <at> maanmittauslaitos.fi>:

Hi,

 

About how to test I have only one advice: Do it systematically.

 

Being systematically means building something pretty simple that works first and add new stuff one and only one step at a time. Somehow like:

 

Problem is that ECW layer through tileindex does not work.

 

1.)    Does it work with one ECW? It did not, you fixed the build and gdalinfo is OK now but did you also test that MapServer is now OK with one ECW?

2.)    If it is working with ECW then good.  If it is not, make an additional test by converting one  ECW into GeoTIFF and test your layer with it. If it is OK there is still something wrong with ECW support. If GeoTIFF does not work there is something else wrong and you must fix it before you can even know if the issue has to do with ECW at all.

3.)     If one GeoTIFF and one ECW is OK then perhaps something is wrong with the tileindex. Make a new tileindex that contains a) only that one GeoTIFF you created in step 2 b) the same for the one original ECW. Do they work?

 

Test with the file /home/mapas/dados/raster/ortos2012/006003Argb_12_d73.ecw. Does it exist? Is it empty? Can’t it be accessed due to wrong path or missing rights?

 

(): Unable to access file. Corrupt, empty or missing file &#39;/home/mapas/dados/raster/ortos2012/006003Argb_12_d73.ecw&#39; for layer &#39;ortos2012&#39;. 

 

As a general rule, add DEBUG 5 into your layer when debugging, and I suggest to add always PROJECTION blocks into MAP and LAYER level.

 

-Jukka Rahkonen-

 

 

Lähettäjä: mapserver-users-bounces <at> lists.osgeo.org [mailto:mapserver-users-bounces <at> lists.osgeo.org] Puolesta Marco Afonso
Lähetetty: 10. huhtikuuta 2015 17:25
Vastaanottaja: Jeff McKenna
Kopio: mapserver
Aihe: Re: [mapserver-users] Ubuntu Trusty, MapServer 6.4.1, Gdal 1.11

 

Hi again,

 

Ok Jeff, I can change if I find something new.

 

Not solved yet :p

 

Ok, recompiled libecwj2 and gdal. gdalinfo is now reading the ecw correctly.

 

But I still get the mapserver error... are there any further tests that I can do?

 

Thanks.

 

2015-04-10 15:07 GMT+01:00 Jeff McKenna <jmckenna <at> gatewaygeomatics.com>:

On 2015-04-10 10:34 AM, Marco Afonso wrote:


Found this

 

And reading moreover on http://trac.osgeo.org/gdal/wiki/ECW

Those wiki pages are wonderful; please as you head down this path don't be afraid to update that ECW build wiki with any notes or changes you noticed.  Thanks!

-jeff




--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/







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




--

Regards,

Marco Afonso




--
Regards,
Marco Afonso




--
Regards,
Marco Afonso




--
Regards,
Marco Afonso

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Fde_G . | 11 Apr 01:05 2015
Picon

No documentation for older version

Hi, navigating the site i found that documentation for other versión diferent than current (http://mapserver.org/previousversions.html#previousversions) are not avalible. Where is the correct place to report the problem?


_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
satpal bhandari | 10 Apr 08:21 2015
Picon

How Is there a WMS service which return layers at given coordinates.

Hi team ,

I scenario is  below :

map is shown under from TiledWMS layer from mapserver. It has 2 layers.

1. TiledWMS  layer for OSM world map.

2. TiledWMS layer for layers defined in kml file placed in mapserver through .map file. This map file contains many layers.

Now , when user click on map : it got 2 layers as above.

But since 2nd layer is made up of different layers as given in .map file , i am not able to uniquely identify these layers.  I want that since 2 nd layer is made up of different layers in kml file i should be able to uniquely identify them on mouse click or hower.


Thanks
--
    SATPAL BHANDARI

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Marco Afonso | 9 Apr 16:54 2015
Picon

Ubuntu Trusty, MapServer 6.4.1, Gdal 1.11


Hi all,

Installed mapserver with apt-get.
I've installed gdal manually: compiled with ecw support (gdalinfo tell me that).
I'm trying to use a shapefile (which points to ecw files) on mapserver but comes the error (the relevant part):

msDrawMap(): Image handling error. Failed to draw layer named &#39;ortos2012&#39;.
msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file &#39;/fullpath/to/0608A1Argb_12_d73.ecw

Note also that I'm using the full path to the ecw.

Any ideas please? Thanks :)

--
Regards,
Marco Afonso

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

Gmane