[mapserver-users] how to make symbol rotate with the map?
dear all I need to make a symbol rotate with the map, i.e. if my symbol has an angle of 45° and the map is rotated by, let say, 10°, the symbol angle should be 55° to keep it's orientation relative to the map itself. at the moment the only way I see is to dynamically set in my database the angle values to be used for the symbol calculated from the angle of the map selected by the user (which is totally dynamic, not a configured value), and that's horrendously annoying as I would have to dynamically set the data value for the given layer so it use the dynamically generated angles values. is there any other way to make a symbol angle follow the map rotation ? thanks for reading best regards Oliver -- Camptocamp SA Oliver Christen PSE A, EPFL CH-1015 Lausanne www.camptocamp.com +41 21 619 10 23 (direct) +41 21 619 10 10 (centrale) +41 21 619 10 00 (fax) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How to Mapserver 6.4 on Windows?
Does this version contains MSSQL connection? On 03 Sep 2014 11:10 PM, Siki Zoltan s...@agt.bme.hu wrote: yes On Wed, 3 Sep 2014, Thomas RAFFIN wrote: Hi, Does this version contain PHP Mapscript? Thanks Thomas Le 03/09/2014 15:46, Siki Zoltan a écrit : Dear Francesco, you can download binary package from http://trac.osgeo.org/osgeo4w/ 6.4.1 is the latest stabil. You can download apache laso from there. Zoltan On Wed, 3 Sep 2014, Francesco Martinelli wrote: Hi, I would like to install Mapserver 6.4.x on a Windows OS. What should I do? ... I immagine recompile, but can someone post some more details on specific steps to follow. Thank you. ___ 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 -- Thomas RAFFIN Chef de Projet Internet traf...@sirap.fr mailto:traf...@sirap.fr Sirap http://sirap.fr Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis Héroult - BP 253 26106 Romans cedex ___ 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] Oracle layer partially drawn
Have you checked that the row of the SDO_COORD_REF_SYS table with SRID=23030 really represents EPSG:23030? In our case for example we use SRID=82032 which represents EPSG:31468. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- boun...@lists.osgeo.org] Im Auftrag von Geograma Gesendet: Mittwoch, 3. September 2014 12:57 An: mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] Oracle layer partially drawn Hello Tike, First, thanks for your help! - Checked that the layer has all the data (the same records in PostGis and Oracle). - DEBUG 5 is on - Cannot try ORG connection (it gives me an error, I do not know why) - Scaledoms, transparency, wms_extent and spatial index recreated in Oracle removed but no change - The test you suggested: · Downloaded: http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_plac es.zip · Loaded info to Oracle using ogr2ogr -f oci oci:user/pass@orcl ne_10m_populated_places.shp · New NE_10M_POPULATED_PLACES.map, as follows: --- MAP NAME TEST EXTENT -180 -90 180 90 SYMBOLSET symbols.sym FONTSET fonts.txt DEBUG ON LEGEND IMAGECOLOR -1 -1 -1 LABEL FONT vera ANGLE FOLLOW COLOR 0 0 0 ENCODING UTF-8 TYPE truetype SIZE 8 END STATUS ON TRANSPARENT ON END WEB METADATA wms_encoding UTF-8 wms_title WMS wms_abstract wms_srs epsg:4326 epsg:23030 wms_enable_request * wms_onlineresource http://v-0049:8080/fcgi- bin/mapserv.exe?map=C:\ms4w\maps\NE_10M_POPULATED_PLACES.map labelcache_map_edge_buffer -10 END END PROJECTION init=epsg:4326 END CONFIG MS_ERRORFILE c:\ms4w_3_0_6\maps\logs\NE_10M_POPULATED_PLACES.log DEBUG 5 CONFIG CPL_DEBUG ON CONFIG PROJ_DEBUG ON IMAGECOLOR 153 179 204 OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGB EXTENSION png FORMATOPTION QUALITY=100 FORMATOPTION INTERLACE=OFF END LAYER NAME NE_10M_POPULATED_PLACES STATUS ON TYPE POINT CONNECTIONTYPE oraclespatial CONNECTION FONDO_2014_06/FONDO_2014_06@orcl DATA ora_geometry from NE_10M_POPULATED_PLACES using unique ogr_fid srid 4326 SIZEUNITS pixels LABELITEM name PROJECTION init=epsg:4326 END TYPE truetype CLASS STYLE COLOR 254 0 0 SIZE 1 END SYMBOL circle NAME default LABEL FONT arial ANGLE 0 COLOR 0 0 0 TYPE truetype SIZE 10 POSITION Auto PARTIALS FALSE FORCE FALSE OUTLINECOLOR 254 254 254 END END METADATA wms_title public.smaltown_point_500k wms_abstract Capa del Servicio WMS #wms_extent -180 -90 180 90 wms_layer_group /TINSAMaps gml_include_items all END PROCESSING CLOSE_CONNECTION=DEFER END # Layer END # Map File --- · Request made: http://v-0049:8081/fcgi- bin/mapserv.exe?map=C:\ms4w_3_0_6\maps\NE_10M_POPULATED_PLACES.mapLAYERS= NE_10M_POPULATED_PLACESTRANSPARENT=TRUESERVICE=WMSVERSION=1.1.1REQUEST =GetMapSTYLES=FORMAT=image%2FpngSRS=EPSG%3A4326BBOX=-180,- 90,180,90WIDTH=768HEIGHT=384d · Log got: --- [Wed Sep 03 12:57:47 2014].724000 CGI Request 1 on process 5764 [Wed Sep 03 12:57:47 2014].74 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed Sep 03 12:57:47 2014].74 msOracleSpatialLayerOpen called with: ora_geometry from NE_10M_POPULATED_PLACES using unique ogr_fid srid 4326 (Layer pointer 02E88CB8) [Wed Sep 03 12:57:48 2014].49 msOracleSpatialLayerOpen. Shared connection not available. Creating one. [Wed Sep 03 12:57:48 2014].49 msConnPoolRegister(NE_10M_POPULATED_PLACES,user/pass@orcl,02EB1D08) [Wed Sep 03 12:57:48 2014].505000 msOracleSpatialLayerFreeItemInfo was called. [Wed Sep 03 12:57:48 2014].505000 msOracleSpatialLayerInitItemInfo was called. [Wed Sep 03 12:57:48 2014].505000 msOracleSpatialLayerWhichShapes was called. [Wed Sep 03 12:57:48 2014].505000 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT name, ogr_fid,rownum, ora_geometry FROM NE_10M_POPULATED_PLACES WHERE SDO_FILTER( ora_geometry, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' [Wed Sep 03 12:57:48 2014].505000 msOracleSpatialLayerWhichShapes. Bind values:
[mapserver-users] The requested URL was not found
Dear Mapservers I was installing MS4W and apache run perfectly until I unzip the application to apache . Apache shows that there is one application running and when I open it the message was the url was not found; Can someone please assist me on how to solve this Thank you ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] The requested URL was not found
On 2014-09-04 8:45 AM, Solly Vuso wrote: Dear Mapservers I was installing MS4W and apache run perfectly until I unzip the application to apache . Apache shows that there is one application running and when I open it the message was the url was not found; Can someone please assist me on how to solve this Thank you I usually recommend placing your applications for MS4W in the folder: /ms4w/apps/ Then you can create a small .conf file in /ms4w/httpd.d (see that folder for examples), and restart your Apache service. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] The requested URL was not found
Thank you Jeff I will try it On 04 Sep 2014 2:04 PM, Jeff McKenna jmcke...@gatewaygeomatics.com wrote: On 2014-09-04 8:45 AM, Solly Vuso wrote: Dear Mapservers I was installing MS4W and apache run perfectly until I unzip the application to apache . Apache shows that there is one application running and when I open it the message was the url was not found; Can someone please assist me on how to solve this Thank you I usually recommend placing your applications for MS4W in the folder: /ms4w/apps/ Then you can create a small .conf file in /ms4w/httpd.d (see that folder for examples), and restart your Apache service. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ 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] how to make symbol rotate with the map?
a bit easier way to do it is to use mapserver substitution to recover the map angle and calculate the final angle value directly in the postgres data string : DATA geom FROM (SELECT ..., (%map_angle%::float+angle)*-1 AS angle FROM table WHERE condition) as foo USING UNIQUE id USING srid=21781 ... METADATA ... default_map_angle 0 map_angle_validation_pattern [0-9.\-]* # for map angle END CLASS STYLE SYMBOL 'bla.png' SIZE 120.0 ANGLE [angle] OFFSET 0 60.00 END END maybe there is an even easier way to do it? dear all I need to make a symbol rotate with the map, i.e. if my symbol has an angle of 45° and the map is rotated by, let say, 10°, the symbol angle should be 55° to keep it's orientation relative to the map itself. at the moment the only way I see is to dynamically set in my database the angle values to be used for the symbol calculated from the angle of the map selected by the user (which is totally dynamic, not a configured value), and that's horrendously annoying as I would have to dynamically set the data value for the given layer so it use the dynamically generated angles values. is there any other way to make a symbol angle follow the map rotation ? thanks for reading best regards Oliver -- Camptocamp SA Oliver Christen PSE A, EPFL CH-1015 Lausanne www.camptocamp.com +41 21 619 10 23 (direct) +41 21 619 10 10 (centrale) +41 21 619 10 00 (fax) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Oracle layer partially drawn
Hello Andreas, Check made with 23030 and 4326 (used with the other shape that I downloaded). They are the correct SRIDs. Thanks! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Oracle-layer-partially-drawn-tp5159828p5160130.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] How to Mapserver 6.4 on Windows?
try mapserv -v command, it will list all the supported drivers. Another possible source of mapserver binaries is http://www.gisinternals.com it is compiled with mssql (as I read in the package info). Zoltan On Thu, 4 Sep 2014, Solly Vuso wrote: Does this version contains MSSQL connection? On 03 Sep 2014 11:10 PM, Siki Zoltan s...@agt.bme.hu wrote: yes On Wed, 3 Sep 2014, Thomas RAFFIN wrote: Hi, Does this version contain PHP Mapscript? Thanks Thomas Le 03/09/2014 15:46, Siki Zoltan a écrit : Dear Francesco, you can download binary package from http://trac.osgeo.org/osgeo4w/ 6.4.1 is the latest stabil. You can download apache laso from there. Zoltan On Wed, 3 Sep 2014, Francesco Martinelli wrote: Hi, I would like to install Mapserver 6.4.x on a Windows OS. What should I do? ... I immagine recompile, but can someone post some more details on specific steps to follow. Thank you. ___ 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 -- Thomas RAFFIN Chef de Projet Internet traf...@sirap.fr mailto:traf...@sirap.fr Sirap http://sirap.fr Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis Héroult - BP 253 26106 Romans cedex ___ 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