[mapserver-users] to get a layer that resides INCLUDE *.map
After INCLUDE jeo.map how can we get layer in jeo.map. I tried to get a layer that resides in jeo.map. But I couldn't jeolayer = new layerObj(map0); jeolayer = map0.getLayerByName(tr_jeo); regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Planlama ve Zarar Azaltma Dairesi Başkanlığı Bilgi ve CBS grubu Eskişehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] diffferent map image size for different layer
hello I was wondering if I could use different map image size for different layer. Such as : layer1 size 600*400 layer2 size 1200*800 Is it possible ? regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Planlama ve Zarar Azaltma Dairesi Başkanlığı Bilgi ve CBS grubu Eskişehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] wms time problem
Dear all, I'm using MapServer to serve a building shapefile, in which ? have stored in the attribute table a 'date of construction' and a 'date of demolition'. At the client side we have OpenLayers and some Javascript to let the user chose a certain year and see only those buildings that have a 'date of construction' = t and 'date of demolition' t. This cannot be done using only wms with time support because I cannot compare the chosen year with both the 'date of construction' and the 'date of demolition' at the same time. As I can see, it can be easily done with a CQL filter in GeoServer and I'm wondering if it possible to solve this problem also in MapServer... Is it possible to overcome the problem only using wfs filtering? Thank you very much! Luana ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] wms time problem
have a look at http://mapserver.org/cgi/runsub.html regards, thomas On Thu, Jul 21, 2011 at 15:19, Luana Valentini luanavalent...@hotmail.it wrote: Dear all, I'm using MapServer to serve a building shapefile, in which ? have stored in the attribute table a 'date of construction' and a 'date of demolition'. At the client side we have OpenLayers and some Javascript to let the user chose a certain year and see only those buildings that have a 'date of construction' = t and 'date of demolition' t. This cannot be done using only wms with time support because I cannot compare the chosen year with both the 'date of construction' and the 'date of demolition' at the same time. As I can see, it can be easily done with a CQL filter in GeoServer and I'm wondering if it possible to solve this problem also in MapServer... Is it possible to overcome the problem only using wfs filtering? Thank you very much! Luana ___ 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] Re: Can't WFS getFeature w/MapServer 6.0.1
This is a correction and additional information to previous post. In my first post, I said However, the SDE log suggests the query took place and returned successfully. Upon closer inspection, this is not actually the case. Watching the SDE logs while trying to perform my query with 5.6.3, I see the following: Thu Jul 21 09:01:52 2011 - SDE Server Pid 11962 Registered, User: Username Schema: sde. Thu Jul 21 09:01:52 2011 - SDE Server 11962 exit'd with status 0 Thu Jul 21 09:01:52 2011 - SDE Server Pid 11962 Stopped, User: Username Schema: sde. Thu Jul 21 09:01:54 2011 - SDE Server Pid 11963 Registered, User: Username Schema: sde. Thu Jul 21 09:01:58 2011 - SDE Server 11963 exit'd with status 0 Thu Jul 21 09:01:59 2011 - SDE Server Pid 11963 Stopped, User: Username Schema: sde. When I perform the same query with 6.0.1, only one connection is made: Thu Jul 21 09:00:37 2011 - SDE Server Pid 11224 Registered, User: Username Schema: sde. Thu Jul 21 09:00:37 2011 - SDE Server 11224 exit'd with status 0 Thu Jul 21 09:00:37 2011 - SDE Server Pid 11224 Stopped, User: Username Schema: sde. So, while that one connection appears to perform successfully, there is no second connection at all (which according to what happens with 5.6.3, there should be). Somewhere between the handshaking (or whatever the heck it is) and the actual query being performed, something is going off the rails. Perhaps the connection value in layer-layerinfo being invalid in some way is stopping the second connection? It's also unable to free it. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6606885.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] diffferent map image size for different layer
I assume that you could handle it on the client side by adjusting your calls to mapserver based on which layers you have selected. e.g. layer=riversimgsize=200+200 or layer=lakesimgsize=1000+1000 David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of ahmet temiz Sent: Thursday, July 21, 2011 7:05 AM To: mapserver-users Subject: [mapserver-users] diffferent map image size for different layer hello I was wondering if I could use different map image size for different layer. Such as : layer1 size 600*400 layer2 size 1200*800 Is it possible ? regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Planlama ve Zarar Azaltma Dairesi Başkanlığı Bilgi ve CBS grubu Eskişehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency ___ 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] MapServer GPS Tracking
Can anyone point me to documentation / code on GPS Tracking with MapServer. Thanks EW ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] how to create a base map and serve it with WMS
Hi, I'm working on a defense project. I have a collection of world map rasters (in CADRG) of various resolution. I need to WMS-service these CADRG files (as a base map, like that of Google map). I'm wondering how to make these happen? What kind of technologies? Which one is the most straightforward? Ideas are appreciated. (I'm 3-months new into map; implemeneted a client side with OpenLayers Installed a WMS... that's all I have so far). Thank you. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-create-a-base-map-and-serve-it-with-WMS-tp6607099p6607099.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] MapServer GPS Tracking
http://www.osgeo.org/pipermail/mapserver-users/2011-June/069135.html Best Regards, Brent Fraser On 7/21/2011 8:21 AM, Eric Weisbender wrote: Can anyone point me to documentation / code on GPS Tracking with MapServer. Thanks EW ___ 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 create a base map and serve it with WMS
How you approach this depends on a number of variables. Because rasters tend to stress both your server resources and network bandwidth to client, how far you go in optimizing your system is a function of the expected amount of data access ( # of users X frequency of access ), the expectations of users ( what is fast enough ) and of course how much data do you have to serve. Generally, base raster layers are static and if you are using openlayers and want it to work like Gmaps then you probably want to think of serving and caching tiles. MapServer can do all of that, but there are other projects like MapProxy that may simplify a multi-server load-balanced type setup. On Thu, Jul 21, 2011 at 9:55 AM, jk jk.c...@sdl.usu.edu wrote: Hi, I'm working on a defense project. I have a collection of world map rasters (in CADRG) of various resolution. I need to WMS-service these CADRG files (as a base map, like that of Google map). I'm wondering how to make these happen? What kind of technologies? Which one is the most straightforward? Ideas are appreciated. (I'm 3-months new into map; implemeneted a client side with OpenLayers Installed a WMS... that's all I have so far). Thank you. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-create-a-base-map-and-serve-it-with-WMS-tp6607099p6607099.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
[mapserver-users] Re: how to create a base map and serve it with WMS
Hi Mark, Thanks for your reply. As I'm only four-days new to Map Server, I am not even familar with how to create the base map in Map Server. I do have some concept of tile cashe, but that' s in very remote future. Can you shed more lights on how to create base map in Map Server? How to do it? Static, what do you meant by that? I'm also confused, by how the Map server will react when users zoom into differnt levels? Does the map server always step in and react when a new level is zoomed and requested, will the map server step in and make maps one the fly? Does that level (as well as other levels) have to be specified in base map, Goosh, I'm so new to the map world. pardon me for silly questions... So, how to create a base map? Thanks. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-create-a-base-map-and-serve-it-with-WMS-tp6607099p6607235.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] Re: how to create a base map and serve it with WMS
Yes, MapServer is all about making appropriately scaled maps on the fly, and lot more. To get started you need to go through a tutorial on MapServer, how to create map files, get base image layer working etc. I am not up to date on what good newbie tutorials are out there. Maybe somebody could chime in. Static just refers to the fact that some layers in map change less frequently than do others. For example GPS location of a car will need change constantly while the road the car is on changes only occasionally. On Thu, Jul 21, 2011 at 10:23 AM, jk jk.c...@sdl.usu.edu wrote: Hi Mark, Thanks for your reply. As I'm only four-days new to Map Server, I am not even familar with how to create the base map in Map Server. I do have some concept of tile cashe, but that' s in very remote future. Can you shed more lights on how to create base map in Map Server? How to do it? Static, what do you meant by that? I'm also confused, by how the Map server will react when users zoom into differnt levels? Does the map server always step in and react when a new level is zoomed and requested, will the map server step in and make maps one the fly? Does that level (as well as other levels) have to be specified in base map, Goosh, I'm so new to the map world. pardon me for silly questions... So, how to create a base map? Thanks. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-create-a-base-map-and-serve-it-with-WMS-tp6607099p6607235.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
[mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1
I've done some additional debugging and have learned that the mapwfs.c's msWFSGetFeature has changed significantly between 5.6.3 and 6.0.1. In particular, the problem seems to be starting at line 2457 in the 6.0.1 code (1248 in 5.6.3). At that point, a call to msOWSGetLayerExtent is made and part of that process creates and frees a connection to SDE. That is the first connection that is identified in the above posts (and in Michelle Douvil's post discussing her GDB findings). The second SDE connection is not made in 6.0.1 because, at line 2500 (still in mapwfs.c's), there is a call to msQueryByRect(map) which did not happen in 5.6.3. In that function (msQueryByRect), at line 1024, there is a msLayerClose(lp) call that ultimately takes us to the msSDELayerFreeItemInfo where the layer-layerinfo (and therefore the sde variable at line 2116) is already null because of the previous close (in the msOWSGetLayerExtent process) and so the if (sde-basedefs) condition gives a segmentation fault because it's trying to access a property in an object that doesn't exist. I really don't know anything about any of this code but know that what I describe is definitely what is happening as far as I can observe. I am hoping that someone who knows more about the code can identify whether there is a problem with the source code related to all this. And, if so, should I be putting something in the DEV forum about this? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6607659.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] Re: Can't WFS getFeature w/MapServer 6.0.1
First, thanks for taking the time to dig into this, we appreciate the help. Indeed there were large changes between 5.6 and 6.0 due to some overall changes in the parser and query handling. I wouldn't have thought they would introduce any issues specific to a particular driver though. It may be that the SDE code needs to simply be made more robust. If I supply a patch that does that can you test? Steve On Thu, Jul 21, 2011 at 12:00 PM, myOpenLayersUName joanne.mcg...@sympatico.ca wrote: I've done some additional debugging and have learned that the mapwfs.c's msWFSGetFeature has changed significantly between 5.6.3 and 6.0.1. In particular, the problem seems to be starting at line 2457 in the 6.0.1 code (1248 in 5.6.3). At that point, a call to msOWSGetLayerExtent is made and part of that process creates and frees a connection to SDE. That is the first connection that is identified in the above posts (and in Michelle Douvil's post discussing her GDB findings). The second SDE connection is not made in 6.0.1 because, at line 2500 (still in mapwfs.c's), there is a call to msQueryByRect(map) which did not happen in 5.6.3. In that function (msQueryByRect), at line 1024, there is a msLayerClose(lp) call that ultimately takes us to the msSDELayerFreeItemInfo where the layer-layerinfo (and therefore the sde variable at line 2116) is already null because of the previous close (in the msOWSGetLayerExtent process) and so the if (sde-basedefs) condition gives a segmentation fault because it's trying to access a property in an object that doesn't exist. I really don't know anything about any of this code but know that what I describe is definitely what is happening as far as I can observe. I am hoping that someone who knows more about the code can identify whether there is a problem with the source code related to all this. And, if so, should I be putting something in the DEV forum about this? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6607659.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
[mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1
Absolutely, we'd be happy to test a patch. I have some additional info (which you probably already know at this point but I'll pass it along just in case). I started looking into the WMS GetFeatureInfo request failure that Michelle was reporting in her post and found that ultimately it was the exact same problem. In that case, mapquery.c's msQueryByPoint makes an msLayerClose call on a layer that is not open (line 1535). Again, it ultimately gets down to the msSDELayerFreeItemInfo function where the layer-layerinfo is null, so sde-basedefs causes a segmentation fault. So, somewhere, there just needs to be a check that stops the attempt to free memory if the memory is not allocated at that time. Anyway, I'll send you an email directly to give you my coordinates and we'll arrange to try the patch. Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6608020.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] Re: Can't WFS getFeature w/MapServer 6.0.1
I would be interested in testing this patch as well! Thanks, Michelle -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6608040.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] Re: Upgrade MapServer from 5.4 to 6.0
Just in case someone is looking around for some answers and comes across this thread ... I'll reference another post where the originally posted problem (that is, the segmentation faults that occurs when doing a WMS getFeatureInfo request to SDE data, not the subsequent posts about the PNG background) is discussed in more detail. http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-td6600286.html#a6608020 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Upgrade-MapServer-from-5-4-to-6-0-tp6563752p6608083.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] FastCGI implementation on MapServer 6.0
Hi all, I am trying to install/configure FastCGI on MapServer 6.0 in Ubuntu 10.04 machines. I installed both fcgi-2.4.0 and mod_fastcgi-2.4.6 as mentioned in http://mapserver.org/optimization/fastcgi.html#obtaining-the-necessary-software. I configured MapServer --with-fastcgi=/usr option and could see FastCGI support: -DUSE_FASTCGI in Support Libraries. I did make and check ./mapserv -v but could not find SUPPORTS=FASTCGI there. I am wondering if I did anything wrong as I just followed the link and I did not get any errors while compiling any of those softwares/packages. Thanks! Mukesh___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users