[mapserver-users] Failed to connect to github
works just fine $git clone https://github.com/mapserver/mapserver.git Cloning into 'mapserver'... remote: Counting objects: 45832, done. remote: Compressing objects: 100% (11217/11217), done. remote: Total 45832 (delta 34576), reused 45785 (delta 34530) Receiving objects: 100% (45832/45832), 15.24 MiB | 1.56 MiB/s, done. Resolving deltas: 100% (34576/34576), done. Andrea, are you behind a proxy? http://stackoverflow.com/questions/128035/how-do-i-pull-from-a-git-repository-through-an-http-proxy http://stackoverflow.com/questions/128035/how-do-i-pull-from-a-git-repository-through-an-http-proxy Hi to all, I resolve the trouble. The trouble was in my proxy. It was faulting my requests. Thx again, -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ecw problems
Hi, First thing to try is to save what you believe is mapserv.exe on a disk and open it as a text file. Most probably it is some sort of error message. -Jukka Rahkonen- stefano parodi wrote: Hi all. I'm setting up a new mapserver application on Windows 2008 Server with IIS 7. I've download the win32 binaries from http://www.gisinternals.comhttp://www.gisinternals.com/ (release-1600-gdal-1-9-mapserver-6-0) that come with ECW support. I'm able to use the ECW files with both gdalinfo and the shp2img utility app, tha produce a valid png image, but not with the mapserver cgi. Mapserver CGI work well with both Oracle Spatial and PostGIS layers but simply return the mapserver executable (mapserv.exe) in case of a ECW layer. Mapserver log doesn't report any error, here's an extract from the log: [Fri Jun 01 16:27:17 2012].912000 CGI Request 1 on process 3872 [Fri Jun 01 16:27:17 2012].914000 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Fri Jun 01 16:27:17 2012].915000 msDrawMap(): WMS/WFS set-up and query, 0.001s [Fri Jun 01 16:27:17 2012].94 msDrawRasterLayerLow(ORTOFOTO_2007): entering. [Fri Jun 01 16:27:18 2012].56 msDrawMap(): Layer 5 (ORTOFOTO_2007), 0.645s [Fri Jun 01 16:27:18 2012].56 msDrawMap(): Drawing Label Cache, 0.000s [Fri Jun 01 16:27:18 2012].56 msDrawMap() total time: 0.647s [Fri Jun 01 16:27:18 2012].906000 msSaveImage(stdout) total time: 0.346s [Fri Jun 01 16:27:18 2012].906000 mapserv request processing time (msLoadMap not incl.): 0.994s [Fri Jun 01 16:27:18 2012].906000 msFreeMap(): freeing map at 0057FA70. Does someone has any clue about what's happening? Thank you in advance. -- Stefano Parodi. Geospatial Developer at Datasiel S.p.A. http://it.linkedin.com/in/stefanoparodi http://twitter.com/fanenjihttps://twitter.com/#!/fanenji ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] AGG: Internal vs. External
Hello I am using Mapserver as a WMS server and would like to improve the rendered image quality. Currently we get jagged lines and poor text rendering as you can see in this link http://www.bicimapas.com.mx/SpatiaRetail.html Source are SHP files. We plan to use AGG to improve this and are using Mapserver 6.01. I have not installed AGG but when running /.configure it shows AGG Support: Internal and with ./mapserv -v shows SUPPORTS: AGG. The question is whether there is a difference between internal or external AGG support? Is this internal AGG support provided by GD? Finally, is there a suggestion on how to improve the image rendering quality? The map file has this image rendering setting: MAP NAME DemoFerre UNITS dd SIZE 640 480 IMAGECOLOR 244 244 244 IMAGETYPE png SHAPEPATH /home/bicimapas/mapdata/ EXTENT -99.070427 17.869010 -96.723984 20.839951 FONTSET /home/bicimapas/mapdata/fontset.txt Thanks in advance Alberto Najera ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetStyles SLD does not include Opacity value
Are we missing a few things like the response and the mapfile snippet? Also are you talking layer opacity or style opacity? I guess the email-er that sent around the post didn't include anything within the raw tags. Here's the full text again (without the tags): I have a Map file with a polygon layer that has an OPACITY value of 20 defined as: LAYER NAME Poly_wOpacity TYPE POLYGON OPACITY 20 STATUS ON PROJECTION init=epsg:3857 END INCLUDE ../../../mapserv/conf/sdeconnection.inc.map DATA ...,SHAPE,SDE.DEFAULT METADATA wms_title Polygon Layer w/Opacity of 20 wms_srs epsg:3857 END CLASS NAME Polygon Layer w/Opacity of 20 STYLE COLOR 255 0 0 END END END I see a correctly opaque display when I do a GetMap or a GetLegendGraphic, so I know the OPACITY value is set properly. However, when I perform a GetStyles request, the returned SLD doesn't include anything about the opacity. The response is: StyledLayerDescriptor version=1.0.0 ... NamedLayer NamePoly_wOpacity/Name UserStyle FeatureTypeStyle Rule NamePolygon Layer w/Opacity of 20/Name PolygonSymbolizer Fill CssParameter name=fill#ff/CssParameter /Fill /PolygonSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor Am I wrong to expect to see a fill-opacity CssParameter for this layer? I am using Mapserver 6.0.1 and, since it might have some bearing of this question, the OUTPUTFORMAT for the map is defined as follows: OUTPUTFORMAT NAME png32 DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=OFF TRANSPARENT ON END If there is some pointers someone can offer to get this information returned properly, I'd appreciate it. Cheers, jtm -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066p4979230.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] AGG: Internal vs. External
MapServer ships with AGG and it's built by default. I believe in 6.0 the PNG output format references GD. If you want to use AGG try PNG24 instead or roll your own OUTPUTFORMAT block. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Alberto Najera Sent: Tuesday, June 05, 2012 9:23 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] AGG: Internal vs. External Hello I am using Mapserver as a WMS server and would like to improve the rendered image quality. Currently we get jagged lines and poor text rendering as you can see in this link http://www.bicimapas.com.mx/SpatiaRetail.html Source are SHP files. We plan to use AGG to improve this and are using Mapserver 6.01. I have not installed AGG but when running /.configure it shows AGG Support: Internal and with ./mapserv -v shows SUPPORTS: AGG. The question is whether there is a difference between internal or external AGG support? Is this internal AGG support provided by GD? Finally, is there a suggestion on how to improve the image rendering quality? The map file has this image rendering setting: MAP NAME DemoFerre UNITS dd SIZE 640 480 IMAGECOLOR 244 244 244 IMAGETYPE png SHAPEPATH /home/bicimapas/mapdata/ EXTENT -99.070427 17.869010 -96.723984 20.839951 FONTSET /home/bicimapas/mapdata/fontset.txt Thanks in advance Alberto Najera ___ 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] GetStyles SLD does not include Opacity value
Hi Joanne: What happens if you move the opacity into the class style? Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of myOpenLayersUName Sent: Tuesday, June 05, 2012 9:32 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] GetStyles SLD does not include Opacity value Are we missing a few things like the response and the mapfile snippet? Also are you talking layer opacity or style opacity? I guess the email-er that sent around the post didn't include anything within the raw tags. Here's the full text again (without the tags): I have a Map file with a polygon layer that has an OPACITY value of 20 defined as: LAYER NAME Poly_wOpacity TYPE POLYGON OPACITY 20 STATUS ON PROJECTION init=epsg:3857 END INCLUDE ../../../mapserv/conf/sdeconnection.inc.map DATA ...,SHAPE,SDE.DEFAULT METADATA wms_title Polygon Layer w/Opacity of 20 wms_srs epsg:3857 END CLASS NAME Polygon Layer w/Opacity of 20 STYLE COLOR 255 0 0 END END END I see a correctly opaque display when I do a GetMap or a GetLegendGraphic, so I know the OPACITY value is set properly. However, when I perform a GetStyles request, the returned SLD doesn't include anything about the opacity. The response is: StyledLayerDescriptor version=1.0.0 ... NamedLayer NamePoly_wOpacity/Name UserStyle FeatureTypeStyle Rule NamePolygon Layer w/Opacity of 20/Name PolygonSymbolizer Fill CssParameter name=fill#ff/CssParameter /Fill /PolygonSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor Am I wrong to expect to see a fill-opacity CssParameter for this layer? I am using Mapserver 6.0.1 and, since it might have some bearing of this question, the OUTPUTFORMAT for the map is defined as follows: OUTPUTFORMAT NAME png32 DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=OFF TRANSPARENT ON END If there is some pointers someone can offer to get this information returned properly, I'd appreciate it. Cheers, jtm -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066p4979230.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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] GetStyles SLD does not include Opacity value
That did the trick beautifully. Thank you, Steve!! In summary, the layer is now defined as: LAYER NAME Poly_wOpacity TYPE POLYGON STATUS ON PROJECTION init=epsg:3857 END INCLUDE ../../../mapserv/conf/sdeconnection.inc.map DATA ...,SHAPE,SDE.DEFAULT METADATA wms_title Polygon Layer w/Opacity of 20 wms_srs epsg:3857 END CLASS NAME Polygon Layer w/Opacity of 20 STYLE COLOR 255 0 0 OPACITY 20 END END END And, the GetStyles request returns the expected fill-opacity CssParameter: StyledLayerDescriptor version=1.0.0 ... NamedLayer NamenonContributingDrainage/Name UserStyle FeatureTypeStyle Rule NameNon-Contributing Drainage Area/Name PolygonSymbolizer Fill CssParameter name=fill#ff/CssParameter CssParameter name=fill-opacity0.20/CssParameter /Fill /PolygonSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066p4979243.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] 6.0.2 International Dateline Layer with HATCHED Symbol Causes Hanging Processes
I've also tested this with other SYMBOL TYPE(s) such as ellipse, truetype, vector etc and I'm not able to reproduce the problem -- View this message in context: http://osgeo-org.1560.n6.nabble.com/6-0-2-International-Dateline-Layer-with-HATCHED-Symbol-Causes-Hanging-Processes-tp4979026p4979270.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] WFS GetFeature issue with MS4W
On Thursday, May 24, 2012, Eric Lemoine wrote: On Wednesday, May 23, 2012, Jeff McKenna wrote: Hi Eric, From reading my own ticket comments in https://github.com/mapserver/mapserver/issues/4039 it seems I got around the issue by setting the 'wms_extent' metadata. Hi Jeff Thanks for your response. The wms_extent workaround doesn't work for us. But the problem occurs on WFS GetFeature for us, not on GetCapabilities. Our layer is a PostGIS layer by the way, which may be related to the problem based on what I read in the tickets. Please tells if it's worth creating a new GitHub issue for our problem. We have finally found a solution: use a 64-bit version from http://www.gisinternals.com/sdk/ (our Windows machine is 64-bit). Thank you. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Scripted geoprocessing
Hi Sam: MapScript does have GEOS functions built into it so you might be able to use just those. I remember doing something along these line using Perl MapScript. I don't have the script handy but I think I used a hash of shapes based on the attribute value in question. For each shape you simple add all the parts to the right hash element. Could either use the Union operator or just add the parts. Then once you have processed every feature in the shapefile(s) you do a buffer(0) on each of the hash elements with I think effectively does a dissolve. Of course you need to save the dissolved shape someplace too. In Perl this is not a very long script: a loop to build the hash of shapes and another loop to process the hash. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Sam Skinner Sent: Friday, June 01, 2012 6:34 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Scripted geoprocessing Hi all, I am writing a python script that will (weekly) download and extract data (shapefiles) from an organization without a WMS or WFS. This script will reside on my linux-based mapserver (5.6). I am looking for a way for this script to dissolve polygons with a common attribute. This will help rendering speed and ease of visualization. Any ideas on how I could do this? From what I understand (which isn't much!), I could import the data into PostGIS, then run some query there. Is there a simpler way? Is anyone familiar with Sextante, and would that work? Thanks! -- Sam Skinner (Mapserver admin and newbie) Yukon Land Use Planning Council ___ 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] Scripted geoprocessing
Hi Sam, Define simpler :-) I could do it in Postgis with a few lines of script, but you'd need to install Postgis. Postgis essentially has the code already written, you just need to deploy it. Other approaches may require less in the way of installation more in the way of writing your own code... On a Linux box, especially a mainstream distro, Postgis is trivial to install manage, so it would be hard to be simpler. If you need to compile, etc, then there are other ways that could be simpler. Cheers, Brent --- On Wed, 6/6/12, Lime, Steve D (DNR) steve.l...@state.mn.us wrote: From: Lime, Steve D (DNR) steve.l...@state.mn.us Subject: Re: [mapserver-users] Scripted geoprocessing To: Sam Skinner s...@planyukon.ca, mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Date: Wednesday, June 6, 2012, 5:01 AM Hi Sam: MapScript does have GEOS functions built into it so you might be able to use just those. I remember doing something along these line using Perl MapScript. I don't have the script handy but I think I used a hash of shapes based on the attribute value in question. For each shape you simple add all the parts to the right hash element. Could either use the Union operator or just add the parts. Then once you have processed every feature in the shapefile(s) you do a buffer(0) on each of the hash elements with I think effectively does a dissolve. Of course you need to save the dissolved shape someplace too. In Perl this is not a very long script: a loop to build the hash of shapes and another loop to process the hash. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Sam Skinner Sent: Friday, June 01, 2012 6:34 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Scripted geoprocessing Hi all, I am writing a python script that will (weekly) download and extract data (shapefiles) from an organization without a WMS or WFS. This script will reside on my linux-based mapserver (5.6). I am looking for a way for this script to dissolve polygons with a common attribute. This will help rendering speed and ease of visualization. Any ideas on how I could do this? From what I understand (which isn't much!), I could import the data into PostGIS, then run some query there. Is there a simpler way? Is anyone familiar with Sextante, and would that work? Thanks! -- Sam Skinner (Mapserver admin and newbie) Yukon Land Use Planning Council ___ 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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ecw problems
Problem solved! Opening the mapserv.exe file with an editor I found the png header, so the file was actually a huge ( 1MB) png file that somehow IIS did't send with the correct mime-type. The big dimension was due to the fact that I used a png rgb driver, switching to a jpeg or a png8 driver resulted in a correct and small image. Thank all for the suggestions. Best Regards. -- Stefano Parodi. Geospatial Developer at Datasiel S.p.A. http://it.linkedin.com/in/stefanoparodi http://twitter.com/fanenji https://twitter.com/#!/fanenji - Message: 3 Date: Tue, 5 Jun 2012 11:06:42 + From: Rahkonen Jukka jukka.rahko...@mmmtike.fi To: 'mapserver-users@lists.osgeo.org' mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] ecw problems Message-ID: 84446def76453c439e9e97e438e13a63457...@suutari.haapa.mmm.fi Content-Type: text/plain; charset=us-ascii Hi, First thing to try is to save what you believe is mapserv.exe on a disk and open it as a text file. Most probably it is some sort of error message. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Create 2 Feature Object Animation (Openlayers)
Dear All.. I want to create a circle object using the feature. I hope the object to change position every 2 seconds from the coordinates of A to B. The question is, why two objects that have been created does not change the location, but even more thickened at the same location. Here is the function that I created, please its support: var map; var c = 0; ShowPoint function () { c = c +1; setTimeout (ShowPoint (), 2000); var point1 = new OpenLayers.Geometry.Point (-72, 42); var point2 = new OpenLayers.Geometry.Point (-85, 45); feature_point1 var = new OpenLayers.Feature.Vector (point1); feature_point2 var = new OpenLayers.Feature.Vector (point2); if (c% 2! = 0) { map.layers [1]. addFeatures ([feature_point1]); map.layers [1]. removeFeatures ([feature_point2]); Else {} map.layers [1]. addFeatures ([feature_point2]); map.layers [1]. removeFeatures ([feature_point1]); } } function init () { / / Create a folder with an empty array of controls map = new OpenLayers.Map ('map_element', { controls: [ OpenLayers.Control.Navigation new (), OpenLayers.Control.PanZoomBar new (), OpenLayers.Control.LayerSwitcher new () ], maxScale: 27683990.15625, minScale: 221471921.25 }); wms_layer var = new OpenLayers.Layer.WMS ( OpenLayers WMS, 'http://vmap0.tiles.osgeo.org/wms/vmap0', {layers: 'basic'}, {}); vector_layer var = new OpenLayers.Layer.Vector ('Basic Vector Layer'); map.addControl (new OpenLayers.Control.EditingToolbar (vector_layer)); map.addLayers ([wms_layer, vector_layer]); map.render ('map_element'); if (! map.getCenter ()) { map.zoomToMaxExtent (); } ShowPoint (); }___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users