Re: [mapserver-users] Mapcache seeder question
Hello, I have found out an interesting 'issue'. If I execute mapcache with mapcache_seed -c /mapcache.xml -t dof025 -g SLOGRID -n 1 -e 533124,86639,544462,103589 -z 1,5, it works (!), but if I change the parameters order to mapcache_seed -c /etc/mapserver/mapcache.xml -t dof025 -g SLOGRID -n 1 -z 1,5 -e 533124,86639,544462,103589, it doesn't. Basically I have found out that -z has to be defined after the extent to make it work. This might be a bug, can someone confirm please? Thanks, Matej V V tor., 16. jul. 2019 ob 11:24 je oseba Matej Mailing napisala: > > Yes, it works and the cache directory size is increasing. > > V V pon., 8. jul. 2019 ob 17:29 je oseba Lime, Steve D (MNIT) > napisala: > > > > And regular tile generation (no seeding) works ok? > > > > -----Original Message- > > From: Matej Mailing [mailto:mail...@tam.si] > > Sent: Monday, July 08, 2019 12:26 AM > > To: Lime, Steve D (MNIT) ; > > mapserver-users@lists.osgeo.org > > Subject: Re: [mapserver-users] Mapcache seeder question > > > > This message may be from an external email source. > > Do not select links or open attachments unless verified. Report all > > suspicious emails to Minnesota IT Services Security Operations Center. > > > > > > > > Hello Steve, > > > > thanks for answering. I have changed the extent definition in grid > > declaration, but I still get the "0 tiles needed to be seeded, > > exiting" message back from mapcache_seed. > > > > Any ideas will be appreciated. > > > > Thanks, > > Matej > > > > V V pet., 5. jul. 2019 ob 23:00 je oseba Lime, Steve D (MNIT) > > napisala: > > > > > > I believe the in your grid should be space delimited - > > > no commas. At least that's how I have things setup, for example... > > > > > > > > > > > > Standard Minnesota UTM Grid > > > > > > 105000 4785000 809000 5489000 > > > epsg:26915 > > > 256 256 > > > 5500 2750 1375 687.5 343.75 171.875 85.9375 42.96875 > > > 21.484375 10.7421875 5.37109375 2.685546875 1.3427734375 > > > > > > > > > --Steve > > > > > > -Original Message- > > > From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On > > > Behalf Of Matej Mailing > > > Sent: Thursday, July 04, 2019 10:35 AM > > > To: mapserver-users@lists.osgeo.org > > > Subject: [mapserver-users] Mapcache seeder question > > > > > > This message may be from an external email source. > > > Do not select links or open attachments unless verified. Report all > > > suspicious emails to Minnesota IT Services Security Operations Center. > > > > > > > > > > > > Hello, > > > I am having issues with running Mapcache Seeder with extent options. > > > My grid is defined like: > > > > > > 256 256 > > > 373233,31868 625985,194134 > > > EPSG:3912 > > > m > > > 18 9 45000 22500 11250 5000 2500 1250 600 300 > > > 200 100 50 25 12 6 3 1 0.5 0.25 0.12 0.06 > > > > > > > > > and when I try to run seeder with: > > > mapcache_seed -c mapcache.xml -t dof025 -g SLOGRID -z 3,10 -n 6 -e > > > 533124,86639,544462,103589 > > > > > > I get an output 0 tiles needed to be seeded, exiting, which is > > > certainly not true since plenty of those do not exist in the cache > > > directory. > > > > > > What am I missing? > > > > > > Thanks, > > > Matej > > > ___ > > > mapserver-users mailing list > > > mapserver-users@lists.osgeo.org > > > https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7C202cd663129445fe4f3908d70364db3a%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636981604044024635sdata=H7Hfyb9kyJueMQ%2Bh9puMB4C1WyTzrI3I8RzeFqvLXVI%3Dreserved=0 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache seeder question
Yes, it works and the cache directory size is increasing. V V pon., 8. jul. 2019 ob 17:29 je oseba Lime, Steve D (MNIT) napisala: > > And regular tile generation (no seeding) works ok? > > -Original Message----- > From: Matej Mailing [mailto:mail...@tam.si] > Sent: Monday, July 08, 2019 12:26 AM > To: Lime, Steve D (MNIT) ; > mapserver-users@lists.osgeo.org > Subject: Re: [mapserver-users] Mapcache seeder question > > This message may be from an external email source. > Do not select links or open attachments unless verified. Report all > suspicious emails to Minnesota IT Services Security Operations Center. > > > > Hello Steve, > > thanks for answering. I have changed the extent definition in grid > declaration, but I still get the "0 tiles needed to be seeded, > exiting" message back from mapcache_seed. > > Any ideas will be appreciated. > > Thanks, > Matej > > V V pet., 5. jul. 2019 ob 23:00 je oseba Lime, Steve D (MNIT) > napisala: > > > > I believe the in your grid should be space delimited - no > > commas. At least that's how I have things setup, for example... > > > > > > > > Standard Minnesota UTM Grid > > > > 105000 4785000 809000 5489000 > > epsg:26915 > > 256 256 > > 5500 2750 1375 687.5 343.75 171.875 85.9375 42.96875 > > 21.484375 10.7421875 5.37109375 2.685546875 1.3427734375 > > > > > > --Steve > > > > -Original Message- > > From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On > > Behalf Of Matej Mailing > > Sent: Thursday, July 04, 2019 10:35 AM > > To: mapserver-users@lists.osgeo.org > > Subject: [mapserver-users] Mapcache seeder question > > > > This message may be from an external email source. > > Do not select links or open attachments unless verified. Report all > > suspicious emails to Minnesota IT Services Security Operations Center. > > > > > > > > Hello, > > I am having issues with running Mapcache Seeder with extent options. > > My grid is defined like: > > > > 256 256 > > 373233,31868 625985,194134 > > EPSG:3912 > > m > > 18 9 45000 22500 11250 5000 2500 1250 600 300 > > 200 100 50 25 12 6 3 1 0.5 0.25 0.12 0.06 > > > > > > and when I try to run seeder with: > > mapcache_seed -c mapcache.xml -t dof025 -g SLOGRID -z 3,10 -n 6 -e > > 533124,86639,544462,103589 > > > > I get an output 0 tiles needed to be seeded, exiting, which is > > certainly not true since plenty of those do not exist in the cache > > directory. > > > > What am I missing? > > > > Thanks, > > Matej > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7C202cd663129445fe4f3908d70364db3a%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636981604044024635sdata=H7Hfyb9kyJueMQ%2Bh9puMB4C1WyTzrI3I8RzeFqvLXVI%3Dreserved=0 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache seeder question
Hello Steve, thanks for answering. I have changed the extent definition in grid declaration, but I still get the "0 tiles needed to be seeded, exiting" message back from mapcache_seed. Any ideas will be appreciated. Thanks, Matej V V pet., 5. jul. 2019 ob 23:00 je oseba Lime, Steve D (MNIT) napisala: > > I believe the in your grid should be space delimited - no > commas. At least that's how I have things setup, for example... > > > > Standard Minnesota UTM Grid > > 105000 4785000 809000 5489000 > epsg:26915 > 256 256 > 5500 2750 1375 687.5 343.75 171.875 85.9375 42.96875 > 21.484375 10.7421875 5.37109375 2.685546875 1.3427734375 > > > --Steve > > -Original Message- > From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On > Behalf Of Matej Mailing > Sent: Thursday, July 04, 2019 10:35 AM > To: mapserver-users@lists.osgeo.org > Subject: [mapserver-users] Mapcache seeder question > > This message may be from an external email source. > Do not select links or open attachments unless verified. Report all > suspicious emails to Minnesota IT Services Security Operations Center. > > > > Hello, > I am having issues with running Mapcache Seeder with extent options. > My grid is defined like: > > 256 256 > 373233,31868 625985,194134 > EPSG:3912 > m > 18 9 45000 22500 11250 5000 2500 1250 600 300 > 200 100 50 25 12 6 3 1 0.5 0.25 0.12 0.06 > > > and when I try to run seeder with: > mapcache_seed -c mapcache.xml -t dof025 -g SLOGRID -z 3,10 -n 6 -e > 533124,86639,544462,103589 > > I get an output 0 tiles needed to be seeded, exiting, which is > certainly not true since plenty of those do not exist in the cache > directory. > > What am I missing? > > Thanks, > Matej > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > https://gcc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-usersdata=02%7C01%7Csteve.lime%40state.mn.us%7Ca8f92e6de3474b3eb52608d7009534a0%7Ceb14b04624c445198f26b89c2159828c%7C0%7C1%7C636978513162884312sdata=FdCj%2F%2F704BA8lCcJ7cO0t7erzHPXs56%2BpgCXLIugok8%3Dreserved=0 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapcache seeder question
Hello, I am having issues with running Mapcache Seeder with extent options. My grid is defined like: 256 256 373233,31868 625985,194134 EPSG:3912 m 18 9 45000 22500 11250 5000 2500 1250 600 300 200 100 50 25 12 6 3 1 0.5 0.25 0.12 0.06 and when I try to run seeder with: mapcache_seed -c mapcache.xml -t dof025 -g SLOGRID -z 3,10 -n 6 -e 533124,86639,544462,103589 I get an output 0 tiles needed to be seeded, exiting, which is certainly not true since plenty of those do not exist in the cache directory. What am I missing? Thanks, Matej ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] CSV from Mapscript results
Hi, what would be the best way to create a CSV from Mapscript query results? Thanks, Matej ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] CSV from Mapscript results
Thanks, Steve. It looks I will choose the 2nd option as well. What I don't like with this "direct" approach though is not using already existing Mapfile with DATA, CONNECTION and everything set - basically it creates another point where this data needs to be set and changed for example when changing access rights, moving data to new server etc., it increases complexity. As far as I have checked, there is no for example getData() method to get the DATA variable, set in the Mapfile. (Perhaps the reason is that since there is no set, there is no get method as well :-)) However, in this case this would be useful or perhaps I am just thinking in the wrong direction? :-) Thanks, Matej 2015-09-08 18:07 GMT+02:00 Lime, Steve D (MNIT) <steve.l...@state.mn.us>: > You have two options: > > 1 - use query templates to render the result as CSV > 2 - use whatever tool your programming language gives you and just loop > through the results and dump to CSV > > Personally since you're using MapScript I'd opt for 2 for a couple of > reasons: you have total control that way and for larger result sets it's > likely to be more performant since the whole CSV file wouldn't need to be > constructed in memory like templates would. > > Steve > > -Original Message- > From: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Matej Mailing > Sent: Tuesday, September 08, 2015 5:30 AM > To: mapserver-users@lists.osgeo.org > Subject: [mapserver-users] CSV from Mapscript results > > Hi, > > what would be the best way to create a CSV from Mapscript query results? > > Thanks, > Matej > ___ > 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] Web management of .map files
Hi, is there any web-based tool for creating and updating .map files? For example, sometimes you need to change some label texts, add some layers and doing it via some web interface would be a major step forward for non-technical users. Thenks, Matej ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Remote PostGIS server connection problem
Hi, I am running 6.0.1 on a FreeBSD host. Everything works perfect when I connect to the local PostGIS server (located on the same machine as the Mapserver is running on). When I try to connect to the PostGIS server that is not in the same network, I get the following error: msDrawMap(): Image handling error. Failed to draw layer named 'LAYER_NAME'. msPostGISLayerOpen(): Query error. Database connection failed (could not connect to server: Permission denied Is the server running on host IP and accepting TCP/IP connections on port 5432? Is it allowing connections? Does the specified user exist? Is the password valid? Is the database on the standard port? 1. I can connect to the server IP on port 5432 via paql from console from the machine where Mapserver is running. 2. When doing tcpdump dst 5432 on the PostGIS server that is outside, I see no traffic comming in so basically when the error is displayed it is not due to remote server settings. I was browsing on the web and found out that people that were using SELinux had to enable the option httpd_can_network_connect. It seems like the Apache is not allowed to initiate a remote connection to a non-local IP address. Is it the Apache limitation? Is it the OS limitation or is it the Mapserver limitation (I am pretty sure that it isn't, but I don't know where to look anymore ...) After pulling my hair for several hours any help or idea would be very welcome :-) TIA, Matej ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Remote PostGIS server connection problem
Hi, when I use shp2img -m mapfile.map -all_debug 5 from the server with the same map file that causes mentioned error in Mapserver, I can see in the log that the server connects successfully so it works as it should with shp2img - thanks for this tip, I will use it in the future to debug connection string issues with map files. However, it still doesn't work from Apache and Mapserver. With Mapserver the connection doesn't even come to the remote Postgres since I see nothing in tcpdump, but everything is OK in pg_hba.conf because I can connect from the server where Mapserver is running to the remote server with pgsql from console. Best regards, Matej 2012/8/23 Jeff McKenna jmcke...@gatewaygeomatics.com: On 12-08-23 10:02 AM, Matej Mailing wrote: Hi, I am running 6.0.1 on a FreeBSD host. Everything works perfect when I connect to the local PostGIS server (located on the same machine as the Mapserver is running on). When I try to connect to the PostGIS server that is not in the same network, I get the following error: msDrawMap(): Image handling error. Failed to draw layer named 'LAYER_NAME'. msPostGISLayerOpen(): Query error. Database connection failed (could not connect to server: Permission denied Is the server running on host IP and accepting TCP/IP connections on port 5432? Is it allowing connections? Does the specified user exist? Is the password valid? Is the database on the standard port? 1. I can connect to the server IP on port 5432 via paql from console from the machine where Mapserver is running. 2. When doing tcpdump dst 5432 on the PostGIS server that is outside, I see no traffic comming in so basically when the error is displayed it is not due to remote server settings. I was browsing on the web and found out that people that were using SELinux had to enable the option httpd_can_network_connect. It seems like the Apache is not allowed to initiate a remote connection to a non-local IP address. Is it the Apache limitation? Is it the OS limitation or is it the Mapserver limitation (I am pretty sure that it isn't, but I don't know where to look anymore ...) After pulling my hair for several hours any help or idea would be very welcome :-) You can test without Apache by using the MapServer commandline utility shp2img (http://mapserver.org/utilities/shp2img.html). Use the -all_debug 5 switch to see more info. (that's my favorite debugging tool) Next I would check the settings in the remote Postgres data folder's pg_hba.conf file. -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] Remote PostGIS server connection problem
Hi, as with the shp2img, I get a successful result also with mapserv QUERY_STRING='..' so the connection can be established (and it also works from one server to another via pgsql from console as mentioned in the previous mail). What could prevent Apache to allow the connection? I am little bit lost here also because of the fact that people on SELinux had an option to enable, but what can we do on FreeBSD? Still I don't know if it's OS or Apache's fault ... Thanks. Matej 2012/8/23 Stephen Woodbridge wood...@swoodbridge.com: Hi Matej, Are specifying a user name in your connection? If not then psql uses you user as the use name, but the apache uses whatever name is associated with the apache user. Do you get an error if you run shp2img or if you run: /path/to/mapserv QUERY_STRING='your mapserver request arguments' -Steve On 8/23/2012 9:02 AM, Matej Mailing wrote: Hi, I am running 6.0.1 on a FreeBSD host. Everything works perfect when I connect to the local PostGIS server (located on the same machine as the Mapserver is running on). When I try to connect to the PostGIS server that is not in the same network, I get the following error: msDrawMap(): Image handling error. Failed to draw layer named 'LAYER_NAME'. msPostGISLayerOpen(): Query error. Database connection failed (could not connect to server: Permission denied Is the server running on host IP and accepting TCP/IP connections on port 5432? Is it allowing connections? Does the specified user exist? Is the password valid? Is the database on the standard port? 1. I can connect to the server IP on port 5432 via paql from console from the machine where Mapserver is running. 2. When doing tcpdump dst 5432 on the PostGIS server that is outside, I see no traffic comming in so basically when the error is displayed it is not due to remote server settings. I was browsing on the web and found out that people that were using SELinux had to enable the option httpd_can_network_connect. It seems like the Apache is not allowed to initiate a remote connection to a non-local IP address. Is it the Apache limitation? Is it the OS limitation or is it the Mapserver limitation (I am pretty sure that it isn't, but I don't know where to look anymore ...) After pulling my hair for several hours any help or idea would be very welcome :-) TIA, Matej ___ 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
[mapserver-users] Open3DGIS
Hi all, I am investigating different options on using 3D with MapServer.. There was once an application called Open3DGIS (http://open3dgis.sourceforge.net/), which doesn't seem to live anymore. Are there any other tools / addons that are alive in this field? Thanks! Matej ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] getExtent(c#) with Postgis data ...
Tamas, thank you. I have tried using Npgsql and mapscript_csharp and I can successfully connect to the database, but now I suppose I need .map files saved locally to get things working? Actually I am in the middle of choosing whether it is better to use SharpMap or Mapserver's C# libraries for building a desktop app? What are your (and everybody's else's) recommendations and suggestions about it? Thank you very much, Matej - Original Message - From: Tamas Szekeres To: Matej Cc: mapserver-users@lists.osgeo.org Sent: Tuesday, April 07, 2009 10:17 PM Subject: Re: [mapserver-users] getExtent(c#) with Postgis data ... Matej Yes it's definitely the case. You application should set a reference to the managed mapscript_csharp.dll assembly and it will implicitly load furher unmanaged dlls to provide the desired functionality. Best regards, Tamas 2009/4/7 Matej ma...@matnet.net Hi, this might not be directly connected but I am planning to build a client desktop app which should be able to connect to the PostGIS db that is running on the remote server and display objects from it / add new etc. Is this possible in C# with fwtools without the need to have the Mapserver running on every client computer? Thanks and sorry for interrupting, Matej - Original Message - From: Tamas Szekeres To: Paul james Cc: mapserver-users@lists.osgeo.org Sent: Tuesday, April 07, 2009 8:29 PM Subject: Re: [mapserver-users] getExtent(c#) with Postgis data ... Paul, You can refer to the ogrinfo C# sample application in the gdal source tree: http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs Best regards, Tamas 2009/4/7 Paul james paulj...@gmail.com Thanks Tamas... But now I´m a little lost... Am I supposed to create a OGR layer? Do you have any sample how to get extent´s layer using OGR? P On Mon, Apr 6, 2009 at 6:30 PM, Tamas Szekeres szeker...@gmail.com wrote: Choose a package with the best match for your compiler and architecture from here: http://vbkto.dyndns.org:1280/sdk/index.html Best regards, Tamas 2009/4/6 Paul james paulj...@gmail.com Where can I find ogr_csharp.dll ? Thanks Tamas! Paul On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres szeker...@gmail.com wrote: Paul, Unfortunately this function is not implemented by the MapServer postgis driver, you might want to use the OGR C# API (ie. ogr_csharp.dll) for this purpose. Best regards, Tamas 2009/4/6 Paul james paulj...@gmail.com All value from getExtent (Postgis layer) is : 3.4028234663852886E+38 Is it a bug? On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres szeker...@gmail.com wrote: Why don't? That function have already been exposed for layerObj with the following signature: public rectObj getExtent(void) Best regards, Tamas 2009/4/6 Paul james paulj...@gmail.com Hello, It seems that getExtent (c#) is not implemented... Any other solution to get extent of a layer using mapscript? Paul ___ 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] getExtent(c#) with Postgis data ...
Hi, this might not be directly connected but I am planning to build a client desktop app which should be able to connect to the PostGIS db that is running on the remote server and display objects from it / add new etc. Is this possible in C# with fwtools without the need to have the Mapserver running on every client computer? Thanks and sorry for interrupting, Matej - Original Message - From: Tamas Szekeres To: Paul james Cc: mapserver-users@lists.osgeo.org Sent: Tuesday, April 07, 2009 8:29 PM Subject: Re: [mapserver-users] getExtent(c#) with Postgis data ... Paul, You can refer to the ogrinfo C# sample application in the gdal source tree: http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs Best regards, Tamas 2009/4/7 Paul james paulj...@gmail.com Thanks Tamas... But now I´m a little lost... Am I supposed to create a OGR layer? Do you have any sample how to get extent´s layer using OGR? P On Mon, Apr 6, 2009 at 6:30 PM, Tamas Szekeres szeker...@gmail.com wrote: Choose a package with the best match for your compiler and architecture from here: http://vbkto.dyndns.org:1280/sdk/index.html Best regards, Tamas 2009/4/6 Paul james paulj...@gmail.com Where can I find ogr_csharp.dll ? Thanks Tamas! Paul On Mon, Apr 6, 2009 at 6:22 PM, Tamas Szekeres szeker...@gmail.com wrote: Paul, Unfortunately this function is not implemented by the MapServer postgis driver, you might want to use the OGR C# API (ie. ogr_csharp.dll) for this purpose. Best regards, Tamas 2009/4/6 Paul james paulj...@gmail.com All value from getExtent (Postgis layer) is : 3.4028234663852886E+38 Is it a bug? On Mon, Apr 6, 2009 at 5:56 PM, Tamas Szekeres szeker...@gmail.com wrote: Why don't? That function have already been exposed for layerObj with the following signature: public rectObj getExtent(void) Best regards, Tamas 2009/4/6 Paul james paulj...@gmail.com Hello, It seems that getExtent (c#) is not implemented... Any other solution to get extent of a layer using mapscript? Paul ___ 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
[mapserver-users] Inserting a line into PostGIS database - MapScript/PHP
Hi, I am looking for a way to insert a line into the PostGIS database with the Mapscript/PHP. I already have a table with Linestrings, called 'lines' and I can get the data like 575580.3064233576 167345.10784150157,575768.9779562043 166386.0275495308,576523.6640875911 166197.35601668406,576523.6640875911 166197.35601668406,576523.6640875911 166197.35601668406. I just need a starting point to work, also any documentation about PostGIS / PHP with PostGIS will be much appreciated. Thank you in advance, Matej ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver PROJECTION - MapInfo Non-Earth (meters) projection
Hi, I have a bunch of MapInfo layers which are saved in a Non-Earth (meters) projection. When doing ogrinfo on one of such files, I get: Geometry: Line String Feature Count: 177 Extent: (577197.926321, 163752.612753) - (583056.262978, 168205.527060) Layer SRS WKT: LOCAL_CS[Nonearth, UNIT[Meter,1.0]] What would be the best procedure to get Mapserver's WMS server working on it? I have no idea which projection to choose in mapfile, is my only option left to change projections in MapInfo and use changed layers? Thank you for ideas. Cheers, Matej Serc ma...@matnet.net___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Points with hyperlinks
Bob, thank you for your reply. My current choice would be the Imagemap one. Could you attach some short XML and other appropriate snippets to achieve it? Actually I have a working .map file which creates my that content between map and /map, but I am looking for examples on how to include it into GeoMoose, which anyways works perfectly. Thank you for your help in advance, Matej Serc [EMAIL PROTECTED] - Original Message - From: Bob Basques [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: mapserver-users@lists.osgeo.org; [EMAIL PROTECTED] Sent: Friday, September 26, 2008 2:18 PM Subject: Re: [mapserver-users] Points with hyperlinks Matej, I'm copying this reply to the GeoMoose Mail list. Are you interested in working the process as a pick option or query service, where you pick a point on the map and the server responds with a new window containing the link, or do you want to use a Imagemap, where all the links available for a particular view are downloaded at once and you can open up a new window by picking from active areas in the map? GeoMoose can go both ways. I use the ImageMap process quite extensively, since I can send some basic metadata like info down to the client in short form, and let the user decide it they want to see more. I can also include more than on link this way and let the user decide which they want to open up. The Query Service is good though if you know you are always going to want to look at the result in a new page no matter what. bobb Matej [EMAIL PROTECTED] 09/26/08 4:52 AM Hello, thanks everyone for help and suggestions so far ... I am using GeoMoose as a client and I have some problems implementing it. Does someone have a working XML Mapbook code snippet for including mapfiles into the GeoMoose? It works directly when I call mapserv from URL anyway ... Thanks everyone, Matej Serc [EMAIL PROTECTED] ___ 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] Points with hyperlinks
Hello, thanks everyone for help and suggestions so far ... I am using GeoMoose as a client and I have some problems implementing it. Does someone have a working XML Mapbook code snippet for including mapfiles into the GeoMoose? It works directly when I call mapserv from URL anyway ... Thanks everyone, Matej Serc [EMAIL PROTECTED] ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapInfo Auto Labeling and MapServer
Hi, after deploying MapServer on one of our servers I thinks that MapServer is a great tool but I am having some problems with TABs, imported from MapInfo. I am able to load all the layers from the test workspace except one, which consists of a houses (circle symbol) and house addresses (auto-labeling from the data field Address). I have therefore some questions and will be very glad if there are some answers available :) - In MI for that layer I have auto labeling set which works OK. When I look at the map on different zooms, the text is larger or smaller, but every label exists and if I zoom in enough, every house has it's number visible. Is there a chance to somehow directly load this auto labeling into MapServer? If it is, how can I do this? I haven't found a good answer to the first question, so the next one is: - I have problems getting all the house addresses from MI since it creates the labels only with the sizes according to current zoom level AND only the part of the map visible at that moment. So when I want to have all the houses numbered with readable addresses (not covering each other), I have to zoom in enough and then move with cursor along the entire map for MI to create satisfactory labels. Using this method (well, it's a very very stupid one!) it works for smaller maps, but for larger it's a no-no. Also the labeling tools that are in MI affect current view only. Is there a tool which would do it more user-friendly? Since this is a pretty common problem as I see it, I am sure that some of you already had this problem and (hopefully!) found a solution. Thanks everyone for help and ideas in advance, Matej Serc ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users