From umberto.nicoletti at GMAIL.COM Fri Sep 1 03:39:29 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 1 Sep 2006 12:39:29 +0200 Subject: Java Mapscript with Japanese Encoding In-Reply-To: <8efeb4a80608312051x1af79913j5916a03efdfa7560@mail.gmail.com> Message-ID: Mario, the attached patch will make ms print on stdio the search string that has reached the C-layer of mapserver. Output is verbose. It should help you debug where the problem lies. Regards, Umberto On 9/1/06, Mario Basa wrote: > Umberto, > > Thanks for the offer. I was really thinking of sending data for > testing the other day, but it occured to me that your environment > might not be capable of handling double-byte kanji characters. > > I guess we'll test QueryByAttributeUnicode from here. > > Mario. > > > On 9/1/06, Umberto Nicoletti wrote: > > Mario, > > if you send me a sample shapefile, map and search string to test > > against QueryByAttributeUnicode I'm willing to look into this. > > Also, file an issue to bugzilla. > > > > Umberto > > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: basa-kanjii-dbg.patch Type: text/x-patch Size: 616 bytes Desc: not available URL: From David.Fawcett at STATE.MN.US Fri Sep 1 05:55:45 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 1 Sep 2006 07:55:45 -0500 Subject: Using JOIN for querying In-Reply-To: A<017201c6cd82$398025e0$155a820a@WSG204Giga> Message-ID: Greg, I haven't been following this thread too closely, but are you sure that you want to use the unmaintained MyGIS option, or do you really want to use OGR with MySQL support enabled? I would go with OGR unless there is something in MyGIS that doesn't exist in OGR. Here is Frank's page for OGR/MySQL: http://ogr.maptools.org/drv_mysql.html Here is a description from Howard's blog: http://hobu.biz/index_html/mysql_ogr Also, look at the HowTos, there are a few items on MySQL. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Greg Luker Sent: Thursday, August 31, 2006 11:51 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Using JOIN for querying Hi, Thanks very much Maricris, Juan Carlos and Manfred for all your suggestions! I will try them as soon as I can (unfortunately my MapServer needs to be recompiled with the --with-mygis option, which could take some time). And I will report results back to the list. Thanks, Greg Luker. From mapserver at GEOWORLD.DE Fri Sep 1 06:15:58 2006 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Fri, 1 Sep 2006 15:15:58 +0200 Subject: PHP Mapscript and WMS Server In-Reply-To: <44F700B8.1090901@pobox.com> Message-ID: Hi Frank, thank you very much for the given example. I tried your script and in general it works. There a two things which are strange. I tried the following REQUEST http://localhost/~nicol/mapserver/dev/wxsGetMap.php?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=flurst&WIDTH=200&HEIGHT=200&FORMAT=image/gif&SRS=EPSG:31467&BBOX=3419615.22636,5523296.90857,3420494.15553,5524175.83774 The resulting image contains "bad lines" on the end. Here is the output so that you can see what i mean. http://geoworld.de/wxs/wxs_output_getmap.gif The datasource of this layer is postgresql/postgis. The second thing: When i change the outputformat to png (image/png) the image is completely broken. Has this behaviour something to do with the first issue mentioned? Do i miss something or is this a bug? Many thanks for your help. Nicol Am Donnerstag, den 31.08.2006, 11:31 -0400 schrieb Frank Warmerdam: > Nicol Hermann wrote: > > Bart, > > i there any working example how to use the GetMap Request with the new > > MapScript wrappers for WxS Services? > > I had no look so far using PHP Mapscript. > > Any code snippets? > > Many thanks > > Nicol > > Nicol, > > I have confirmed that the WxS methods have been added to PHP MapScript for > 4.10; however, I neglected to add any examples of it in the WxS howto. > > I've done a very very quick test with the following script which at least > seems to parse properly. Could you try something like it and see if it works? > > > dl("php_mapscript.so"); > > $req = ms_newowsrequestobj(); > $req->loadParams(); > > $map = ms_newMapObj( "/u/www/maps/ukpoly/ukpoly.map" ); > $map->OWSDispatch( $req ); > > ?> > > If so, I'll update the howto with the example. > > Best regards, From fsimon at UNIVALI.BR Fri Sep 1 07:05:45 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri, 1 Sep 2006 11:05:45 -0300 Subject: Symbols Message-ID: Hi folks, I'm with doubt about some standards for symbols in a new project. Someone know if exists a symbology convention standards for biodiversity? Bests regards. Fernando Simon From brannan at BRANNANSOFTWARE.COM Fri Sep 1 08:07:41 2006 From: brannan at BRANNANSOFTWARE.COM (P. S. Brannan) Date: Fri, 1 Sep 2006 10:07:41 -0500 Subject: Postgis sequential scan and query performance In-Reply-To: <63AAE393-9C42-4B23-A169-3BBFB07B5BD0@refractions.net> Message-ID: I wanted to let you know that your suggestions worked. I pulled a bunch of sql statements out of the log and ran them in psql. The planner is now selecting the index for the critical query. This has resulted in average execution times of less than 3 seconds. That is a big improvement from 65 seconds. The entire map drawing process is now running in about 6 seconds. This compares to 120 seconds before the optimizations. I guess that the random_page_cost setting did the trick. Thanks for your help, Patrick Paul Ramsey wrote: > (Before I say anything, I am impressed with your care in understanding > issues of performance which have taken me years to figure out! Yes, > compressing your tuples down to just the rows you need will probably > help a bit.) > > Another thing to look at is that your PostgreSQL configuration might > be sub-optimal in a couple ways: > > - Have you adjusted any postgresql.conf parameters at all? > - Let me assume you have a machine with 2Gb of RAM and are running > little on it besides PostgreSQL/PostGIS: > o Set your shared_buffers to 25000. (About 200M). > o Set your work_mem and maintenance_work_mem 8-16 times higher than > the defaults. > o Figure out how much memory you have allocated thus far, based on > some guesses regarding the number of concurrent users. > o From that, subtract as much memory as you think all other user > processes use. > o Set your effective_cache_size to the number you are now thinking of > o Change your random_page_cost to 2. If you are a fiddler, adjust it > up and down until you get "good" results in index usage for a number > of use cases (small box, big box) > o Turn autovacuum "on", just in case. > o If you are going to be doing a lot of mucking with tables, consider > changing some threshold values to you don't get thrashing, the > defaults are for a sort of continuous trickle of change, and GIS > people tend to change things in large batches. (update table set foo=bar) > > Hope this helps more. > > Paul > > On 30-Aug-06, at 7:45 PM, Patrick Brannan wrote: > >> Paul, >> >> Well I re-read the PostGIS documentation - thank you very much - then I >> tried the following: >> >> gisdb=# SET enable_seqscan TO off; >> SET >> gisdb=# explain analyze SELECT >> cfcc::text,fename::text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),ogc_fid::text >> >> from completechain WHERE wkb_geometry && >> setSRID('BOX3D(-90.6004589271402 38.4732965951534,-89.9998214028184 >> 38.8267482378407)'::BOX3D,find_srid('','completechain','wkb_geometry') >> ); >> >> QUERY >> PLAN >> >> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ >> >> Index Scan using idx_completechain_wkb_geometry on completechain >> (cost=0.00..364816.25 rows=90839 width=186) (actual >> time=37.049..12532.636 rows=103159 loops=1) >> Index Cond: (wkb_geometry && >> '0103000020FF7F0000010000000500000023AA47EB6DA656C0FABE9AFB943C434023AA47EB6DA656C095C6E1E2D269434089BCE812FD7F56C095C6E1E2D269434089BCE812FD7F56C0FABE9AFB943C434023AA47EB6DA656C0FABE9AFB943C4340'::geometry) >> >> Total runtime: 12891.420 ms >> (3 rows) >> >> gisdb=# explain analyze SELECT >> cfcc::text,fename::text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),ogc_fid::text >> >> from completechain WHERE wkb_geometry && >> setSRID('BOX3D(-90.6004589271402 38.4732965951534,-89.9998214028184 >> 38.8267482378407)'::BOX3D,find_srid('','completechain','wkb_geometry') >> ); >> >> QUERY >> PLAN >> >> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ >> >> Index Scan using idx_completechain_wkb_geometry on completechain >> (cost=0.00..364816.25 rows=90839 width=186) (actual >> time=11.988..5204.924 rows=103159 loops=1) >> Index Cond: (wkb_geometry && >> '0103000020FF7F0000010000000500000023AA47EB6DA656C0FABE9AFB943C434023AA47EB6DA656C095C6E1E2D269434089BCE812FD7F56C095C6E1E2D269434089BCE812FD7F56C0FABE9AFB943C434023AA47EB6DA656C0FABE9AFB943C4340'::geometry) >> >> Total runtime: 5497.049 ms >> (3 rows) >> >> gisdb=# explain analyze SELECT >> cfcc::text,fename::text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR'),ogc_fid::text >> >> from completechain WHERE wkb_geometry && >> setSRID('BOX3D(-90.6004589271402 38.4732965951534,-89.9998214028184 >> 38.8267482378407)'::BOX3D,find_srid('','completechain','wkb_geometry') >> ); >> >> QUERY >> PLAN >> >> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ >> >> Index Scan using idx_completechain_wkb_geometry on completechain >> (cost=0.00..364816.25 rows=90839 width=186) (actual time=0.088..1915.497 >> rows=103159 loops=1) >> Index Cond: (wkb_geometry && >> '0103000020FF7F0000010000000500000023AA47EB6DA656C0FABE9AFB943C434023AA47EB6DA656C095C6E1E2D269434089BCE812FD7F56C095C6E1E2D269434089BCE812FD7F56C0FABE9AFB943C434023AA47EB6DA656C0FABE9AFB943C4340'::geometry) >> >> Total runtime: 2205.876 ms >> (3 rows) >> >> Not only was the first run 1/5 the time of the sequential scan run but >> the runs kept getting better. No matter how many I run with >> 'enable_seqscan' on the performance never improves. This must be >> something I don't understand about PostgreSQL caching. >> >> Notice that the cost estimate was actually higher on the first one, yet >> the performance was much better. I'm still working my way through this >> PostgreSQL stuff so maybe I'm missing something. But what I see leads me >> to believe that the planner didn't do a very good job on this one. This >> box covers the St. Louis metropolitan area in a database that is loaded >> with everything in Missouri and Illinois. So I've got to think that >> using an index would be better than looking at the whole table. >> >> Finally, you are right that my real concern is mapserver. It doesn't >> have to be lightning fast, but I would sure like to see it better than >> it is. And the reality is that I am only looking for major highways. So >> maybe there is a way to get mapserver to build a query that narrows >> things down before it starts doing the geometry stuff. >> >> I'm also thinking that PostgreSQL loads entire rows when it reads pages >> despite the fact that you may only want 1 or 2 columns. So refactoring >> the database might make a big difference in disk io. This is Tiger data >> and I only care about a small portion of it. >> >> The table row count, by the way, is 4,203,356. I'm very optimistic about >> the possible performance given the results. I just have to find a way to >> get mapserver to capitalize on it. >> >> Patrick >> >>> You are returning 103159 rows, which is a lot. Unless you have >>> 100million records in your table, sequence scanning will probably >>> work faster then index scanning, for retrieving that many rows. Try a >>> bounding box that only encompasses a few hundred rows. You should see >>> index scans turn on then. >>> >>> By "query" performance, do you mean SQL query, or mapserver "query >>> mode". Because the latter has some quirks that need some care to avoid. >>> >>> P >>> >>> On 30-Aug-06, at 1:00 PM, P. S. Brannan wrote: >>> >>>> I just imported a bunch of tiger data into postgres. I am using >>>> mapserver as the frontend. Everything is working fine except for >>>> the performance. The query performance is terrible and I can't seem >>>> to get postgresql to use the index i created. Here's what's going on: >>>> >>>> Index Creation: >>>> create index idx_completechain_wkb_geometry on completechain using >>>> gist(wkb_geometry gist_geometry_ops); >>>> vacuum analyze; >>>> >>>> Vacuum Analyze: >>>> explain analyze SELECT cfcc::text,fename::text,asbinary >>>> (force_collection(force_2d(wkb_geometry)),'NDR'),ogc_fid::text from >>>> completechain >>>> WHERE wkb_geometry && setSRID('BOX3D(-90.6004589271402 >>>> 38.4732965951534,-89.9998214028184 >>>> 38.8267482378407)'::BOX3D,find_srid >>>> ('','completechain','wkb_geometry') ); >>>> QUERY PLAN >>>> ---------------------------------------------------------------------- >>>> ---------------------------------------------------------------------- >>>> ---------------------------------------------------------------------- >>>> -------------------------- >>>> Seq Scan on completechain (cost=0.00..275502.54 rows=90839 >>>> width=186) (actual time=10718.879..55686.238 rows=103159 loops=1) >>>> Filter: (wkb_geometry && >>>> '0103000020FF7F0000010000000500000023AA47EB6DA656C0FABE9AFB943C434023A >>>> A47EB6DA656C095C6E1E2D269434089BCE812FD7F56C095C6E1E2D269434089BCE812F >>>> D7F56C0FABE9AFB943C434023AA47EB6DA656C0FABE9AFB943C4340'::geometry) >>>> Total runtime: 55973.870 ms >>>> (3 rows) >>>> >>>> Can anyone tell me what I need to do to get postgres to use the >>>> index? I'm sure that I'm missing something obvious. >>>> >>>> Thanks, >>>> >>>> Patrick Brannan >>> >>> > From pramsey at REFRACTIONS.NET Fri Sep 1 08:18:52 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri, 1 Sep 2006 08:18:52 -0700 Subject: Postgis sequential scan and query performance In-Reply-To: <44F84CBD.1000808@brannansoftware.com> Message-ID: Patrick, That's great news! Now, for real speed improvements, figure out how to draw a map that does not require 100000 inputs :) There is clearly some scale work to be done, since most of those 1000000 inputs probably resolve to little more than a couple pixels -- ie, most of their information is being lost in the rasterization process, so is there a way to use input with less information instead (lower resolution data...) Paul On 1-Sep-06, at 8:07 AM, P. S. Brannan wrote: > I wanted to let you know that your suggestions worked. I pulled a > bunch of sql statements out of the log and ran them in psql. The > planner is now selecting the index for the critical query. This has > resulted in average execution times of less than 3 seconds. That is > a big improvement from 65 seconds. The entire map drawing process > is now running in about 6 seconds. This compares to 120 seconds > before the optimizations. > > I guess that the random_page_cost setting did the trick. > > Thanks for your help, > > Patrick > > Paul Ramsey wrote: >> (Before I say anything, I am impressed with your care in >> understanding issues of performance which have taken me years to >> figure out! Yes, compressing your tuples down to just the rows >> you need will probably help a bit.) >> >> Another thing to look at is that your PostgreSQL configuration >> might be sub-optimal in a couple ways: >> >> - Have you adjusted any postgresql.conf parameters at all? >> - Let me assume you have a machine with 2Gb of RAM and are running >> little on it besides PostgreSQL/PostGIS: >> o Set your shared_buffers to 25000. (About 200M). >> o Set your work_mem and maintenance_work_mem 8-16 times higher >> than the defaults. >> o Figure out how much memory you have allocated thus far, based on >> some guesses regarding the number of concurrent users. >> o From that, subtract as much memory as you think all other user >> processes use. >> o Set your effective_cache_size to the number you are now thinking of >> o Change your random_page_cost to 2. If you are a fiddler, adjust >> it up and down until you get "good" results in index usage for a >> number of use cases (small box, big box) >> o Turn autovacuum "on", just in case. >> o If you are going to be doing a lot of mucking with tables, >> consider changing some threshold values to you don't get >> thrashing, the defaults are for a sort of continuous trickle of >> change, and GIS people tend to change things in large batches. >> (update table set foo=bar) >> >> Hope this helps more. >> >> Paul >> >> On 30-Aug-06, at 7:45 PM, Patrick Brannan wrote: >> >>> Paul, >>> >>> Well I re-read the PostGIS documentation - thank you very much - >>> then I >>> tried the following: >>> >>> gisdb=# SET enable_seqscan TO off; >>> SET >>> gisdb=# explain analyze SELECT >>> cfcc::text,fename::text,asbinary(force_collection(force_2d >>> (wkb_geometry)),'NDR'),ogc_fid::text >>> from completechain WHERE wkb_geometry && >>> setSRID('BOX3D(-90.6004589271402 38.4732965951534,-89.9998214028184 >>> 38.8267482378407)'::BOX3D,find_srid >>> ('','completechain','wkb_geometry') ); >>> >>> QUERY >>> PLAN >>> >>> -------------------------------------------------------------------- >>> -------------------------------------------------------------------- >>> -------------------------------------------------------------------- >>> ------------------------------------ >>> Index Scan using idx_completechain_wkb_geometry on completechain >>> (cost=0.00..364816.25 rows=90839 width=186) (actual >>> time=37.049..12532.636 rows=103159 loops=1) >>> Index Cond: (wkb_geometry && >>> '0103000020FF7F0000010000000500000023AA47EB6DA656C0FABE9AFB943C43402 >>> 3AA47EB6DA656C095C6E1E2D269434089BCE812FD7F56C095C6E1E2D269434089BCE >>> 812FD7F56C0FABE9AFB943C434023AA47EB6DA656C0FABE9AFB943C4340'::geomet >>> ry) >>> Total runtime: 12891.420 ms >>> (3 rows) >>> >>> gisdb=# explain analyze SELECT >>> cfcc::text,fename::text,asbinary(force_collection(force_2d >>> (wkb_geometry)),'NDR'),ogc_fid::text >>> from completechain WHERE wkb_geometry && >>> setSRID('BOX3D(-90.6004589271402 38.4732965951534,-89.9998214028184 >>> 38.8267482378407)'::BOX3D,find_srid >>> ('','completechain','wkb_geometry') ); >>> >>> QUERY >>> PLAN >>> >>> -------------------------------------------------------------------- >>> -------------------------------------------------------------------- >>> -------------------------------------------------------------------- >>> ------------------------------------ >>> Index Scan using idx_completechain_wkb_geometry on completechain >>> (cost=0.00..364816.25 rows=90839 width=186) (actual >>> time=11.988..5204.924 rows=103159 loops=1) >>> Index Cond: (wkb_geometry && >>> '0103000020FF7F0000010000000500000023AA47EB6DA656C0FABE9AFB943C43402 >>> 3AA47EB6DA656C095C6E1E2D269434089BCE812FD7F56C095C6E1E2D269434089BCE >>> 812FD7F56C0FABE9AFB943C434023AA47EB6DA656C0FABE9AFB943C4340'::geomet >>> ry) >>> Total runtime: 5497.049 ms >>> (3 rows) >>> >>> gisdb=# explain analyze SELECT >>> cfcc::text,fename::text,asbinary(force_collection(force_2d >>> (wkb_geometry)),'NDR'),ogc_fid::text >>> from completechain WHERE wkb_geometry && >>> setSRID('BOX3D(-90.6004589271402 38.4732965951534,-89.9998214028184 >>> 38.8267482378407)'::BOX3D,find_srid >>> ('','completechain','wkb_geometry') ); >>> >>> QUERY >>> PLAN >>> >>> -------------------------------------------------------------------- >>> -------------------------------------------------------------------- >>> -------------------------------------------------------------------- >>> ------------------------------------ >>> Index Scan using idx_completechain_wkb_geometry on completechain >>> (cost=0.00..364816.25 rows=90839 width=186) (actual >>> time=0.088..1915.497 >>> rows=103159 loops=1) >>> Index Cond: (wkb_geometry && >>> '0103000020FF7F0000010000000500000023AA47EB6DA656C0FABE9AFB943C43402 >>> 3AA47EB6DA656C095C6E1E2D269434089BCE812FD7F56C095C6E1E2D269434089BCE >>> 812FD7F56C0FABE9AFB943C434023AA47EB6DA656C0FABE9AFB943C4340'::geomet >>> ry) >>> Total runtime: 2205.876 ms >>> (3 rows) >>> >>> Not only was the first run 1/5 the time of the sequential scan >>> run but >>> the runs kept getting better. No matter how many I run with >>> 'enable_seqscan' on the performance never improves. This must be >>> something I don't understand about PostgreSQL caching. >>> >>> Notice that the cost estimate was actually higher on the first >>> one, yet >>> the performance was much better. I'm still working my way through >>> this >>> PostgreSQL stuff so maybe I'm missing something. But what I see >>> leads me >>> to believe that the planner didn't do a very good job on this >>> one. This >>> box covers the St. Louis metropolitan area in a database that is >>> loaded >>> with everything in Missouri and Illinois. So I've got to think that >>> using an index would be better than looking at the whole table. >>> >>> Finally, you are right that my real concern is mapserver. It doesn't >>> have to be lightning fast, but I would sure like to see it better >>> than >>> it is. And the reality is that I am only looking for major >>> highways. So >>> maybe there is a way to get mapserver to build a query that narrows >>> things down before it starts doing the geometry stuff. >>> >>> I'm also thinking that PostgreSQL loads entire rows when it reads >>> pages >>> despite the fact that you may only want 1 or 2 columns. So >>> refactoring >>> the database might make a big difference in disk io. This is >>> Tiger data >>> and I only care about a small portion of it. >>> >>> The table row count, by the way, is 4,203,356. I'm very >>> optimistic about >>> the possible performance given the results. I just have to find a >>> way to >>> get mapserver to capitalize on it. >>> >>> Patrick >>> >>>> You are returning 103159 rows, which is a lot. Unless you have >>>> 100million records in your table, sequence scanning will probably >>>> work faster then index scanning, for retrieving that many rows. >>>> Try a >>>> bounding box that only encompasses a few hundred rows. You >>>> should see >>>> index scans turn on then. >>>> >>>> By "query" performance, do you mean SQL query, or mapserver "query >>>> mode". Because the latter has some quirks that need some care to >>>> avoid. >>>> >>>> P >>>> >>>> On 30-Aug-06, at 1:00 PM, P. S. Brannan wrote: >>>> >>>>> I just imported a bunch of tiger data into postgres. I am using >>>>> mapserver as the frontend. Everything is working fine except for >>>>> the performance. The query performance is terrible and I can't >>>>> seem >>>>> to get postgresql to use the index i created. Here's what's >>>>> going on: >>>>> >>>>> Index Creation: >>>>> create index idx_completechain_wkb_geometry on completechain using >>>>> gist(wkb_geometry gist_geometry_ops); >>>>> vacuum analyze; >>>>> >>>>> Vacuum Analyze: >>>>> explain analyze SELECT cfcc::text,fename::text,asbinary >>>>> (force_collection(force_2d(wkb_geometry)),'NDR'),ogc_fid::text >>>>> from >>>>> completechain >>>>> WHERE wkb_geometry && setSRID('BOX3D(-90.6004589271402 >>>>> 38.4732965951534,-89.9998214028184 >>>>> 38.8267482378407)'::BOX3D,find_srid >>>>> ('','completechain','wkb_geometry') ); >>>>> QUERY PLAN >>>>> ------------------------------------------------------------------ >>>>> ---- >>>>> ------------------------------------------------------------------ >>>>> ---- >>>>> ------------------------------------------------------------------ >>>>> ---- >>>>> -------------------------- >>>>> Seq Scan on completechain (cost=0.00..275502.54 rows=90839 >>>>> width=186) (actual time=10718.879..55686.238 rows=103159 loops=1) >>>>> Filter: (wkb_geometry && >>>>> '0103000020FF7F0000010000000500000023AA47EB6DA656C0FABE9AFB943C434 >>>>> 023A >>>>> A47EB6DA656C095C6E1E2D269434089BCE812FD7F56C095C6E1E2D269434089BCE >>>>> 812F >>>>> D7F56C0FABE9AFB943C434023AA47EB6DA656C0FABE9AFB943C4340'::geometry >>>>> ) >>>>> Total runtime: 55973.870 ms >>>>> (3 rows) >>>>> >>>>> Can anyone tell me what I need to do to get postgres to use the >>>>> index? I'm sure that I'm missing something obvious. >>>>> >>>>> Thanks, >>>>> >>>>> Patrick Brannan >>>> >>>> >> > From earevaloch at GMAIL.COM Fri Sep 1 09:09:35 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Fri, 1 Sep 2006 11:09:35 -0500 Subject: what happens with this page mapserver ????? Message-ID: that it is what happens with this page: http://mapserver.gis.umn.edu/docs Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /docs. Reason: Could not connect to remote machine: Connection refused -------------- next part -------------- An HTML attachment was scrubbed... URL: From tylermitchell at SHAW.CA Fri Sep 1 09:17:57 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 1 Sep 2006 09:17:57 -0700 Subject: what happens with this page mapserver ????? In-Reply-To: <95f68e530609010909q536194c6i2f88bc183e474be0@mail.gmail.com> Message-ID: I believe the mapserver web site went down and sysadmin is away. Tyler ----- Original Message ----- From: Eduardo Ar?valo Date: Friday, September 1, 2006 9:09 am Subject: [UMN_MAPSERVER-USERS] what happens with this page mapserver ????? > that it is what happens with this page: > > http://mapserver.gis.umn.edu/docs > > Proxy Error > The proxy server received an invalid response from an upstream server. > > The proxy server could not handle the request GET /docs. > > Reason: Could not connect to remote machine: Connection refused > From naci0002 at UMN.EDU Fri Sep 1 09:42:52 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Fri, 1 Sep 2006 11:42:52 -0500 Subject: what happens with this page mapserver ????? In-Reply-To: <95f68e530609010909q536194c6i2f88bc183e474be0@mail.gmail.com> Message-ID: I just called the sysadmin who was about to leave town... hopefully he'll have it back up in a few minutes. -Perry Eduardo Ar?valo wrote: > that it is what happens with this page: > > http://mapserver.gis.umn.edu/docs > > Proxy Error > The proxy server received an invalid response from an upstream server. > > The proxy server could not handle the request GET /docs. > > Reason: Could not connect to remote machine: Connection refused From James.Leveille at MTQ.GOUV.QC.CA Fri Sep 1 11:23:43 2006 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Fri, 1 Sep 2006 14:23:43 -0400 Subject: WMS Javascript Client Message-ID: Hi, We've been working with MapServer for a while (Windows Server 2003) - everything works fine. We've been using GeoMedia Pro and MapInfo as clients. We now need to develop a Web client. RESTRICTIONS: - Windows CLient - HTML & Javascript only - no Java, PHP, ... We've been searching on the Web for a few days. The only Web solution we found was quickWMS (HTML & Javascript). The problem with this solution is that it seems to be calling MapServer once for every layer, instead of only one call for all the layers. This offers less performance, and we are looking for the best solution in terms of performance. Those anyone know a HTML & Javascript client other than quickWMS ? Thanks a lot. Regards. __________________________________________ James L?veill? Int?lec G?omatique 420, boul. Charest Est Bureau 400 Qu?bec (QC), Canada G1K 8M4 Int?lec G?omatique: 418.687.5000 MTQ: 418.380.2005 (#227) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at CI.STPAUL.MN.US Fri Sep 1 11:27:58 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 1 Sep 2006 13:27:58 -0500 Subject: WMS Javascript Client In-Reply-To: Message-ID: Does it need to be WMS? We've got something coming out in the near future, but it operates just about the same with a separate call for each layer, although layers can be separated and/or combined if needed with no problem. It doesn't work with WMS services (yet) though. bobb L?veill? wrote: > This is a multi-part message in MIME format. > > ------_=_NextPart_001_01C6CDF3.C1CA4B45 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Hi, > =20 > We've been working with MapServer for a while (Windows Server 2003) - > everything works fine. > We've been using GeoMedia Pro and MapInfo as clients. > =20 > We now need to develop a Web client. > RESTRICTIONS: > - Windows CLient > - HTML & Javascript only - no Java, PHP, ... > =20 > We've been searching on the Web for a few days. > The only Web solution we found was quickWMS (HTML & Javascript). > The problem with this solution is that it seems to be calling MapServer = > once > for every layer, instead of only one call for all the layers. > This offers less performance, and we are looking for the best solution = > in > terms of performance. > =20 > Those anyone know a HTML & Javascript client other than quickWMS ? > =20 > Thanks a lot. > =20 > Regards. > =20 > __________________________________________ > James L=E9veill=E9 > =20 > Int=E9lec G=E9omatique > 420, boul. Charest Est > Bureau 400 > Qu=E9bec (QC), Canada > G1K 8M4 > =20 > Int=E9lec G=E9omatique: 418.687.5000 > MTQ: 418.380.2005 (#227) > =20 > > ------_=_NextPart_001_01C6CDF3.C1CA4B45 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > > Message > charset=3Diso-8859-1"> > > >
Hi,
>
 
>
class=3D528490118-01092006>We've been working=20 > with MapServer for a while (Windows Server 2003) - everything works = > > fine.
>
class=3D528490118-01092006>We've been using=20 > GeoMedia Pro and MapInfo as clients.
>
class=3D528490118-01092006> 
>
We = > now need to=20 > develop a Web client.
>
class=3D528490118-01092006>RESTRICTIONS: DIV> >
- = > Windows=20 > CLient
>
- = > HTML &=20 > Javascript only - no Java, PHP, ...
>
 
>
size=3D2>We've been=20 > searching on the Web for a few days.
>
The = > only Web=20 > solution we found was quickWMS (HTML &=20 > Javascript).
>
The = > problem with=20 > this solution is that it seems to be calling MapServer once for every = > layer,=20 > instead of only one call for all the layers.
>
This = > offers less=20 > performance, and we are looking for the best solution in terms of=20 > performance.
>
size=3D2> 
>
size=3D2>Those anyone know=20 > a HTML & Javascript client other than quickWMS ?
>
size=3D2> 
>
size=3D2>Thanks a=20 > lot.
>
size=3D2> 
>
size=3D2>Regards.
>
 
>
size=3D2>__________________________________________
>
James=20 > L=E9veill=E9
>
face=3DVerdana> 
>
size=3D2>Int=E9lec=20 > G=E9omatique
>
420, boul. Charest = > Est
Bureau=20 > 400
Qu=E9bec (QC), Canada
G1K 8M4
>
 
>
size=3D1>Int=E9lec G=E9omatique:=20 > 418.687.5000
>
MTQ: = > 418.380.2005=20 > (#227)
>
 
> =00 > ------_=_NextPart_001_01C6CDF3.C1CA4B45-- > > From bartvde at XS4ALL.NL Fri Sep 1 11:54:14 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 1 Sep 2006 20:54:14 +0200 Subject: WMS Javascript Client In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E02F92DF6@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: Take a look at Community Mapbuilder: http://docs.codehaus.org/display/MAP/Home Best regards, Bart L?veill? schreef: > Hi, > > We've been working with MapServer for a while (Windows Server 2003) - > everything works fine. > We've been using GeoMedia Pro and MapInfo as clients. > > We now need to develop a Web client. > *RESTRICTIONS:* > - Windows CLient > - HTML & Javascript only - no Java, PHP, ... > > We've been searching on the Web for a few days. > The only Web solution we found was _quickWMS_ (HTML & Javascript_)_. > The problem with this solution is that it seems to be calling > MapServer once for every layer, instead of only one call for all the > layers. > This offers less performance, and we are looking for the best solution > in terms of performance. > > Those anyone know a HTML & Javascript client other than quickWMS ? > > Thanks a lot. > > Regards. > > __________________________________________ > *James L?veill?* > > *Int?lec G?omatique* > 420, boul. Charest Est > Bureau 400 > Qu?bec (QC), Canada > G1K 8M4 > > Int?lec G?omatique: 418.687.5000 > MTQ: 418.380.2005 (#227) > From marcusrodmag at GMAIL.COM Fri Sep 1 11:48:47 2006 From: marcusrodmag at GMAIL.COM (=?iso-8859-1?Q?Marcus_R._Magalh=E3es?=) Date: Fri, 1 Sep 2006 15:48:47 -0300 Subject: MapObject to Session var Message-ID: Hi, I try serialize a MSobject in a PHP Session, but in draw() method of the unserialized MSObjet (in other script), the follow error is displayed: Fatal error: Object has an invalid _handle_ property in .... How to persist MapObject data in PHP scripts? Ps: MapServer 4.8.3, Apache 2.0.54 and PHP 5.1.4 Tanks Marcus Magalh?es -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/435 - Release Date: 31/8/2006 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at CI.STPAUL.MN.US Fri Sep 1 12:20:13 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 1 Sep 2006 14:20:13 -0500 Subject: WMS Javascript Client In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E02F92DF9@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: L?veill? wrote: > Hi Bob, > > It does need to be working with WMS. > Do you mean the Client needs to grab a WMS service? or there are WMS services involved (behind MapServer? We're planning on adding in WMS services, just not for a few months yet. bobb > > > __________________________________________ > James L?veill? > > Int?lec G?omatique > 420, boul. Charest Est > Bureau 400 > Qu?bec (QC), Canada > G1K 8M4 > > Int?lec G?omatique: 418.687.5000 > MTQ: 418.380.2005 (#227) > > > -----Message d'origine----- > De : Bob Basques [mailto:bob.basques at ci.stpaul.mn.us] > Envoy? : 1 septembre 2006 14:28 > ? : L??veill??; L?veill?, James > Cc : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : Re: WMS Javascript Client > > > Does it need to be WMS? > > We've got something coming out in the near future, but it operates just > about the same with a separate call for each layer, although layers can > be separated and/or combined if needed with no problem. It doesn't work > with WMS services (yet) though. > > bobb > > > L?veill? wrote: > >> This is a multi-part message in MIME format. >> >> ------_=_NextPart_001_01C6CDF3.C1CA4B45 >> Content-Type: text/plain; >> charset="iso-8859-1" >> Content-Transfer-Encoding: quoted-printable >> >> Hi, >> =20 >> We've been working with MapServer for a while (Windows Server 2003) - >> everything works fine. We've been using GeoMedia Pro and MapInfo as >> clients. =20 >> We now need to develop a Web client. >> RESTRICTIONS: >> - Windows CLient >> - HTML & Javascript only - no Java, PHP, ... >> =20 >> We've been searching on the Web for a few days. >> The only Web solution we found was quickWMS (HTML & Javascript). >> The problem with this solution is that it seems to be calling MapServer = >> once >> for every layer, instead of only one call for all the layers. >> This offers less performance, and we are looking for the best solution= >> in >> terms of performance. >> =20 >> Those anyone know a HTML & Javascript client other than quickWMS ? >> =20 >> Thanks a lot. >> =20 >> Regards. >> =20 >> __________________________________________ >> James L=E9veill=E9 >> =20 >> Int=E9lec G=E9omatique >> 420, boul. Charest Est >> Bureau 400 >> Qu=E9bec (QC), Canada >> G1K 8M4 >> =20 >> Int=E9lec G=E9omatique: 418.687.5000 >> MTQ: 418.380.2005 (#227) >> =20 >> >> ------_=_NextPart_001_01C6CDF3.C1CA4B45 >> Content-Type: text/html; >> charset="iso-8859-1" >> Content-Transfer-Encoding: quoted-printable >> >> >> Message >> > charset=3Diso-8859-1"> > name=3DGENERATOR> >>
Hi,
>>
 
>>
> class=3D528490118-01092006>We've been working=20 >> with MapServer for a while (Windows Server 2003) - everything works = >> >> fine.
>>
> class=3D528490118-01092006>We've been using=20 GeoMedia Pro and >> MapInfo as clients.
> size=3D2>> class=3D528490118-01092006> 
>>
We >> = now need to=20 develop a Web client.
>>
> class=3D528490118-01092006>RESTRICTIONS:> DIV> >>
- >> = Windows=20 CLient
>>
- = >> HTML &=20 >> Javascript only - no Java, PHP, ...
>>
 
>>
> size=3D2>We've been=20 >> searching on the Web for a few days.
>>
The = >> only Web=20 >> solution we found was quickWMS (HTML &=20 >> Javascript).
>>
The = >> problem with=20 >> this solution is that it seems to be calling MapServer once for every = >> layer,=20 >> instead of only one call for all the layers.
>>
This = >> offers less=20 >> performance, and we are looking for the best solution in terms of=20 >> performance.
>>
> size=3D2> 
>>
> size=3D2>Those anyone know=20 >> a HTML & Javascript client other than quickWMS ?
>>
> size=3D2> 
>>
> size=3D2>Thanks a=20 >> lot.
>>
> size=3D2> 
>>
> size=3D2>Regards.
>>
 
>>
> size=3D2>__________________________________________
>>
James=20 >> L=E9veill=E9
>>
> face=3DVerdana> 
>>
> size=3D2>Int=E9lec=20 >> G=E9omatique
>>
420, boul. Charest = >> Est
Bureau=20 >> 400
Qu=E9bec (QC), Canada
G1K 8M4
>>
 
>>
> size=3D1>Int=E9lec G=E9omatique:=20 >> 418.687.5000
>>
MTQ: = >> 418.380.2005=20 >> (#227)
>>
 
>> =00 >> ------_=_NextPart_001_01C6CDF3.C1CA4B45-- >> >> >> > > > > From jgrimes at GI.ALASKA.EDU Fri Sep 1 14:52:02 2006 From: jgrimes at GI.ALASKA.EDU (Jason Grimes) Date: Fri, 1 Sep 2006 13:52:02 -0800 Subject: WMS bounding box issues with ArcGIS Message-ID: Hi Everyone, I'm having some problems with a WMS service I have set up. I have everything set up correctly but MapServer insists on including LatLonBoundingBox in the capabilities doc even though I have set up the extents, etc in meters (Alaskan Albers). I think because MapServer includes the latlon bbox ArcGIS defaults to it. Is there any way of suppressing the LatLonBoundingBox? Thanks, Jason Here is a snip of my map file: EXTENT 281897 1681398 300339 1693467 PROJECTION "init=epsg:102006" END WEB METADATA "wms_title" "GINA WMS Test" "wms_abstract" "University of Alaska GINA program WMS QuickBird test server" "wms_onlineresource" "http://ogc.gina.alaska.edu/wms/quickbird/index.cgi?" "wms_srs" "EPSG:102006" "wms_extent" "281897 1681398 300339 1693467" END END LAYER NAME "North_Fairbanks_QuickBird" STATUS default DATA "/www/ogc/htdocs/wms/quickbird/data/fb_north_albers_final1.tif" TYPE RASTER PROCESSING "BANDS=3,2,1" PROJECTION "init=epsg:102006" END EXTENT 281897 1681398 300339 1693467 METADATA "wms_title" "North_Fairbanks_QuickBird" "wms_name" "North_Fairbanks_QuickBird" "wms_onlineresource" "http://ogc.gina.alaska.edu/wms/quickbird/index.cgi?" "wms_srs" "EPSG:102006" "wms_extent" "281897 1681398 300339 1693467" END END From thip at AIT.AC.TH Fri Sep 1 15:27:28 2006 From: thip at AIT.AC.TH (SUBSCRIBE MAPSERVER-USERS Joe H. Smith) Date: Sat, 2 Sep 2006 05:27:28 +0700 Subject: WMS bounding box issues with ArcGIS In-Reply-To: <44F8AB82.5090007@gi.alaska.edu> Message-ID: Dear Jason, I had the same experience for that error before. What i did was I added one layer with lat long projection and set up "Web Map Extent as lat long". For other layers, they are okay to have different map projection type. I am not sure if it was the right way to fixed that. Anyway it is working okay for me. Best of lucks, Thip Quoting Jason Grimes on 09/02/06: > Hi Everyone, > > I'm having some problems with a WMS service I have set up. I have > everything set up correctly but MapServer insists on including > LatLonBoundingBox in the capabilities doc even though I have set up > the extents, etc in meters (Alaskan Albers). I think because > MapServer includes the latlon bbox ArcGIS defaults to it. Is there > any way of suppressing the LatLonBoundingBox? Thanks, > > Jason > > Here is a snip of my map file: > > EXTENT 281897 1681398 300339 1693467 > > PROJECTION > "init=epsg:102006" > END > > WEB > METADATA > "wms_title" "GINA WMS Test" > "wms_abstract" "University of Alaska GINA > program WMS QuickBird test server" > "wms_onlineresource" > "http://ogc.gina.alaska.edu/wms/quickbird/index.cgi?" > "wms_srs" "EPSG:102006" > "wms_extent" "281897 1681398 300339 1693467" > END > END > > LAYER > NAME "North_Fairbanks_QuickBird" > STATUS default > DATA > "/www/ogc/htdocs/wms/quickbird/data/fb_north_albers_final1.tif" > TYPE RASTER > PROCESSING "BANDS=3,2,1" > PROJECTION > "init=epsg:102006" > END > > EXTENT 281897 1681398 300339 1693467 > METADATA > "wms_title" "North_Fairbanks_QuickBird" > "wms_name" "North_Fairbanks_QuickBird" > "wms_onlineresource" > "http://ogc.gina.alaska.edu/wms/quickbird/index.cgi?" > "wms_srs" "EPSG:102006" > "wms_extent" "281897 1681398 300339 1693467" > END > END > From epk.lists at GMAIL.COM Fri Sep 1 17:45:19 2006 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Fri, 1 Sep 2006 21:45:19 -0300 Subject: Does current MapServer MapFile doc is in sync with current source? Message-ID: Hi folks, Does the current "MapFile Reference" is in sync with the current MapServer source code? I'd like to know if latest features of mapfile sintax is already documented. best regards. -- Eduardo Patto Kanegae http://www.webmapit.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Sat Sep 2 05:20:40 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Sat, 2 Sep 2006 14:20:40 +0200 Subject: WMS Javascript Client In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E02F92DF6@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: check out openlayers: http://openlayers.org/ Umberto On 9/1/06, L?veill?, James wrote: > > > Hi, > > We've been working with MapServer for a while (Windows Server 2003) - > everything works fine. > We've been using GeoMedia Pro and MapInfo as clients. > > We now need to develop a Web client. > RESTRICTIONS: > - Windows CLient > - HTML & Javascript only - no Java, PHP, ... > > We've been searching on the Web for a few days. > The only Web solution we found was quickWMS (HTML & Javascript). > The problem with this solution is that it seems to be calling MapServer once > for every layer, instead of only one call for all the layers. > This offers less performance, and we are looking for the best solution in > terms of performance. > > Those anyone know a HTML & Javascript client other than quickWMS ? > > Thanks a lot. > > Regards. > > __________________________________________ > James L?veill? > > Int?lec G?omatique > 420, boul. Charest Est > Bureau 400 > Qu?bec (QC), Canada > G1K 8M4 > > Int?lec G?omatique: 418.687.5000 > MTQ: 418.380.2005 (#227) > From warmerdam at POBOX.COM Sat Sep 2 09:31:00 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 2 Sep 2006 12:31:00 -0400 Subject: PHP Mapscript and WMS Server In-Reply-To: <1157116558.4143.23.camel@emil.intranet.gdv.com> Message-ID: Nicol Hermann wrote: > Hi Frank, > > thank you very much for the given example. > I tried your script and in general it works. > There a two things which are strange. > > I tried the following REQUEST > http://localhost/~nicol/mapserver/dev/wxsGetMap.php?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=flurst&WIDTH=200&HEIGHT=200&FORMAT=image/gif&SRS=EPSG:31467&BBOX=3419615.22636,5523296.90857,3420494.15553,5524175.83774 > The resulting image contains "bad lines" on the end. > Here is the output so that you can see what i mean. > http://geoworld.de/wxs/wxs_output_getmap.gif > The datasource of this layer is postgresql/postgis. Nicol, There was a bug with the buffer not being properly resized when the content type was stripped which is likely what you are seeing. This is correct now in CVS and should be fixed in the beta2 release. > The second thing: > When i change the outputformat to png (image/png) the image is > completely broken. > Has this behaviour something to do with the first issue mentioned? I've no idea what might be causing this. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From jbw2003 at EARTHLINK.NET Sat Sep 2 13:11:46 2006 From: jbw2003 at EARTHLINK.NET (Jim White) Date: Sat, 2 Sep 2006 16:11:46 -0400 Subject: MAPSERVER-USERS Digest - 31 Aug 2006 to 1 Sep 2006 (#2006-244) In-Reply-To: Message-ID: Hi, I have used the following code to pass objects in PHP: $aoi_class_ser = base64_encode(serialize($aoi_class)); This worked for me using POST method, but may you might be able to use some version of this with session variables. >I try serialize a MSobject in a PHP Session, but in draw() method of the >unserialized MSObjet (in other script), the follow error is displayed: > >=20 > >Fatal error: Object has an invalid _handle_ property in .... >=20 >How to persist MapObject data in PHP scripts? >=20 >Ps: MapServer 4.8.3, Apache 2.0.54 and PHP 5.1.4 >=20 >Tanks >=20 >Marcus Magalh=E3es > Sincerely, Jim From mrc78a at YAHOO.IT Sun Sep 3 05:01:53 2006 From: mrc78a at YAHOO.IT (marco barra) Date: Sun, 3 Sep 2006 14:01:53 +0200 Subject: grass vector layer and mapserver/chameleon Message-ID: Hi all I have developed a web gis using mapserver and chameleon in which all the layer they come read directly from the GRASS mapset , but when I try to obtain info from a vector layer i have onli this informations cat 160 SHAPE_INDEX 167 TILE_INDEX 0 LAYER_INDEX but i have many other attributes in my vector layer!!!!! This is my code for the vector layer in my map file , and I hope someone can help me. Regards ,Marco LAYER NAME Litologia CONNECTIONTYPE OGR CONNECTION "/root/Desktop/collegamento a chameleon/grass_mapset/data/Carta_geologica/vector/Substrato/head" DATA "1" GROUP Litologia STATUS OFF TYPE POLYGON PROJECTION "init=epsg:3065" END CLASS NAME Litologia STYLE OUTLINECOLOR 0 255 0 END END END __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From gluker at SCU.EDU.AU Sun Sep 3 16:49:00 2006 From: gluker at SCU.EDU.AU (Greg Luker) Date: Mon, 4 Sep 2006 09:49:00 +1000 Subject: Using JOIN for querying Message-ID: Hi David, (sorry for the long post) David Fawcett said: >I haven't been following this thread too closely, but are you sure that >you want to use the unmaintained MyGIS option, or do you really want to >use OGR with MySQL support enabled? I would go with OGR unless there is >something in MyGIS that doesn't exist in OGR. Thanks for your suggestions. I agree that I would be better off with OGR - and I have: ************** LAYER NAME "pts" TYPE POINT STATUS OFF CONNECTIONTYPE OGR CONNECTION ' MYSQL:sites,user=user1,password=*****,host=11.109.9.10,port=3 306,tables=feature;site SELECT site_id, site_name, site_easting_other, site_northing_other, feature_id, feature_name FROM site s JOIN feature f ON s.site_id = f.feature_site_id wkbPoint ' DATA "exact" TOLERANCE 5 PROJECTION "proj=utm" "south" "zone=56" END #projection CLASS NAME "Test Site - pts" TEMPLATE "pquery.html" SYMBOL "Dot" SIZE 5 COLOR 0 0 255 END #class HEADER "pquery_header.html" FOOTER "pquery_footer.html" END #layer ********************* Using a map mode of nquery, the template pquery.html produces: Site Name Feature site1_name feature1_name site1_name feature2_name site1_name feature3_name site2_name feature4_name site2_name feature5_name site3_name feature6_name site3_name feature7_name ... but what I want is: site1_name feature1_name feature2_name feature3_name site2_name feature4_name feature5_name site3_name feature6_name feature7_name ... I can't seem to get this using OGR (I don't know the correct syntax) so I thought I'd try to get what I wanted by using MyGIS because somebody helped me with the syntax. >Here is Frank's page for OGR/MySQL: >http://ogr.maptools.org/drv_mysql.html >Here is a description from Howard's blog: >http://hobu.biz/index_html/mysql_ogr Thankyou for these URLs. I have been to them both and, while they are helpful, I still don't know the right OGR syntax for what I'm trying to do. Could you help with the correct OGR syntax? >Also, look at the HowTos, there are a few items on MySQL. Could you please give a URL for these HowTos? I have Google-searched and asked on this list for weeks, but unfortunately I have not solved my "OGR/MySQL/query/multiple tables/join" question, though I have received related help from several on this list (thanks). Thanks, Greg Luker. From b.vdeijnden at AGI.RWS.MINVENW.NL Sun Sep 3 23:54:11 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Mon, 4 Sep 2006 08:54:11 +0200 Subject: SLD, sequence of Rules Message-ID: Hi list, when reading an SLD file Mapserver reverses the sequence of the Rules, which does not make sense to me. We have a certain sequence of Rules in our SLD files, and we want to see the same sequence in the legends for instance. In mapogcsld.c it says: /* -------------------------------------------------------------------- */ /* copy classes in reverse order : the Rule priority is the */ /* first rule is the most important (mapserver uses the painter */ /* model) */ /* -------------------------------------------------------------------- */ map->layers[i].type = pasLayers[j].type; map->layers[i].numclasses = 0; iClass = 0; for (k=pasLayers[j].numclasses-1; k>=0; k--) { initClass(&map->layers[i].class[iClass]); msCopyClass(&map->layers[i].class[iClass], &pasLayers[j].class[k], NULL); map->layers[i].class[iClass].layer = &map->layers[i]; map->layers[i].class[iClass].type = map->layers[i].type; map->layers[i].numclasses++; iClass++; } Any ideas why this was reversed? Best regards, Bart van den Eijnden ================================= drs. A.J. van den Eijnden adviseur Productteam Applicaties Geo-Informatie Rijkswaterstaat Adviesdienst Geo-informatie en ICT Postbus 5023, 2600 GA Delft Derde Werelddreef 1, 2622 HA Delft Telefoon: (015) 275 75 75 E-mail b.vdeijnden at agi.rws.minvenw.nl ================================= Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From daniel at GEOFOTO.HR Mon Sep 4 01:06:51 2006 From: daniel at GEOFOTO.HR (Daniel Vencler) Date: Mon, 4 Sep 2006 10:06:51 +0200 Subject: GML fid question Message-ID: Hi, is there any way to make postgis oid gml fid? I have tried to use "gml_featureid" "oid" in mapfile, but no luck. Best regards, Daniel Vencler From gur.hanan at PGL.CO.IL Mon Sep 4 02:51:44 2006 From: gur.hanan at PGL.CO.IL (Gur Hanan) Date: Mon, 4 Sep 2006 11:51:44 +0200 Subject: symbol In-Reply-To: A<44FBDE9B.1070205@geofoto.hr> Message-ID: Hi all, I am a new user, and I want to know if there an option in MapServer to use a .lyr file of a layer (from ArcMap), Instead of defining the exactly symbology of the layer in the map file. Gur From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Sep 4 02:03:12 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Mon, 4 Sep 2006 11:03:12 +0200 Subject: symbol Message-ID: No there is not. You can use tools like: -Amein! -ArcMap2SLD to convert your symbology to Mapserver though. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Gur Hanan Verzonden: maandag 4 september 2006 11:52 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] symbol Hi all, I am a new user, and I want to know if there an option in MapServer to use a .lyr file of a layer (from ArcMap), Instead of defining the exactly symbology of the layer in the map file. Gur Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From mapserver at GEOWORLD.DE Mon Sep 4 02:13:25 2006 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Mon, 4 Sep 2006 11:13:25 +0200 Subject: PHP Mapscript and WMS Server In-Reply-To: <44F9B1C4.7090308@pobox.com> Message-ID: Frank, thank you very much for your mail. I'm afraid there is still a problem somewhere. I checked out the latest cvs release and rerun my test script but the "bad lines" at the end are still present. PHP mapscript version is: $Id: php_mapscript.c,v 1.259 2006/08/31 15:34:30 assefa Exp $ Is there's something i could do to further debug this issues? Maybe an other issue. I put together a simple wms server map-file which includes an other wms (demis). When i execute my PHP script with http://localhost/~nicol/mapserver/dev/wxsGetMapCascading.php?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Countries&WIDTH=200&HEIGHT=200&FORMAT=image/png&SRS=EPSG:4326&BBOX=5.86629,47.2736,15.0486,55.0583 the Content-type won't be set correct. Content-type: image/png ?PNG  ... When i execute the same script with the cgi version it works fine and the image appears. http://localhost/cgi-bin/mapserv_49?map=/home/nicol/public_html/mapserver/dev/wmssrvcascading.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Countries&WIDTH=200&HEIGHT=200&FORMAT=image/png&SRS=EPSG:4326&BBOX=5.86629,47.2736,15.0486,55.0583 I tried to set the Content-Type within my PHP script. Sadly this don't change anything. You could find my scripts to reproduce the problem at: http://geoworld.de/wxs/wxs.zip Should i open a bug report on this? Many thank for your assistance Nicol Am Samstag, den 02.09.2006, 12:31 -0400 schrieb Frank Warmerdam: > Nicol Hermann wrote: > > Hi Frank, > > > > thank you very much for the given example. > > I tried your script and in general it works. > > There a two things which are strange. > > > > I tried the following REQUEST > > http://localhost/~nicol/mapserver/dev/wxsGetMap.php?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=flurst&WIDTH=200&HEIGHT=200&FORMAT=image/gif&SRS=EPSG:31467&BBOX=3419615.22636,5523296.90857,3420494.15553,5524175.83774 > > The resulting image contains "bad lines" on the end. > > Here is the output so that you can see what i mean. > > http://geoworld.de/wxs/wxs_output_getmap.gif > > The datasource of this layer is postgresql/postgis. > > Nicol, > > There was a bug with the buffer not being properly resized when > the content type was stripped which is likely what you are seeing. > This is correct now in CVS and should be fixed in the beta2 release. > > > The second thing: > > When i change the outputformat to png (image/png) the image is > > completely broken. > > Has this behaviour something to do with the first issue mentioned? > > I've no idea what might be causing this. > > Best regards, From r.mueller at UNICOMP-BERLIN.DE Mon Sep 4 03:52:17 2006 From: r.mueller at UNICOMP-BERLIN.DE (=?ISO-8859-1?Q?=22R=2E_M=FCller=22?=) Date: Mon, 4 Sep 2006 12:52:17 +0200 Subject: png-tiles doesn't work Message-ID: hi group, has anybody png-tiles as raster-source working with mapserver ? for me (mapserver 4.6) it doesn't work at all (blank screen, just some black dots somewhere). if i convert all my files to gif and recreate the shapefile-index from the worldfiles everything works fine. is this a known bug. is it fixed in later releases ? i'm working with png-output and it works well, so i think its no problem with png in general. regards ronald -- From bartvde at XS4ALL.NL Mon Sep 4 09:45:20 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 4 Sep 2006 18:45:20 +0200 Subject: GetFeatureInfo and text/plain, no attributes shown Message-ID: Hi list, any ideas why my GetFeatureInfo in text/plain does not return any attributes? GML output does not return attributes. I am using 4.10 beta2. Request used: http://localhost/cgi-bin/mapserv.exe?map=/lausanne/mapserver/provinces_of_holland.map&REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=topp:nl-prov&STYLES=default&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:28992&BBOX=-91079.1366906475,300000,391079.136690647,600000&WIDTH=1117&HEIGHT=695&QUERY_LAYERS=topp:nl-prov&X=545&Y=475&info_format=text/plain Response: GetFeatureInfo results: Layer 'topp:nl-prov' Feature 23: MAP file LAYER: LAYER DATA "nl-prov" METADATA OWS_TITLE "Provinces" GML_INCLUDE_ITEMS "all" OWS_SRS "EPSG:4326 EPSG:28992" END NAME "topp:nl-prov" STATUS ON PROJECTION "init=epsg:28992" END TYPE POLYGON DUMP TRUE TEMPLATE "blank.html" CLASS NAME "Provinciegrenzen" STYLE COLOR 255 255 0 OUTLINECOLOR 0 0 0 END END END Thanks in advance. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at XS4ALL.NL Mon Sep 4 10:36:24 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 4 Sep 2006 19:36:24 +0200 Subject: mime type of GetCapabilities response Message-ID: Hi list, did something change with the mime type of a WMS GetCapabilities response? I am not getting back the correct mimetype (the ogc one) anymore using 4.10 beta2. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From warmerdam at POBOX.COM Mon Sep 4 11:54:36 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 4 Sep 2006 14:54:36 -0400 Subject: PHP Mapscript and WMS Server In-Reply-To: <1157361205.4264.19.camel@emil.intranet.gdv.com> Message-ID: Nicol Hermann wrote: > Frank, > > thank you very much for your mail. > I'm afraid there is still a problem somewhere. > I checked out the latest cvs release and rerun my test script but the > "bad lines" at the end are still present. PHP mapscript version is: > $Id: php_mapscript.c,v 1.259 2006/08/31 15:34:30 assefa Exp $ > Is there's something i could do to further debug this issues? > > Maybe an other issue. > I put together a simple wms server map-file which includes an other wms > (demis). When i execute my PHP script with > http://localhost/~nicol/mapserver/dev/wxsGetMapCascading.php?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Countries&WIDTH=200&HEIGHT=200&FORMAT=image/png&SRS=EPSG:4326&BBOX=5.86629,47.2736,15.0486,55.0583 > the Content-type won't be set correct. Nicole, I stand corrected. The problem you are seeing is different than what I thought was going on. When I run your php script at the unix commandline I get the following back: Content-type: text/html X-Powered-By: PHP/4.3.8 ttt9Content-type: image/png ?PNG ... So the problem seems to be that PHP always emits the text/html content type. I don't know how to alter this in PHP, or even if it is possible. But the problem is related to PHP document processing, not mapserver or PHP Mapscript itself. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From bartvde at XS4ALL.NL Mon Sep 4 11:59:05 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 4 Sep 2006 20:59:05 +0200 Subject: PHP Mapscript and WMS Server In-Reply-To: <44FC766C.6090604@pobox.com> Message-ID: You can set the content-type, by using something like: header("Content-type: image/gif"); Frank, you can also try to run php with the -q switch from the command-line to get rid of: Content-type: text/html X-Powered-By: PHP/4.3.8 Best regards, Bart Frank Warmerdam schreef: > Nicol Hermann wrote: >> Frank, >> >> thank you very much for your mail. >> I'm afraid there is still a problem somewhere. >> I checked out the latest cvs release and rerun my test script but the >> "bad lines" at the end are still present. PHP mapscript version is: >> $Id: php_mapscript.c,v 1.259 2006/08/31 15:34:30 assefa Exp $ >> Is there's something i could do to further debug this issues? >> >> Maybe an other issue. >> I put together a simple wms server map-file which includes an other wms >> (demis). When i execute my PHP script with >> http://localhost/~nicol/mapserver/dev/wxsGetMapCascading.php?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Countries&WIDTH=200&HEIGHT=200&FORMAT=image/png&SRS=EPSG:4326&BBOX=5.86629,47.2736,15.0486,55.0583 >> >> the Content-type won't be set correct. > > Nicole, > > I stand corrected. The problem you are seeing is different than what I > thought was going on. When I run your php script at the unix commandline > I get the following back: > > Content-type: text/html > X-Powered-By: PHP/4.3.8 > > ttt9Content-type: image/png > > ?PNG > ... > > So the problem seems to be that PHP always emits the text/html content > type. I don't know how to alter this in PHP, or even if it is possible. > But the problem is related to PHP document processing, not mapserver or > PHP Mapscript itself. > > Best regards, -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From mapserver at GEOWORLD.DE Mon Sep 4 13:21:45 2006 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Mon, 4 Sep 2006 22:21:45 +0200 Subject: PHP Mapscript and WMS Server In-Reply-To: <44FC7779.4070200@xs4all.nl> Message-ID: Bart, thanks for your mail. As i mentioned in my first posting i have tried to set the content-type but this did not change the behaviour. Frank, is it possible that there's is some output before the content-type is set so that the php assume that text content will follow? Nicol Am Montag, den 04.09.2006, 20:59 +0200 schrieb Bart van den Eijnden (OSGIS): > You can set the content-type, by using something like: > > header("Content-type: image/gif"); > > Frank, you can also try to run php with the -q switch from the > command-line to get rid of: > > Content-type: text/html > X-Powered-By: PHP/4.3.8 > > Best regards, > Bart > > Frank Warmerdam schreef: > > Nicol Hermann wrote: > >> Frank, > >> > >> thank you very much for your mail. > >> I'm afraid there is still a problem somewhere. > >> I checked out the latest cvs release and rerun my test script but the > >> "bad lines" at the end are still present. PHP mapscript version is: > >> $Id: php_mapscript.c,v 1.259 2006/08/31 15:34:30 assefa Exp $ > >> Is there's something i could do to further debug this issues? > >> > >> Maybe an other issue. > >> I put together a simple wms server map-file which includes an other wms > >> (demis). When i execute my PHP script with > >> http://localhost/~nicol/mapserver/dev/wxsGetMapCascading.php?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Countries&WIDTH=200&HEIGHT=200&FORMAT=image/png&SRS=EPSG:4326&BBOX=5.86629,47.2736,15.0486,55.0583 > >> > >> the Content-type won't be set correct. > > > > Nicole, > > > > I stand corrected. The problem you are seeing is different than what I > > thought was going on. When I run your php script at the unix commandline > > I get the following back: > > > > Content-type: text/html > > X-Powered-By: PHP/4.3.8 > > > > ttt9Content-type: image/png > > > > ?PNG > > ... > > > > So the problem seems to be that PHP always emits the text/html content > > type. I don't know how to alter this in PHP, or even if it is possible. > > But the problem is related to PHP document processing, not mapserver or > > PHP Mapscript itself. > > > > Best regards, > From clj2289 at GARNET.ACNS.FSU.EDU Mon Sep 4 13:29:01 2006 From: clj2289 at GARNET.ACNS.FSU.EDU (Chris Judd) Date: Mon, 4 Sep 2006 16:29:01 -0400 Subject: TIGER Base map .map file Message-ID: apserver users, Would anyone happen to have a base map mapfile that includes the tiger roads, hydrology and boundary symbology? Do we have a storage place for things like this? It would be a great help. Many thanks, Chris From assefa at DMSOLUTIONS.CA Mon Sep 4 15:00:48 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 4 Sep 2006 18:00:48 -0400 Subject: PHP Mapscript and WMS Server In-Reply-To: <1157401305.5193.11.camel@katrin.anwender.info> Message-ID: Nicole, There at least one way that works when outputting the result of a GetMap request with a png format. The 2nd example on the http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/#php-example. loadparams(); ms_ioinstallstdouttobuffer(); $oMap = ms_newMapobj("../../service/wms.map"); $oMap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); if ($contenttype == 'image/png') header('Content-type: image/png'); ms_iogetStdoutBufferBytes(); ms_ioresethandlers(); ?> Could you try this ? Nicol Hermann wrote: > Bart, > thanks for your mail. > As i mentioned in my first posting i have tried to set the content-type > but this did not change the behaviour. > Frank, is it possible that there's is some output before the > content-type is set so that the php assume that text content will > follow? > > Nicol > > Am Montag, den 04.09.2006, 20:59 +0200 schrieb Bart van den Eijnden > (OSGIS): > >>You can set the content-type, by using something like: >> >>header("Content-type: image/gif"); >> >>Frank, you can also try to run php with the -q switch from the >>command-line to get rid of: >> >>Content-type: text/html >>X-Powered-By: PHP/4.3.8 >> >>Best regards, >>Bart >> >>Frank Warmerdam schreef: >> >>>Nicol Hermann wrote: >>> >>>>Frank, >>>> >>>>thank you very much for your mail. >>>>I'm afraid there is still a problem somewhere. >>>>I checked out the latest cvs release and rerun my test script but the >>>>"bad lines" at the end are still present. PHP mapscript version is: >>>>$Id: php_mapscript.c,v 1.259 2006/08/31 15:34:30 assefa Exp $ >>>>Is there's something i could do to further debug this issues? >>>> >>>>Maybe an other issue. >>>>I put together a simple wms server map-file which includes an other wms >>>>(demis). When i execute my PHP script with >>>>http://localhost/~nicol/mapserver/dev/wxsGetMapCascading.php?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Countries&WIDTH=200&HEIGHT=200&FORMAT=image/png&SRS=EPSG:4326&BBOX=5.86629,47.2736,15.0486,55.0583 >>>> >>>>the Content-type won't be set correct. >>> >>>Nicole, >>> >>>I stand corrected. The problem you are seeing is different than what I >>>thought was going on. When I run your php script at the unix commandline >>>I get the following back: >>> >>>Content-type: text/html >>>X-Powered-By: PHP/4.3.8 >>> >>>ttt9Content-type: image/png >>> >>>?PNG >>>... >>> >>>So the problem seems to be that PHP always emits the text/html content >>>type. I don't know how to alter this in PHP, or even if it is possible. >>>But the problem is related to PHP document processing, not mapserver or >>>PHP Mapscript itself. >>> >>>Best regards, >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at DMSOLUTIONS.CA Mon Sep 4 15:56:07 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 4 Sep 2006 18:56:07 -0400 Subject: GetFeatureInfo and text/plain, no attributes shown In-Reply-To: <44FC5820.3070205@xs4all.nl> Message-ID: Bart, Therre was an additon of layer level metadata wms/ows_include_items and wms/ows_exclude_items to control the text/pain output the same way as the gml output (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1761). Adding "wms_include_items" "all" should output the attributes. Later, Bart van den Eijnden (OSGIS) wrote: > Hi list, > > any ideas why my GetFeatureInfo in text/plain does not return any > attributes? GML output does not return attributes. I am using 4.10 beta2. > > Request used: > http://localhost/cgi-bin/mapserv.exe?map=/lausanne/mapserver/provinces_of_holland.map&REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=topp:nl-prov&STYLES=default&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:28992&BBOX=-91079.1366906475,300000,391079.136690647,600000&WIDTH=1117&HEIGHT=695&QUERY_LAYERS=topp:nl-prov&X=545&Y=475&info_format=text/plain > > > Response: > > GetFeatureInfo results: > > Layer 'topp:nl-prov' > Feature 23: > MAP file LAYER: > > LAYER > DATA "nl-prov" > METADATA > OWS_TITLE "Provinces" > GML_INCLUDE_ITEMS "all" > OWS_SRS "EPSG:4326 EPSG:28992" > END > NAME "topp:nl-prov" > STATUS ON > PROJECTION > "init=epsg:28992" > END > TYPE POLYGON > DUMP TRUE > TEMPLATE "blank.html" > CLASS > NAME "Provinciegrenzen" > STYLE > COLOR 255 255 0 > OUTLINECOLOR 0 0 0 > END > END > END > > Thanks in advance. > > Best regards, > Bart > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From warmerdam at POBOX.COM Mon Sep 4 16:55:29 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 4 Sep 2006 19:55:29 -0400 Subject: PHP Mapscript and WMS Server In-Reply-To: <1157401305.5193.11.camel@katrin.anwender.info> Message-ID: Nicol Hermann wrote: > Bart, > thanks for your mail. > As i mentioned in my first posting i have tried to set the content-type > but this did not change the behaviour. > Frank, is it possible that there's is some output before the > content-type is set so that the php assume that text content will > follow? Nicol, I didn't see anything in my run. I'd suggest just trying the example that Assefa provides and see if that works. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From bartvde at XS4ALL.NL Mon Sep 4 23:26:19 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 5 Sep 2006 08:26:19 +0200 Subject: GetFeatureInfo and text/plain, no attributes shown In-Reply-To: <44FCAF07.1060400@dmsolutions.ca> Message-ID: Hi Assefa, that was it, thanks :-) I only had gml_include_items "all", I now changed it to ows_include_items "all". Best regards, Bart Yewondwossen Assefa schreef: > Bart, > > Therre was an additon of layer level metadata wms/ows_include_items > and wms/ows_exclude_items to control the text/pain output the same way > as the gml output > (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1761). > Adding "wms_include_items" "all" should output the attributes. > > Later, > > > Bart van den Eijnden (OSGIS) wrote: >> Hi list, >> >> any ideas why my GetFeatureInfo in text/plain does not return any >> attributes? GML output does not return attributes. I am using 4.10 >> beta2. >> >> Request used: >> http://localhost/cgi-bin/mapserv.exe?map=/lausanne/mapserver/provinces_of_holland.map&REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=topp:nl-prov&STYLES=default&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:28992&BBOX=-91079.1366906475,300000,391079.136690647,600000&WIDTH=1117&HEIGHT=695&QUERY_LAYERS=topp:nl-prov&X=545&Y=475&info_format=text/plain >> >> >> Response: >> >> GetFeatureInfo results: >> >> Layer 'topp:nl-prov' >> Feature 23: >> MAP file LAYER: >> >> LAYER >> DATA "nl-prov" >> METADATA >> OWS_TITLE "Provinces" >> GML_INCLUDE_ITEMS "all" >> OWS_SRS "EPSG:4326 EPSG:28992" >> END >> NAME "topp:nl-prov" >> STATUS ON >> PROJECTION >> "init=epsg:28992" >> END >> TYPE POLYGON >> DUMP TRUE >> TEMPLATE "blank.html" >> CLASS >> NAME "Provinciegrenzen" >> STYLE >> COLOR 255 255 0 >> OUTLINECOLOR 0 0 0 >> END >> END >> END >> >> Thanks in advance. >> >> Best regards, >> Bart >> > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From mapserver at GEOWORLD.DE Tue Sep 5 04:06:27 2006 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Tue, 5 Sep 2006 13:06:27 +0200 Subject: PHP Mapscript and WMS Server In-Reply-To: <44FCA210.5050609@dmsolutions.ca> Message-ID: Assefa, i tried your script. This one works fine. Many thanks Nicol Am Montag, den 04.09.2006, 18:00 -0400 schrieb Yewondwossen Assefa: > Nicole, > > There at least one way that works when outputting the result of a > GetMap request with a png format. The 2nd example on the > http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/#php-example. > > dl("php_mapscript_4.10.0.dll"); > > $request = ms_newowsrequestobj(); > > $request->loadparams(); > > ms_ioinstallstdouttobuffer(); > > $oMap = ms_newMapobj("../../service/wms.map"); > > $oMap->owsdispatch($request); > > $contenttype = ms_iostripstdoutbuffercontenttype(); > > if ($contenttype == 'image/png') > header('Content-type: image/png'); > > ms_iogetStdoutBufferBytes(); > > ms_ioresethandlers(); > > ?> > > Could you try this ? > > Nicol Hermann wrote: > > Bart, > > thanks for your mail. > > As i mentioned in my first posting i have tried to set the content-type > > but this did not change the behaviour. > > Frank, is it possible that there's is some output before the > > content-type is set so that the php assume that text content will > > follow? > > > > Nicol > > > > Am Montag, den 04.09.2006, 20:59 +0200 schrieb Bart van den Eijnden > > (OSGIS): > > > >>You can set the content-type, by using something like: > >> > >>header("Content-type: image/gif"); > >> > >>Frank, you can also try to run php with the -q switch from the > >>command-line to get rid of: > >> > >>Content-type: text/html > >>X-Powered-By: PHP/4.3.8 > >> > >>Best regards, > >>Bart > >> > >>Frank Warmerdam schreef: > >> > >>>Nicol Hermann wrote: > >>> > >>>>Frank, > >>>> > >>>>thank you very much for your mail. > >>>>I'm afraid there is still a problem somewhere. > >>>>I checked out the latest cvs release and rerun my test script but the > >>>>"bad lines" at the end are still present. PHP mapscript version is: > >>>>$Id: php_mapscript.c,v 1.259 2006/08/31 15:34:30 assefa Exp $ > >>>>Is there's something i could do to further debug this issues? > >>>> > >>>>Maybe an other issue. > >>>>I put together a simple wms server map-file which includes an other wms > >>>>(demis). When i execute my PHP script with > >>>>http://localhost/~nicol/mapserver/dev/wxsGetMapCascading.php?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Countries&WIDTH=200&HEIGHT=200&FORMAT=image/png&SRS=EPSG:4326&BBOX=5.86629,47.2736,15.0486,55.0583 > >>>> > >>>>the Content-type won't be set correct. > >>> > >>>Nicole, > >>> > >>>I stand corrected. The problem you are seeing is different than what I > >>>thought was going on. When I run your php script at the unix commandline > >>>I get the following back: > >>> > >>>Content-type: text/html > >>>X-Powered-By: PHP/4.3.8 > >>> > >>>ttt9Content-type: image/png > >>> > >>>?PNG > >>>... > >>> > >>>So the problem seems to be that PHP always emits the text/html content > >>>type. I don't know how to alter this in PHP, or even if it is possible. > >>>But the problem is related to PHP document processing, not mapserver or > >>>PHP Mapscript itself. > >>> > >>>Best regards, > >> > > > > From dmorissette at MAPGEARS.COM Tue Sep 5 05:42:43 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 5 Sep 2006 08:42:43 -0400 Subject: GetFeatureInfo and text/plain, no attributes shown In-Reply-To: <44FD188B.8070108@xs4all.nl> Message-ID: Bart, Assefa, FYI I just added the following notes to the MIGRATION_GUIDE.TXT (in 4.10 CVS): ---------------------------------------------------- OGC Web Mapping Service (WMS) ---------------------------------------------------- WMS GetFeatureInfo in text/plain format --------------------------------------- Before MapServer 4.10, WMS GetFeatureInfo output in text/plain format used to always return the values of *all* attributes for the selected shapes in a given layer and there was no way to control which attributes would be returned. This was a problem for WMS server administrators who needed to control the list of attributes to return or to hide some attributes from the underlying dataset. Starting with MapServer 4.10, the behavior of text/plain GetFeatureInfo output has been brought in sync with that of GML output: by default no attributes are returned unless the wms_include_items and wms_exclude_items layer-level metadata are used. (See bug 1761) For more details see the gml_include_items and gml_exclude_items layer object metadata docs in the WMS Server HOWTO at http://mapserver.gis.umn.edu/docs/howto/wms_server/#layer-object-metadata The GML output is controlled with gml_include_items and gml_exclude_items. The text/plain output is controlled with wms_include_items and wms_exclude_items. Both GML and text/plain can also be configured using a common pair of ows_include_items and ows_exclude_items layer-level metadata entries. ---------------------------------------------------- OGC Web Feature Service (WFS) ---------------------------------------------------- Requirement for gml_featureid ----------------------------- The WFS 1.0.0 specification states that the 'fid' attribute on GML features returned in response to a GetFeature is required (see bug 1759). Since MapServer 4.8 it was already possible to specify the attribute to use as fid using the "gml_featureid" metadata, but that was not a requirement. MapServer 4.10 has been modified to produce a warning in the GetCapabilities and GetFeature output if the gml_featureid metadata is not set or if the item that it refers to does not exist in the layer (see bugs 1781 and 1782). Bart van den Eijnden (OSGIS) wrote: > Hi Assefa, > > that was it, thanks :-) > > I only had gml_include_items "all", I now changed it to > ows_include_items "all". > > Best regards, > Bart > > Yewondwossen Assefa schreef: > >> Bart, >> >> Therre was an additon of layer level metadata wms/ows_include_items >> and wms/ows_exclude_items to control the text/pain output the same way >> as the gml output >> (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1761). >> Adding "wms_include_items" "all" should output the attributes. >> >> Later, >> >> >> Bart van den Eijnden (OSGIS) wrote: >> >>> Hi list, >>> >>> any ideas why my GetFeatureInfo in text/plain does not return any >>> attributes? GML output does not return attributes. I am using 4.10 >>> beta2. >>> >>> Request used: >>> http://localhost/cgi-bin/mapserv.exe?map=/lausanne/mapserver/provinces_of_holland.map&REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=topp:nl-prov&STYLES=default&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:28992&BBOX=-91079.1366906475,300000,391079.136690647,600000&WIDTH=1117&HEIGHT=695&QUERY_LAYERS=topp:nl-prov&X=545&Y=475&info_format=text/plain >>> >>> >>> Response: >>> >>> GetFeatureInfo results: >>> >>> Layer 'topp:nl-prov' >>> Feature 23: >>> MAP file LAYER: >>> >>> LAYER >>> DATA "nl-prov" >>> METADATA >>> OWS_TITLE "Provinces" >>> GML_INCLUDE_ITEMS "all" >>> OWS_SRS "EPSG:4326 EPSG:28992" >>> END >>> NAME "topp:nl-prov" >>> STATUS ON >>> PROJECTION >>> "init=epsg:28992" >>> END >>> TYPE POLYGON >>> DUMP TRUE >>> TEMPLATE "blank.html" >>> CLASS >>> NAME "Provinciegrenzen" >>> STYLE >>> COLOR 255 255 0 >>> OUTLINECOLOR 0 0 0 >>> END >>> END >>> END >>> >>> Thanks in advance. >>> >>> Best regards, >>> Bart >>> >> >> > > -- Daniel Morissette http://www.mapgears.com/ From dmorissette at MAPGEARS.COM Tue Sep 5 05:50:05 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 5 Sep 2006 08:50:05 -0400 Subject: mime type of GetCapabilities response In-Reply-To: <44FC6418.2030406@xs4all.nl> Message-ID: Bart van den Eijnden (OSGIS) wrote: > Hi list, > > did something change with the mime type of a WMS GetCapabilities response? > > I am not getting back the correct mimetype (the ogc one) anymore using > 4.10 beta2. > The MIME type was text/xml before WMS 1.1.0 and it has changed to application/vnd.ogc.wms_xml in WMS 1.1.0 ... and if I remember correctly in WMS 1.3.0 we are back to text/xml (but MapServer doesn't support 1.3.0). So with MapServer (and any WMS): WMS 1.0.0 to 1.0.7 should return Content-type: text/xml WMS 1.1.0/1.1.1 should return Content-type: application/vnd.ogc.wms_xml Is this not what you get? Daniel -- Daniel Morissette http://www.mapgears.com/ From bartvde at XS4ALL.NL Tue Sep 5 06:03:25 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 5 Sep 2006 15:03:25 +0200 Subject: mime type of GetCapabilities response In-Reply-To: <44FD727D.3000309@mapgears.com> Message-ID: Hi Daniel, I am expecting application/vnd.ogc.wms_xml but I don't get it, at least Firefox does not show, and it does with Geoserver/Deegree. I get a download dialog with only a Save button and then get mapserv.exe saved. The download dialog shows no content-type at all. Best regards, Bart > Bart van den Eijnden (OSGIS) wrote: >> Hi list, >> >> did something change with the mime type of a WMS GetCapabilities >> response? >> >> I am not getting back the correct mimetype (the ogc one) anymore using >> 4.10 beta2. >> > > The MIME type was text/xml before WMS 1.1.0 and it has changed to > application/vnd.ogc.wms_xml in WMS 1.1.0 ... and if I remember correctly > in WMS 1.3.0 we are back to text/xml (but MapServer doesn't support > 1.3.0). > > So with MapServer (and any WMS): > > WMS 1.0.0 to 1.0.7 should return Content-type: text/xml > > WMS 1.1.0/1.1.1 should return Content-type: application/vnd.ogc.wms_xml > > Is this not what you get? > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > From bartvde at XS4ALL.NL Tue Sep 5 06:08:57 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 5 Sep 2006 15:08:57 +0200 Subject: mime type of GetCapabilities response In-Reply-To: <20689.145.50.39.8.1157461405.squirrel@webmail.xs4all.nl> Message-ID: Let me clarify, the file downloaded is not the Mapserver executable, it does contain the GetCapabilities XML, but the file is always named mapserv.exe by default. With the OGC mimetype I would get a save as dialog and I could pick my own filenames. Best regards, Bart > Hi Daniel, > > I am expecting application/vnd.ogc.wms_xml but I don't get it, at least > Firefox does not show, and it does with Geoserver/Deegree. > > I get a download dialog with only a Save button and then get mapserv.exe > saved. The download dialog shows no content-type at all. > > Best regards, > Bart > >> Bart van den Eijnden (OSGIS) wrote: >>> Hi list, >>> >>> did something change with the mime type of a WMS GetCapabilities >>> response? >>> >>> I am not getting back the correct mimetype (the ogc one) anymore using >>> 4.10 beta2. >>> >> >> The MIME type was text/xml before WMS 1.1.0 and it has changed to >> application/vnd.ogc.wms_xml in WMS 1.1.0 ... and if I remember correctly >> in WMS 1.3.0 we are back to text/xml (but MapServer doesn't support >> 1.3.0). >> >> So with MapServer (and any WMS): >> >> WMS 1.0.0 to 1.0.7 should return Content-type: text/xml >> >> WMS 1.1.0/1.1.1 should return Content-type: application/vnd.ogc.wms_xml >> >> Is this not what you get? >> >> Daniel >> -- >> Daniel Morissette >> http://www.mapgears.com/ >> > From dmorissette at MAPGEARS.COM Tue Sep 5 06:16:25 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 5 Sep 2006 09:16:25 -0400 Subject: mime type of GetCapabilities response In-Reply-To: <20689.145.50.39.8.1157461405.squirrel@webmail.xs4all.nl> Message-ID: Bart van den Eijnden (OSGIS) wrote: > Hi Daniel, > > I am expecting application/vnd.ogc.wms_xml but I don't get it, at least > Firefox does not show, and it does with Geoserver/Deegree. > > I get a download dialog with only a Save button and then get mapserv.exe > saved. The download dialog shows no content-type at all. > I just tried again (using wget in order to see the returned MIME type) with the latest mapserv from CVS and for VERSION=1.1.0 I get application/vnd.ogc.wms_xml. Is it possible that you are getting a service exception from your server (application/vnd.ogc.se_xml)? I'd suggest that you try using a tool such as wget that will report the MIME type of the response. Daniel -- Daniel Morissette http://www.mapgears.com/ From ollerery at ENGR.ORST.EDU Tue Sep 5 04:55:11 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 5 Sep 2006 07:55:11 -0400 Subject: Converting Map Projection meters to decimal degrees In-Reply-To: <44FC0561.3030503@unicomp-berlin.de> Message-ID: I am using NASA's ISIS software to get data from their Planetary Data System. I have already created a base map using the Proj4 projection 4326. But i am not sure how to convert an ISIS simpleCylindrical projection (units in meters) to a Proj4 projection (units in decimal degrees). Thanks, -Ryan Proj4: <4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs <> ISIS: Group = Mapping ProjectionName = SimpleCylindrical TargetName = Mars EquatorialRadius = 3396190.0 PolarRadius = 3376200.0 LatitudeType = Planetocentric LongitudeDirection = PositiveEast LongitudeDomain = 360 MinimumLatitude = -1.3695743239693 MaximumLatitude = -1.0943032756341 MinimumLongitude = 356.0083751075 MaximumLongitude = 356.09326944036 PixelResolution = 4.3931469117577 CenterLongitude = 356.05082227393 Scale = 13492.537061455 TrueScaleLatitude = 0.0 UpperLeftCornerX = -2517.2731804372 UpperLeftCornerY = -64860.421005191 LineProjectionOffset = 14764.5 SampleProjectionOffset = -572.5 End_Group End From lucamarle at GMAIL.COM Tue Sep 5 10:22:34 2006 From: lucamarle at GMAIL.COM (luca marletta) Date: Tue, 5 Sep 2006 19:22:34 +0200 Subject: gradient in legend Message-ID: Hi list, I'm taking advantage of the gradient functionality in class for the first time and it works great CLASS STYLE COLORRANGE 255 255 255 100 0 0 # bianco a rosso scuro DATARANGE 100.0 30000.0 RANGEITEM "res_mf" END STYLE #COLOR 175 175 190 OUTLINECOLOR 45 45 110 END END Just whit this class I define all. here the example http://pmapper.beopen.it/?dg=areeurbane&me=1485979.4421698,5019630.983702,1551289.1569025998,5058787.2606346&language=it But how can I have the range describe into legend? There is no-more NAME for each class from it would take the definitions? Could someone give me an hint, please? thanks luca -- luca marletta www.beopen.it From ollerery at ENGR.ORST.EDU Tue Sep 5 11:02:47 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 5 Sep 2006 11:02:47 -0700 Subject: Creating a Custom EPSG Entry In-Reply-To: <7.0.1.0.2.20060829151034.036ea010@utas.edu.au> Message-ID: I am working with some Mars datasets that i want to display using MapServer so of course i need to use a projection specified in the proj4 EPSG file, but i am not totally sure how to create my own custom projection. Below are the projection parameters for the data that i am using. I think that the correct EPSG entry would be close to: *+proj*=???? +a=3396190 +b=3396190 any help would be great. ProjectionName = SimpleCylindrical CenterLongitude = 354.60611161722 TargetName = Mars EquatorialRadius = 3396190.0 PolarRadius = 3376200.0 LatitudeType = Planetocentric LongitudeDirection = PositiveEast LongitudeDomain = 360 MinimumLatitude = -2.0994573340362 MaximumLatitude = -1.81536402836 MinimumLongitude = 354.56314275078 MaximumLongitude = 354.64908048367 UpperLeftCornerX = -2549.6954683585 UpperLeftCornerY = -107601.70179235 PixelResolution = 4.5530276220687 Scale = 13018.743228352 TrueScaleLatitude = 0.0 LineProjectionOffset = 23633.5 SampleProjectionOffset = -559.5 From bartvde at XS4ALL.NL Tue Sep 5 11:08:22 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 5 Sep 2006 20:08:22 +0200 Subject: WFS GetCapabilities 1.0.0 not valid Message-ID: Hi list, using version 4.10 beta2, the WFS GetCapabilities (1.0.0 version) response is not valid. Problems: 1) is not known in the 1.0.0 schema so should be omitted 2) GML3 in not allowed as result format Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at XS4ALL.NL Tue Sep 5 11:13:56 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 5 Sep 2006 20:13:56 +0200 Subject: mime type of GetCapabilities response In-Reply-To: <44FD78A9.808@mapgears.com> Message-ID: Hi Daniel, I used curl and the content-type is correct. I have no idea though why Firefox treats Mapserver differently than Geoserver. The headers returned by Mapserver are: < HTTP/1.1 200 OK < Date: Tue, 05 Sep 2006 18:10:33 GMT < Server: Apache/2.0.58 (Win32) < Transfer-Encoding: chunked < Content-Type: application/vnd.ogc.wms_xml The headers returned by Geoserver are: < HTTP/1.1 200 OK < Server: Apache-Coyote/1.1 < Set-Cookie: JSESSIONID=C01EF6B83F302FEFA489212BBBDFB195; Path=/geoserver < Content-Type: application/vnd.ogc.wms_xml < Transfer-Encoding: chunked < Date: Tue, 05 Sep 2006 18:11:53 GMT Best regards, Bart Daniel Morissette schreef: > Bart van den Eijnden (OSGIS) wrote: >> Hi Daniel, >> >> I am expecting application/vnd.ogc.wms_xml but I don't get it, at least >> Firefox does not show, and it does with Geoserver/Deegree. >> >> I get a download dialog with only a Save button and then get mapserv.exe >> saved. The download dialog shows no content-type at all. >> > > I just tried again (using wget in order to see the returned MIME type) > with the latest mapserv from CVS and for VERSION=1.1.0 I get > application/vnd.ogc.wms_xml. > > Is it possible that you are getting a service exception from your > server (application/vnd.ogc.se_xml)? > > I'd suggest that you try using a tool such as wget that will report > the MIME type of the response. > > Daniel -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From warmerdam at POBOX.COM Tue Sep 5 11:40:32 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 5 Sep 2006 14:40:32 -0400 Subject: gradient in legend In-Reply-To: <8b502010609051022h4eb762ebreae13d331205275d@mail.gmail.com> Message-ID: luca marletta wrote: > Hi list, > I'm taking advantage of the gradient functionality in class for the > first time and it works great > > CLASS > STYLE > COLORRANGE 255 255 255 100 0 0 # bianco a rosso > scuro > DATARANGE 100.0 30000.0 > RANGEITEM "res_mf" > END > STYLE > #COLOR 175 175 190 > OUTLINECOLOR 45 45 110 > END > END > > Just whit this class I define all. > here the example > http://pmapper.beopen.it/?dg=areeurbane&me=1485979.4421698,5019630.983702,1551289.1569025998,5058787.2606346&language=it > > > But how can I have the range describe into legend? > There is no-more NAME for each class from it would take the definitions? > > Could someone give me an hint, please? Luca, To the best of my knowledge, we haven't yet implemented support for color range bars in legends. So you are pretty much stuck having to fake it somehow. Sorry... Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Tom.Kralidis at EC.GC.CA Tue Sep 5 12:08:46 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 5 Sep 2006 15:08:46 -0400 Subject: WFS GetCapabilities 1.0.0 not valid Message-ID: > > using version 4.10 beta2, the WFS GetCapabilities (1.0.0 > version) response is not valid. > > Problems: > > 1) is not known in the 1.0.0 schema so > should be omitted > > > > > > 2) GML3 in not allowed as result format > > > > > Because we added GML3L0 as a format, we added these formats for Capabilities to differentiate btw GML2 and GML3. However, OGC:WFS 1.0.0 is hardcoded. The WFS 1.0.0 specs only define XMLSCHEMA as a description language for DescribeFeatureType, as well as only GML2 for GetFeature. So we're in a bit of a quandry, because we support WFS 1.0.0, GML2 AND GML3L0. But GML3L0 is only legal in WFS 1.0.0 (which uses OWS Common 1.0.0, which abstracts constructs like outputformats [soft typing] as opposed to defining hardcoded element names for same). If we want to be compliant to OGC:WFS 1.0.0, which must remove the GML3 refs in Capabilities. They can still be around in the interface, just not advertise as such in Capabilities XML so as not to break the schema. Comments? ..Tom From bartvde at XS4ALL.NL Tue Sep 5 12:12:20 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 5 Sep 2006 21:12:20 +0200 Subject: WFS GetCapabilities 1.0.0 not valid In-Reply-To: <2576812186CDD411BF1500508B6DCE950F653E8F@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Hi Tom, I would be in favour of obeying the WFS 1.0.0 schema. So leave the elements out, but support them " in the background". Best regards, Bart Kralidis,Tom [Burlington] schreef: >> using version 4.10 beta2, the WFS GetCapabilities (1.0.0 >> version) response is not valid. >> >> Problems: >> >> 1) is not known in the 1.0.0 schema so >> should be omitted >> >> >> >> >> >> 2) GML3 in not allowed as result format >> >> >> >> >> >> > > Because we added GML3L0 as a format, we added these formats for > Capabilities to differentiate btw GML2 and GML3. However, OGC:WFS 1.0.0 > is hardcoded. The WFS 1.0.0 specs only define XMLSCHEMA as a > description language for DescribeFeatureType, as well as only GML2 for > GetFeature. > > So we're in a bit of a quandry, because we support WFS 1.0.0, GML2 AND > GML3L0. But GML3L0 is only legal in WFS 1.0.0 (which uses OWS Common > 1.0.0, which abstracts constructs like outputformats [soft typing] as > opposed to defining hardcoded element names for same). > > If we want to be compliant to OGC:WFS 1.0.0, which must remove the GML3 > refs in Capabilities. They can still be around in the interface, just > not advertise as such in Capabilities XML so as not to break the schema. > > Comments? > > ..Tom > > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From Tom.Kralidis at EC.GC.CA Tue Sep 5 12:11:56 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 5 Sep 2006 15:11:56 -0400 Subject: WFS GetCapabilities 1.0.0 not valid Message-ID: > So we're in a bit of a quandry, because we support WFS 1.0.0, > GML2 AND GML3L0. But GML3L0 is only legal in WFS 1.0.0 > (which uses OWS Common 1.0.0, which abstracts constructs like > outputformats [soft typing] as opposed to defining hardcoded > element names for same). > Sorry, I meant GML3L0 is only legal in WFS 1.1.0, NOT WFS 1.0.0. From Tom.Kralidis at EC.GC.CA Tue Sep 5 12:14:22 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 5 Sep 2006 15:14:22 -0400 Subject: WFS GetCapabilities 1.0.0 not valid Message-ID: I would have to agree. Though I love the new GML support, I think it is more important to validate against the OGC WFS 1.0.0 schemas. Does anyone object to this (looking at the other OGC developers and Steve who did the GML3L0 implementation :)) ? If not, I will submit a bug. ..Tom > -----Original Message----- > From: Bart van den Eijnden (OSGIS) [mailto:bartvde at xs4all.nl] > Sent: 05 September, 2006 3:12 PM > To: Kralidis,Tom [Burlington] > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WFS GetCapabilities 1.0.0 not valid > > Hi Tom, > > I would be in favour of obeying the WFS 1.0.0 schema. > > So leave the elements out, but support them " in the background". > > Best regards, > Bart > > Kralidis,Tom [Burlington] schreef: > >> using version 4.10 beta2, the WFS GetCapabilities (1.0.0 > >> version) response is not valid. > >> > >> Problems: > >> > >> 1) is not known in the 1.0.0 schema so should be > >> omitted > >> > >> > >> > >> > >> > >> 2) GML3 in not allowed as result format > >> > >> > >> > >> > >> > >> > > > > Because we added GML3L0 as a format, we added these formats for > > Capabilities to differentiate btw GML2 and GML3. However, OGC:WFS > > 1.0.0 is hardcoded. The WFS 1.0.0 specs only define XMLSCHEMA as a > > description language for DescribeFeatureType, as well as > only GML2 for > > GetFeature. > > > > So we're in a bit of a quandry, because we support WFS > 1.0.0, GML2 AND > > GML3L0. But GML3L0 is only legal in WFS 1.0.0 (which uses > OWS Common > > 1.0.0, which abstracts constructs like outputformats [soft > typing] as > > opposed to defining hardcoded element names for same). > > > > If we want to be compliant to OGC:WFS 1.0.0, which must remove the > > GML3 refs in Capabilities. They can still be around in the > interface, > > just not advertise as such in Capabilities XML so as not to > break the schema. > > > > Comments? > > > > ..Tom > > > > > > > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > From lucamarle at GMAIL.COM Tue Sep 5 12:21:54 2006 From: lucamarle at GMAIL.COM (luca marletta) Date: Tue, 5 Sep 2006 21:21:54 +0200 Subject: gradient in legend In-Reply-To: <44FDC4A0.8020601@pobox.com> Message-ID: Thanks anyway for this great feature. I like it a lot. luca On 9/5/06, Frank Warmerdam wrote: > luca marletta wrote: > > Hi list, > > I'm taking advantage of the gradient functionality in class for the > > first time and it works great > > > > CLASS > > STYLE > > COLORRANGE 255 255 255 100 0 0 # bianco a rosso > > scuro > > DATARANGE 100.0 30000.0 > > RANGEITEM "res_mf" > > END > > STYLE > > #COLOR 175 175 190 > > OUTLINECOLOR 45 45 110 > > END > > END > > > > Just whit this class I define all. > > here the example > > http://pmapper.beopen.it/?dg=areeurbane&me=1485979.4421698,5019630.983702,1551289.1569025998,5058787.2606346&language=it > > > > > > But how can I have the range describe into legend? > > There is no-more NAME for each class from it would take the definitions? > > > > Could someone give me an hint, please? > > Luca, > > To the best of my knowledge, we haven't yet implemented support for > color range bars in legends. So you are pretty much stuck having to > fake it somehow. > > Sorry... > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > -- luca marletta www.beopen.it From john.cole at UAI.COM Tue Sep 5 13:18:37 2006 From: john.cole at UAI.COM (John Cole) Date: Tue, 5 Sep 2006 15:18:37 -0500 Subject: MS4W with 4.10 beta 2? Message-ID: Is there a ms4w with 4.10 beta 2 in it available? Thanks, John This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From jmckenna at DMSOLUTIONS.CA Tue Sep 5 13:58:33 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 5 Sep 2006 16:58:33 -0400 Subject: MS4W with 4.10 beta 2? In-Reply-To: <76758090F8686C47A44B6FF52514A1D3079098CA@hermes.uai.int> Message-ID: Yes. Download one of the base MS4W files (1.5.5 or 2.1), and then download the "MapServer version 4.10.0-beta2 Upgrade" addon found down the downloads page. jeff John Cole wrote: > Is there a ms4w with 4.10 beta 2 in it available? > > Thanks, > > John -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From ollerery at ENGR.ORST.EDU Tue Sep 5 16:59:57 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 5 Sep 2006 16:59:57 -0700 Subject: converting from degrees to meters using cs2cs In-Reply-To: <44FDBBC7.8040902@engr.orst.edu> Message-ID: I want to convert from longlat coordinates to lcc but i keep getting the following error: Given map extent is invalid. Check that it is in the form: minx, miny, maxx, maxy To get my new map extent i am using: >cs2cs +proj=longlat +a=3396190 +rf=169.8944476026241 +lon_0=0 +no_defs +to +proj=lcc +a=3396190 +b=3396190 +units=m -179 -89 -120680927.21 57506773.12 -19983.82 179 89 310182.75 6770294.70 -19983.82 i am then setting my extent to: -120680927.21 57506773.12 310182.75 6770294.70 what could i be doing wrong? and why does cs2cs return * when i use 180 or 90 as my input parameters? I hope that was clear, that you for any help that you can provide. -Ryan From warmerdam at POBOX.COM Tue Sep 5 18:15:50 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 5 Sep 2006 21:15:50 -0400 Subject: converting from degrees to meters using cs2cs In-Reply-To: <44FE0F7D.3000809@engr.orst.edu> Message-ID: Ryan Ollerenshaw wrote: > I want to convert from longlat coordinates to lcc but i keep getting the > following error: > > Given map extent is invalid. Check that it is in the form: minx, miny, > maxx, maxy > > To get my new map extent i am using: > > >cs2cs +proj=longlat +a=3396190 +rf=169.8944476026241 +lon_0=0 > +no_defs +to > +proj=lcc +a=3396190 +b=3396190 +units=m > > -179 -89 > -120680927.21 57506773.12 -19983.82 > 179 89 > 310182.75 6770294.70 -19983.82 > > i am then setting my extent to: -120680927.21 57506773.12 310182.75 > 6770294.70 > > what could i be doing wrong? and why does cs2cs return * when i use 180 > or 90 as my input parameters? > > I hope that was clear, that you for any help that you can provide. Ryan, Some projections cannot be used with any location on the earth - either due to numerical inaccuracy as you venture far from the origin, or because some areas of the earth are "over the horizon" or otherwise not in the domain (range?) of the function. In this case the value for -179,-89 clearly has a crazy Y value. 57 million meters is greater than the circumference of the earth (roughly 40 million meters). So, I think you are just going to have to pick a more appropriate region to start with. All that aside, if you look at your extents, the so called minimum is around 57 million compared to 6.7 million for the maximum y. So MapServer is complaining because "min y" is greater than "max y". If you are confident you have the right LCC projection definition (you haven't given any of the expected LCC projection parameters - so I don't know what defaults you are getting), then you could just use a more modest starting extent to get a "good chunk" of the world. Something like EXTENT -5000000 -5000000 5000000 500000. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From adams at TERRESTRIS.DE Wed Sep 6 01:08:44 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 6 Sep 2006 10:08:44 +0200 Subject: Mapserver and IPTC Standard Message-ID: Hi List! Does anybody have an idea, if mapserver is able to write metadata-fields (ideally after the IPTC Standard) in the header of the generated images?? Thanks in advance and looking forward meeting many people from this list in Lausanne next week! Till -- ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From toni at SIGTE.UDG.ES Tue Sep 5 23:46:45 2006 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Wed, 6 Sep 2006 08:46:45 +0200 Subject: configuring WMS service In-Reply-To: <44FE0F7D.3000809@engr.orst.edu> Message-ID: HI all, I've reading the documentation about configuring a mapserver as a WMS server. Everything seems to be working fine except for the fact that the LAYERS parameter (in the url) is not working properly. In the map file I just have two layers: salt (.dgn file), and girona (.shp file with poligons) . Both with status off in the map file The problem is that the girona layer is always on the image. As you can see in the URL bellow the layers parameter is just asking for the salt layer. http://sigserver4.udg.es/cgi-bin/salt_carto?request=GetMap&VERSION=1.1.0&SERVICE=WMS&SRS=EPSG:23031&BBOX=482840.46367545397,4646726.721942619,484238.53218965203,4648124.7904568175&WIDTH=600&HEIGHT=600&LAYERS=salt&STYLES=&FORMAT=image/gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&EXCEPTION=INIMAGE Here is the girona layer in the map file. LAYER NAME "girona" STATUS ON TYPE POLYGON DATA base MINSCALE 2600 METADATA WMS_TITLE "Base Girona" WMS_SRS "EPSG:23031" END PROJECTION "init=epsg:23031" END CLASS NAME "Girona" OUTLINECOLOR 128 128 128 COLOR 225 225 185 END END From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Sep 6 01:32:12 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Wed, 6 Sep 2006 10:32:12 +0200 Subject: configuring WMS service Message-ID: Which Mapserver version? Can you post your complete MAP file, most specifically what is the name of your MAP object? Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens toni hern?ndez Verzonden: woensdag 6 september 2006 8:47 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] configuring WMS service HI all, I've reading the documentation about configuring a mapserver as a WMS server. Everything seems to be working fine except for the fact that the LAYERS parameter (in the url) is not working properly. In the map file I just have two layers: salt (.dgn file), and girona (.shp file with poligons) . Both with status off in the map file The problem is that the girona layer is always on the image. As you can see in the URL bellow the layers parameter is just asking for the salt layer. http://sigserver4.udg.es/cgi-bin/salt_carto?request=GetMap&VERSION=1.1.0&SERVICE=WMS&SRS=EPSG:23031&BBOX=482840.46367545397,4646726.721942619,484238.53218965203,4648124.7904568175&WIDTH=600&HEIGHT=600&LAYERS=salt&STYLES=&FORMAT=image/gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&EXCEPTION=INIMAGE Here is the girona layer in the map file. LAYER NAME "girona" STATUS ON TYPE POLYGON DATA base MINSCALE 2600 METADATA WMS_TITLE "Base Girona" WMS_SRS "EPSG:23031" END PROJECTION "init=epsg:23031" END CLASS NAME "Girona" OUTLINECOLOR 128 128 128 COLOR 225 225 185 END END Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From MattCross at UK.IBM.COM Wed Sep 6 04:20:49 2006 From: MattCross at UK.IBM.COM (Matthew Cross1) Date: Wed, 6 Sep 2006 12:20:49 +0100 Subject: Display of Symbols using mapscript Message-ID: Hello there, My first time on the list and I wonder if someone could answer this question. We have a java (v1.4.2) mapscript application built on MS4W 1.5.1 with Mapserver 4.8.3. We are trying to display symbolised points. The application populates a mapObj and then draws an output file in PNG format. Our problem is that the PNG image does not show the selected symbol but simply displays a coloured pixel. However, if we load the map file which was created by a .save call into a browser then the symbol is displayed correctly. Our code is as follows: mapObj map = new mapObj(null); map.setStatus(mapscriptConstants.MS_ON); map.setName("JustDrawMe"); map.setProjection("init=epsg:27700"); map.setSymbolSet("/PATH/symLib.sym"); map.setFontSet("/PATH/fonts.txt"); //Create layer layerObj layer2 = new layerObj(map); layer2.setName("TEST_POINT"); layer2.setType(MS_LAYER_TYPE.MS_LAYER_POINT); layer2.setStatus(mapscriptConstants.MS_ON); layer2.setTransform(0); //Add Point shapeObj shapePt = new shapeObj(0); lineObj line2 = new lineObj(); line2.add(new pointObj(150,150,0)); shapePt.add(line2); shapePt.setType(1); layer2.addFeature(shapePt); classObj mapclass2 = new classObj(layer2); mapclass2.setName("TEST CLASS"); styleObj style2 = new styleObj(mapclass2); style2.setOutlinecolor(new colorObj(0,0,255,2)); style2.setColor(new colorObj(0,0,255,2)); style2.setWidth(2); style2.setSize(20); style2.setAngle(0); style2.setAntialias(0); style2.setSymbolname("CrossGeometryV"); map.setSize(600, 600); map.setExtent(0, 0, 300, 300); map.setTransparent(mapscriptConstants.MS_OFF); map.selectOutputFormat("PNG"); /* Saves map file */ map.save(OUT_PATH + MAP_FILE_OUT); /* Saves image */ map.draw().save(OUT_PATH + IMAGE_OUT,map); Hope someone can help this beginner Matt Cross -------------- next part -------------- An HTML attachment was scrubbed... URL: From shoaib at NOMAD-LABS.COM Wed Sep 6 06:34:27 2006 From: shoaib at NOMAD-LABS.COM (Shoaib Burq) Date: Wed, 6 Sep 2006 23:34:27 +1000 Subject: foss4g aussi + kiwi meetup Message-ID: Hi all, I would be interested in having a get together with folks from this (Australia + NZ) corner of the Pacific Ocean at the FOSS4G 2006. Of course it would be nice if there are also people from some of the smaller islands :) The idea was to think of way to promote OSGeo activities here. Feel free to mail me off list if you are interested. cheers Shoaib Burq -- http://nomad-labs.com From David.Fawcett at STATE.MN.US Wed Sep 6 07:01:29 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 6 Sep 2006 09:01:29 -0500 Subject: Using JOIN for querying In-Reply-To: A<00f301c6cfb3$88310f50$155a820a@WSG204Giga> Message-ID: Greg, To me, the query is returning what I would expect from a database query. Formatting the results as you want them seems more like a templating or data formatting issue, not a query issue. If you are using a javascript or custom interface, you should be able to format the results the way that you want. Does anyone who has done more with MapServer templates know how/if this could be done with template magic? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Greg Luker Sent: Sunday, September 03, 2006 6:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Using JOIN for querying Hi David, (sorry for the long post) David Fawcett said: >I haven't been following this thread too closely, but are you sure that >you want to use the unmaintained MyGIS option, or do you really want to >use OGR with MySQL support enabled? I would go with OGR unless there >is something in MyGIS that doesn't exist in OGR. Thanks for your suggestions. I agree that I would be better off with OGR - and I have: ************** LAYER NAME "pts" TYPE POINT STATUS OFF CONNECTIONTYPE OGR CONNECTION ' MYSQL:sites,user=user1,password=*****,host=11.109.9.10,po rt=3 306,tables=feature;site SELECT site_id, site_name, site_easting_other, site_northing_other, feature_id, feature_name FROM site s JOIN feature f ON s.site_id = f.feature_site_id wkbPoint ' DATA "exact" TOLERANCE 5 PROJECTION "proj=utm" "south" "zone=56" END #projection CLASS NAME "Test Site - pts" TEMPLATE "pquery.html" SYMBOL "Dot" SIZE 5 COLOR 0 0 255 END #class HEADER "pquery_header.html" FOOTER "pquery_footer.html" END #layer ********************* Using a map mode of nquery, the template pquery.html produces: Site Name Feature site1_name feature1_name site1_name feature2_name site1_name feature3_name site2_name feature4_name site2_name feature5_name site3_name feature6_name site3_name feature7_name ... but what I want is: site1_name feature1_name feature2_name feature3_name site2_name feature4_name feature5_name site3_name feature6_name feature7_name ... I can't seem to get this using OGR (I don't know the correct syntax) so I thought I'd try to get what I wanted by using MyGIS because somebody helped me with the syntax. >Here is Frank's page for OGR/MySQL: >http://ogr.maptools.org/drv_mysql.html >Here is a description from Howard's blog: >http://hobu.biz/index_html/mysql_ogr Thankyou for these URLs. I have been to them both and, while they are helpful, I still don't know the right OGR syntax for what I'm trying to do. Could you help with the correct OGR syntax? >Also, look at the HowTos, there are a few items on MySQL. Could you please give a URL for these HowTos? I have Google-searched and asked on this list for weeks, but unfortunately I have not solved my "OGR/MySQL/query/multiple tables/join" question, though I have received related help from several on this list (thanks). Thanks, Greg Luker. From jsimantov at YAHOO.COM Wed Sep 6 07:21:16 2006 From: jsimantov at YAHOO.COM (Joseph Simantov) Date: Wed, 6 Sep 2006 07:21:16 -0700 Subject: foss4g - Oil and Gas In-Reply-To: Message-ID: Hi All, I would be very interested in meeting folks active in the Oil and Gas industry at the FOSS4G 2006 (No, I am not looking for a job!). The aim is to be able to exchange ideas in view of promoting the use of FOSS in that sector. Please feel free to mail me off list if you find the idea interesting. Joseph Simantov __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From warmerdam at POBOX.COM Wed Sep 6 09:20:52 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 6 Sep 2006 12:20:52 -0400 Subject: Mapserver and IPTC Standard In-Reply-To: <44FE820C.7020802@terrestris.de> Message-ID: Till Adams wrote: > Hi List! > > Does anybody have an idea, if mapserver is able to write metadata-fields > (ideally after the IPTC Standard) > in the header of the generated images?? > > Thanks in advance and looking forward meeting many people from this list > in Lausanne next week! Till, MapServer makes no use of metadata in TIFF datasets. Nor does it provide any mechanism to write metadata when returning results in TIFF format. GDAL does support capturing some special fields as metadata, and can write them back to these tags, as well as create a general GDAL metadata tag to hold anything else. However, GDAL has no support for reading or writing IPTC tags. I gather from recent discussions on the libtiff mailing list that IPTC isn't even that easy to work with within libtiff. So, basically, if you want IPTC expect to have to do/fund some development. For any metadata access you will likely need to do some custom mapscript with calls to GDAL bindings for metadata access. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From ollerery at ENGR.ORST.EDU Wed Sep 6 09:49:46 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 6 Sep 2006 09:49:46 -0700 Subject: World Files In-Reply-To: <44FE6ED5.106@sigte.udg.es> Message-ID: How do i display a raster dataset with a world file? I have tried to use gdaltindex but it seems that it cannot read a world file. I see that world files are mentioned in the MapServer documentation but nothing is said about how to display images with them using a MapServer mapfile. Thanks, -Ryan From warmerdam at POBOX.COM Wed Sep 6 10:10:45 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 6 Sep 2006 13:10:45 -0400 Subject: World Files In-Reply-To: <44FEFC2A.6080208@engr.orst.edu> Message-ID: Ryan Ollerenshaw wrote: > How do i display a raster dataset with a world file? I have tried to > use gdaltindex but it seems that it cannot read a world file. I see > that world files are mentioned in the MapServer documentation but > nothing is said about how to display images with them using a MapServer > mapfile. Ryan, Generally speaking gdaltindex and mapserver do support world files. There may be some specific issues with some formats and extensions though. Sometimes it helps to use the extension .wld for the world file. What raster file format are you using? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Steve.Lime at DNR.STATE.MN.US Wed Sep 6 10:38:02 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 6 Sep 2006 12:38:02 -0500 Subject: WFS GetCapabilities 1.0.0 not valid In-Reply-To: <2576812186CDD411BF1500508B6DCE950F653E97@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Nice frigging standard, real flexible. Tom, we worked around this by creating our own version of the WFS schema with the extra elements defined (at Peter's suggestion). I guess I don't have a better alternative at the moment. Easy enough to supress those lines and I have done so just now (will be fixed in beta 3). You can still ask for GML 3 and related schema as before... Steve >>> "Kralidis,Tom [Burlington]" 9/5/2006 2:14:22 PM >>> I would have to agree. Though I love the new GML support, I think it is more important to validate against the OGC WFS 1.0.0 schemas. Does anyone object to this (looking at the other OGC developers and Steve who did the GML3L0 implementation :)) ? If not, I will submit a bug. ..Tom > -----Original Message----- > From: Bart van den Eijnden (OSGIS) [mailto:bartvde at xs4all.nl] > Sent: 05 September, 2006 3:12 PM > To: Kralidis,Tom [Burlington] > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WFS GetCapabilities 1.0.0 not valid > > Hi Tom, > > I would be in favour of obeying the WFS 1.0.0 schema. > > So leave the elements out, but support them " in the background". > > Best regards, > Bart > > Kralidis,Tom [Burlington] schreef: > >> using version 4.10 beta2, the WFS GetCapabilities (1.0.0 > >> version) response is not valid. > >> > >> Problems: > >> > >> 1) is not known in the 1.0.0 schema so should be > >> omitted > >> > >> > >> > >> > >> > >> 2) GML3 in not allowed as result format > >> > >> > >> > >> > >> > >> > > > > Because we added GML3L0 as a format, we added these formats for > > Capabilities to differentiate btw GML2 and GML3. However, OGC:WFS > > 1.0.0 is hardcoded. The WFS 1.0.0 specs only define XMLSCHEMA as a > > description language for DescribeFeatureType, as well as > only GML2 for > > GetFeature. > > > > So we're in a bit of a quandry, because we support WFS > 1.0.0, GML2 AND > > GML3L0. But GML3L0 is only legal in WFS 1.0.0 (which uses > OWS Common > > 1.0.0, which abstracts constructs like outputformats [soft > typing] as > > opposed to defining hardcoded element names for same). > > > > If we want to be compliant to OGC:WFS 1.0.0, which must remove the > > GML3 refs in Capabilities. They can still be around in the > interface, > > just not advertise as such in Capabilities XML so as not to > break the schema. > > > > Comments? > > > > ..Tom > > > > > > > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > From bob.basques at CI.STPAUL.MN.US Wed Sep 6 10:47:33 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 6 Sep 2006 12:47:33 -0500 Subject: WFS GetCapabilities 1.0.0 not valid In-Reply-To: Message-ID: This has been an interesting thread. I wonder, does it make any sense to add in a MAPSERVER specific GetCapabilities request mechanism? This would be for MapServer user only, I've asked about this in the past, but always been told to use the GetCapabilities method, now that there is something in there that can't be reported that way, I'm poncing on the opportunity. :c) Doesn't need to break anything, I'm just looking for a way to add in Capabilities (specific to MapServer, I know there are other capabilities as well). I just always thought there should be something like this for MapServer the application, not just MapServer the Compliant one. bobb Steve Lime wrote: > Nice frigging standard, real flexible. Tom, we worked around this by > creating our own > version of the WFS schema with the extra elements defined (at Peter's > suggestion). I > guess I don't have a better alternative at the moment. Easy enough to > supress those > lines and I have done so just now (will be fixed in beta 3). > > You can still ask for GML 3 and related schema as before... > > Steve > > >>>> "Kralidis,Tom [Burlington]" 9/5/2006 >>>> > 2:14:22 PM >>> > I would have to agree. Though I love the new GML support, I think it > is > more important to validate against the OGC WFS 1.0.0 schemas. > > Does anyone object to this (looking at the other OGC developers and > Steve who did the GML3L0 implementation :)) ? If not, I will submit a > bug. > > ..Tom > > > >> -----Original Message----- >> From: Bart van den Eijnden (OSGIS) [mailto:bartvde at xs4all.nl] >> Sent: 05 September, 2006 3:12 PM >> To: Kralidis,Tom [Burlington] >> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] WFS GetCapabilities 1.0.0 not >> > valid > >> Hi Tom, >> >> I would be in favour of obeying the WFS 1.0.0 schema. >> >> So leave the elements out, but support them " in the background". >> >> Best regards, >> Bart >> >> Kralidis,Tom [Burlington] schreef: >> >>>> using version 4.10 beta2, the WFS GetCapabilities (1.0.0 >>>> version) response is not valid. >>>> >>>> Problems: >>>> >>>> 1) is not known in the 1.0.0 schema so should be >>>> > > >>>> omitted >>>> >>>> >>>> >>>> >>>> >>>> 2) GML3 in not allowed as result format >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> Because we added GML3L0 as a format, we added these formats for >>> Capabilities to differentiate btw GML2 and GML3. However, OGC:WFS >>> > > >>> 1.0.0 is hardcoded. The WFS 1.0.0 specs only define XMLSCHEMA as a >>> > > >>> description language for DescribeFeatureType, as well as >>> >> only GML2 for >> >>> GetFeature. >>> >>> So we're in a bit of a quandry, because we support WFS >>> >> 1.0.0, GML2 AND >> >>> GML3L0. But GML3L0 is only legal in WFS 1.0.0 (which uses >>> >> OWS Common >> >>> 1.0.0, which abstracts constructs like outputformats [soft >>> >> typing] as >> >>> opposed to defining hardcoded element names for same). >>> >>> If we want to be compliant to OGC:WFS 1.0.0, which must remove the >>> > > >>> GML3 refs in Capabilities. They can still be around in the >>> >> interface, >> >>> just not advertise as such in Capabilities XML so as not to >>> >> break the schema. >> >>> Comments? >>> >>> ..Tom >>> >>> >>> >>> >>> >>> >> -- >> Bart van den Eijnden >> OSGIS, Open Source GIS >> http://www.osgis.nl >> >> >> > > From szekerest at GMAIL.COM Wed Sep 6 11:20:45 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 6 Sep 2006 20:20:45 +0200 Subject: Display of Symbols using mapscript In-Reply-To: Message-ID: Hi, http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1835 Best Regards, Tamas 2006/9/6, Matthew Cross1 : > > Hello there, > > My first time on the list and I wonder if someone could answer this > question. > > We have a java (v1.4.2) mapscript application built on MS4W 1.5.1 with > Mapserver 4.8.3. We are trying to display symbolised points. The application > populates a mapObj and then draws an output file in PNG format. Our problem > is that the PNG image does not show the selected symbol but simply displays > a coloured pixel. However, if we load the map file which was created by a > .save call into a browser then the symbol is displayed correctly. > > Our code is as follows: > > mapObj map = new mapObj(null); > map.setStatus(mapscriptConstants.MS_ON); > map.setName("JustDrawMe"); > map.setProjection("init=epsg:27700"); > map.setSymbolSet("/PATH/symLib.sym"); > map.setFontSet("/PATH/fonts.txt"); > > //Create layer > layerObj layer2 = new layerObj(map); > layer2.setName("TEST_POINT"); > layer2.setType(MS_LAYER_TYPE.MS_LAYER_POINT); > layer2.setStatus(mapscriptConstants.MS_ON); > layer2.setTransform(0); > > //Add Point > shapeObj shapePt = new shapeObj(0); > lineObj line2 = new lineObj(); > line2.add(new pointObj(150,150,0)); > shapePt.add(line2); > shapePt.setType(1); > layer2.addFeature(shapePt); > > classObj mapclass2 = new classObj(layer2); > mapclass2.setName("TEST CLASS"); > styleObj style2 = new styleObj(mapclass2); > style2.setOutlinecolor(new colorObj(0,0,255,2)); > style2.setColor(new colorObj(0,0,255,2)); > style2.setWidth(2); > style2.setSize(20); > style2.setAngle(0); > style2.setAntialias(0); > style2.setSymbolname("CrossGeometryV"); > > map.setSize(600, 600); > map.setExtent(0, 0, 300, 300); > map.setTransparent(mapscriptConstants.MS_OFF); > map.selectOutputFormat("PNG"); > > /* Saves map file */ > map.save(OUT_PATH + MAP_FILE_OUT); > > /* Saves image */ > map.draw().save(OUT_PATH + IMAGE_OUT,map); > > > Hope someone can help this beginner > > > Matt Cross From bob.basques at CI.STPAUL.MN.US Wed Sep 6 12:09:48 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 6 Sep 2006 14:09:48 -0500 Subject: gradient in legend In-Reply-To: Message-ID: luca marletta wrote: > Thanks anyway for this great feature. I like it a lot. > Can this be sent in via the CGI, I tried a quick test but just get the polygons back, no error. Does this need to use a really new version? We're on a beta from last week some time. Thanks bobb > luca > > On 9/5/06, Frank Warmerdam wrote: > >> luca marletta wrote: >> >>> Hi list, >>> I'm taking advantage of the gradient functionality in class for the >>> first time and it works great >>> >>> CLASS >>> STYLE >>> COLORRANGE 255 255 255 100 0 0 # bianco a rosso >>> scuro >>> DATARANGE 100.0 30000.0 >>> RANGEITEM "res_mf" >>> END >>> STYLE >>> #COLOR 175 175 190 >>> OUTLINECOLOR 45 45 110 >>> END >>> END >>> >>> Just whit this class I define all. >>> here the example >>> http://pmapper.beopen.it/?dg=areeurbane&me=1485979.4421698,5019630.983702,1551289.1569025998,5058787.2606346&language=it >>> >>> >>> But how can I have the range describe into legend? >>> There is no-more NAME for each class from it would take the definitions? >>> >>> Could someone give me an hint, please? >>> >> Luca, >> >> To the best of my knowledge, we haven't yet implemented support for >> color range bars in legends. So you are pretty much stuck having to >> fake it somehow. >> >> Sorry... >> >> Best regards, >> -- >> ---------------------------------------+-------------------------------------- >> I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam >> and watch the world go round - Rush | President OSGeo, http://osgeo.org >> >> >> > > > From earevaloch at GMAIL.COM Wed Sep 6 12:57:22 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Wed, 6 Sep 2006 14:57:22 -0500 Subject: sorry .....outside subject Message-ID: help list..... as inserted registries from a file with extension DBF to a table of a data base postgres thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From snunez at CONARE.AC.CR Wed Sep 6 12:41:54 2006 From: snunez at CONARE.AC.CR (Santiago =?ISO-8859-1?Q?N=FA=F1ez?= Corrales) Date: Wed, 6 Sep 2006 13:41:54 -0600 Subject: Help: forging a MapServer configuration Message-ID: Hello everyone, First, greetings from Costa Rica. Recently we have been working on areal imaging and we need to implement a web-mapping service. This service is oriented to a highly variable range of users, including academia and any different individuals/organizations. Apart from vectorial data, we need to add collections of raster images. Last four years NASA has been giving us help in aereal imaging, and we count up to 16.000 raster photos (master, hyperspectral, multispectral) of about 11Km X 11Km each in extension. It is very important for us to know possible limitations, as well as get suggestions about a hardware platform that can give a decent performance. Another important consideration is that users should have the possibility to include their data and produce customized maps. This service is expected to grow to a middle/high demand into six to twelve months approximately. We are in the process of buying hardware, and we want to maximize efficiency and as always, keep cost controlled. The objective is to obtain an estimate of the server configuration, specially in terms of CPU, memory and HD. Another question would be how to manage image navigation in terms of preprocessing and file size. Any ideas on this? Thanks Santiago N??ez Corrales Researcher National Center for High Technology Costa Rica -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucamarle at GMAIL.COM Wed Sep 6 14:24:58 2006 From: lucamarle at GMAIL.COM (luca marletta) Date: Wed, 6 Sep 2006 23:24:58 +0200 Subject: gradient in legend In-Reply-To: <44FF1CFC.2080200@ci.stpaul.mn.us> Message-ID: On 9/6/06, Bob Basques wrote: > luca marletta wrote: > > Thanks anyway for this great feature. I like it a lot. > > > Can this be sent in via the CGI, I tried a quick test but just get the > polygons back, no error. Sorry, could you be more clear? We was talking about legend support for COLORRANGE I figure it as something like scale bar, on map, with the 2 colors, gradient and figures Are we talking about same topic? :-) luca > Does this need to use a really new version? > > We're on a beta from last week some time. > > Thanks > > bobb -- luca marletta www.beopen.it From pcreso at PCRESO.COM Wed Sep 6 15:00:17 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Wed, 6 Sep 2006 15:00:17 -0700 Subject: Help: forging a MapServer configuration In-Reply-To: <1157571715.5386.10.camel@localhost> Message-ID: --- Santiago N??????ez Corrales wrote: > Hello everyone, > > > First, greetings from Costa Rica. Recently we have been working on areal > imaging and we need to implement a web-mapping service. This service is > oriented to a highly variable range of users, including academia and any > different individuals/organizations. Hi Santiago, My mapserver experience is relatively little, but I & some co-workers have played with it on several platforms over the last year or so. 64bit Linux on AMD64/Opteron cpus with as much memory and as fast a disk setup as you can afford has worked MUCH faster for me than other alternatives. 32bit Linux is second, and any Windows setup is a very distinct third. Intel cpu's were consistently slower than AMD, and showed less benefit from moving to a 64 bit Linux. I'd guess there are load & configuration issues around these, which would impact on the actual numbers, but I'll back these comparisons, at least for my applications :-) FWIW, for my main application I have about 8Gb vector data in a Postgres/Postgis database, 2.5Gb of shapefiles and 3Gb of imagery sitting behind mapserver. Cheers, Brent Wood From ollerery at ENGR.ORST.EDU Wed Sep 6 17:22:29 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 6 Sep 2006 17:22:29 -0700 Subject: MapServer and World Files In-Reply-To: <20060906220018.61208.qmail@web33209.mail.mud.yahoo.com> Message-ID: I have two world files that are associated with two different .pngs that should be very far apart, 50,000 meters according to the world files, but MapServer is rendering them one just a few meters apart, does anyone know why this might be? World file 1: 4.553027622068700 0.000000000000000 0.000000000000000 -4.553027622068700 -2547.418954547465546 -107603.978306161036016 World file 2: 2.891044962554800 0.000000000000000 0.000000000000000 -2.891044962554800 -2976.330788950122496 -65781.391555490277824 Here is the pgrinfo command on the shapefile that was created, as you can see the extent only covers a small area > ogrinfo -al -so moc_pds_test.shp INFO: Open of `moc_pds_test.shp' using driver `ESRI Shapefile' successful. Layer name: moc_pds_test Geometry: Polygon Feature Count: 2 Extent: (-2977.776311, -124443.350966) - (2974.885266, -65779.946033) Layer SRS WKT: (unknown) location: String (255.0) From dmorissette at MAPGEARS.COM Wed Sep 6 21:37:43 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 7 Sep 2006 00:37:43 -0400 Subject: MapServer 4.10.0-beta3 Released Message-ID: Hi All, MapServer 4.10.0-beta3 is now available and can be downloaded at http://mapserver.gis.umn.edu/download/beta This should be the last beta before the first release candidate scheduled for September 27th, 1 week after the FOSS4G conference. As usual please report issues via bugzilla, and for those interested in the complete 4.10 release plan, see http://mapserver.gis.umn.edu/development/release_plans/mapserver_4_10/ The lisst of changes since beta2 is included below. Daniel Version 4.10.0-beta3 (2006-09-06) --------------------------------- - Web Map Context use format metadata when formatlist not available. (bug 1723) - Web Map Context boolean values true/false now interpreted. (bug 1692) - Added support for MULTIPOLYGON, MULTILINESTRING, and MULTIPOINT in msShapeFromWKT() when going through OGR (i.e. GEOS disabled) (bug 1891) - Fixed MapScript getExpressionString() that was failing on expressions longer that 256 chars (SWIG) and 512 chars (PHP). (bug 1428) - [WMSSLD] use Title of Rule if Name not present (bug 1889) - Fixed syntax error (for visual c++) in mapimagemap.c. - Fixed mapgeos.c problems with multipoint and multilinestring WKT (bug 1897). - Implemented translation via OGR to WKT for multipoint, multiline and multipolygon (bug 1618) From adams at TERRESTRIS.DE Thu Sep 7 00:01:24 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Thu, 7 Sep 2006 09:01:24 +0200 Subject: Mapserver and IPTC Standard In-Reply-To: <44FEF564.3050308@pobox.com> Message-ID: Dear Frank, thanks for this reply. I take this to our customer and see what he is disposed to do. See you next week! Till Frank Warmerdam schrieb: > Till Adams wrote: > >> Hi List! >> >> Does anybody have an idea, if mapserver is able to write >> metadata-fields (ideally after the IPTC Standard) >> in the header of the generated images?? >> >> Thanks in advance and looking forward meeting many people from this >> list in Lausanne next week! > > > Till, > > MapServer makes no use of metadata in TIFF datasets. Nor does it > provide any mechanism to write metadata when returning results in TIFF > format. > > GDAL does support capturing some special fields as metadata, and can > write > them back to these tags, as well as create a general GDAL metadata tag to > hold anything else. However, GDAL has no support for reading or writing > IPTC tags. I gather from recent discussions on the libtiff mailing list > that IPTC isn't even that easy to work with within libtiff. > > So, basically, if you want IPTC expect to have to do/fund some > development. > For any metadata access you will likely need to do some custom mapscript > with calls to GDAL bindings for metadata access. > > Best regards, -- ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From Jukka.Rahkonen at MMMTIKE.FI Thu Sep 7 00:04:20 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 7 Sep 2006 10:04:20 +0300 Subject: MapServer and World Files Message-ID: Hi, I have never worked with image files having their origo at negative coordinates, but perhaps your problem is due to that? Maybe you should flip the signs in world files, like this: World file 1: - 4.553027622068700 0.000000000000000 0.000000000000000 4.553027622068700 -2547.418954547465546 -107603.978306161036016 I'm sorry if my idea is all wrong. -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Ryan Ollerenshaw L?hetetty: to 7.9.2006 3:22 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] MapServer and World Files I have two world files that are associated with two different .pngs that should be very far apart, 50,000 meters according to the world files, but MapServer is rendering them one just a few meters apart, does anyone know why this might be? World file 1: 4.553027622068700 0.000000000000000 0.000000000000000 -4.553027622068700 -2547.418954547465546 -107603.978306161036016 World file 2: 2.891044962554800 0.000000000000000 0.000000000000000 -2.891044962554800 -2976.330788950122496 -65781.391555490277824 Here is the pgrinfo command on the shapefile that was created, as you can see the extent only covers a small area > ogrinfo -al -so moc_pds_test.shp INFO: Open of `moc_pds_test.shp' using driver `ESRI Shapefile' successful. Layer name: moc_pds_test Geometry: Polygon Feature Count: 2 Extent: (-2977.776311, -124443.350966) - (2974.885266, -65779.946033) Layer SRS WKT: (unknown) location: String (255.0) From mats.elfstrom at TELIA.COM Thu Sep 7 00:12:58 2006 From: mats.elfstrom at TELIA.COM (=?ISO-8859-1?Q?Mats_Elfstr=F6m?=) Date: Thu, 7 Sep 2006 09:12:58 +0200 Subject: Virtualization Message-ID: Hi List! I am quite new to this list so forgive me if I am asking the obvious. Does anyone know of a downloadable ready made virtual machine for Mapserver? It would have to be Linux - based of course, but that would be no problem for me. And preferably for the VM player. Best regards, Mats.E From trondmm-mapserver at CRUSADERS.NO Thu Sep 7 00:18:47 2006 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Thu, 7 Sep 2006 09:18:47 +0200 Subject: Dimensions in mapserver Message-ID: Hi. I'm using mapserver as a frontend for other WMS-servers, and I was wondering how I can get mapserver to output proper values for the dimensions in the output from GetCapabilities. There are several metadata variables that can be set for time (wms_time and wms_timeextent seems to be the most relevant for my use), but I can't find any for elevation or userdefined dimensions. At the moment, I'm only using "elevation", but I'm going to need depth and pressure as well. Should I just add elevation=%elevation%&dim_depth=%dim_depth%&dim_pressure=%dim_pressure%& to my connectionstring, and find some other way to provide the valid ranges of the available dimensions to the client? -- Trond Michelsen From adams at TERRESTRIS.DE Thu Sep 7 00:26:39 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Thu, 7 Sep 2006 09:26:39 +0200 Subject: Virtualization In-Reply-To: <28996946.1157613178855.JavaMail.tomcat@pne-ps2-sn2> Message-ID: Dear Mats, we do not have really a "virtual machine" but a bootable Lin on Win Iso image: "GDIDevl" Get it from here: http://www.terrestris.de/hp/en/downloads.php And follow the install instructions, regards, Till Mats Elfstr?m schrieb: >Hi List! > >I am quite new to this list so forgive me if I am asking the obvious. >Does anyone know of a downloadable ready made virtual machine for >Mapserver? > >It would have to be Linux - based of course, but that would be no >problem for me. And preferably for the VM player. > >Best regards, Mats.E > > -- ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From perrygeo at GMAIL.COM Thu Sep 7 00:47:10 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Thu, 7 Sep 2006 00:47:10 -0700 Subject: Virtualization In-Reply-To: <28996946.1157613178855.JavaMail.tomcat@pne-ps2-sn2> Message-ID: Mats, On 9/7/06, Mats Elfstr?m wrote: > I am quite new to this list so forgive me if I am asking the obvious. > Does anyone know of a downloadable ready made virtual machine for > Mapserver? There's a promissing vmware virtual gis machine at http://www.vmware.com/vmtn/appliances/directory/187 I've never tried it but it looks nice. If you're looking for an easy way to get started w/mapserver on linux you can try FGS. There are a few gis-centric linux distros like HostGIS Linux and GIS-Knoppix. On windows there is ms4w. -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From stefan.schwarzer at GRID.UNEP.CH Thu Sep 7 01:12:34 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 7 Sep 2006 10:12:34 +0200 Subject: Set new LayerDrawingOrder Message-ID: Hi there, I am running a mixture of pre-defined map file configuration layers and some additional ones created dynamically via mapscript. Now, I would like to change the layer order from time to time. I saw that there a couple of commands like movelayerup and the layerdrawingorder, but I don't really see how they would be useful. In principle, I would like to access layer after layer by name (not by index number), to define the new order. Any way I can do this? Thanks for any advice, Stefan _______________________________________ Stefan Schwarzer GIS & Data Management UNEP/DEWA/GRID-Europe Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Internet: http://geodata.grid.unep.ch/ _______________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schwarzer at GRID.UNEP.CH Thu Sep 7 01:27:40 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 7 Sep 2006 10:27:40 +0200 Subject: Mapscript Re-Projection : Calculating zooms Message-ID: I asked this question a couple of weeks back. But nobody answered. I can't imagine that I am the only one dealing with user-chosen projections and zooms. Can someone give me a hint to deal with it? I am not too sure how to handle the following request(s) (by the same user): 1) the first map in the browser shows up in the original projection, i.e. geographic 2) now the user changes to say Mollweide, and request a redraw of the map 3) the reprojection is being done in the background via the two lines mentioned below, the map displayed in the browser now in global view and Mollweide projection 4) the user now makes a second request - either adding a layer or by zooming in So, now the incoming extent coordinates (imgext) are like this: -18040095.70 -9020047.85 18040095.70 9020047.85 instead of -180 -90 180 90 I have now the possibility to - calculate the values (in meter) back into DD - do the zoom in - and project the map again into Mollweide I probably would use something like this $mollweide=ms_newprojectionObj("proj=moll,lon_0=0,x_0=0,y_0=0" ); $newproj = ms_newprojectionObj ("proj=longlat,ellps=WGS84,datum=WGS84,no_defs" ); $oRect= ms_newRectObj(); $oRect->setextent(-18040095.70, -9020047.85, 18040095.70, 9020047.85); $oRect->project($mollweide,$newproj); $map->setextent( $oRect->minx, $oRect->miny, $oRect->maxx, $oRect- >maxy ); and then reproject it again into Mollweide? Seems rather "cumbersome".... Stefan From listuser at HERZSYS.DE Thu Sep 7 02:20:30 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Thu, 7 Sep 2006 11:20:30 +0200 Subject: GetLegendGraphic without label Message-ID: Hello, is there a way for WMS server to create a legend graphic without having the label included? I saw that the client can define a rule to get only the symbol but can't this also be done on server side? The problem is that the created image is much bigger than the size hints in the getCapabilities because of the label. The client who consumes the service use the size hint for the legend graphic and label it itself so the symbol is not identifiable. Any ideas? Thanks in advance Norbert From bartvde at XS4ALL.NL Thu Sep 7 03:08:31 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 7 Sep 2006 12:08:31 +0200 Subject: GetLegendGraphic without label In-Reply-To: <44FFE45E.7070907@herzsys.de> Message-ID: Hi Norbert, I have run into this problem as well. I'm afraid there is no solution currently. Apparently in WMS 1.3 width and height for LegendURL are now optional. So that way the server can advertize the image without specifying the width and the height, simply because it does not know of the size before-hand. This will instruct the client to inspect the image to determine the size. Best regards, Bart > Hello, > > is there a way for WMS server to create a legend graphic without having > the label included? I saw that the client can define a rule to get only > the symbol but can't this also be done on server side? > > The problem is that the created image is much bigger than the size hints > in the getCapabilities because of the label. The client who consumes the > service use the size hint for the legend graphic and label it itself so > the symbol is not identifiable. > > Any ideas? > > Thanks in advance > Norbert > From porath at WEB.DE Thu Sep 7 03:37:19 2006 From: porath at WEB.DE (H. Porath) Date: Thu, 7 Sep 2006 12:37:19 +0200 Subject: missing bounding boxes in wms getcapabilities Message-ID: Hi list, we are offering spatial several reference systems in our mapfile by using: "wms_srs" "EPSG:31467 EPSG:31466 EPSG:31468 EPSG:31469 EPSG:25832 EPSG:4326" We are missing bounding box tags for each spatial reference system for at least the root layer in the corresponding wms getcapabilities. We know that this is an optional tag regarding to the wms specification. Is it possible to generate these bounding boxes in the capabilities with mapserver? WMS Clients sometimes use them. Regards Holger Porath __________________________________________________________________________ Erweitern Sie FreeMail zu einem noch leistungsst?rkeren E-Mail-Postfach! Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131 From mario.basa at GMAIL.COM Thu Sep 7 03:55:25 2006 From: mario.basa at GMAIL.COM (Mario Basa) Date: Thu, 7 Sep 2006 19:55:25 +0900 Subject: Java Mapscript with Japanese Encoding In-Reply-To: <75b4b93e0609010339t206ded20nf2610756f2f20a2c@mail.gmail.com> Message-ID: Umberto, I finally got it to work now with Shift-JIS. It turns out that there was something wrong with my environment (to get sjis recognized in RHEL4, see this http://www.mland.jp/~fedora/mlbbs/mlbbs.cgi?mode=res&mo=34&namber=34&space=0&page=0&no=0 ). Attached is a screenshot of QueryByAttribute sample application using Kanji characters. It is kind of awkward to change LANG environment for each encoding, but it works. Thanks. Mario. On 9/1/06, Umberto Nicoletti wrote: > Mario, > the attached patch will make ms print on stdio the search string that > has reached the C-layer of mapserver. Output is verbose. > It should help you debug where the problem lies. > > Regards, > Umberto > > On 9/1/06, Mario Basa wrote: > > Umberto, > > > > Thanks for the offer. I was really thinking of sending data for > > testing the other day, but it occured to me that your environment > > might not be capable of handling double-byte kanji characters. > > > > I guess we'll test QueryByAttributeUnicode from here. > > > > Mario. > > > > > > On 9/1/06, Umberto Nicoletti wrote: > > > Mario, > > > if you send me a sample shapefile, map and search string to test > > > against QueryByAttributeUnicode I'm willing to look into this. > > > Also, file an issue to bugzilla. > > > > > > Umberto > > > > > > > > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: mapscript-sjis.png Type: image/png Size: 17162 bytes Desc: not available URL: From bartvde at XS4ALL.NL Thu Sep 7 03:56:01 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 7 Sep 2006 12:56:01 +0200 Subject: missing bounding boxes in wms getcapabilities In-Reply-To: <1153092450@web.de> Message-ID: No this is not possible right now. Mapserver output's the only for the LAYER's PROJECTION. I would suggest you file an enhancement bug for this. Best regards, Bart > Hi list, > > we are offering spatial several reference systems in our mapfile by using: > > "wms_srs" "EPSG:31467 EPSG:31466 EPSG:31468 EPSG:31469 > EPSG:25832 EPSG:4326" > > We are missing bounding box tags for each spatial reference system for at > least the root layer in the corresponding wms getcapabilities. We know > that this is an optional tag regarding to the wms specification. Is it > possible to generate these bounding boxes in the capabilities with > mapserver? WMS Clients sometimes use them. > > Regards > > Holger Porath > __________________________________________________________________________ > Erweitern Sie FreeMail zu einem noch leistungsst?rkeren E-Mail-Postfach! > Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131 > > From listuser at HERZSYS.DE Thu Sep 7 05:14:25 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Thu, 7 Sep 2006 14:14:25 +0200 Subject: GetLegendGraphic without label In-Reply-To: <25163.145.50.39.8.1157623711.squirrel@webmail.xs4all.nl> Message-ID: Hi Bart, thanks for the info. Perhaps I found a solution I tried to put: wms_style, wms_style__legendurl_href ... in the wms server's mapfile. For the wms_style__legendurl_href I added &RULE=[classname]. I'm not sure if this is the way the client acts but if I take the legendurl from the capabilities directly it gives me the image without label in the right dimension. The other way to change the size of the image in the capabilities would work too but it's much more difficult because this depends on the size of the label. Regards Norbert Bart van den Eijnden (OSGIS) schrieb: > Hi Norbert, > > I have run into this problem as well. I'm afraid there is no solution > currently. > > Apparently in WMS 1.3 width and height for LegendURL are now optional. So > that way the server can advertize the image without specifying the width > and the height, simply because it does not know of the size before-hand. > This will instruct the client to inspect the image to determine the size. > > Best regards, > Bart > > >> Hello, >> >> is there a way for WMS server to create a legend graphic without having >> the label included? I saw that the client can define a rule to get only >> the symbol but can't this also be done on server side? >> >> The problem is that the created image is much bigger than the size hints >> in the getCapabilities because of the label. The client who consumes the >> service use the size hint for the legend graphic and label it itself so >> the symbol is not identifiable. >> >> Any ideas? >> >> Thanks in advance >> Norbert >> >> > > > > > From umberto.nicoletti at GMAIL.COM Thu Sep 7 05:44:01 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 7 Sep 2006 14:44:01 +0200 Subject: Java Mapscript with Japanese Encoding In-Reply-To: <8efeb4a80609070355y1bd65bd0m34afc100330bba9e@mail.gmail.com> Message-ID: Excellent! Umberto On 9/7/06, Mario Basa wrote: > Umberto, > > I finally got it to work now with Shift-JIS. It turns out that there > was something wrong with my environment (to get sjis recognized in > RHEL4, see this > http://www.mland.jp/~fedora/mlbbs/mlbbs.cgi?mode=res&mo=34&namber=34&space=0&page=0&no=0 > ). > > Attached is a screenshot of QueryByAttribute sample application using > Kanji characters. It is kind of awkward to change LANG environment for > each encoding, but it works. > > Thanks. > > Mario. > > > > > > On 9/1/06, Umberto Nicoletti wrote: > > Mario, > > the attached patch will make ms print on stdio the search string that > > has reached the C-layer of mapserver. Output is verbose. > > It should help you debug where the problem lies. > > > > Regards, > > Umberto > > > > On 9/1/06, Mario Basa wrote: > > > Umberto, > > > > > > Thanks for the offer. I was really thinking of sending data for > > > testing the other day, but it occured to me that your environment > > > might not be capable of handling double-byte kanji characters. > > > > > > I guess we'll test QueryByAttributeUnicode from here. > > > > > > Mario. > > > > > > > > > On 9/1/06, Umberto Nicoletti wrote: > > > > Mario, > > > > if you send me a sample shapefile, map and search string to test > > > > against QueryByAttributeUnicode I'm willing to look into this. > > > > Also, file an issue to bugzilla. > > > > > > > > Umberto > > > > > > > > > > > > > > > > > > > > From work at XWB.COM Thu Sep 7 05:54:30 2006 From: work at XWB.COM (Chip Taylor) Date: Thu, 7 Sep 2006 05:54:30 -0700 Subject: Arrowheads In-Reply-To: <44FDC4A0.8020601@pobox.com> Message-ID: Ok this one seemed so simple but I have yet to get this to work. The project I am working has a need to show traffic flow along a section of a road or highway. Ideally the end result would be an arrowhead at the end of a line segment, but regularly spaced arrows along the line segment would also work. The shape file is one that came from the public domain. Problem #1: creation of the arrowhead. I would like the symbol to be derived from a Truetype font if possible. I found a good arrow symbol in Wingdings at character #232. I created a symbolset entry like this: SYMBOL NAME "Arrow1" TYPE TRUETYPE FONT "Wingdings" CHARACTER "è" FILLED true ANTIALIAS true GAP -70 END When I reference this symbol, I get è displayed instead of the symbol. When I use the "sans" font and the ">" symbol (not my optimum choice), the ">" displays along the line as it should. Problem #2: adding only to the end of the line and only the desired end with the symbol properly oriented. Haven't figured this one out! Problem #3: if #2 isn't possible, then having the directional arrowhead appear periodically along the line is acceptable (like it does with the > in #1). However, I cannot seem to control the orientation of the symbol. Along some segments of the line, the symbol will point one way and other segments it will point just the opposite. Any ideas would be very welcome! Chip Taylor From fantognini at GMAIL.COM Thu Sep 7 06:15:48 2006 From: fantognini at GMAIL.COM (Francesco Antognini) Date: Thu, 7 Sep 2006 15:15:48 +0200 Subject: Converting between screen and geographical coordinates Message-ID: Sorry if this subject has been beaten to death, but I couldn't find a precise answer in the archives. As I went through the Mapserver API I realized that no function to convert from screen to geographical coordinates is available. This is not a big deal for zooming as the methods take screen coordinates, but is for querying layers. The only hint I found is the click2map or Geo2Pix functions. However those functions perform a linear transformation only, which may work fine in limited areas but can be skewed in larger areas (or northern areas for instance) depending on the projection used by the map. So the question is whether a more precise method to convert screen coordinates into geographical and back exists. Thanks in advance for any help Francesco -- Francesco Antognini Computer Consultant Switzerland fantognini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From keith.campbell at ATKINSGLOBAL.COM Thu Sep 7 07:34:09 2006 From: keith.campbell at ATKINSGLOBAL.COM (Campbell, Keith A) Date: Thu, 7 Sep 2006 15:34:09 +0100 Subject: MapServer Capabilities Message-ID: I wish to establish the capabilities of MapServer as regards feature joins. What I would like to do is create a map that has a number of layers based on SHP file data. The display of the entities within the SHP files needs to be themed based on attribute data held in a SQL Server database. So the Feature ID of an object in the SHP file has a corresponding ID in a record in the DB. Is this possible with MapServer? If so, how difficult is it? Thanks is advance. Keith This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. -------------- next part -------------- An HTML attachment was scrubbed... URL: From toni at SIGTE.UDG.ES Thu Sep 7 09:49:45 2006 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Thu, 7 Sep 2006 18:49:45 +0200 Subject: textures In-Reply-To: <2b9c84c00609070615l21a363fdy46738de4e417752d@mail.gmail.com> Message-ID: hi all, is mapserver 4.8.4 supporting any textures supports for polygon layers? From toni at SIGTE.UDG.ES Wed Sep 6 01:48:39 2006 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Wed, 6 Sep 2006 10:48:39 +0200 Subject: configuring WMS service In-Reply-To: <5958F6B0C15AFE449245A966FB967B58074F51@rws-s001000.ad.rws.nl> Message-ID: Hi, the version is 4.8.4 I have just seen that the name of the map object is the same of a layer. Could that be a problem. here goes the map file. MAP NAME SALT STATUS ON SIZE 500 300 EXTENT 481843.62 4644280.84 487294.27 4651758.01 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 # you may need to change this to match your MapServer build IMAGETYPE PNG PROJECTION "init=epsg:23031" END # # Start of web interface definition (including WMS enabling metadata) # WEB TEMPLATE demo.html MINSCALE 100 MAXSCALE 1550000 IMAGEPATH "/var/www/tmp/" IMAGEURL "/tmp/" METADATA WMS_TITLE "SALT" WMS_ABSTRACT "Servir la cartografia DGN de Salt" WMS_ACCESSCONSTRAINTS "none" WMS_ONLINERESOURCE "http://sigserver4.udg.es/mapserversalt" WMS_SRS "EPSG:23031" END END REFERENCE IMAGE graphics/reference.gif EXTENT 481144.82 4643861.56 489320.80 4651897.77 SIZE 150 150 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END QUERYMAP SIZE 400 400 STATUS ON STYLE HILITE COLOR 255 0 0 END LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 0 0 0 LABEL COLOR 255 255 255 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS ON END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END # # Start of layer definitions # LAYER NAME "girona" STATUS ON TYPE POLYGON DATA base MINSCALE 2600 METADATA WMS_TITLE "Base Girona" WMS_SRS "EPSG:23031" END PROJECTION "init=epsg:23031" END CLASS NAME "Girona" OUTLINECOLOR 128 128 128 COLOR 225 225 185 END END LAYER NAME "salt" STATUS ON GROUP DGN CONNECTIONTYPE OGR TRANSPARENCY 100 CONNECTION "/var/www/mapserversalt/data/Saltcadv81.dgn" TYPE line TOLERANCE 10 STYLEITEM "AUTO" METADATA WMS_TITLE "Comer?os" WMS_SRS "EPSG:23031" END PROJECTION "init=epsg:23031" END CLASS NAME "Salt" color 255 0 255 END #DUMP true END END # Map File Eijnden, Bart van den (AGI) wrote: > Which Mapserver version? > > Can you post your complete MAP file, most specifically what is the name of your MAP object? > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens toni hern?ndez > Verzonden: woensdag 6 september 2006 8:47 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: [UMN_MAPSERVER-USERS] configuring WMS service > > > HI all, > > I've reading the documentation about configuring a mapserver as a WMS > server. > Everything seems to be working fine except for the fact that the LAYERS > parameter (in the url) is not working properly. > > In the map file I just have two layers: salt (.dgn file), and girona > (.shp file with poligons) . Both with status off in the map file > The problem is that the girona layer is always on the image. As you can > see in the URL bellow the layers parameter is just asking for the salt > layer. > > http://sigserver4.udg.es/cgi-bin/salt_carto?request=GetMap&VERSION=1.1.0&SERVICE=WMS&SRS=EPSG:23031&BBOX=482840.46367545397,4646726.721942619,484238.53218965203,4648124.7904568175&WIDTH=600&HEIGHT=600&LAYERS=salt&STYLES=&FORMAT=image/gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&EXCEPTION=INIMAGE > > > Here is the girona layer in the map file. > > LAYER > NAME "girona" > STATUS ON > TYPE POLYGON > DATA base > MINSCALE 2600 > METADATA > WMS_TITLE "Base Girona" > WMS_SRS "EPSG:23031" > END > PROJECTION > "init=epsg:23031" > END > CLASS > NAME "Girona" > OUTLINECOLOR 128 128 128 > COLOR 225 225 185 > END > END > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > > From toni at SIGTE.UDG.ES Wed Sep 6 01:55:11 2006 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Wed, 6 Sep 2006 10:55:11 +0200 Subject: configuring WMS service In-Reply-To: <44FE8B67.2020308@sigte.udg.es> Message-ID: yeah! I changed the map object name and now everything is working fine. thanks a lot guys toni hern?ndez wrote: > Hi, > > the version is 4.8.4 > I have just seen that the name of the map object is the same of a layer. > Could that be a problem. > > here goes the map file. > > MAP > NAME SALT > STATUS ON > SIZE 500 300 > EXTENT 481843.62 4644280.84 487294.27 4651758.01 > UNITS METERS > SHAPEPATH "data" > > IMAGECOLOR 255 255 255 > > # you may need to change this to match your MapServer build > IMAGETYPE PNG > > PROJECTION > "init=epsg:23031" > END > > # > # Start of web interface definition (including WMS enabling metadata) > # > WEB > TEMPLATE demo.html > MINSCALE 100 > MAXSCALE 1550000 > IMAGEPATH "/var/www/tmp/" > IMAGEURL "/tmp/" > METADATA > WMS_TITLE "SALT" > WMS_ABSTRACT "Servir la cartografia DGN de Salt" > WMS_ACCESSCONSTRAINTS "none" > WMS_ONLINERESOURCE "http://sigserver4.udg.es/mapserversalt" > > WMS_SRS "EPSG:23031" > END > > END > > REFERENCE > IMAGE graphics/reference.gif > EXTENT 481144.82 4643861.56 489320.80 4651897.77 > SIZE 150 150 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > > QUERYMAP > SIZE 400 400 > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 0 0 0 > LABEL > COLOR 255 255 255 > SIZE TINY > END > STYLE 1 > SIZE 100 2 > COLOR 255 255 255 > UNITS MILES > INTERVALS 1 > TRANSPARENT TRUE > STATUS ON > END > > # > # Start of symbol definitions (we're only using a few) > # > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > # > # Start of layer definitions > # > > > LAYER > NAME "girona" > STATUS ON > TYPE POLYGON > DATA base > MINSCALE 2600 > METADATA > WMS_TITLE "Base Girona" > WMS_SRS "EPSG:23031" > END > PROJECTION > "init=epsg:23031" > END > CLASS > NAME "Girona" > OUTLINECOLOR 128 128 128 > COLOR 225 225 185 > END > END > > LAYER > NAME "salt" > STATUS ON > GROUP DGN > CONNECTIONTYPE OGR > TRANSPARENCY 100 > CONNECTION "/var/www/mapserversalt/data/Saltcadv81.dgn" > TYPE line > TOLERANCE 10 > STYLEITEM "AUTO" > METADATA > WMS_TITLE "Comer?os" > WMS_SRS "EPSG:23031" > END > PROJECTION > "init=epsg:23031" > END > CLASS > NAME "Salt" > color 255 0 255 > END > #DUMP true > END > > END # Map File > > > Eijnden, Bart van den (AGI) wrote: >> Which Mapserver version? >> >> Can you post your complete MAP file, most specifically what is the >> name of your MAP object? >> >> Best regards, >> Bart >> >> -----Oorspronkelijk bericht----- >> Van: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens toni hern?ndez >> Verzonden: woensdag 6 september 2006 8:47 >> Aan: MAPSERVER-USERS at LISTS.UMN.EDU >> Onderwerp: [UMN_MAPSERVER-USERS] configuring WMS service >> >> >> HI all, >> >> I've reading the documentation about configuring a mapserver as a WMS >> server. >> Everything seems to be working fine except for the fact that the >> LAYERS parameter (in the url) is not working properly. >> >> In the map file I just have two layers: salt (.dgn file), and girona >> (.shp file with poligons) . Both with status off in the map file >> The problem is that the girona layer is always on the image. As you >> can see in the URL bellow the layers parameter is just asking for the >> salt layer. >> >> http://sigserver4.udg.es/cgi-bin/salt_carto?request=GetMap&VERSION=1.1.0&SERVICE=WMS&SRS=EPSG:23031&BBOX=482840.46367545397,4646726.721942619,484238.53218965203,4648124.7904568175&WIDTH=600&HEIGHT=600&LAYERS=salt&STYLES=&FORMAT=image/gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&EXCEPTION=INIMAGE >> >> >> >> Here is the girona layer in the map file. >> >> LAYER >> NAME "girona" >> STATUS ON >> TYPE POLYGON >> DATA base >> MINSCALE 2600 >> METADATA >> WMS_TITLE "Base Girona" >> WMS_SRS "EPSG:23031" >> END >> PROJECTION >> "init=epsg:23031" >> END >> CLASS >> NAME "Girona" >> OUTLINECOLOR 128 128 128 >> COLOR 225 225 185 >> END >> END >> >> >> Disclaimer >> ************************************************************************ >> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >> hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >> informeren. Wij adviseren u om bij twijfel over de juistheid of de >> volledigheid van de mail contact met afzender op te nemen. >> >> This message shall not constitute any rights or obligations. >> This message is intended solely for the addressee. >> If you have received this message in error, please delete it and >> notify the sender immediately. When in doubt whether this message >> is correct or complete, please contact the sender. >> ************************************************************************ >> >> > From woodbri at SWOODBRIDGE.COM Thu Sep 7 17:22:35 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 7 Sep 2006 20:22:35 -0400 Subject: textures In-Reply-To: <45004DA9.6090407@sigte.udg.es> Message-ID: toni hern?ndez wrote: > hi all, > > is mapserver 4.8.4 supporting any textures supports for polygon layers? > Yes, create a symbol with the a pattern and reference the symbol in the polygon layer, it will be repeated right to left and top to bottom to fill your polygon and clipped appropriately. -Steve W. From woodbri at SWOODBRIDGE.COM Thu Sep 7 17:25:16 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 7 Sep 2006 20:25:16 -0400 Subject: MapServer Capabilities In-Reply-To: <2D5D8AC034A54041A6B2AE1C9148CC3103EC105C@SGBBMA2102.wsatkins.com> Message-ID: Campbell, Keith A wrote: > > > I wish to establish the capabilities of MapServer as regards feature > joins. What I would like to do is create a map that has a number of > layers based on SHP file data. The display of the entities within the > SHP files needs to be themed based on attribute data held in a SQL > Server database. So the Feature ID of an object in the SHP file has a > corresponding ID in a record in the DB. Is this possible with MapServer? > If so, how difficult is it? You might be able to do this with GDAL/OGR, but it will not be fast. The ideal way to do this is to use postGIS to store the geometry and attributes, then you can do this easily and it will be fast. -Steve W. From woodbri at SWOODBRIDGE.COM Thu Sep 7 17:36:16 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 7 Sep 2006 20:36:16 -0400 Subject: Arrowheads In-Reply-To: <011701c6d27c$c4caa3b0$025aa8c0@DevChip> Message-ID: Chip Taylor wrote: > Ok this one seemed so simple but I have yet to get this to work. The > project I am working has a need to show traffic flow along a section of a > road or highway. Ideally the end result would be an arrowhead at the end of > a line segment, but regularly spaced arrows along the line segment would > also work. The shape file is one that came from the public domain. > > Problem #1: creation of the arrowhead. I would like the symbol to be > derived from a Truetype font if possible. I found a good arrow symbol in > Wingdings at character #232. I created a symbolset entry like this: > SYMBOL > NAME "Arrow1" > TYPE TRUETYPE > FONT "Wingdings" > CHARACTER "è" > FILLED true > ANTIALIAS true > GAP -70 > END > When I reference this symbol, I get è displayed instead of the symbol. > When I use the "sans" font and the ">" symbol (not my optimum choice), the > ">" displays along the line as it should. > > Problem #2: adding only to the end of the line and only the desired end with > the symbol properly oriented. Haven't figured this one out! > > Problem #3: if #2 isn't possible, then having the directional arrowhead > appear periodically along the line is acceptable (like it does with the > in > #1). However, I cannot seem to control the orientation of the symbol. > Along some segments of the line, the symbol will point one way and other > segments it will point just the opposite. > > Any ideas would be very welcome! > > Chip Taylor > Chip, Notice that you will need symbols that point both left and right AND notice you left off the ';' from the CHARACTER definition. Hope this helps, -Steve W SYMBOL NAME "one_way_from" TYPE truetype FONT arial-bold CHARACTER ">" #FONT "Wingdings" #CHARACTER "è" GAP -40 END SYMBOL NAME "one_way_to" TYPE truetype FONT arial-bold CHARACTER "<" #FONT "Wingdings" #CHARACTER "&#???;" GAP -40 END LAYER NAME "One_Way_Arrows" STATUS DEFAULT TYPE LINE CLASSITEM "DIRECTION" CLASS NAME "From" EXPRESSION "F" STYLE SYMBOL "one_way_from" COLOR 0 0 0 SIZE 6 END END CLASS NAME "To" EXPRESSION "T" STYLE SYMBOL "one_way_to" COLOR 0 0 0 SIZE 6 END END END From Jacob.Delfos at MAUNSELL.COM Thu Sep 7 17:44:33 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Fri, 8 Sep 2006 08:44:33 +0800 Subject: getShape index offset in OGR Message-ID: Hi List, I'm trying to obtain the attributes for a layer in php_mapscript, $oShape = $oLayer->getShape(-1, 0); $fieldnames = array_keys ($oShape->values); That should work, and does for shapefiles. However, when using a personal geodatabase (and maybe other OGR sources), the index seems to refer to the internal index of the MDB (the 'OBJECTID' as reported in ArcGIS). So to get the first object is a challenge. Currently I'm doing: $oShape = $oLayer->getShape(-1, 0); $increasedIndex=1; while ((!($oShape)) && ($increasedIndex<100)) { $oShape = $oLayer->getShape(-1, $increasedIndex); $increasedIndex++; } This is 'messy', and probably not the proper way to go. Can someone tell me how to find the lowerbound (and maybe upperbound) of an OGR layer? Thanks in advance, Jacob JACOB DELFOS GIS ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Thu Sep 7 17:50:39 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Thu, 7 Sep 2006 20:50:39 -0400 Subject: ASCII and Shapefile In-Reply-To: <44F36750.9040602@engr.orst.edu> Message-ID: *Is there a way to go from an ASCII file to a Shapefile? I have a file that contains a list of lat/long coordinates and there values at each point, and i know what the projection will, be so is there a way to create a shapefile from and ASCII file if the projection is known? Thanks, -Ryan *** From punkish at EIDESIS.ORG Thu Sep 7 21:16:20 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Thu, 7 Sep 2006 23:16:20 -0500 Subject: ASCII and Shapefile In-Reply-To: <4500BE5E.5080603@engr.orst.edu> Message-ID: ogr2ogr On 9/7/06, Ryan Ollerenshaw wrote: > *Is there a way to go from an ASCII file to a Shapefile? I have a file > that contains a list of lat/long coordinates and there values at each > point, and i know what the projection will, be so is there a way to > create a shapefile from and ASCII file if the projection is known? > > Thanks, > -Ryan > *** > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From gluker at SCU.EDU.AU Thu Sep 7 21:24:58 2006 From: gluker at SCU.EDU.AU (Greg Luker) Date: Fri, 8 Sep 2006 14:24:58 +1000 Subject: ASCII and Shapefile Message-ID: Hi Ryan, Ryan said: > *Is there a way to go from an ASCII file to a Shapefile? I have a file > that contains a list of lat/long coordinates and there values at each > point, and i know what the projection will, be so is there a way to > create a shapefile from and ASCII file if the projection is known? If you have ArcGIS9.x: Open the ASCII file in MS Excel, save it as a .csv, start ArcCatalog, Create Feature Class from XY Table. If you have ArcView 3.x: Open the ASCII file in MS Excel, save it as a .csv, start ArcView, Add Table, Create Event Theme. I'm sure there are also other ways - maybe ogr? Thanks, Greg. From Kristian.Thy at ATKINSGLOBAL.COM Fri Sep 8 00:03:11 2006 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Fri, 8 Sep 2006 09:03:11 +0200 Subject: ASCII and Shapefile In-Reply-To: A<4500BE5E.5080603@engr.orst.edu> Message-ID: > -----Original Message----- > From: Ryan Ollerenshaw > > *Is there a way to go from an ASCII file to a Shapefile? http://www.perrygeo.net/wordpress/?cat=6&p=5 regards, Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From keith.campbell at ATKINSGLOBAL.COM Fri Sep 8 00:49:58 2006 From: keith.campbell at ATKINSGLOBAL.COM (Campbell, Keith A) Date: Fri, 8 Sep 2006 08:49:58 +0100 Subject: MapServer Capabilities Message-ID: Thanks Steve. Does that mean that any layer based on a SQL Server DB (an ordinary layer without a join) would be relatively slow? Is it possible to create feature joins as I've described with other DB types? Keith -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: 08 September 2006 01:25 To: Campbell, Keith A Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer Capabilities Campbell, Keith A wrote: > > > I wish to establish the capabilities of MapServer as regards feature > joins. What I would like to do is create a map that has a number of > layers based on SHP file data. The display of the entities within the > SHP files needs to be themed based on attribute data held in a SQL > Server database. So the Feature ID of an object in the SHP file has a > corresponding ID in a record in the DB. Is this possible with MapServer? > If so, how difficult is it? You might be able to do this with GDAL/OGR, but it will not be fast. The ideal way to do this is to use postGIS to store the geometry and attributes, then you can do this easily and it will be fast. -Steve W. This message has been scanned for viruses by MailControl - (see http://bluepages.wsatkins.co.uk/?4318150) This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From Jukka.Rahkonen at MMMTIKE.FI Fri Sep 8 01:33:42 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 8 Sep 2006 11:33:42 +0300 Subject: Gdaltindex *.extension issue Message-ID: Hi, I renamed a few image files in a directory to exclude them when generating tileindex with gdaltindex. Accidentally I renamed them to something like image.tifbak instead of image.bak that was my plan. I realised that when I created tileindex with the command "gdaltindex index.shp *.tif" also the file named .tifbak was included. The command seems not to be strict with the extension but it is happy when it finds letters "tif" in the beginning of the extension. I made a couple of more trials and file named image.tif.bak was not included in tileindex while image.tifa was. However, if I make tileindex "gdaltindex index.shp *.ti" the tileindex will include only files with exact extension .ti and not with longer ones like .tif. I run on Windows if that matters. Not a big problem even it took a while to understood what was happening. Regards, -Jukka Rahkonen- From mike.talbutt at DOTTEDEYES.COM Fri Sep 8 03:41:04 2006 From: mike.talbutt at DOTTEDEYES.COM (mikiet) Date: Fri, 8 Sep 2006 03:41:04 -0700 Subject: mapscript jvm crash on removeLayer Message-ID: Hi, I am using java mapscript in an application. I have the requirement to add annotations to an inline layer, and remove annotations from an inline layer. I beleive removing annotations from an inline layer is not availble in mapscript so as a work around I wanted to create a new layer with all the features from my inline layer except the one I wanted to remove, then remove the old layer (Hope that makes sense !). Unfortunatly when I try and remove my old layer from the map the jvm crashes taking down the tomcat process. From szekerest at GMAIL.COM Fri Sep 8 04:09:12 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 8 Sep 2006 13:09:12 +0200 Subject: mapscript jvm crash on removeLayer In-Reply-To: <6206628.post@talk.nabble.com> Message-ID: Hi, This issue may be similar to the C# problem described in http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1743 Would you try to use insertLayer instead of "new layerObj(mapObj)".? There's no use to delete the subsequent objects (like classObj, styleObj) of the layer manually. Tamas 2006/9/8, mikiet : > Hi, > > I am using java mapscript in an application. I have the requirement to add > annotations to an inline layer, and remove annotations from an inline layer. > > I beleive removing annotations from an inline layer is not availble in > mapscript so as a work around I wanted to create a new layer with all the > features from my inline layer except the one I wanted to remove, then remove > the old layer (Hope that makes sense !). > > Unfortunatly when I try and remove my old layer from the map the jvm crashes > taking down the tomcat process. > > From the entry 'Java VM Crashes using the Mapscript API' I can see a few > people have had simillar problems and its being put down to a garbage > collection problems in the jvm. The post states you should call the delete > method on a classObj when it is no longer used, I have tried this but its > not got rid of the problem. Can anyone point me in the right direction > please > > My code is below... > > layerObj annLayer = mapobject.getLayerByName(sLayerName); > layerObj newannLayer = new layerObj(mapobject); > int featureCounter = 0; > while (featureCounter < annLayer.getNumFeatures()){ > shapeObj shape2 = annLayer.getFeature( featureCounter ,-1); > if (shape2.getValue(1).equals(sName)){ > System.out.println("retreived shape index - " + > shape2.getIndex()); > System.out.println("retreived shape - " + > shape2.getValue(1)); > } > else{ > System.out.println("adding feature to new layer " + > shape2.getValue(1)); > newannLayer.addFeature(shape2); > } > featureCounter++; > } > annLayer.getClass(0).getStyle(0).delete(); > annLayer.getClass(0).delete(); > annLayer.delete(); > mapobject.removeLayer(annLayer.getIndex()); > newannLayer.setName(sLayerName); > -- > View this message in context: http://www.nabble.com/mapscript-jvm-crash-on-removeLayer-tf2238325.html#a6206628 > Sent from the Mapserver - User forum at Nabble.com. > From listuser at HERZSYS.DE Fri Sep 8 04:37:19 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Fri, 8 Sep 2006 13:37:19 +0200 Subject: mapscript jvm crash on removeLayer In-Reply-To: <6206628.post@talk.nabble.com> Message-ID: Hi, you can try the following: 1. make a temporary mapObj (new.. or map.clone) 2. make a temporary layer and add the annotations 3. insert the layer with annotations in the mapObj 4. do something (e.g. draw) 5. call delete on this layer 6. call delete on the temp mapObj Regards Norbert mikiet schrieb: > Hi, > > I am using java mapscript in an application. I have the requirement to add > annotations to an inline layer, and remove annotations from an inline layer. > > I beleive removing annotations from an inline layer is not availble in > mapscript so as a work around I wanted to create a new layer with all the > features from my inline layer except the one I wanted to remove, then remove > the old layer (Hope that makes sense !). > > Unfortunatly when I try and remove my old layer from the map the jvm crashes > taking down the tomcat process. > > >From the entry 'Java VM Crashes using the Mapscript API' I can see a few > people have had simillar problems and its being put down to a garbage > collection problems in the jvm. The post states you should call the delete > method on a classObj when it is no longer used, I have tried this but its > not got rid of the problem. Can anyone point me in the right direction > please > > My code is below... > > layerObj annLayer = mapobject.getLayerByName(sLayerName); > layerObj newannLayer = new layerObj(mapobject); > int featureCounter = 0; > while (featureCounter < annLayer.getNumFeatures()){ > shapeObj shape2 = annLayer.getFeature( featureCounter ,-1); > if (shape2.getValue(1).equals(sName)){ > System.out.println("retreived shape index - " + > shape2.getIndex()); > System.out.println("retreived shape - " + > shape2.getValue(1)); > } > else{ > System.out.println("adding feature to new layer " + > shape2.getValue(1)); > newannLayer.addFeature(shape2); > } > featureCounter++; > } > annLayer.getClass(0).getStyle(0).delete(); > annLayer.getClass(0).delete(); > annLayer.delete(); > mapobject.removeLayer(annLayer.getIndex()); > newannLayer.setName(sLayerName); > From woodbri at SWOODBRIDGE.COM Fri Sep 8 05:38:43 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 8 Sep 2006 08:38:43 -0400 Subject: MapServer Capabilities In-Reply-To: <2D5D8AC034A54041A6B2AE1C9148CC3103EE2F4D@SGBBMA2102.wsatkins.com> Message-ID: Campbell, Keith A wrote: > Thanks Steve. > > Does that mean that any layer based on a SQL Server DB (an ordinary > layer without a join) would be relatively slow? I believe only postgis has spatial indexes. You would need to read the docs on OGR, it provides an ODBC connection that is basicaly used to support dynamic data as a layer. It also has basic support for JOINs between shapefiles and a database. I think this will suffer from poor performance if you have a large dataset. > Is it possible to create feature joins as I've described with other DB > types? Yes, if the database supports ODBC, but all the same problems will exist. Only PostGIS/postgres have good native support built into mapserver and a robust support gor geometry built into the database. -Steve W > Keith > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: 08 September 2006 01:25 > To: Campbell, Keith A > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer Capabilities > > Campbell, Keith A wrote: >> >> I wish to establish the capabilities of MapServer as regards feature >> joins. What I would like to do is create a map that has a number of >> layers based on SHP file data. The display of the entities within the >> SHP files needs to be themed based on attribute data held in a SQL >> Server database. So the Feature ID of an object in the SHP file has a >> corresponding ID in a record in the DB. Is this possible with > MapServer? >> If so, how difficult is it? > > You might be able to do this with GDAL/OGR, but it will not be fast. The > ideal way to do this is to use postGIS to store the geometry and > attributes, then you can do this easily and it will be fast. > > -Steve W. > > > This message has been scanned for viruses by MailControl - (see > http://bluepages.wsatkins.co.uk/?4318150) > > > This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. > From umberto.nicoletti at GMAIL.COM Fri Sep 8 05:48:59 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 8 Sep 2006 14:48:59 +0200 Subject: mapscript jvm crash on removeLayer In-Reply-To: <6206628.post@talk.nabble.com> Message-ID: Unfortunately Mapscript suffers from a few memory management issues which will almost surely kill the Java VM. In these cases the only approach is to work around them. I suggest you try to disable (set status to OFF) the first layer instead of deleting it. This is safe and should work in most cases. Alternatively you could try to clone the feats before adding them to the second layer newannLayer.addFeature(shape2.clone());, but you could still have problems. In any case please open a bug at http://mapserver.gis.umn.edu/bugs/ so that we can solve this issue in the future. Make sure you attach the error log generated by java to the bug report. Umberto On 9/8/06, mikiet wrote: > Hi, > > I am using java mapscript in an application. I have the requirement to add > annotations to an inline layer, and remove annotations from an inline layer. > > I beleive removing annotations from an inline layer is not availble in > mapscript so as a work around I wanted to create a new layer with all the > features from my inline layer except the one I wanted to remove, then remove > the old layer (Hope that makes sense !). > > Unfortunatly when I try and remove my old layer from the map the jvm crashes > taking down the tomcat process. > > From the entry 'Java VM Crashes using the Mapscript API' I can see a few > people have had simillar problems and its being put down to a garbage > collection problems in the jvm. The post states you should call the delete > method on a classObj when it is no longer used, I have tried this but its > not got rid of the problem. Can anyone point me in the right direction > please > > My code is below... > > layerObj annLayer = mapobject.getLayerByName(sLayerName); > layerObj newannLayer = new layerObj(mapobject); > int featureCounter = 0; > while (featureCounter < annLayer.getNumFeatures()){ > shapeObj shape2 = annLayer.getFeature( featureCounter ,-1); > if (shape2.getValue(1).equals(sName)){ > System.out.println("retreived shape index - " + > shape2.getIndex()); > System.out.println("retreived shape - " + > shape2.getValue(1)); > } > else{ > System.out.println("adding feature to new layer " + > shape2.getValue(1)); > newannLayer.addFeature(shape2); > } > featureCounter++; > } > annLayer.getClass(0).getStyle(0).delete(); > annLayer.getClass(0).delete(); > annLayer.delete(); > mapobject.removeLayer(annLayer.getIndex()); > newannLayer.setName(sLayerName); > -- > View this message in context: http://www.nabble.com/mapscript-jvm-crash-on-removeLayer-tf2238325.html#a6206628 > Sent from the Mapserver - User forum at Nabble.com. > From listuser at HERZSYS.DE Fri Sep 8 07:05:50 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Fri, 8 Sep 2006 16:05:50 +0200 Subject: mapscript jvm crash on removeLayer In-Reply-To: <04E4CB62BC22D94E9F86F06A6AB13C2C603001@darklighter.dottedeyes.com> Message-ID: Hi, yes I mean the temporary layer. I try to give a little example at the end. - there are other ways to do it. I think this defined deleting of objects avoid the crashes when done in the correct order. I had crashes before. After some researching I saw that objects get deleted in a not ordered way (because of the way the garbage collection works) which . I can't remember the exact process and result of this at the moment but it was definitely the garbage collection which caused the crash. Regards Norbert A little example: layerObj tmpLayer = null; layerObj orgLayer = null; mapObj tmpMap = null tmpMap = map.cloneMap(); tmpLayer = new layerObj(tmpMap); tmpLayer.setStatus(1); tmpLayer.setName("MS"); tmpLayer.setType(MS_LAYER_TYPE.MS_LAYER_POINT); classObj cl = new classObj(tmpLayer); styleObj style = new styleObj(cl); colorObj tmpColor = new colorObj(255, 0, 0, 0); style.setColor(tmpColor); labelObj la = new labelObj(); la.setType(MS_FONT_TYPE.MS_BITMAP); la.setFont("small"); cl.setLabel(la); Iterator pointIterator = pointList.iterator(); while (pointIterator.hasNext()) { shapeObj shape = new shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POINT.swigValue()); lineObj line = new lineObj(); MyPoint myPoint = pointIterator.next(); int status = line.add(new pointObj(myPoint.getX(), myPoint.getY(), 0)); if (status == MS_RETURN_VALUE.MS_FAILURE.swigValue()) error = true; if (shape.add(line) == MS_RETURN_VALUE.MS_FAILURE.swigValue()) error = true; shape.setText(myPoint.getName()); if (tmpLayer.addFeature(shape) == MS_RETURN_VALUE.MS_FAILURE.swigValue()) error = true; } tmpColor.delete(); la.delete(); style.delete(); cl.delete(); orgLayer.delete(); tmpLayer.delete(); Mike Talbutt schrieb: > Thanks for your answer Norbert, > > Can you explain to me what exactly you are doing in step 3 ?, I assume > you mean insert the temporary layer that is currently in your temporary > mapobj into the main mapobj I am using ?, if this is the case how do you > do this in mapscript ?. > > Also where and how would I remove the original layer ? > > Would this solution stop the jvm crashing when calling removelayer ? > > -----Original Message----- > From: listuser HH [mailto:listuser at herzsys.de] > Sent: 08 September 2006 12:37 > To: Mike Talbutt > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapscript jvm crash on removeLayer > > > Hi, > > you can try the following: > > 1. make a temporary mapObj (new.. or map.clone) > 2. make a temporary layer and add the annotations > 3. insert the layer with annotations in the mapObj > 4. do something (e.g. draw) > 5. call delete on this layer > 6. call delete on the temp mapObj > > Regards > Norbert > > mikiet schrieb: > >> Hi, >> >> I am using java mapscript in an application. I have the requirement to >> > > >> add annotations to an inline layer, and remove annotations from an >> inline layer. >> >> I beleive removing annotations from an inline layer is not availble in >> > > >> mapscript so as a work around I wanted to create a new layer with all >> the features from my inline layer except the one I wanted to remove, >> then remove the old layer (Hope that makes sense !). >> >> Unfortunatly when I try and remove my old layer from the map the jvm >> crashes taking down the tomcat process. >> >> >From the entry 'Java VM Crashes using the Mapscript API' I can see a >> >>> few >>> >> people have had simillar problems and its being put down to a garbage >> collection problems in the jvm. The post states you should call the >> delete method on a classObj when it is no longer used, I have tried >> this but its not got rid of the problem. Can anyone point me in the >> right direction please >> >> My code is below... >> >> layerObj annLayer = >> > mapobject.getLayerByName(sLayerName); > >> layerObj newannLayer = new layerObj(mapobject); >> int featureCounter = 0; >> while (featureCounter < annLayer.getNumFeatures()){ >> shapeObj shape2 = annLayer.getFeature( >> > featureCounter ,-1); > >> if (shape2.getValue(1).equals(sName)){ >> System.out.println("retreived shape >> > index - " + > >> shape2.getIndex()); >> System.out.println("retreived shape - " >> > + > >> shape2.getValue(1)); >> } >> else{ >> System.out.println("adding feature to >> > new layer " + > >> shape2.getValue(1)); >> newannLayer.addFeature(shape2); >> } >> featureCounter++; >> } >> annLayer.getClass(0).getStyle(0).delete(); >> annLayer.getClass(0).delete(); >> annLayer.delete(); >> mapobject.removeLayer(annLayer.getIndex()); >> newannLayer.setName(sLayerName); >> >> > > > > Email has been scanned for viruses and spam by Altman Technologies' > email management service - www.altman.co.uk/emailsystems > > Email has been scanned for viruses and spam by Altman Technologies' email management service - www.altman.co.uk/emailsystems > > > From vilson.farias at DIGITRO.COM.BR Fri Sep 8 07:51:19 2006 From: vilson.farias at DIGITRO.COM.BR (=?ISO-8859-1?Q?Jos=E9_Vilson_de_Mello_de_Farias?=) Date: Fri, 8 Sep 2006 11:51:19 -0300 Subject: make test for Java Mapscript fails [Mapserver 4.10.0 beta 3] Message-ID: Greetings, I've compiled the Mapserver 4.10.0 beta3 and Java Mapscript failed. Has anyone else executed a "make test"? The error messages are bellow. Should I register a new bug for this release or is it a problem that only happens here? By the way, here is my QA/Tests Checklist : Tester OS Build mapserv Py-Tests msautotest PHP Python Perl Java CSharp utils GDAL OGR Postgis SDE OCI Ruby vilsonfarias Linux p p f p p [root at dgtad java]# make test javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/ConnPool.java examples/DrawMap.java examples/DumpShp.java examples/MakePoint.java examples/QueryByAttribute.java examples/ShapeInfo.java exa mples/WxSTest.java examples/Metadata.java examples/RunTimeBuiltWMSClient.java examples/RunTimeBuiltWMSClient.java:36: package MS_IMAGEMODE does not exist output.setImagemode(MS_IMAGEMODE.MS_IMAGEMODE_RGB.swigValue()); ^ examples/RunTimeBuiltWMSClient.java:60: cannot find symbol symbol : variable MS_LAYER_TYPE location: class RunTimeBuiltWMSClient layer.setType(MS_LAYER_TYPE.MS_LAYER_RASTER); ^ examples/RunTimeBuiltWMSClient.java:61: cannot find symbol symbol : variable MS_CONNECTION_TYPE location: class RunTimeBuiltWMSClient layer.setConnectiontype(MS_CONNECTION_TYPE.MS_WMS); ^ 3 errors make: *** [test] Error 1 [root at dgtad java]# make test javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/ConnPool.java examples/DrawMap.java examples/DumpShp.java examples/MakePoint.java examples/QueryByAttribute.java examples/ShapeInfo.java examples/WxSTest.java examples/Metadata.java examples/RunTimeBuiltWMSClient.java examples/RunTimeBuiltWMSClient.java:36: package MS_IMAGEMODE does not exist output.setImagemode(MS_IMAGEMODE.MS_IMAGEMODE_RGB.swigValue()); ^ examples/RunTimeBuiltWMSClient.java:60: cannot find symbol symbol : variable MS_LAYER_TYPE location: class RunTimeBuiltWMSClient layer.setType(MS_LAYER_TYPE.MS_LAYER_RASTER); ^ examples/RunTimeBuiltWMSClient.java:61: cannot find symbol symbol : variable MS_CONNECTION_TYPE location: class RunTimeBuiltWMSClient layer.setConnectiontype(MS_CONNECTION_TYPE.MS_WMS); ^ 3 errors make: *** [test] Error 1 Best regards, -- *Jos? Vilson de Mello de Farias* /Analista de Sistemas //SSE - Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* vilson.farias at digitro.com.br *Messenger: *vilsonfarias at hotmail.com *Fone:* (0xx48) 3281-7314 *Fax:* (0xx48) 3281-7000 *Site:* www.digitro.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Fri Sep 8 08:01:39 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 8 Sep 2006 17:01:39 +0200 Subject: make test for Java Mapscript fails [Mapserver 4.10.0 beta 3] In-Reply-To: <45018367.3040402@digitro.com.br> Message-ID: You need swig 1.3.28 or 1.3.29 to compile java mapscript AND run the tests. If you don't want to run the tests any swig including down to 1.3.21 will be ok. In my automated build bot I *do* run the tests each time. Umberto On 9/8/06, Jos? Vilson de Mello de Farias wrote: > > > Greetings, > > I've compiled the Mapserver 4.10.0 beta3 and Java Mapscript failed. Has anyone else executed a "make test"? The error messages are bellow. Should I register a new bug for this release or is it a problem that only happens here? > > By the way, here is my QA/Tests Checklist : > > Tester OS Build mapserv Py-Tests msautotest PHP Python Perl Java CSharp utils GDAL OGR Postgis SDE OCI Ruby > vilsonfarias > Linux p p > f > p p > > > [root at dgtad java]# make test > javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/ConnPool.java examples/DrawMap.java examples/DumpShp.java examples/MakePoint.java examples/QueryByAttribute.java examples/ShapeInfo.java exa mples/WxSTest.java examples/Metadata.java examples/RunTimeBuiltWMSClient.java > examples/RunTimeBuiltWMSClient.java:36: package MS_IMAGEMODE does not exist > output.setImagemode(MS_IMAGEMODE.MS_IMAGEMODE_RGB.swigValue()); > ^ > examples/RunTimeBuiltWMSClient.java:60: cannot find symbol > symbol : variable MS_LAYER_TYPE > location: class RunTimeBuiltWMSClient > layer.setType(MS_LAYER_TYPE.MS_LAYER_RASTER); > ^ > examples/RunTimeBuiltWMSClient.java:61: cannot find symbol > symbol : variable MS_CONNECTION_TYPE > location: class RunTimeBuiltWMSClient > layer.setConnectiontype(MS_CONNECTION_TYPE.MS_WMS); > ^ > 3 errors > make: *** [test] Error 1 > [root at dgtad java]# make test > javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/ConnPool.java examples/DrawMap.java examples/DumpShp.java examples/MakePoint.java examples/QueryByAttribute.java examples/ShapeInfo.java examples/WxSTest.java examples/Metadata.java examples/RunTimeBuiltWMSClient.java > examples/RunTimeBuiltWMSClient.java:36: package MS_IMAGEMODE does not exist > output.setImagemode(MS_IMAGEMODE.MS_IMAGEMODE_RGB.swigValue()); > ^ > examples/RunTimeBuiltWMSClient.java:60: cannot find symbol > symbol : variable MS_LAYER_TYPE > location: class RunTimeBuiltWMSClient > layer.setType(MS_LAYER_TYPE.MS_LAYER_RASTER); > ^ > examples/RunTimeBuiltWMSClient.java:61: cannot find symbol > symbol : variable MS_CONNECTION_TYPE > location: class RunTimeBuiltWMSClient > layer.setConnectiontype(MS_CONNECTION_TYPE.MS_WMS); > ^ > 3 errors > make: *** [test] Error 1 > > Best regards, > > -- > Jos? Vilson de Mello de Farias > Analista de Sistemas > SSE - Seguran?a P?blica > > D?GITRO TECNOLOGIA > E-mail: vilson.farias at digitro.com.br > Messenger: vilsonfarias at hotmail.com > Fone: (0xx48) 3281-7314 > Fax: (0xx48) 3281-7000 > Site: www.digitro.com.br From ollerery at ENGR.ORST.EDU Fri Sep 8 08:10:47 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 8 Sep 2006 08:10:47 -0700 Subject: ASCII and Shapefile In-Reply-To: Message-ID: P Kishor wrote: > ogr2ogr > Looks like ogr2ogr needs a specific format. > ogr2ogr -f "ESRI Shapefile" -a_srs epsg:4326 output thick08.csv FAILURE: Unable to open datasource `thick08.ps' with the following drivers. -> ESRI Shapefile -> MapInfo File -> UK .NTF -> SDTS -> TIGER -> S57 -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> PostgreSQL My file just looks like this: 0.00 90.00 -1.41 6.12 1.00 90.00 -1.41 6.12 2.00 90.00 -1.41 6.12 3.00 90.00 -1.41 6.12 4.00 90.00 -1.41 6.12 5.00 90.00 -1.41 6.12 ..... ..... Any help would be great > On 9/7/06, Ryan Ollerenshaw wrote: >> Is there a way to go from an ASCII file to a Shapefile? I have a file >> that contains a list of lat/long coordinates and there values at each >> point, and i know what the projection will, be so is there a way to >> create a shapefile from and ASCII file if the projection is known? >> >> > > From punkish at EIDESIS.ORG Fri Sep 8 08:33:05 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Fri, 8 Sep 2006 10:33:05 -0500 Subject: ASCII and Shapefile In-Reply-To: <450187F7.80705@engr.orst.edu> Message-ID: On 9/8/06, Ryan Ollerenshaw wrote: > > P Kishor wrote: > > ogr2ogr > > > Looks like ogr2ogr needs a specific format. Unfortunately, making ogr2ogr work has been a pain in the behind for me. Search for a recent thread on this subject started by me. Frank W. answered with a bunch of clarifications that might help. Here are a few of them > > > ogr2ogr -f "ESRI Shapefile" -a_srs epsg:4326 output thick08.csv > FAILURE: > Unable to open datasource `thick08.ps' with the following drivers. You mention 'thick08.csv' in your first line above, and then write 'thick08.ps' two lines below that. Either one or the other is a typo, no? .. > My file just looks like this: > 0.00 90.00 -1.41 6.12 > 1.00 90.00 -1.41 6.12 > 2.00 90.00 -1.41 6.12 > 3.00 90.00 -1.41 6.12 > 4.00 90.00 -1.41 6.12 > 5.00 90.00 -1.41 6.12 Unfortunately, the above file is not a csv, and just calling it so would not make it so. A csv file is a "comma separated variable" file, and what you are showing above seems like a fixed-width format. Additionally, you can't just specify a csv file on the command line like that. You actually have to specify the csv file inside an ovf file (think of it as datasource definition), and then specify the ovf file on the command-line. Did I say it is a pain in the behind? Go to the mapserver website and search for "virtual driver" or "ogr2ogr". There are some instructions there. I am doing more experimenting with my own data, and once I am clear as mud, I will add/post more clear and step-by-step instructions on this. Your experience also will help in adding to this, and eventually we can take it to FrankW. and help him improve user-experience with ogr2ogr. It is definitely a very important tool/step in dataprocessing, and it should be made easy to understand and use instead of having to use proprietary software just to accomplish this. > Any help would be great > > On 9/7/06, Ryan Ollerenshaw wrote: > >> Is there a way to go from an ASCII file to a Shapefile? I have a file > >> that contains a list of lat/long coordinates and there values at each > >> point, and i know what the projection will, be so is there a way to > >> create a shapefile from and ASCII file if the projection is known? > >> > >> > > > > > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From aiandolo at GRUPPOAS.IT Fri Sep 8 08:14:17 2006 From: aiandolo at GRUPPOAS.IT (Antonio Iandolo) Date: Fri, 8 Sep 2006 17:14:17 +0200 Subject: R: [UMN_MAPSERVER-USERS] ASCII and Shapefile In-Reply-To: <450187F7.80705@engr.orst.edu> Message-ID: Maybe you could import this file into excel and export it as a csv, so that you can specify csv as the "source" file; then you can use ogrinfo myfile.csv to get some infos on it. > -----Messaggio originale----- > Da: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Per conto di Ryan Ollerenshaw > Inviato: venerd? 8 settembre 2006 17.11 > A: MAPSERVER-USERS at LISTS.UMN.EDU > Oggetto: Re: [UMN_MAPSERVER-USERS] ASCII and Shapefile > > > P Kishor wrote: > > ogr2ogr > > > Looks like ogr2ogr needs a specific format. > > > ogr2ogr -f "ESRI Shapefile" -a_srs epsg:4326 output thick08.csv > FAILURE: > Unable to open datasource `thick08.ps' with the following drivers. > -> ESRI Shapefile > -> MapInfo File > -> UK .NTF > -> SDTS > -> TIGER > -> S57 > -> DGN > -> VRT > -> AVCBin > -> REC > -> Memory > -> CSV > -> GML > -> PostgreSQL > > My file just looks like this: > 0.00 90.00 -1.41 6.12 > 1.00 90.00 -1.41 6.12 > 2.00 90.00 -1.41 6.12 > 3.00 90.00 -1.41 6.12 > 4.00 90.00 -1.41 6.12 > 5.00 90.00 -1.41 6.12 > ..... > ..... > > Any help would be great > > On 9/7/06, Ryan Ollerenshaw wrote: > >> Is there a way to go from an ASCII file to a Shapefile? I have a > >> file that contains a list of lat/long coordinates and > there values at > >> each point, and i know what the projection will, be so is there a > >> way to create a shapefile from and ASCII file if the projection is > >> known? > >> From ollerery at ENGR.ORST.EDU Fri Sep 8 10:24:33 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 8 Sep 2006 10:24:33 -0700 Subject: Points to Raster In-Reply-To: Message-ID: I have a of a bunch of lat/long coordinates with corresponding values, i would like to display this data as a raster with the color interpreted in between the points, just like using the Kriging tool in ArcMap. Does anyone know of a way to do this or at lest get me pointed the in right direction. From ljfong at SDF.LONESTAR.ORG Fri Sep 8 14:37:12 2006 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Fri, 8 Sep 2006 14:37:12 -0700 Subject: Transparency based on classification, possible? Message-ID: Hello, Is it possible to set the transparency of layer symbolization based on the classification? Something similar to the effect of: LAYER ... CLASS EXPRESSION "expr0" TRANSPARENCY 50 END CLASS CLASS EXPRESSION "expr1" TRANSPARENCY 70 END CLASS END LAYER Thanks. From David.Fawcett at STATE.MN.US Fri Sep 8 14:44:05 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 8 Sep 2006 16:44:05 -0500 Subject: Transparency based on classification, possible? In-Reply-To: A<20060908213712.GA22335@SDF.LONESTAR.ORG> Message-ID: No. Transparency is set at the layer level. Take a look at: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer If you want to use URL variable substitution, you could probably change the transparency of the LAYER on the fly, but not at the class level. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hong Sent: Friday, September 08, 2006 4:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Transparency based on classification, possible? Hello, Is it possible to set the transparency of layer symbolization based on the classification? Something similar to the effect of: LAYER ... CLASS EXPRESSION "expr0" TRANSPARENCY 50 END CLASS CLASS EXPRESSION "expr1" TRANSPARENCY 70 END CLASS END LAYER Thanks. From dylan.beaudette at GMAIL.COM Fri Sep 8 15:08:17 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Fri, 8 Sep 2006 15:08:17 -0700 Subject: Points to Raster In-Reply-To: <4501A751.2010303@engr.orst.edu> Message-ID: On Friday 08 September 2006 10:24, Ryan Ollerenshaw wrote: > I have a of a bunch of lat/long coordinates with corresponding values, i > would like to display this data as a raster with the color interpreted > in between the points, just like using the Kriging tool in ArcMap. Does > anyone know of a way to do this or at lest get me pointed the in right > direction. Some thoughts: convert the text file into a spatial data format via ogr2ogr and the VRT approach to accessing this text file, process accordingly. install GRASS, and import the text file with the command v.in.ascii, interpolate with the method of your choice, save result as tiff, display in mapserver. ask around on the GDAL / GRASS mailing lists if you need help. simple example here: http://casoilresource.lawr.ucdavis.edu/drupal/node/55 -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From volunteer at SPATIALLINK.ORG Fri Sep 8 15:05:26 2006 From: volunteer at SPATIALLINK.ORG (siva) Date: Fri, 8 Sep 2006 15:05:26 -0700 Subject: joining shp dbf Message-ID: i try below not working DATA "SELECT * FROM 'c:/pradesh/state.shp' LEFT JOIN 'c:/pradesh/pop.dbf' ON 'c:/pradesh/state.shp'.name = 'c:/pradesh/pop.dbf'.name" DATA "SELECT * FROM 'state.shp' LEFT JOIN 'pop.dbf' ON 'state.shp'.name = 'pop.dbf'.name" DATA "SELECT * FROM state LEFT JOIN 'c:/pradesh/pop.dbf'.pop ON state.name = pop.name" i then try dbf as csv sincerely sshekar > -------- Original Message -------- > Subject: [UMN_MAPSERVER-USERS] joining shp dbf > From: volunteer at spatiallink.org > Date: Thu, August 31, 2006 6:22 pm > To: MAPSERVER-USERS at LISTS.UMN.EDU > > hello i get probelm joining shp dbf. old answer not working > > c:/pradesh/state.shp > num name > 1 andhra > 2 kerala > > c:/pradesh/pop.dbf > num name count year > 1 andhra 35 1991 > 2 andhra 45 2001 > > i try showing 45 on state.shp as following > MAP > > SHAPEPATH "/pradesh/" > > LAYER > CONNECTIONTYPE ogr > CONNECTION "c:/pradesh/state.shp" > DATA "SELECT * FROM 'c:/pradesh/state.shp'.state LEFT JOIN > 'c:/pradesh/pop.dbf'.pop ON state.name = pop.name WHERE pop.year LIKE > '2001'" > LABELITEM "join.count" > > many thank yous > sincerely > sshekar From David.Fawcett at STATE.MN.US Sat Sep 9 09:41:03 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Sat, 9 Sep 2006 11:41:03 -0500 Subject: Transparency based on classification, possible? Message-ID: I was thinking about this a little bit. There is a way that you could do this, but it may be a little ugly. If you only want to do this for one (or a few) layer and you don't need to break your data up into too many classes of varied transparency. You could create a layer for each desired classification, have one class in each layer and set an expression in that class to only show the features that you want to assign a particular level of transparency to. You would then set transparency at the layer level. Also, remember that transparency behaves more like a property that would be called opacity. A transparency of 20 is more 'see through' than a transparency of 80. Legends and queries might be a little funky with this arrangement, but you should be able to work around them. David. -----Original Message----- From: Fawcett, David Sent: Fri 9/8/2006 4:44 PM To: 'Hong'; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Transparency based on classification, possible? No. Transparency is set at the layer level. Take a look at: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer If you want to use URL variable substitution, you could probably change the transparency of the LAYER on the fly, but not at the class level. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hong Sent: Friday, September 08, 2006 4:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Transparency based on classification, possible? Hello, Is it possible to set the transparency of layer symbolization based on the classification? Something similar to the effect of: LAYER ... CLASS EXPRESSION "expr0" TRANSPARENCY 50 END CLASS CLASS EXPRESSION "expr1" TRANSPARENCY 70 END CLASS END LAYER Thanks. From eshabtai at GMAIL.COM Sun Sep 10 10:05:59 2006 From: eshabtai at GMAIL.COM (Ehud Shabtai) Date: Sun, 10 Sep 2006 20:05:59 +0300 Subject: mapserver fastcgi and postgis cause memory leak? Message-ID: Hi, I'm using Mapserver 4.8.4 as a fastcgi server along with postgis layers. Running a simple script which requests the same map over and over shows that mapserver's memory (RSS) is increasing by about 1MB for every 5 requests. Mapserver starts with about 10mb and keeps increasing - I got to 200mb and killed it. Exporting my postgis into a shape file and requesting a similar map, shows no memory leaks so the leak is caused only when using postgis. I'm using postgres 8.0 with postgis 1.1.2. I've tried both with and without adding PROCESSING "CLOSE_CONNECTION=DEFER" but in both cases I get the same leak. Any ideas? -- Ehud Shabtai http://www.freemap.co.il/map/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at REMOTEINFORMATION.COM.AU Sun Sep 10 17:35:52 2006 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Mon, 11 Sep 2006 08:35:52 +0800 Subject: MapServer Capabilities Message-ID: Keith, We have done this using either of two methods below, where using postgis was not an option. to use MapServer directly, the quickest way is to generate the mapfile to match the desired relationships. dynamically create a mapfile (ie in php) to match the query (this is easiest if you load the beginning and end of your standard mapfile, and just add the appropriate layer / class details) and send the mapfile name back to Mapserv. Alternatively use mapscript to generate either the map image, or a mapfile, and use this. Where there is a larger number of attributes required over a larger area, regenerate the maps during the zoom to show the increasing levels of detail. This is why we are using mapscript now. The main limitation to watch out for is when there are more than the allowable number of layers or classes, but any map that is trying to display more than this number of attributes is unlikely to mean much to a reader, so think carefully about this as you develop your initial queries. good luck Ben -- Ben Madin t/f: 08 9192 5535 m: 0448 887 220 ben at remoteinformation.com.au -------------- next part -------------- An HTML attachment was scrubbed... URL: From julian at MAPSOLUTIONS.COM.AU Sun Sep 10 22:56:56 2006 From: julian at MAPSOLUTIONS.COM.AU (Julian Parker) Date: Mon, 11 Sep 2006 13:56:56 +0800 Subject: Displaying LABEL with an ANGLE column value Message-ID: Greetings list, Am trying to label point objects from a SHP file in MapServer and have them appear at an angle drawn from an attribute column. I notice that ANGLE AUTO only works with LINE objects and that ANGLEITEM is only defined in the STYLE object. Is there a way in the Map file to get these working together so the LABEL>ANGLE object uses the values defined in STYLE>ANGLEITEM? I have had a look through the online doco and have not come across a way to do this. Many thanks in advance for help provided! Regards Julian Parker Systems Analyst Digital Mapping Solutions Level 2, 2 Hardy Street SOUTH PERTH WA 6151 Ph: 08 9474 6311 Fax: 08 9474 6411 Mobile: 0438 844 079 www.mapsolutions.com.au MapInfo Training | IntraMaps | InterMaps | MobileMap | News Disclaimer This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. Although every effort has been made to ensure the correctness and integrity of attachments that may be included in this email, this can only apply to the unaltered/uncorrupted form. A copy of the original attachment is available from our office should you require it. Alternately, if further verification is required please request a hard copy version. -------------- next part -------------- An HTML attachment was scrubbed... URL: From julian at MAPSOLUTIONS.COM.AU Sun Sep 10 23:05:45 2006 From: julian at MAPSOLUTIONS.COM.AU (Julian Parker) Date: Mon, 11 Sep 2006 14:05:45 +0800 Subject: Displaying LABEL with an ANGLE column value In-Reply-To: A<4080D064E282B94DAECD98FD0E4D2C143046C3@mailserver.MAPS.local> Message-ID: No sooner than I send the question I stumble across the solution. I had been overlooking LABELANGLEITEM the whole time. ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Julian Parker Sent: Monday, 11 September 2006 1:57 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Displaying LABEL with an ANGLE column value Greetings list, Am trying to label point objects from a SHP file in MapServer and have them appear at an angle drawn from an attribute column. I notice that ANGLE AUTO only works with LINE objects and that ANGLEITEM is only defined in the STYLE object. Is there a way in the Map file to get these working together so the LABEL>ANGLE object uses the values defined in STYLE>ANGLEITEM? I have had a look through the online doco and have not come across a way to do this. Many thanks in advance for help provided! Regards Julian Parker Systems Analyst Digital Mapping Solutions Level 2, 2 Hardy Street SOUTH PERTH WA 6151 Ph: 08 9474 6311 Fax: 08 9474 6411 Mobile: 0438 844 079 www.mapsolutions.com.au MapInfo Training | IntraMaps | InterMaps | MobileMap | News Disclaimer This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. Although every effort has been made to ensure the correctness and integrity of attachments that may be included in this email, this can only apply to the unaltered/uncorrupted form. A copy of the original attachment is available from our office should you require it. Alternately, if further verification is required please request a hard copy version. -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.meier at SPIEKERMANN.DE Sun Sep 10 23:22:44 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Mon, 11 Sep 2006 08:22:44 +0200 Subject: Displaying LABEL with an ANGLE column value In-Reply-To: <4080D064E282B94DAECD98FD0E4D2C143046C3@mailserver.MAPS.local> Message-ID: Hi, some weeks ago there was a question like this on this list, if I understand your question right. The answer was to use LABELANGLEITEM with the name of a data column in the dbf-file. In between I used this in an application and it works good. I use an annotation layer with this command LABELANGLEITEM . Manfred Julian Parker schrieb: > Greetings list, > > > > Am trying to label point objects from a SHP file in MapServer and have > them appear at an angle drawn from an attribute column. I notice that > ANGLE AUTO only works with LINE objects and that ANGLEITEM is only > defined in the STYLE object. Is there a way in the Map file to get these > working together so the LABEL>ANGLE object uses the values defined in > STYLE>ANGLEITEM? I have had a look through the online doco and have not > come across a way to do this. > > > > Many thanks in advance for help provided! > > > > Regards > > Julian Parker > Systems Analyst > > Digital Mapping Solutions > Level 2, 2 Hardy Street > SOUTH PERTH WA 6151 > Ph: 08 9474 6311 Fax: 08 9474 6411 > Mobile: 0438 844 079 > www.mapsolutions.com.au > > > > MapInfo Training > | IntraMaps > | > InterMaps > | MobileMap > | News > > > > > > > Disclaimer > > This email and any files transmitted with it are intended solely for the > use of the individual or entity to whom they are addressed. > > Although every effort has been made to ensure the correctness and > integrity of attachments that may be included in this email, this can > only apply to the unaltered/uncorrupted form. A copy of the original > attachment is available from our office should you require it. > > Alternately, if further verification is required please request a hard > copy version. > > > From crane_ba at YAHOO.COM Mon Sep 11 01:01:23 2006 From: crane_ba at YAHOO.COM (Ben Crane) Date: Mon, 11 Sep 2006 01:01:23 -0700 Subject: Fatal Error accessing stdClass as array problem Message-ID: Hi, I have been using OGR_L_GetExtents to access MBR data about a layer. I have been advised about accessing this "array" by using normal array notation: $minx=$ext_array['minx'] - but this only produces the following error: Fatal Error: Cannot use object of type stdClass as array in c:\... Can anyone advise me on what I need to do to get these values of of this class? Ben __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From julian at MAPSOLUTIONS.COM.AU Mon Sep 11 01:30:48 2006 From: julian at MAPSOLUTIONS.COM.AU (Julian Parker) Date: Mon, 11 Sep 2006 16:30:48 +0800 Subject: Region fill Message-ID: I had another quick question - I am trying to get a certain fill within a region but cant seem to get it quite right. My understanding was that I should use a symbol and the region would be 'filled' with this but it always shows as a solid white fill. I am trying to get the region something like the following fill: _________ |. . . .| |. . . .| |. . . .| |. . . .| |_______| And the relavent detail in the MAP file I have is: LAYER NAME "Wards" STATUS ON DATA "DataBase\Boundaries\wards_region" TYPE POLYGON UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS TRANSPARENCY ALPHA LABELCACHE ON LABELITEM "Ward" METADATA END #Metadata CLASS NAME "Boundary" STYLE COLOR 208 255 208 SYMBOL "circle" SIZE 1 END #Style STYLE OUTLINECOLOR 132 132 242 ANTIALIAS TRUE WIDTH 2 END #Style #LABEL # FONT "Verdana" # TYPE TRUETYPE # ANTIALIAS TRUE # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # SIZE 10 #END #Label END # Class END # Layer Regards Julian Parker Systems Analyst Digital Mapping Solutions Level 2, 2 Hardy Street SOUTH PERTH WA 6151 Ph: 08 9474 6311 Fax: 08 9474 6411 Mobile: 0438 844 079 www.mapsolutions.com.au ? MapInfo Training | IntraMaps | InterMaps | MobileMap | News ? Disclaimer This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. Although every effort has been made to ensure the correctness and integrity of attachments that may be included in this email, this can only apply to the unaltered/uncorrupted form. A copy of the original attachment is available from our office should you require it. Alternately, if further verification is required please request a hard copy version. From Kristian.Thy at ATKINSGLOBAL.COM Mon Sep 11 01:46:53 2006 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Mon, 11 Sep 2006 10:46:53 +0200 Subject: Region fill In-Reply-To: A<4080D064E282B94DAECD98FD0E4D2C143046C5@mailserver.MAPS.local> Message-ID: > -----Original Message----- > From: Julian Parker > > And the relavent detail in the MAP file I have is: [snip] How does your definition of the circle symbol look? Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From Jukka.Rahkonen at MMMTIKE.FI Mon Sep 11 02:07:42 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 11 Sep 2006 12:07:42 +0300 Subject: Region fill Message-ID: Hi Julian, This layer shows me areas filled with rather big green balls: LAYER NAME "apples 2005" STATUS OFF DATA "T:/webdata/apples" TYPE POLYGON TEMPLATE "temp/query.html" PROJECTION "init=epsg:2393" END CLASS NAME "omenat" STYLE SYMBOL 7 COLOR 0 255 0 OUTLINECOLOR 0 50 255 MINSIZE 20 MAXSIZE 50 END END END Symbol "7" is a circle. Your layer looks rather similar to mine. Have you tried to change the order of your style blocks? Perhaps your points got buried by the outline style. Regards, -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Julian Parker L?hetetty: ma 11.9.2006 11:30 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] Region fill I had another quick question - I am trying to get a certain fill within a region but cant seem to get it quite right. My understanding was that I should use a symbol and the region would be 'filled' with this but it always shows as a solid white fill. I am trying to get the region something like the following fill: _________ |. . . .| |. . . .| |. . . .| |. . . .| |_______| And the relavent detail in the MAP file I have is: LAYER NAME "Wards" STATUS ON DATA "DataBase\Boundaries\wards_region" TYPE POLYGON UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS TRANSPARENCY ALPHA LABELCACHE ON LABELITEM "Ward" METADATA END #Metadata CLASS NAME "Boundary" STYLE COLOR 208 255 208 SYMBOL "circle" SIZE 1 END #Style STYLE OUTLINECOLOR 132 132 242 ANTIALIAS TRUE WIDTH 2 END #Style #LABEL # FONT "Verdana" # TYPE TRUETYPE # ANTIALIAS TRUE # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # SIZE 10 #END #Label END # Class END # Layer Regards Julian Parker Systems Analyst Digital Mapping Solutions Level 2, 2 Hardy Street SOUTH PERTH WA 6151 Ph: 08 9474 6311 Fax: 08 9474 6411 Mobile: 0438 844 079 www.mapsolutions.com.au MapInfo Training | IntraMaps | InterMaps | MobileMap | News Disclaimer This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. Although every effort has been made to ensure the correctness and integrity of attachments that may be included in this email, this can only apply to the unaltered/uncorrupted form. A copy of the original attachment is available from our office should you require it. Alternately, if further verification is required please request a hard copy version. From siukola.antti at GMAIL.COM Mon Sep 11 02:21:09 2006 From: siukola.antti at GMAIL.COM (antti siukola) Date: Mon, 11 Sep 2006 12:21:09 +0300 Subject: layer and object ordering Message-ID: Hi! I have a layer that has several polygon objects that overlap each other. Is there a way to set ordering for these objects? Cheers! Antti S From davidvaz at NCC.UP.PT Mon Sep 11 03:48:26 2006 From: davidvaz at NCC.UP.PT (davidvaz) Date: Mon, 11 Sep 2006 11:48:26 +0100 Subject: Using Snapshots as input Message-ID: Hello, I am developing a GPS logs upload server and I will use mapserver to show the covered area of the uploaded GPS logs. As I am using shapefiles to store the logs, and I expect to have lots of logs, the display of the covered area will become a bit slow. My idea was to regularly take a snapshot of the covered area, and use it as input, to simplify the processing. Is there any way to do this? Thanks in advance, David Vaz From m.meier at SPIEKERMANN.DE Mon Sep 11 07:06:44 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Mon, 11 Sep 2006 16:06:44 +0200 Subject: Using Snapshots as input In-Reply-To: <45053EFA.1080500@ncc.up.pt> Message-ID: Hi, if I understand right, you want to compute from time to time a raster image from your area with all gps points at this time and after that show only the difference set as a shape file? You could do this with shp2img to create a png or jpeg. If the shown extent is the same every time you must only once produce a world file for this. The problem is that you can not zoom in or out with high quality. Perhaps you have to create images and world files for several extents and select them with MINSCALE and MAXSCALE. Manfred davidvaz schrieb: > Hello, > > I am developing a GPS logs upload server and I will use mapserver to > show the covered area of the uploaded GPS logs. > > As I am using shapefiles to store the logs, and I expect to have lots of > logs, the display of the covered area will become a bit slow. > > My idea was to regularly take a snapshot of the covered area, and use it > as input, to simplify the processing. > Is there any way to do this? > > Thanks in advance, > > David Vaz > From RMcCulley at COUNTY24.COM Mon Sep 11 10:01:20 2006 From: RMcCulley at COUNTY24.COM (Rob McCulley) Date: Mon, 11 Sep 2006 11:01:20 -0600 Subject: Set symbol in python mapscript Message-ID: Hi All, I'm creating a new layer in python mapscript, but I can't figure out how to set the symbol for that layer. I add my layer using: newLyr = mapscript.layerObj(projMap) newLyr.name = 'Project ' + projNum newLyr.type = mapscript.MS_LAYER_LINE newLyr.data = shpfilePath I can create class and style for my newLyr using: newCls = mapscript.classObj(newLyr) newStyle = mapscript.styleObj(newCls) I can access my symbolset, and I know my desired symbol is at index 8. What I can't figure out is how to make my new layer draw using the symbol from index 8. Rob McCulley GIS Coordinator County of Vermilion River No. 24 (780) 846-2244 www.vermilion-river.ab.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From luribe at MARCOPOLO.COM.CO Mon Sep 11 11:36:15 2006 From: luribe at MARCOPOLO.COM.CO (Luis Uribe) Date: Mon, 11 Sep 2006 13:36:15 -0500 Subject: Strange things in the MapServer Tutorial Message-ID: Hi all, I've installed MapServer 4.8.4 on a Fedora Core 3. All from scratch. The installation works fine, but when i load the tutorial , it shows me the maps normally, but in the src map field in the same page it prints: Menu for /tutorial/example1-1.map [an internal server error occured] And that's all, it suppossed to show the text from the map file- Looking the apache logs show me this (all in two single line): [Mon Sep 11 13:26:34 2006] [error] [client 192.168.0.1] map file /tutorial/example1-9.map, line 12 syntax error: requires at least two fields, referer: http://ucumari/cgi-bin/mapserv.exe?map=%2Fms4w%2Fapps%2Ftutorial%2Fhtdocs%2Fexample1-9.map& imgext=424099.390000+-767144.260000+1763727.390000+237576.740000&imgxy=200.0+150.0&zoom=0&layer=modis&layer=states&mode=browse&img.x=20&img.y=27 Anyone with the same error? Maybe someone have an idea to correct this? Thanks in adavance -- Luis Uribe Coordinador Departamento Tecnico Marcopolo [luribe at marcopolo.com.co] [Movil: 310-519-5960] [http://www.marcopolo.com.co] From jsievers at CO.LINN.OR.US Mon Sep 11 12:02:36 2006 From: jsievers at CO.LINN.OR.US (Sievers, Jason) Date: Mon, 11 Sep 2006 12:02:36 -0700 Subject: Query with tolerance problem Message-ID: I am performing a point based query with TOLERANCE and TOLERANCEUNITS set. This is working for me as expected under most cases. However, when the number of results returned from the query approaches the MAXFEATURES value I've defined, strange things happen. The feature I click on is not included in the results set! For instance, I am performing a point based query on a polygon layer with MAXFEATURES set to 25. I use a buffer of 500 feet and get 20 polygon features as results. But when I use a buffer of 550 feet and get 23 results, the feature I clicked on is not in the results. I have done a lot of testing and the behavior seems very consistent: when the number of results is "near" MAXFEATURES then the results are incorrect. Thanks for any help. Jason Sievers jsievers at co.linn.or.us Linn County GIS Department Albany, OR 97321 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmorley at GE.UCL.AC.UK Mon Sep 11 12:48:14 2006 From: jmorley at GE.UCL.AC.UK (Jeremy Morley) Date: Mon, 11 Sep 2006 20:48:14 +0100 Subject: Passing TIME to a cascaded WMS service Message-ID: Hi. We need to cascade a WMS service through our ICEDS system (ie have mapserver act as a WMS client to another WMS). However we need to pass a TIME parameter through to the cascaded service. As far as I can tell mapserver recomposes the WMS URL and drops any additional parameters, including TIME. Is this correct, and is there any way round this limitation? Thanks, Jeremy Morley -- -- ------------------------------------------------------------ -- Jeremy Morley | Dept. Geomatic Engineering, Lecturer- Geographic Info Systems | University College London jmorley at ge.ucl.ac.uk | Gower Street, +44 (20) 7679 2083 Tel (Direct) | LONDON WC1E 6BT +44 (20) 7380 0453 Fax (Dept) | United Kingdom From ollerery at ENGR.ORST.EDU Mon Sep 11 16:42:40 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Mon, 11 Sep 2006 16:42:40 -0700 Subject: ArcGIS spatial Extent In-Reply-To: <4505BD7E.3060209@ge.ucl.ac.uk> Message-ID: ArcGIS seems to default to a spatial extent of -180 - 180 degrees longitude when creating shapefiles, however my data has an extent of 0 - 360 degrees longitude. So my questions is, is it possible for MapServer to re-project this shapefile on the fly to fit to correct spatial extent? I think that i can remember seeing an example where the data started over when the user zoomes past the extent of the ma, so the farthest eastern edge was connect back to the farthest western edge. Does anyone know how to implement that? That would also fix my problem. thanks, -Ryan From ben at REMOTEINFORMATION.COM.AU Mon Sep 11 17:26:45 2006 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Tue, 12 Sep 2006 08:26:45 +0800 Subject: speed of map generation Message-ID: G'day all, We are generating a map showing relative densities in various polygons (worldwide adminstrative regions) of various commodities. This is being done using php-mapscript (4.8), by querying a SQL Server database, developing a range to code, and generating classes below. The shapefile does not have any of the data associated with it, only the id which matches up with that in the db. When we do this at a country level (242 countries) there is little trouble with speed - maybe a few seconds. However, at the next level (3300 administrative regions) this is taking way too long. Through various testing, the only step that is taking longer than 1 second is the $img = $map->draw(); step, which can take upwards of 15 seconds - very tedious for a user. (Originally we tried it using reprojection (to orthographic) it was routinely taking > 3 minutes!, so sadly that has been dropped.) I accept that the shapefile is large (90MB), and some time will be required, but this seems way to long. if we don't try to colour the polygons, the map displays very fast. I have attached the class definitions for a part of the mapfile which is generated. The CLASSITEM is the polygon id. Any suggestions?? CLASS NAME "< 7040000 /sq km" EXPRESSION /^$/ METADATA END STYLE ANGLE 360 COLOR 0 204 51 SYMBOL 0 END END CLASS NAME "< 5280000 /sq km" EXPRESSION /^157$/ METADATA END STYLE ANGLE 360 COLOR 0 153 102 SYMBOL 0 END END CLASS NAME "< 3520000 /sq km" EXPRESSION /^158$|^162$|^163$/ METADATA END STYLE ANGLE 360 COLOR 0 102 153 SYMBOL 0 END END CLASS NAME "< 1760000 /sq km" EXPRESSION /^156$|^160$|^161$/ METADATA END STYLE ANGLE 360 COLOR 0 51 204 SYMBOL 0 END END CLASS NAME " 0 " EXPRESSION /^$/ METADATA END STYLE ANGLE 360 COLOR 0 0 255 SYMBOL 0 END END CLASS NAME "No Data" EXPRESSION /^$/ METADATA END STYLE ANGLE 360 COLOR 255 250 205 SYMBOL 0 END END cheers Ben -- Ben Madin REMOTE INFORMATION t : 08 9192 5455 f : 08 9192 5535 m: 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminsims at YAHOO.COM Mon Sep 11 19:31:40 2006 From: benjaminsims at YAHOO.COM (Ben Sims) Date: Mon, 11 Sep 2006 19:31:40 -0700 Subject: problem plotting points on map using PHP/MapServer Message-ID: Hi to all, I'm trying out Mapserver, accessed through the PHP API running on my OSX dev machine. Specifically, I'm trying to draw a basic map, then plot some points on it, all done dynamically through the PHP script (ie without using a map file. So far, I can draw the basic map with a country outline. However, I am unable to draw points on the map. I have set up the basic map, and added a class and a layer for the points. I then run the following code: $image=$map->draw(); $point = ms_newPointObj(); $point->setXY(-21.97, 64.15); $return = $point->draw($map, $pointsLayer, $image, 0, 'A beautiful point'); $return is 0. Is there any way I can get further information as to what might be going wrong here, with more detail than just the success/failure methods? Couple of minor questions I would also appreciate advice on: Apparently the PHP function ms_newMapObj() must have a map file passed to it, although I noticed that the Python version does not. Is there a reason for this? At the moment, I have a dummy map file containing nothing which I have to use. If I use something like $layer->name = 'Layername', the layer name is not set (in fact it is set to null). Using $layer->set('name', 'Layername') it seems fine. Not really a problem, just wondered why. Thanks to all for considering this - would very much appreciate it if you could point me in the right direction. Regards, Benjamin From siki at AGT.BME.HU Tue Sep 12 02:33:13 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 12 Sep 2006 08:33:13 -0100 Subject: speed of map generation {Scanned} In-Reply-To: <14F36F09-EEE1-4C9B-992B-1E76540CD7B5@remoteinformation.com.au> Message-ID: Hi, Is your 90 MB data in one shapefile? Did you generate spatial index for it? See shptree. It makes drawing faster if you zoom in. Another idea to use a tileindex (e.g. split the big shape into smaller shapefiles). It also useful when zoomming in. Try to create more shape files for different resolutions, like gdaladdo makes it for raster data. And turn on/off them depending on the actual map scale. Just some tipps ... Zoltan On Tue, 12 Sep 2006, Ben Madin wrote: > G'day all, > > We are generating a map showing relative densities in various > polygons (worldwide adminstrative regions) of various commodities. > This is being done using php-mapscript (4.8), by querying a SQL > Server database, developing a range to code, and generating classes > below. The shapefile does not have any of the data associated with > it, only the id which matches up with that in the db. > > When we do this at a country level (242 countries) there is little > trouble with speed - maybe a few seconds. > > However, at the next level (3300 administrative regions) this is > taking way too long. Through various testing, the only step that is > taking longer than 1 second is the > > $img = $map->draw(); > > step, which can take upwards of 15 seconds - very tedious for a user. > (Originally we tried it using reprojection (to orthographic) it was > routinely taking > 3 minutes!, so sadly that has been dropped.) > > I accept that the shapefile is large (90MB), and some time will be > required, but this seems way to long. if we don't try to colour the > polygons, the map displays very fast. > > I have attached the class definitions for a part of the mapfile which > is generated. The CLASSITEM is the polygon id. Any suggestions?? > > CLASS > NAME "< 7040000 /sq km" > EXPRESSION /^$/ > METADATA > END > STYLE > ANGLE 360 > COLOR 0 204 51 > SYMBOL 0 > END > END > CLASS > NAME "< 5280000 /sq km" > EXPRESSION /^157$/ > METADATA > END > STYLE > ANGLE 360 > COLOR 0 153 102 > SYMBOL 0 > END > END > CLASS > NAME "< 3520000 /sq km" > EXPRESSION /^158$|^162$|^163$/ > METADATA > END > STYLE > ANGLE 360 > COLOR 0 102 153 > SYMBOL 0 > END > END > CLASS > NAME "< 1760000 /sq km" > EXPRESSION /^156$|^160$|^161$/ > METADATA > END > STYLE > ANGLE 360 > COLOR 0 51 204 > SYMBOL 0 > END > END > CLASS > NAME " 0 " > EXPRESSION /^$/ > METADATA > END > STYLE > ANGLE 360 > COLOR 0 0 255 > SYMBOL 0 > END > END > CLASS > NAME "No Data" > EXPRESSION /^$/ > METADATA > END > STYLE > ANGLE 360 > COLOR 255 250 205 > SYMBOL 0 > END > END > > > cheers > > Ben > > > From ben at REMOTEINFORMATION.COM.AU Mon Sep 11 23:50:41 2006 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Tue, 12 Sep 2006 14:50:41 +0800 Subject: problem plotting points on map using PHP/MapServer In-Reply-To: Message-ID: G'day Ben, I'm still working through this myself, but some thoughts below. there is a very helpful powerpoint called php_mapscript_mum2.ppt from DMSolutions, google it and get it. Also, bookmark http://www.maptools.org/php_mapscript/index.phtml?page=phpmapscript- class-guide.html if you haven't already. > > So far, I can draw the basic map with a country outline. However, I > am unable to draw points on the map. > > I have set up the basic map, and added a class and a layer for the > points. I then run the following code: > > $image=$map->draw(); > $point = ms_newPointObj(); > $point->setXY(-21.97, 64.15); > $return = $point->draw($map, $pointsLayer, $image, 0, 'A beautiful > point'); > > $return is 0. > > Is there any way I can get further information as to what might be > going wrong here, with more detail than just the success/failure > methods? > I might have this wrong, but you seem to have to turn your pointObj into a lineObj to add it to a shapeObj to add to the map. This is how I do it : (the str_replace is to deal with , decimals) $outbreakshape = ms_newShapeObj(MS_SHAPE_POINT); #B now add the points... foreach($dispmappoint->itemlist as $ob_id=>$locn) { #B make a point $outpoint = ms_newPointObj(); $outpoint -> setXY($locn[1],$locn[0]); #B Add it to a line object $obline = ms_newLineObj(); $obline->add($outpoint); #B Add it to our shape $outbreakshape->add($obline); } $dislayer->addFeature($outbreakshape); #B then add the feature to the map. Now try drawing it. > > Apparently the PHP function ms_newMapObj() must have a map file > passed to it, although I noticed that the Python version does not. > Is there a reason for this? At the moment, I have a dummy map file > containing nothing which I have to use. > No, it doesn't need one (or it didn't @ 4.8) you can just use $map=ms_newMapObj('',$mapserver_path); > If I use something like $layer->name = 'Layername', the layer name > is not set (in fact it is set to null). Using $layer->set('name', > 'Layername') it seems fine. Not really a problem, just wondered why. Others could answer this I'm sure... but although it seems a bit annoying at first, it is great for reusing code. I guess they have one function in the class that sets any variable. Good luck, and if I have it wrong, I'd be delighted to be corrected, or to see some smarter code. cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From beyhan at DEPREM.GOV.TR Tue Sep 12 03:35:10 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Tue, 12 Sep 2006 13:35:10 +0300 Subject: using OGR to connect MySQL (again) In-Reply-To: <4505BD7E.3060209@ge.ucl.ac.uk> Message-ID: Dear All, I'm still struggled with connect mysql and read information for draw points on the map. I'm trying to do that I suppose you can easily read information for the latitude and longitude of the epicenter points of the earthquakes and you can draw those points on he map by using OGR or GDAL. I mean there is no need to make shp files for this. am I right? for this reason to understand OGR, I have tried to execute following MYSQL:testogr,user=root,password=mysql_123,host=localhost,port=3306,tables=testogr SELECT id, lat, lon, data FROM tableogr wkbPoint I have faced following [murat at sakura ~]$ ogrinfo aqidata.ovf ERROR 4: Update access not supported for VRT datasources. ERROR 1: Failed to open datasource `MYSQL:testogr,user=root,password=mysql_123,host=localhost,port=3306,tables=tableogr'. FAILURE: Unable to open datasource `aqidata.ovf' with the following drivers. -> ESRI Shapefile -> MapInfo File -> UK .NTF -> SDTS -> TIGER -> S57 -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> SQLite -> PostgreSQL [murat at sakura ~]$ But I try to do followings those are work I think this create virtual data, right? [murat at sakura ~]$ ogr2ogr -f "ESRI Shapefile" MySQL:testogr,user=root,password=mysql_123 /var/www/html/mapdata/world_adm0.shp -nln tableogr1 -append -lco GEOMETRY_NAME=SHAPE2 [murat at sakura ~]$ ogrinfo MySQL:testogr,user=root,password=mysql_123 tableogr1 -so INFO: Open of `MySQL:testogr,user=root,password=mysql_123' using driver `ESRI Shapefile' successful. Layer name: tableogr1 Geometry: Polygon Feature Count: 209 Extent: (-180.000183, -90.000000) - (180.000000, 83.623032) Layer SRS WKT: (unknown) NAME: String (40.0) GMI_CNTRY: String (3.0) REGION: String (25.0) How can I use OGR MYSQL MAPSERVER to do a map that the information will come from MySQL tables. Thank you very much for your interest... Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From dovidio at PLANETEK.IT Tue Sep 12 03:46:10 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Tue, 12 Sep 2006 12:46:10 +0200 Subject: MapServer 4.6.0 Message-ID: Hello! Why isn't possible to download only binaries for windows of MapServer ? I don't want to download all of MS4W package. And, where is old version of binaries to download ? I need mapserver 4.6.0. does anybody help me ? Thank you. ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From Artur.Skalski at ACXIOM.COM Tue Sep 12 03:51:16 2006 From: Artur.Skalski at ACXIOM.COM (Skalski Artur - askals) Date: Tue, 12 Sep 2006 12:51:16 +0200 Subject: MapServer 4.6.0 Message-ID: try this location: http://maptools.org/php_mapscript/index.phtml?page=downloads.html -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Fabio D'Ovidio Sent: Tuesday, September 12, 2006 12:46 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapServer 4.6.0 Hello! Why isn't possible to download only binaries for windows of MapServer ? I don't want to download all of MS4W package. And, where is old version of binaries to download ? I need mapserver 4.6.0. does anybody help me ? Thank you. ******************************************************************************************** graphic Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** *************************************************************************** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. **************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: planetek.gif URL: From Jukka.Rahkonen at MMMTIKE.FI Tue Sep 12 05:28:15 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 12 Sep 2006 15:28:15 +0300 Subject: Personalized cascading WFS datasource without MapScript Message-ID: Hi, I succeeded in my trial in making a personalized WMS layer from my Oracle spatial data by defining layer DATA like this: DATA "GEOLOC FROM (SELECT MSLINK, GEOLOC FROM GIS_POLYGONS WHERE PLOHKONRO='%NUMBER%') USING UNIQUE MSLINK VERSION 9i" Then I can connect my WMS service by using URL like http://localhost/cgi-bin/mapserv.exe?map=oracle.map&NUMBER=111222333444 This works fine at least with one WMS client I have tested and my WMS layer has just one parcel on it. Now I would like to try the same with cascading WFS. I am getting what I want if I add the following filter attribute to the WFS-layer definition on my mapfile: "wfs_filter" "PLOHKONRO111222333444" Now my question if if it is possible to make this string in my filter dynamic without using MapScript? At least iserting variable name in the similar way than with native Oracle case like '%NUMBER%' does not work but the string '%NUMBER%' is passed to external WFS server instead. Regards, -Jukka Rahkonen- From nebojsa.balic at FELIS.UNI-FREIBURG.DE Tue Sep 12 05:31:23 2006 From: nebojsa.balic at FELIS.UNI-FREIBURG.DE (Nebojsa Balic) Date: Tue, 12 Sep 2006 14:31:23 +0200 Subject: Adding a polygon to a shapefile Message-ID: Dear Mapserver users, I have problem in creating a polygon shapefile. I am trying to write a PHP script aiming to add a polygon to a newly created shapefile by using the method addShape: $my_line = ms_newLineObj(); $my_line->addXY($x_1,$y_1); $my_line->addXY($x_2,$y_2); . . . $my_shape=ms_newShapeObj(MS_SHAPE_POLYGON); $my_shape->add($my_line); $file_name="C://my:shape//shape"; $my_file=ms_newShapefileObj("$file_name",MS_SHP_POLYGON); $dbfFile = dbase_create( $file_name.".dbf", array(array("ID", "N", 5,0))); $ft=$my_file->addShape($my_shape);//PROBLEM dbase_add_record($dbfFile, array(1)); dbase_close($dbfFile); $my_file->free(); return value of $ft is 0 which means that method addShape has been succesfully implemented. However, the members values of my Shapefileobj are 0 for numshapes and not available for source and bounds. I checked my polygon and all member variables are OK, so I am not sure what addShape function actually does and if it is necessary to add each point to the shapefile with the method addPoint. Where do I go wrong? 2. After I added points in the line and then the line to the shape (the coordinates of the last and first point are same), I realised that member variable bounds of the shape is not provided. I went around this problem by finding the smallest and greates x and y coordinates of the points I added to the line i.e. the shape which I then used to set boundaries: $my_shape->bounds->set(minx,$x_min); $my_shape->bounds->set(maxx,$x_max); $my_shape->bounds->set(miny,$y_min); $my_shape->bounds->set(maxy,$y_max); Is this right thing to do and why have not these bounds calculated automatically? Thanking in advance From ollerery at ENGR.ORST.EDU Tue Sep 12 08:25:11 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 12 Sep 2006 08:25:11 -0700 Subject: Sterepgraphic Projection In-Reply-To: <00bc01c6d359$73e00890$6f00a8c0@aiandolo> Message-ID: I am trying to project my data to a stereographic projection using the following definition in my mapfile. However this appears to be just stretching one pixel of my image across the screen. Any ideas on what i could be doing wrong? Map object extent: EXTENT 0 -90 360 90 Map object projection PROJECTION "proj=stere" "lon_0=90" "k=10" "lat_ts=0" END layer object projection PROJECTION "init=epsg:4326" END From benpub at INQUIRIUM.NET Tue Sep 12 09:24:39 2006 From: benpub at INQUIRIUM.NET (Ben Loh) Date: Tue, 12 Sep 2006 11:24:39 -0500 Subject: New GiS for History site Message-ID: Hi folks, I just thought I'd share our new web site prototype for exploring historical census data intended for high school and college students. Obviously, it's based on mapserver. We're using php-mapscript with AJAX for the interface. I'd be very interested in any input that any of you have, as we're not GIS pros. The main url: A direct link to a map: A few highlights: * We're using historically accurate county maps from NHGIS along with historical US census data from 1790 through 1970, and a few layers that we constructed ourselves. (One big issue we have right now is that we aren't using simplified shape files for the counties, so the load time is rather slow. My guess is that we can cut down the load time by about half with simpler shapes.). * To help students keep track of what they're doing, we implemented a "Query History" that records each click/setting they make ala Photoshop's history feature. * You can pan ala google maps by dragging the map. (We're still troubleshooting a problem with Win IE where if you have the "Temporary Internet Files" setting set to "Every visit to the page" we run into caching issues while dragging). * We're using AJAX to try to minimize bandwidth issues, as many schools have a narrow pipe. (We're still trying to optimize loading. The legend is generated dynamically via javascript and css to minimize the number of files that need to be downloaded from the server with any single call). * The site is intended for novices, so it is deliberately simple. We'd love to hear any suggestions or rants! Thanks, Ben -- b e n l o h . . . i n q u i r i u m . design for learning . mobile 773-220-8889 (primary line) . http://www.inquirium.net . voice 773-947-0450 . ben at inquirium.net . fax 773-947-6764 From woodbri at SWOODBRIDGE.COM Tue Sep 12 10:52:35 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 12 Sep 2006 13:52:35 -0400 Subject: New GiS for History site In-Reply-To: Message-ID: Hi Ben, I get a javascript error: doctopicsEl has no properties gishistory.js (line 113) And the Loading...111.109 message continues far longer than I was willing to wait. How far does it have to get on the initial load? -Steve Ben Loh wrote: > Hi folks, > > I just thought I'd share our new web site prototype for exploring > historical census data intended for high school and college students. > Obviously, it's based on mapserver. We're using php-mapscript with AJAX > for the interface. I'd be very interested in any input that any of you > have, as we're not GIS pros. > > The main url: > > A direct link to a map: > > > > A few highlights: > > * We're using historically accurate county maps from NHGIS along with > historical US census data from 1790 through 1970, and a few layers that > we constructed ourselves. (One big issue we have right now is that we > aren't using simplified shape files for the counties, so the load time > is rather slow. My guess is that we can cut down the load time by about > half with simpler shapes.). > > * To help students keep track of what they're doing, we implemented a > "Query History" that records each click/setting they make ala > Photoshop's history feature. > > * You can pan ala google maps by dragging the map. (We're still > troubleshooting a problem with Win IE where if you have the "Temporary > Internet Files" setting set to "Every visit to the page" we run into > caching issues while dragging). > > * We're using AJAX to try to minimize bandwidth issues, as many schools > have a narrow pipe. (We're still trying to optimize loading. The legend > is generated dynamically via javascript and css to minimize the number > of files that need to be downloaded from the server with any single call). > > * The site is intended for novices, so it is deliberately simple. > > We'd love to hear any suggestions or rants! > > Thanks, > > Ben > From benpub at INQUIRIUM.NET Tue Sep 12 11:15:12 2006 From: benpub at INQUIRIUM.NET (Ben Loh) Date: Tue, 12 Sep 2006 13:15:12 -0500 Subject: New GiS for History site Message-ID: Hi Stephen, Thanks for the note. Ack. How's that for an inauspicious debut... That's what I get for adding a last minute shortcut. It ought to work now. In general, your load time ought to be less than 2 seconds. Our server's connection also isn't quite optimized yet (it's sitting in an office right now), so load times might also vary depending on other traffic. I apologize for the inconvenience. B At 1:52 p -0400 9/12/06, Stephen Woodbridge wrote: >Hi Ben, > >I get a javascript error: > >doctopicsEl has no properties gishistory.js (line 113) > >And the Loading...111.109 message continues far longer than I was >willing to wait. How far does it have to get on the initial load? > >-Steve > > >Ben Loh wrote: >>Hi folks, >> >>I just thought I'd share our new web site prototype for exploring >>historical census data intended for high school and college >>students. Obviously, it's based on mapserver. We're using >>php-mapscript with AJAX for the interface. I'd be very interested >>in any input that any of you have, as we're not GIS pros. >> >>The main url: >> >>A direct link to a map: >> >> >> >>A few highlights: >> >>* We're using historically accurate county maps from NHGIS along >>with historical US census data from 1790 through 1970, and a few >>layers that we constructed ourselves. (One big issue we have right >>now is that we aren't using simplified shape files for the >>counties, so the load time is rather slow. My guess is that we can >>cut down the load time by about half with simpler shapes.). >> >>* To help students keep track of what they're doing, we implemented >>a "Query History" that records each click/setting they make ala >>Photoshop's history feature. >> >>* You can pan ala google maps by dragging the map. (We're still >>troubleshooting a problem with Win IE where if you have the >>"Temporary Internet Files" setting set to "Every visit to the page" >>we run into caching issues while dragging). >> >>* We're using AJAX to try to minimize bandwidth issues, as many >>schools have a narrow pipe. (We're still trying to optimize >>loading. The legend is generated dynamically via javascript and css >>to minimize the number of files that need to be downloaded from the >>server with any single call). >> >>* The site is intended for novices, so it is deliberately simple. >> >>We'd love to hear any suggestions or rants! >> >>Thanks, >> >>Ben -- b e n l o h . . . i n q u i r i u m . design for learning . mobile 773-220-8889 (primary line) . http://www.inquirium.net . voice 773-947-0450 . ben at inquirium.net . fax 773-947-6764 From punkish at EIDESIS.ORG Tue Sep 12 11:26:40 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Tue, 12 Sep 2006 13:26:40 -0500 Subject: New GiS for History site In-Reply-To: Message-ID: still not working well. Earlier, I gave up after about "Loading...300...", but this time, even though the first screen is quick, clicking the zoom button locked me into "Loading...199.207" Looks nice, if it works... quick. My suggestion would be to work on speed quite a bit, especially given you say -- "> >>* We're using AJAX to try to minimize bandwidth issues, as many > >>schools have a narrow pipe. One more thing, I wasn't even sure where to begin once I went to gisforhistory.org. After poking around a bit, I gave up, came back to your email, and found the direct link to the maps. Make the direct link, well, more direct. Hope this helps. On 9/12/06, Ben Loh wrote: > Hi Stephen, > > Thanks for the note. > > Ack. How's that for an inauspicious debut... > > That's what I get for adding a last minute shortcut. It ought to work now. > > In general, your load time ought to be less than 2 seconds. Our > server's connection also isn't quite optimized yet (it's sitting in > an office right now), so load times might also vary depending on > other traffic. > > I apologize for the inconvenience. > > B > > > > At 1:52 p -0400 9/12/06, Stephen Woodbridge wrote: > >Hi Ben, > > > >I get a javascript error: > > > >doctopicsEl has no properties gishistory.js (line 113) > > > >And the Loading...111.109 message continues far longer than I was > >willing to wait. How far does it have to get on the initial load? > > > >-Steve > > > > > >Ben Loh wrote: > >>Hi folks, > >> > >>I just thought I'd share our new web site prototype for exploring > >>historical census data intended for high school and college > >>students. Obviously, it's based on mapserver. We're using > >>php-mapscript with AJAX for the interface. I'd be very interested > >>in any input that any of you have, as we're not GIS pros. > >> > >>The main url: > >> > >>A direct link to a map: > >> > >> > >> > >>A few highlights: > >> > >>* We're using historically accurate county maps from NHGIS along > >>with historical US census data from 1790 through 1970, and a few > >>layers that we constructed ourselves. (One big issue we have right > >>now is that we aren't using simplified shape files for the > >>counties, so the load time is rather slow. My guess is that we can > >>cut down the load time by about half with simpler shapes.). > >> > >>* To help students keep track of what they're doing, we implemented > >>a "Query History" that records each click/setting they make ala > >>Photoshop's history feature. > >> > >>* You can pan ala google maps by dragging the map. (We're still > >>troubleshooting a problem with Win IE where if you have the > >>"Temporary Internet Files" setting set to "Every visit to the page" > >>we run into caching issues while dragging). > >> > >>* We're using AJAX to try to minimize bandwidth issues, as many > >>schools have a narrow pipe. (We're still trying to optimize > >>loading. The legend is generated dynamically via javascript and css > >>to minimize the number of files that need to be downloaded from the > >>server with any single call). > >> > >>* The site is intended for novices, so it is deliberately simple. > >> > >>We'd love to hear any suggestions or rants! > >> > >>Thanks, > >> > >>Ben > > > -- > b e n l o h . . . i n q u i r i u m > . design for learning . mobile 773-220-8889 (primary line) > . http://www.inquirium.net . voice 773-947-0450 > . ben at inquirium.net . fax 773-947-6764 > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From woodbri at SWOODBRIDGE.COM Tue Sep 12 11:52:31 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 12 Sep 2006 14:52:31 -0400 Subject: New GiS for History site In-Reply-To: Message-ID: Sorry, I forgot to mention that I am using FireFox, and it is still broken in that. EI loads ok. -Steve Ben Loh wrote: > Hi Stephen, > > Thanks for the note. > > Ack. How's that for an inauspicious debut... > > That's what I get for adding a last minute shortcut. It ought to work now. > > In general, your load time ought to be less than 2 seconds. Our > server's connection also isn't quite optimized yet (it's sitting in an > office right now), so load times might also vary depending on other > traffic. > > I apologize for the inconvenience. > > B > > > > At 1:52 p -0400 9/12/06, Stephen Woodbridge wrote: >> Hi Ben, >> >> I get a javascript error: >> >> doctopicsEl has no properties gishistory.js (line 113) >> >> And the Loading...111.109 message continues far longer than I was >> willing to wait. How far does it have to get on the initial load? >> >> -Steve >> >> >> Ben Loh wrote: >>> Hi folks, >>> >>> I just thought I'd share our new web site prototype for exploring >>> historical census data intended for high school and college students. >>> Obviously, it's based on mapserver. We're using php-mapscript with >>> AJAX for the interface. I'd be very interested in any input that any >>> of you have, as we're not GIS pros. >>> >>> The main url: >>> >>> A direct link to a map: >>> >>> >>> >>> A few highlights: >>> >>> * We're using historically accurate county maps from NHGIS along with >>> historical US census data from 1790 through 1970, and a few layers >>> that we constructed ourselves. (One big issue we have right now is >>> that we aren't using simplified shape files for the counties, so the >>> load time is rather slow. My guess is that we can cut down the load >>> time by about half with simpler shapes.). >>> >>> * To help students keep track of what they're doing, we implemented a >>> "Query History" that records each click/setting they make ala >>> Photoshop's history feature. >>> >>> * You can pan ala google maps by dragging the map. (We're still >>> troubleshooting a problem with Win IE where if you have the >>> "Temporary Internet Files" setting set to "Every visit to the page" >>> we run into caching issues while dragging). >>> >>> * We're using AJAX to try to minimize bandwidth issues, as many >>> schools have a narrow pipe. (We're still trying to optimize loading. >>> The legend is generated dynamically via javascript and css to >>> minimize the number of files that need to be downloaded from the >>> server with any single call). >>> >>> * The site is intended for novices, so it is deliberately simple. >>> >>> We'd love to hear any suggestions or rants! >>> >>> Thanks, >>> >>> Ben > > From benpub at INQUIRIUM.NET Tue Sep 12 13:30:48 2006 From: benpub at INQUIRIUM.NET (Ben Loh) Date: Tue, 12 Sep 2006 15:30:48 -0500 Subject: New GiS for History site In-Reply-To: Message-ID: At 1:26 p -0500 9/12/06, P Kishor wrote: >still not working well. Earlier, I gave up after about >"Loading...300...", but this time, even though the first screen is >quick, clicking the zoom button locked me into "Loading...199.207" > >Looks nice, if it works... quick. My suggestion would be to work on >speed quite a bit, especially given you say -- Thanks, Puneet. I'm curious where you're located. Are you in Madison? We definitely have not optimized our connection yet, but at least in the midwest US and western US, I've generally been able to get responses around 3 seconds or less. On the other hand, we also occasionally get really long hangs. I think it's because mapserver is taking so long to generate the overly complex maps, but this is our next big challenge. >"> >>* We're using AJAX to try to minimize bandwidth issues, as many >> >>schools have a narrow pipe. > >One more thing, I wasn't even sure where to begin once I went to >gisforhistory.org. After poking around a bit, I gave up, came back to >your email, and found the direct link to the maps. Make the direct >link, well, more direct. Yeah, good point. The idea with the site is to introduce it to teachers first via teacher workshops, so they'd have some kind of overview first. Thanks again, Ben -- b e n l o h . . . i n q u i r i u m . design for learning . mobile 773-220-8889 (primary line) . http://www.inquirium.net . voice 773-947-0450 . ben at inquirium.net . fax 773-947-6764 From punkish at EIDESIS.ORG Tue Sep 12 14:00:01 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Tue, 12 Sep 2006 16:00:01 -0500 Subject: New GiS for History site In-Reply-To: Message-ID: On 9/12/06, Ben Loh wrote: > At 1:26 p -0500 9/12/06, P Kishor wrote: > >still not working well. Earlier, I gave up after about > >"Loading...300...", but this time, even though the first screen is > >quick, clicking the zoom button locked me into "Loading...199.207" > > > >Looks nice, if it works... quick. My suggestion would be to work on > >speed quite a bit, especially given you say -- > > > Thanks, Puneet. I'm curious where you're located. Are you in > Madison? Yup. Although you shouldn't hold that against me. ;-) > We definitely have not optimized our connection yet, but at > least in the midwest US and western US, I've generally been able to > get responses around 3 seconds or less. On the other hand, we also > occasionally get really long hangs. Nothing but the hangs here. > I think it's because mapserver > is taking so long to generate the overly complex maps, but this is > our next big challenge. Do you really need any overly complex map when just showing the overview? The very first view, that of the entire country, need not be very complex. You should make liberal and judicious use of MAXSCALE (or whatever the syntax is... have forgotten most of .map files), querying and drawing complex geometries only when zoomed in. > > > >"> >>* We're using AJAX to try to minimize bandwidth issues, as many > >> >>schools have a narrow pipe. > > > >One more thing, I wasn't even sure where to begin once I went to > >gisforhistory.org. After poking around a bit, I gave up, came back to > >your email, and found the direct link to the maps. Make the direct > >link, well, more direct. > > Yeah, good point. The idea with the site is to introduce it to > teachers first via teacher workshops, so they'd have some kind of > overview first. Understood. Nevertheless, making the map link upfront and prominent might be good karma anyway. -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From benpub at INQUIRIUM.NET Tue Sep 12 14:16:09 2006 From: benpub at INQUIRIUM.NET (Ben Loh) Date: Tue, 12 Sep 2006 16:16:09 -0500 Subject: New GiS for History site In-Reply-To: Message-ID: >>P Kishor wrote: >>We definitely have not optimized our connection yet, but at >>least in the midwest US and western US, I've generally been able to >>get responses around 3 seconds or less. On the other hand, we also >>occasionally get really long hangs. > >Nothing but the hangs here. D'oh! >>I think it's because mapserver >>is taking so long to generate the overly complex maps, but this is >>our next big challenge. > >Do you really need any overly complex map when just showing the >overview? The very first view, that of the entire country, need not be >very complex. You should make liberal and judicious use of MAXSCALE >(or whatever the syntax is... have forgotten most of .map files), >querying and drawing complex geometries only when zoomed in. Yes, very true. We're hoping to get simplified shape files from another source soon. My admittedly shaky understanding is that the technique here is to swap between the complex and the simple shape files based on the scale, yes? Or is there actually a way to have mapserver simplify the shape file on the fly? Regards, Ben -- b e n l o h . . . i n q u i r i u m . design for learning . mobile 773-220-8889 (primary line) . http://www.inquirium.net . voice 773-947-0450 . ben at inquirium.net . fax 773-947-6764 From punkish at EIDESIS.ORG Tue Sep 12 14:22:51 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Tue, 12 Sep 2006 16:22:51 -0500 Subject: New GiS for History site In-Reply-To: Message-ID: On 9/12/06, Ben Loh wrote: .. > >Do you really need any overly complex map when just showing the > >overview? The very first view, that of the entire country, need not be > >very complex. You should make liberal and judicious use of MAXSCALE > >(or whatever the syntax is... have forgotten most of .map files), > >querying and drawing complex geometries only when zoomed in. > > Yes, very true. We're hoping to get simplified shape files from > another source soon. My admittedly shaky understanding is that the > technique here is to swap between the complex and the simple shape > files based on the scale, yes? Or is there actually a way to have > mapserver simplify the shape file on the fly? Yes to former, nope to latter. You don't want to have MapServer simplify the data for you. Instead, you preprocess and simplify the data for MapServer. Build different datasets for different scales, and then just query the appropriate dataset. Your application will become very sprightly. -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From Gabriel.Weaver at TUFTS.EDU Tue Sep 12 15:23:42 2006 From: Gabriel.Weaver at TUFTS.EDU (Gabriel A Weaver) Date: Tue, 12 Sep 2006 18:23:42 -0400 Subject: Question Regarding Perl Mapscript Message-ID: Hi all, I am trying to install mapscript for perl and run into the following error: [terminal: ]$ perl -e 'use lib "/web/cgi-bin/Progs/lib/5.6.0/i386-linux"; use mapscript; my $map = new mapObj("DBs/MapData/world.map"); if ($map == null) { print "UTOH!";} else { print "IT WORKS!";}' Unfortunately, I keep getting "UTOH", indicating I have a null pointer instead of a mapObj object. So far I have: a) verified that the world.map file is in the proper location b) checked permissions c) rebuilt mapscript.pm after re-swigging. Note, I am building with an older version of MapServer, a version from 1999, because I heard that MapServer 4 maps may not be fully compatible with mapserver 3 data. Any help you could provide would be much appreciated. Thanks, Gabe From cermak at SFOS.UAF.EDU Tue Sep 12 18:21:13 2006 From: cermak at SFOS.UAF.EDU (Rob Cermak) Date: Tue, 12 Sep 2006 17:21:13 -0800 Subject: patch for SLD (vs. 4.8.3) Message-ID: Hi, We have a patch for the SLD rendering for the colormap. It seems that it is documented to take doubles, but all floats passed via SLD become ints through use of atoi. This patch only takes care of the ColorMap. This allows color rendering of float values. http://ak.aoos.org/data/patch/mapserver_483_mapogcsld.patch If some change could work into 4.10, that would be great. Cheers, Rob --- mapogcsld.c.orig 2006-09-12 15:30:39.000000000 -0800 +++ mapogcsld.c 2006-09-12 15:32:24.000000000 -0800 @@ -2354,6 +2354,7 @@ char szExpression[100]; int nClassId = 0; double dfOpacity = 1.0; + char *pch, *pchPrevious; if (!psRoot || !psLayer) return; @@ -2403,10 +2404,32 @@ sColor.blue = hex2int(pszPreviousColor+5); /* ?? Test if pszPreviousQuality < pszQuantity */ - sprintf(szExpression, - "([pixel] >= %d AND [pixel] < %d)", - atoi(pszPreviousQuality), - atoi(pszQuantity)); + + /* pszQuantity and pszPreviousQuality may be integer or float */ + pchPrevious=strchr(pszPreviousQuality,'.'); + pch=strchr(pszQuantity,'.'); + if (pchPrevious==NULL && pch==NULL) { + sprintf(szExpression, + "([pixel] >= %d AND [pixel] < %d)", + atoi(pszPreviousQuality), + atoi(pszQuantity)); + } else if (pchPrevious != NULL && pch==NULL) { + sprintf(szExpression, + "([pixel] >= %f AND [pixel] < %d)", + atof(pszPreviousQuality), + atoi(pszQuantity)); + } else if (pchPrevious == NULL && pch != NULL) { + sprintf(szExpression, + "([pixel] >= %d AND [pixel] < %f)", + atoi(pszPreviousQuality), + atof(pszQuantity)); + } else { + sprintf(szExpression, + "([pixel] >= %f AND [pixel] < %f)", + atof(pszPreviousQuality), + atof(pszQuantity)); + } + if (psLayer->numclasses < MS_MAXCLASSES) { initClass(&(psLayer->class[psLayer->numclasses])); @@ -2456,7 +2479,15 @@ sColor.red = hex2int(pszColor+1); sColor.green= hex2int(pszColor+3); sColor.blue = hex2int(pszColor+5); - sprintf(szExpression, "([pixel] = %d)", atoi(pszQuantity)); + + /* pszQuantity may be integer or float */ + pch=strchr(pszQuantity,'.'); + if (pch==NULL) { + sprintf(szExpression, "([pixel] = %d)", atoi(pszQuantity)); + } else { + sprintf(szExpression, "([pixel] = %f)", atof(pszQuantity)); + } + if (psLayer->numclasses < MS_MAXCLASSES) { initClass(&(psLayer->class[psLayer->numclasses])); Rob -- Alaska Ocean Observing System Database Manager 907-474-7948 From cwatson at UTAS.EDU.AU Tue Sep 12 19:41:29 2006 From: cwatson at UTAS.EDU.AU (Christopher Watson) Date: Wed, 13 Sep 2006 12:41:29 +1000 Subject: Line width and projection question Message-ID: Hi, I'm after a fix / work around to what is probably a common problem when using geographic projections. I'm using the WGS84 projection (epsg:4326) are there is no 'wrap around' past the 180E/W meridian, i.e., if i center the map on 180E then the western half of my global coastline shapefile will not show (with the inverse is true if i center on 180W). Tips anyone? Appreciate your help. Thanks, Chris From m.meier at SPIEKERMANN.DE Tue Sep 12 21:10:45 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Wed, 13 Sep 2006 06:10:45 +0200 Subject: speed of map generation In-Reply-To: <14F36F09-EEE1-4C9B-992B-1E76540CD7B5@remoteinformation.com.au> Message-ID: Hello, >> This is being >> done using php-mapscript (4.8), by querying a SQL Server database, there were some mails a few weeks ago about speed and database connections on this list. Look for: "performance with different data formats" (date: about Aug, 20-23). Perhaps this applies to your problem too. >> if we don't try to colour the >> polygons, the map displays very fast. Could you put for a test the data into the dbf file of this layer? It would be interesting to see if there a difference in speed when not using a database connection. >> EXPRESSION /^158$|^162$|^163$/ I don't think, that your problem with speed is because of your regular exp. But since you have only a few classes, could you add a new field to the database with a number from 1..n corresponding to your classen and use this number field as CLASSITEM? Only to see if there is a difference. Manfred Ben Madin schrieb: > G'day all, > > We are generating a map showing relative densities in various polygons > (worldwide adminstrative regions) of various commodities. This is being > done using php-mapscript (4.8), by querying a SQL Server database, > developing a range to code, and generating classes below. The shapefile > does not have any of the data associated with it, only the id which > matches up with that in the db. > > When we do this at a country level (242 countries) there is little > trouble with speed - maybe a few seconds. > > However, at the next level (3300 administrative regions) this is taking > way too long. Through various testing, the only step that is taking > longer than 1 second is the > > $img = $map->draw(); > > step, which can take upwards of 15 seconds - very tedious for a user. > (Originally we tried it using reprojection (to orthographic) it was > routinely taking > 3 minutes!, so sadly that has been dropped.) > > I accept that the shapefile is large (90MB), and some time will be > required, but this seems way to long. if we don't try to colour the > polygons, the map displays very fast. > > I have attached the class definitions for a part of the mapfile which is > generated. The CLASSITEM is the polygon id. Any suggestions?? > > CLASS > NAME "< 7040000 /sq km" > EXPRESSION /^$/ > METADATA > END > STYLE > ANGLE 360 > COLOR 0 204 51 > SYMBOL 0 > END > END > CLASS > NAME "< 5280000 /sq km" > EXPRESSION /^157$/ > METADATA > END > STYLE > ANGLE 360 > COLOR 0 153 102 > SYMBOL 0 > END > END > CLASS > NAME "< 3520000 /sq km" > EXPRESSION /^158$|^162$|^163$/ > METADATA > END > STYLE > ANGLE 360 > COLOR 0 102 153 > SYMBOL 0 > END > END > CLASS > NAME "< 1760000 /sq km" > EXPRESSION /^156$|^160$|^161$/ > METADATA > END > STYLE > ANGLE 360 > COLOR 0 51 204 > SYMBOL 0 > END > END > CLASS > NAME " 0 " > EXPRESSION /^$/ > METADATA > END > STYLE > ANGLE 360 > COLOR 0 0 255 > SYMBOL 0 > END > END > CLASS > NAME "No Data" > EXPRESSION /^$/ > METADATA > END > STYLE > ANGLE 360 > COLOR 255 250 205 > SYMBOL 0 > END > END > > > cheers > > Ben > > > -- > > Ben Madin > REMOTE INFORMATION > > t : 08 9192 5455 > f : 08 9192 5535 > m: 0448 887 220 > Broome WA 6725 > > ben at remoteinformation.com.au > > > > > > Out here, it pays to know... > > > > > > > From bartvde at XS4ALL.NL Tue Sep 12 22:46:44 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 13 Sep 2006 07:46:44 +0200 Subject: patch for SLD (vs. 4.8.3) In-Reply-To: <38779.137.229.40.226.1158110473.squirrel@www.sfos.uaf.edu> Message-ID: Hi, can you please submit this via the Mapserver bugzilla? Thanks in advance. Best regards, Bart Rob Cermak schreef: > Hi, > > We have a patch for the SLD rendering for the colormap. It seems that it is > documented to take doubles, but all floats passed via SLD become ints through > use of atoi. > > This patch only takes care of the ColorMap. This allows color rendering of > float values. > > http://ak.aoos.org/data/patch/mapserver_483_mapogcsld.patch > > If some change could work into 4.10, that would be great. > > Cheers, > Rob > > --- mapogcsld.c.orig 2006-09-12 15:30:39.000000000 -0800 > +++ mapogcsld.c 2006-09-12 15:32:24.000000000 -0800 > @@ -2354,6 +2354,7 @@ > char szExpression[100]; > int nClassId = 0; > double dfOpacity = 1.0; > + char *pch, *pchPrevious; > > if (!psRoot || !psLayer) > return; > @@ -2403,10 +2404,32 @@ > sColor.blue = hex2int(pszPreviousColor+5); > > /* ?? Test if pszPreviousQuality < pszQuantity */ > - sprintf(szExpression, > - "([pixel] >= %d AND [pixel] < %d)", > - atoi(pszPreviousQuality), > - atoi(pszQuantity)); > + > + /* pszQuantity and pszPreviousQuality may be integer or float */ > + pchPrevious=strchr(pszPreviousQuality,'.'); > + pch=strchr(pszQuantity,'.'); > + if (pchPrevious==NULL && pch==NULL) { > + sprintf(szExpression, > + "([pixel] >= %d AND [pixel] < %d)", > + atoi(pszPreviousQuality), > + atoi(pszQuantity)); > + } else if (pchPrevious != NULL && pch==NULL) { > + sprintf(szExpression, > + "([pixel] >= %f AND [pixel] < %d)", > + atof(pszPreviousQuality), > + atoi(pszQuantity)); > + } else if (pchPrevious == NULL && pch != NULL) { > + sprintf(szExpression, > + "([pixel] >= %d AND [pixel] < %f)", > + atoi(pszPreviousQuality), > + atof(pszQuantity)); > + } else { > + sprintf(szExpression, > + "([pixel] >= %f AND [pixel] < %f)", > + atof(pszPreviousQuality), > + atof(pszQuantity)); > + } > + > if (psLayer->numclasses < MS_MAXCLASSES) > { > initClass(&(psLayer->class[psLayer->numclasses])); > @@ -2456,7 +2479,15 @@ > sColor.red = hex2int(pszColor+1); > sColor.green= hex2int(pszColor+3); > sColor.blue = hex2int(pszColor+5); > - sprintf(szExpression, "([pixel] = %d)", atoi(pszQuantity)); > + > + /* pszQuantity may be integer or float */ > + pch=strchr(pszQuantity,'.'); > + if (pch==NULL) { > + sprintf(szExpression, "([pixel] = %d)", atoi(pszQuantity)); > + } else { > + sprintf(szExpression, "([pixel] = %f)", atof(pszQuantity)); > + } > + > if (psLayer->numclasses < MS_MAXCLASSES) > { > initClass(&(psLayer->class[psLayer->numclasses])); > > > Rob > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From trondmm-mapserver at CRUSADERS.NO Tue Sep 12 23:49:01 2006 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Wed, 13 Sep 2006 08:49:01 +0200 Subject: Question Regarding Perl Mapscript In-Reply-To: <20060912182342.ycknpxj7oko84cco@webmail.tufts.edu> Message-ID: On Tue, Sep 12, 2006 at 06:23:42PM -0400, Gabriel A Weaver wrote: > Hi all, > I am trying to install mapscript for perl and run into the following error: > > [terminal: ]$ perl -e 'use lib > "/web/cgi-bin/Progs/lib/5.6.0/i386-linux"; use mapscript; my $map = new > mapObj("DBs/MapData/world.map"); if ($map == null) { print "UTOH!";} > else { print "IT WORKS!";}' > Unfortunately, I keep getting "UTOH", indicating I have a null pointer > instead of a mapObj object. Actually, in this case it indicates that your perl-code is wrong. perl -le 'if ("string" == null) {print "EGAD!"} else {print "Whohoo!"}' will print "EGAD!" The problem is that null means nothing in perl (erm - what I mean is - it has no special meaning in perl :). And since you're not using strict or warnings, that means that null is promoted to a string. But "string" does still not equal "null", you might think. That's true, but you're not checking if they're equal, you're checking if they're _numerically_ equal. In perl, strings that does not look like a number has the numerical value of 0, so in this case, "string" is indeed numerically equal to "null". When you program perl, you should ALWAYS! use strict and use warnings. This will catch a lot of this type of mistakes. In this case, strict would have resulted in a compilation error: $ perl -Mstrict -le 'if ("string" == null) {print "EGAD!"} else {print "Whohoo!"}' Bareword "null" not allowed while "strict subs" in use at -e line 1. Execution of -e aborted due to compilation errors. While just using warnings would have given these warnings: $ perl -Mwarnings -le 'if ("string" == null) {print "EGAD!"} else {print "Whohoo!"}' Unquoted string "null" may clash with future reserved word at -e line 1. Argument "null" isn't numeric in numeric eq (==) at -e line 1. Argument "string" isn't numeric in numeric eq (==) at -e line 1. EGAD! You're looking for undef. Also, the best way to test for definedness, is to use the defined() function. if (defined($map)) {...} You could also check if $map is a reference if (ref($map)) {...} I haven't looked at the mapscript documentation in a while, so I'm not sure what mapObj->new() will return in case of a failure, though. -- Trond Michelsen From carsten.dewey at ENDOXON.COM Wed Sep 13 00:03:16 2006 From: carsten.dewey at ENDOXON.COM (Carsten Dewey) Date: Wed, 13 Sep 2006 09:03:16 +0200 Subject: CLASSITEM and logical EXPRESSION based on more attributes? Message-ID: Dear list, I would like to define a CLASS using a logical expression based on different attributes inside EXPRESSION: EXPRESSION ("[AR_Auto]"="N" and "[AR_Pedestrians]"="Y" and "[AR_Trucks]"="N") What about the CLASSITEM in this case? Define the LAYER just without? Thank you & kind regards carsten From baas at SPEERIT.NL Wed Sep 13 02:40:56 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Wed, 13 Sep 2006 11:40:56 +0200 Subject: Support for styleitem auto in OGR Message-ID: Hello again, The support for "styleitem auto" is still rather primitive in MapServer, right? Are there still people working on this? Drawing simple lines goes OK, but now I have a line which has a special line style (dotted) and MapServer doesn't draw this line at all. Any ideas if this will be supported in next versions? -- With kind regards, Jelmer Baas Speer IT B.V. From tkirstine at JDBARNES.COM Wed Sep 13 05:52:01 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine) Date: Wed, 13 Sep 2006 08:52:01 -0400 Subject: MapInfo .tab vs Shapefile Message-ID: Hi, In general do shp files with a .qix index display faster than mapinfo .tab files connected with ogr? I've looked through the docs and that is the general impression I get but there is no definite statement. Cheers, Travis From lfilak at MEDINACO.ORG Wed Sep 13 05:52:27 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Wed, 13 Sep 2006 08:52:27 -0400 Subject: Question Regarding Perl Mapscript In-Reply-To: <20060912182342.ycknpxj7oko84cco@webmail.tufts.edu> Message-ID: Gabriel A Weaver writes: > Hi all, > > I am trying to install mapscript for perl and run into the following > error: > > [terminal: ]$ perl -e 'use lib "/web/cgi-bin/Progs/lib/5.6.0/i386-linux"; > use mapscript; my $map = new mapObj("DBs/MapData/world.map"); if ($map == > null) { print "UTOH!";} else { print "IT WORKS!";}' > > Unfortunately, I keep getting "UTOH", indicating I have a null pointer > instead of a mapObj object. > > So far I have: a) verified that the world.map file is in the proper > location > b) checked permissions > c) rebuilt mapscript.pm after re-swigging. > > Note, I am building with an older version of MapServer, a version from > 1999, because I heard that MapServer 4 maps may not be fully compatible > with mapserver 3 data. Any help you could provide would be much > appreciated. Gabe, Here is a sample for 3.6.1: perl -we 'use lib "/web/cgi-bin/Progs/lib/5.6.0/i386-linux"; use mapscript; my $map = new mapObj("DBs/MapData/world.map") or die("UTOH!"); print "IT WORKS!"; HTH Lowell From baas at SPEERIT.NL Wed Sep 13 06:21:22 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Wed, 13 Sep 2006 15:21:22 +0200 Subject: MapInfo .tab vs Shapefile In-Reply-To: Message-ID: Travis Kirstine wrote: > Hi, > In general do shp files with a .qix index display faster than mapinfo .tab > files connected with ogr? > I've looked through the docs and that is the general impression I get but > there is no definite statement. In my tests, the MapInfo .tab files were faster, though most people in the list claim otherwise. -- Jelmer Baas Speer IT B.V. From dmorissette at MAPGEARS.COM Wed Sep 13 06:24:47 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 13 Sep 2006 09:24:47 -0400 Subject: MapInfo .tab vs Shapefile In-Reply-To: Message-ID: Travis Kirstine wrote: > Hi, > In general do shp files with a .qix index display faster than mapinfo .tab > files connected with ogr? > I've looked through the docs and that is the general impression I get but > there is no definite statement. > Yes, properly indexed shapefiles are the fastest. Reading MapInfo TAB via OGR involves some extra overhead (because OGR is a generic data access engine, that's a price to pay). Unfortunately there is no formal benchmark that I am aware of to compare the two. Daniel From luca76 at GMAIL.COM Wed Sep 13 06:32:36 2006 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Wed, 13 Sep 2006 15:32:36 +0200 Subject: How to set line width for a polygon layer. Message-ID: Hi, I have a poligon layer. I want it to be filled empty and to have a line with 3 pixels in width. The FAQ: http://mapserver.gis.umn.edu/docs/faq/linewidth didn't work for me. At least, it works only with line layers, not for polygons. Here's my solution: LAYER NAME "blabla" DATA "blabla" TYPE POLYGON STATUS OFF TEMPLATE void CLASS NAME "blabla" SIZE 3 STYLE SYMBOL 'solid' OUTLINECOLOR 255 0 0 END END END HTH. From Gabriel.Weaver at TUFTS.EDU Wed Sep 13 08:15:21 2006 From: Gabriel.Weaver at TUFTS.EDU (Gabriel A Weaver) Date: Wed, 13 Sep 2006 11:15:21 -0400 Subject: Question Regarding Perl Mapscript In-Reply-To: <20060913125227.937084D278@webmail.medinaco.org> Message-ID: Thanks to everyone for their help! I am all set now. ~Gabe Quoting "Lowell.Filak" : > Gabriel A Weaver writes: > >> Hi all, I am trying to install mapscript for perl and run into the >> following error: [terminal: ]$ perl -e 'use lib >> "/web/cgi-bin/Progs/lib/5.6.0/i386-linux"; use mapscript; my $map = >> new mapObj("DBs/MapData/world.map"); if ($map == null) { print >> "UTOH!";} else { print "IT WORKS!";}' Unfortunately, I keep getting >> "UTOH", indicating I have a null pointer instead of a mapObj object. >> So far I have: a) verified that the world.map file is in the proper >> location >> b) checked permissions >> c) rebuilt mapscript.pm after re-swigging. Note, I am building with >> an older version of MapServer, a version from 1999, because I heard >> that MapServer 4 maps may not be fully compatible with mapserver 3 >> data. Any help you could provide would be much appreciated. > > Gabe, > Here is a sample for 3.6.1: > perl -we 'use lib "/web/cgi-bin/Progs/lib/5.6.0/i386-linux"; use > mapscript; my $map = new mapObj("DBs/MapData/world.map") or > die("UTOH!"); print "IT WORKS!"; > HTH > > Lowell > From siki at AGT.BME.HU Wed Sep 13 11:29:29 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 13 Sep 2006 17:29:29 -0100 Subject: How to set line width for a polygon layer. {Scanned} {Scanned} In-Reply-To: Message-ID: Hi, You should give two style in the class and the size should be in the style. For example: CLASS NAME "blabla" STYLE COLOR -1 -1 -1 # no fill color END STYLE OUTLINECOLOR 255 0 0 # red outline SYMBOL "circle" SIZE 3 END END #CLASS Circle symbol definition: SYMBOL # standard circular brush NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END Bye Zoltan On Wed, 13 Sep 2006, Luca Manganelli wrote: > Hi, > > I have a poligon layer. I want it to be filled empty and to have a > line with 3 pixels in width. > > The FAQ: > > http://mapserver.gis.umn.edu/docs/faq/linewidth > > didn't work for me. At least, it works only with line layers, not for polygons. > > Here's my solution: > > > LAYER > NAME "blabla" > DATA "blabla" > TYPE POLYGON > STATUS OFF > TEMPLATE void > CLASS > NAME "blabla" > SIZE 3 > STYLE > SYMBOL 'solid' > OUTLINECOLOR 255 0 0 > END > END > END > > HTH. > From saengpole at YAHOO.COM Wed Sep 13 10:47:19 2006 From: saengpole at YAHOO.COM (Krung Saengpole) Date: Wed, 13 Sep 2006 10:47:19 -0700 Subject: How to run PHPMapscript in web hosting? Message-ID: Hello all, I have a problem about how to run phpmapscript in web hosting. I couldn't run dl('php_mapscript_xx.dll'). How to do with this? Coz I couldn't copy php_mapscipt_xx.dll into extension dir of that host, including all libraries in system32 directory. I couldn't do anything with that host except in my own directory. Has any way to solve this problem? Thanks in advance. Krung --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ljfong at SDF.LONESTAR.ORG Wed Sep 13 11:13:52 2006 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Wed, 13 Sep 2006 11:13:52 -0700 Subject: Transparency based on classification, possible? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5015AD18B@s-sp22.pca.state.mn.us> Message-ID: Yes, that was what I thought of as well. This issue arises as I am converting an existing app that uses ArcIMS to use MapServer instead and I noticed that the transparency of the symbol in ArcIMS API can be set individually based on the renderer it was wrapped in. Maybe an idea for MapServer improvement in the future? Hong On Sat, Sep 09, 2006 at 11:41:03AM -0500, Fawcett, David wrote: > I was thinking about this a little bit. There is a way that you could do this, but it may be a little ugly. > > If you only want to do this for one (or a few) layer and you don't need to break your data up into too many classes of varied transparency. > > You could create a layer for each desired classification, have one class in each layer and set an expression in that class to only show the features that you want to assign a particular level of transparency to. You would then set transparency at the layer level. Also, remember that transparency behaves more like a property that would be called opacity. A transparency of 20 is more 'see through' than a transparency of 80. > > Legends and queries might be a little funky with this arrangement, but you should be able to work around them. > > David. > > > -----Original Message----- > From: Fawcett, David > Sent: Fri 9/8/2006 4:44 PM > To: 'Hong'; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Transparency based on classification, possible? > > No. > > Transparency is set at the layer level. Take a look at: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer > > If you want to use URL variable substitution, you could probably change the transparency of the LAYER on the fly, but not at the class level. > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hong > Sent: Friday, September 08, 2006 4:37 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Transparency based on classification, possible? > > > Hello, > > Is it possible to set the transparency of layer symbolization based on the classification? Something similar to the effect of: > > LAYER > ... > CLASS > EXPRESSION "expr0" > TRANSPARENCY 50 > END CLASS > CLASS > EXPRESSION "expr1" > TRANSPARENCY 70 > END CLASS > END LAYER > > Thanks. > From ltrevinoh at GMAIL.COM Wed Sep 13 12:12:24 2006 From: ltrevinoh at GMAIL.COM (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Wed, 13 Sep 2006 14:12:24 -0500 Subject: logo on the map Message-ID: list, I would like to put a logo (gif image) always on top of the image generated by mapserver. I've tried with a annotation layer but can't see the image. No problem with text. How can I do this? Regards, Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Wed Sep 13 16:35:11 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 13 Sep 2006 19:35:11 -0400 Subject: Line width and projection question Message-ID: Chris - All projections have limitations, and the "geographic" projections have more limitations than most (e.g. you can't use a scale bar, and you have a problem at 180W). You're dealing with a fundamental limitation of treating latitude/longitude coordinates as if they were Cartesian coordinates. Using the PROJ library MapServer supports a wide variety of projections and if you find one more suitable for your application I'm sure we can help you figure out how to use it with MapServer. Your subject line mentions "line width", however, and you didn't mention it - did you have another question? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Watson Sent: Tuesday, September 12, 2006 10:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Line width and projection question Hi, I'm after a fix / work around to what is probably a common problem when using geographic projections. I'm using the WGS84 projection (epsg:4326) are there is no 'wrap around' past the 180E/W meridian, i.e., if i center the map on 180E then the western half of my global coastline shapefile will not show (with the inverse is true if i center on 180W). Tips anyone? Appreciate your help. Thanks, Chris From arndw at WTAL.DE Wed Sep 13 17:19:27 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Thu, 14 Sep 2006 02:19:27 +0200 Subject: AW: [UMN_MAPSERVER-USERS] How to set line width for a polygon layer. In-Reply-To: Message-ID: Hello HTH., This should also work CLASS NAME 'Regierungsbezirke' EXPRESSION /./ OUTLINECOLOR 255 0 0 SYMBOL 'W045' SIZE 1 OVERLAYSYMBOL 'Circle' OVERLAYOUTLINECOLOR 255 0 0 #here is the trick - will force outline OVERLAYSIZE 2 END Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/pinguinale/ -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Luca Manganelli Gesendet: Mittwoch, 13. September 2006 15:33 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] How to set line width for a polygon layer. Hi, I have a poligon layer. I want it to be filled empty and to have a line with 3 pixels in width. The FAQ: http://mapserver.gis.umn.edu/docs/faq/linewidth didn't work for me. At least, it works only with line layers, not for polygons. Here's my solution: LAYER NAME "blabla" DATA "blabla" TYPE POLYGON STATUS OFF TEMPLATE void CLASS NAME "blabla" SIZE 3 STYLE SYMBOL 'solid' OUTLINECOLOR 255 0 0 END END END HTH. From arndw at WTAL.DE Wed Sep 13 17:47:07 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Thu, 14 Sep 2006 02:47:07 +0200 Subject: AW: [UMN_MAPSERVER-USERS] CLASSITEM and logical EXPRESSION based on more attributes? In-Reply-To: <001b01c6d702$afc86490$07a8a8c0@endoxon.ch> Message-ID: Hello Carsten, The classitem is a must be, but in the expression you could query on other attributes CLASSITEM 'PRJNR' CLASS NAME 'EG GEP' EXPRESSION ('[TYP]' = '%GEP%') OUTLINECOLOR 0 0 0 COLOR 255 127 0 END CLASS NAME 'EG KNA' EXPRESSION ('[TYP]' = '%KNA%') OUTLINECOLOR 0 0 0 COLOR 152 78 163 END ... This works for me. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/pinguinale/ -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Carsten Dewey Gesendet: Mittwoch, 13. September 2006 09:03 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] CLASSITEM and logical EXPRESSION based on more attributes? Dear list, I would like to define a CLASS using a logical expression based on different attributes inside EXPRESSION: EXPRESSION ("[AR_Auto]"="N" and "[AR_Pedestrians]"="Y" and "[AR_Trucks]"="N") What about the CLASSITEM in this case? Define the LAYER just without? Thank you & kind regards carsten From Kristian.Thy at ATKINSGLOBAL.COM Thu Sep 14 00:04:51 2006 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Thu, 14 Sep 2006 09:04:51 +0200 Subject: logo on the map In-Reply-To: A Message-ID: > -----Original Message----- > From: Luis Trevi?o > > I would like to put a logo (gif image) always on top of the image generated by mapserver. We do it like this (as the top layer, i.e. at the bottom of our mapfile): LAYER NAME logo STATUS DEFAULT PROJECTION "init=epsg:32632" END #projection METADATA "wms_title" "logo" END #metadata TYPE point TRANSFORM false FEATURE POINTS 20 520 END END #feature CLASS SYMBOL "graphics/logo.png" END #class END #layer Note that the image is positioned at (x, y) = (20, 520) counting from the top corner, making resizing the map image impossible. MapServer 4.10 will offer relative positioning, IIRC. Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From steve.hall at MERCATORGEOSYSTEMS.CO.UK Thu Sep 14 06:22:09 2006 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Thu, 14 Sep 2006 14:22:09 +0100 Subject: Strange map draw issue Message-ID: Hi All, I've been using Mapserver for a while now, in a variety of situations, but am seeing a slightly strange behaviour in one of my setups. Basically i'm getting a line of 'garbage' being drawn across the generated map image. A sample of what I mean is here : http://demo.mercatorgeosystems.co.uk/tmp/1158239461914994.png There is no road feature or other line that should be there, and if I redraw the map the line of garbage will either disappear or change in either length or 'content'. It doesn't appear all the time, but certainly enough to be annoying. My MapServer version is 4.8.1, running with Apache 1.3.31 on Fedora Core 4. I've got several other MapServer based configurations on this setup and they're all working fine. The data source in question is an Oracle 10g (10.1) database which is also used for other systems and seems fine..... Weird eh? Any suggestions much appreciated! Thanks, Steve H -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Thu Sep 14 07:18:18 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 14 Sep 2006 10:18:18 -0400 Subject: Strange map draw issue Message-ID: Steve - Well, just about anything in California is a little odd..... Are you saying that if you simply refresh the image and re-draw the exact same map you'll see this line of text change? That's puzzling. I would speculate that it's a (garbage) text label for some garbage feature - there's some feature that's defective in both location and label (attributes messed up) and that feature is being labeled. The first thing I'd try is to eliminate layers from the image, testing until the garbage goes away. That could identify the offending layer; if there are multiple classes in that layer, use the same system to identify which class it is. Then see if that says anything helpful. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Hall Sent: Thursday, September 14, 2006 9:22 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Strange map draw issue Hi All, I've been using Mapserver for a while now, in a variety of situations, but am seeing a slightly strange behaviour in one of my setups. Basically i'm getting a line of 'garbage' being drawn across the generated map image. A sample of what I mean is here : http://demo.mercatorgeosystems.co.uk/tmp/1158239461914994.png There is no road feature or other line that should be there, and if I redraw the map the line of garbage will either disappear or change in either length or 'content'. It doesn't appear all the time, but certainly enough to be annoying. My MapServer version is 4.8.1, running with Apache 1.3.31 on Fedora Core 4. I've got several other MapServer based configurations on this setup and they're all working fine. The data source in question is an Oracle 10g (10.1) database which is also used for other systems and seems fine..... Weird eh? Any suggestions much appreciated! Thanks, Steve H -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.hall at MERCATORGEOSYSTEMS.CO.UK Thu Sep 14 07:39:10 2006 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Thu, 14 Sep 2006 15:39:10 +0100 Subject: Strange map draw issue In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DE181@ptolemy.topozone.com> Message-ID: Hi Ed, Thanks for this. I may check my label columns in the database for NULLs and replace them with an empty string ('') instead. It looks like a classic 'null' issue doesn't it? Yup - zoom in, zoom out, pan etc and the garbage generally just disappears, or changes its 'content'. Often the angle is the same (suspicious) but sometimes not..... There aren't any features on the angles so i'm not sure if it's a labelling issue or not. Plus the problem only occurs about 1 in 20 or so map draws so is kind of hard to get a definite problem case. Checkout these additional ones : http://demo.mercatorgeosystems.co.uk/tmp/1158243616324003.png And just to prove it's not all CA.... ;-) http://demo.mercatorgeosystems.co.uk/tmp/1158244089248601.png http://demo.mercatorgeosystems.co.uk/tmp/1158244147717403.png Thanks Ed, Steve Take a Ed McNierney wrote: > Steve - > > Well, just about anything in California is a little odd..... > > Are you saying that if you simply refresh the image and re-draw the > exact same map you'll see this line of text change? That's puzzling. > I would speculate that it's a (garbage) text label for some garbage > feature - there's some feature that's defective in both location and > label (attributes messed up) and that feature is being labeled. > > The first thing I'd try is to eliminate layers from the image, testing > until the garbage goes away. That could identify the offending layer; > if there are multiple classes in that layer, use the same system to > identify which class it is. Then see if that says anything helpful. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > > ------------------------------------------------------------------------ > *From:* UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Steve Hall > *Sent:* Thursday, September 14, 2006 9:22 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] Strange map draw issue > > Hi All, > > I've been using Mapserver for a while now, in a variety of situations, > but am seeing a slightly strange behaviour in one of my setups. > Basically i'm getting a line of 'garbage' being drawn across the > generated map image. > > A sample of what I mean is here : > > http://demo.mercatorgeosystems.co.uk/tmp/1158239461914994.png > > There is no road feature or other line that should be there, and if I > redraw the map the line of garbage will either disappear or change in > either length or 'content'. It doesn't appear all the time, but > certainly enough to be annoying. > > My MapServer version is 4.8.1, running with Apache 1.3.31 on Fedora > Core 4. I've got several other MapServer based configurations on this > setup and they're all working fine. The data source in question is > an Oracle 10g (10.1) database which is also used for other systems and > seems fine..... > > Weird eh? Any suggestions much appreciated! > > Thanks, > Steve H > > > -- Steve Hall Technical Consultant Mercator GeoSystems Ltd Tel (UK) : +44 (0) 114 235 3409 Tel (US) : +1 (562) 735 3541 Fax : +44 (0) 114 235 3409 Mobile : +44 (0) 771 828 6323 Email : steve.hall at mercatorgeosystems.com Web : www.mercatorgeosystems.com Skype : mercatorgeosystems -------------- next part -------------- An HTML attachment was scrubbed... URL: From punkish at EIDESIS.ORG Thu Sep 14 07:49:49 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Thu, 14 Sep 2006 09:49:49 -0500 Subject: Strange map draw issue In-Reply-To: <4509698E.20804@mercatorgeosystems.co.uk> Message-ID: Steve, Could you possibly give us the link to your live (but wonky) demo instead of the wonky images...? Just curious. On 9/14/06, Steve Hall wrote: > > Hi Ed, > > Thanks for this. I may check my label columns in the database for NULLs > and replace them with an empty string ('') instead. It looks like a > classic 'null' issue doesn't it? > > Yup - zoom in, zoom out, pan etc and the garbage generally just disappears, > or changes its 'content'. Often the angle is the same (suspicious) but > sometimes not..... There aren't any features on the angles so i'm not sure > if it's a labelling issue or not. Plus the problem only occurs about 1 in > 20 or so map draws so is kind of hard to get a definite problem case. > > Checkout these additional ones : > > http://demo.mercatorgeosystems.co.uk/tmp/1158243616324003.png > > And just to prove it's not all CA.... ;-) > > http://demo.mercatorgeosystems.co.uk/tmp/1158244089248601.png > http://demo.mercatorgeosystems.co.uk/tmp/1158244147717403.png > > Thanks Ed, > Steve > > > Take a > Ed McNierney wrote: > > Steve - > > Well, just about anything in California is a little odd..... > > Are you saying that if you simply refresh the image and re-draw the exact > same map you'll see this line of text change? That's puzzling. I would > speculate that it's a (garbage) text label for some garbage feature - > there's some feature that's defective in both location and label (attributes > messed up) and that feature is being labeled. > > The first thing I'd try is to eliminate layers from the image, testing until > the garbage goes away. That could identify the offending layer; if there > are multiple classes in that layer, use the same system to identify which > class it is. Then see if that says anything helpful. > > - Ed > > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > ________________________________ > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve > Hall > Sent: Thursday, September 14, 2006 9:22 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Strange map draw issue > > Hi All, > > I've been using Mapserver for a while now, in a variety of situations, but > am seeing a slightly strange behaviour in one of my setups. Basically i'm > getting a line of 'garbage' being drawn across the generated map image. > > A sample of what I mean is here : > > http://demo.mercatorgeosystems.co.uk/tmp/1158239461914994.png > > There is no road feature or other line that should be there, and if I > redraw the map the line of garbage will either disappear or change in either > length or 'content'. It doesn't appear all the time, but certainly enough > to be annoying. > > My MapServer version is 4.8.1, running with Apache 1.3.31 on Fedora Core 4. > I've got several other MapServer based configurations on this setup and > they're all working fine. The data source in question is an Oracle 10g > (10.1) database which is also used for other systems and seems fine..... > > Weird eh? Any suggestions much appreciated! > > Thanks, > Steve H > > > > > -- > Steve Hall > Technical Consultant > Mercator GeoSystems Ltd > > Tel (UK) : +44 (0) 114 235 3409 > Tel (US) : +1 (562) 735 3541 > Fax : +44 (0) 114 235 3409 > Mobile : +44 (0) 771 828 6323 > Email : steve.hall at mercatorgeosystems.com > Web : www.mercatorgeosystems.com > Skype : mercatorgeosystems > > > > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/ Open Source Geospatial Foundation https://edu.osgeo.org/ From ed at TOPOZONE.COM Thu Sep 14 09:06:33 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 14 Sep 2006 12:06:33 -0400 Subject: Strange map draw issue Message-ID: Steve - I actually was asking if the output changed if the SAME map was refreshed - don't zoom in, out, or pan, just refresh the image/reload the page. Does the same image request always return the same image? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: Steve Hall [mailto:steve.hall at mercatorgeosystems.co.uk] Sent: Thursday, September 14, 2006 10:39 AM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Strange map draw issue Hi Ed, Thanks for this. I may check my label columns in the database for NULLs and replace them with an empty string ('') instead. It looks like a classic 'null' issue doesn't it? Yup - zoom in, zoom out, pan etc and the garbage generally just disappears, or changes its 'content'. Often the angle is the same (suspicious) but sometimes not..... There aren't any features on the angles so i'm not sure if it's a labelling issue or not. Plus the problem only occurs about 1 in 20 or so map draws so is kind of hard to get a definite problem case. Checkout these additional ones : http://demo.mercatorgeosystems.co.uk/tmp/1158243616324003.png And just to prove it's not all CA.... ;-) http://demo.mercatorgeosystems.co.uk/tmp/1158244089248601.png http://demo.mercatorgeosystems.co.uk/tmp/1158244147717403.png Thanks Ed, Steve Take a Ed McNierney wrote: Steve - Well, just about anything in California is a little odd..... Are you saying that if you simply refresh the image and re-draw the exact same map you'll see this line of text change? That's puzzling. I would speculate that it's a (garbage) text label for some garbage feature - there's some feature that's defective in both location and label (attributes messed up) and that feature is being labeled. The first thing I'd try is to eliminate layers from the image, testing until the garbage goes away. That could identify the offending layer; if there are multiple classes in that layer, use the same system to identify which class it is. Then see if that says anything helpful. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Hall Sent: Thursday, September 14, 2006 9:22 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Strange map draw issue Hi All, I've been using Mapserver for a while now, in a variety of situations, but am seeing a slightly strange behaviour in one of my setups. Basically i'm getting a line of 'garbage' being drawn across the generated map image. A sample of what I mean is here : http://demo.mercatorgeosystems.co.uk/tmp/1158239461914994.png There is no road feature or other line that should be there, and if I redraw the map the line of garbage will either disappear or change in either length or 'content'. It doesn't appear all the time, but certainly enough to be annoying. My MapServer version is 4.8.1, running with Apache 1.3.31 on Fedora Core 4. I've got several other MapServer based configurations on this setup and they're all working fine. The data source in question is an Oracle 10g (10.1) database which is also used for other systems and seems fine..... Weird eh? Any suggestions much appreciated! Thanks, Steve H -- Steve Hall Technical Consultant Mercator GeoSystems Ltd Tel (UK) : +44 (0) 114 235 3409 Tel (US) : +1 (562) 735 3541 Fax : +44 (0) 114 235 3409 Mobile : +44 (0) 771 828 6323 Email : steve.hall at mercatorgeosystems.com Web : www.mercatorgeosystems.com Skype : mercatorgeosystems -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.hall at MERCATORGEOSYSTEMS.CO.UK Thu Sep 14 09:55:43 2006 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Thu, 14 Sep 2006 17:55:43 +0100 Subject: Strange map draw issue In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DE18A@ptolemy.topozone.com> Message-ID: Sorry Ed, I must have forgotten to put that part in my email. Yes, a simple refresh of the same map will, 9 times ot of 10, get rid of the garbage. But then at a random interval it will reappear (but will be different garbage). It's kind of hard for me to "post" the entire app, or allow access, right now i'm afraid so I appreciate it may be hard for anyone to help, I as just fishing for ideas really! Thanks, Steve Ed McNierney wrote: > Steve - > > I actually was asking if the output changed if the SAME map was > refreshed - don't zoom in, out, or pan, just refresh the image/reload > the page. Does the same image request always return the same image? > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > > ------------------------------------------------------------------------ > *From:* Steve Hall [mailto:steve.hall at mercatorgeosystems.co.uk] > *Sent:* Thursday, September 14, 2006 10:39 AM > *To:* Ed McNierney > *Cc:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] Strange map draw issue > > Hi Ed, > > Thanks for this. I may check my label columns in the database for > NULLs and replace them with an empty string ('') instead. It looks > like a classic 'null' issue doesn't it? > > Yup - zoom in, zoom out, pan etc and the garbage generally just > disappears, or changes its 'content'. Often the angle is the same > (suspicious) but sometimes not..... There aren't any features on the > angles so i'm not sure if it's a labelling issue or not. Plus the > problem only occurs about 1 in 20 or so map draws so is kind of hard > to get a definite problem case. > > Checkout these additional ones : > > http://demo.mercatorgeosystems.co.uk/tmp/1158243616324003.png > > And just to prove it's not all CA.... ;-) > > http://demo.mercatorgeosystems.co.uk/tmp/1158244089248601.png > http://demo.mercatorgeosystems.co.uk/tmp/1158244147717403.png > > Thanks Ed, > Steve > > > Take a > Ed McNierney wrote: > >> Steve - >> >> Well, just about anything in California is a little odd..... >> >> Are you saying that if you simply refresh the image and re-draw the >> exact same map you'll see this line of text change? That's >> puzzling. I would speculate that it's a (garbage) text label for >> some garbage feature - there's some feature that's defective in both >> location and label (attributes messed up) and that feature is being >> labeled. >> >> The first thing I'd try is to eliminate layers from the image, >> testing until the garbage goes away. That could identify the >> offending layer; if there are multiple classes in that layer, use the >> same system to identify which class it is. Then see if that says >> anything helpful. >> >> - Ed >> >> Ed McNierney >> President and Chief Mapmaker >> TopoZone.com / Maps a la carte, Inc. >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> ed at topozone.com >> (978) 251-4242 >> >> >> ------------------------------------------------------------------------ >> *From:* UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Steve Hall >> *Sent:* Thursday, September 14, 2006 9:22 AM >> *To:* MAPSERVER-USERS at LISTS.UMN.EDU >> *Subject:* [UMN_MAPSERVER-USERS] Strange map draw issue >> >> Hi All, >> >> I've been using Mapserver for a while now, in a variety of >> situations, but am seeing a slightly strange behaviour in one of my >> setups. Basically i'm getting a line of 'garbage' being drawn across >> the generated map image. >> >> A sample of what I mean is here : >> >> http://demo.mercatorgeosystems.co.uk/tmp/1158239461914994.png >> >> There is no road feature or other line that should be there, and if I >> redraw the map the line of garbage will either disappear or change in >> either length or 'content'. It doesn't appear all the time, but >> certainly enough to be annoying. >> >> My MapServer version is 4.8.1, running with Apache 1.3.31 on Fedora >> Core 4. I've got several other MapServer based configurations on >> this setup and they're all working fine. The data source in >> question is an Oracle 10g (10.1) database which is also used for >> other systems and seems fine..... >> >> Weird eh? Any suggestions much appreciated! >> >> Thanks, >> Steve H >> From arndw at WTAL.DE Thu Sep 14 10:52:36 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Thu, 14 Sep 2006 19:52:36 +0200 Subject: AW: [UMN_MAPSERVER-USERS] Strange map draw issue In-Reply-To: <4509898F.1080201@mercatorgeosystems.co.uk> Message-ID: Hello Steve, Perhaps you can allow access via WMS Request (if your map is for WMS configured). Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/pinguinale/ -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Steve Hall Gesendet: Donnerstag, 14. September 2006 18:56 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] Strange map draw issue Sorry Ed, I must have forgotten to put that part in my email. Yes, a simple refresh of the same map will, 9 times ot of 10, get rid of the garbage. But then at a random interval it will reappear (but will be different garbage). It's kind of hard for me to "post" the entire app, or allow access, right now i'm afraid so I appreciate it may be hard for anyone to help, I as just fishing for ideas really! Thanks, Steve Ed McNierney wrote: > Steve - > > I actually was asking if the output changed if the SAME map was > refreshed - don't zoom in, out, or pan, just refresh the image/reload > the page. Does the same image request always return the same image? > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > > ---------------------------------------------------------------------- > -- > *From:* Steve Hall [mailto:steve.hall at mercatorgeosystems.co.uk] > *Sent:* Thursday, September 14, 2006 10:39 AM > *To:* Ed McNierney > *Cc:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] Strange map draw issue > > Hi Ed, > > Thanks for this. I may check my label columns in the database for > NULLs and replace them with an empty string ('') instead. It looks > like a classic 'null' issue doesn't it? > > Yup - zoom in, zoom out, pan etc and the garbage generally just > disappears, or changes its 'content'. Often the angle is the same > (suspicious) but sometimes not..... There aren't any features on the > angles so i'm not sure if it's a labelling issue or not. Plus the > problem only occurs about 1 in 20 or so map draws so is kind of hard > to get a definite problem case. > > Checkout these additional ones : > > http://demo.mercatorgeosystems.co.uk/tmp/1158243616324003.png > > And just to prove it's not all CA.... ;-) > > http://demo.mercatorgeosystems.co.uk/tmp/1158244089248601.png > http://demo.mercatorgeosystems.co.uk/tmp/1158244147717403.png > > Thanks Ed, > Steve > > > Take a > Ed McNierney wrote: > >> Steve - >> >> Well, just about anything in California is a little odd..... >> >> Are you saying that if you simply refresh the image and re-draw the >> exact same map you'll see this line of text change? That's puzzling. >> I would speculate that it's a (garbage) text label for some garbage >> feature - there's some feature that's defective in both location and >> label (attributes messed up) and that feature is being labeled. >> >> The first thing I'd try is to eliminate layers from the image, >> testing until the garbage goes away. That could identify the >> offending layer; if there are multiple classes in that layer, use the >> same system to identify which class it is. Then see if that says >> anything helpful. >> >> - Ed >> >> Ed McNierney >> President and Chief Mapmaker >> TopoZone.com / Maps a la carte, Inc. >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> ed at topozone.com >> (978) 251-4242 >> >> >> --------------------------------------------------------------------- >> --- >> *From:* UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Steve Hall >> *Sent:* Thursday, September 14, 2006 9:22 AM >> *To:* MAPSERVER-USERS at LISTS.UMN.EDU >> *Subject:* [UMN_MAPSERVER-USERS] Strange map draw issue >> >> Hi All, >> >> I've been using Mapserver for a while now, in a variety of >> situations, but am seeing a slightly strange behaviour in one of my >> setups. Basically i'm getting a line of 'garbage' being drawn across >> the generated map image. >> >> A sample of what I mean is here : >> >> http://demo.mercatorgeosystems.co.uk/tmp/1158239461914994.png >> >> There is no road feature or other line that should be there, and if I >> redraw the map the line of garbage will either disappear or change in >> either length or 'content'. It doesn't appear all the time, but >> certainly enough to be annoying. >> >> My MapServer version is 4.8.1, running with Apache 1.3.31 on Fedora >> Core 4. I've got several other MapServer based configurations on >> this setup and they're all working fine. The data source in >> question is an Oracle 10g (10.1) database which is also used for >> other systems and seems fine..... >> >> Weird eh? Any suggestions much appreciated! >> >> Thanks, >> Steve H >> From woodbri at SWOODBRIDGE.COM Thu Sep 14 14:02:06 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 14 Sep 2006 17:02:06 -0400 Subject: Strange map draw issue In-Reply-To: <4509898F.1080201@mercatorgeosystems.co.uk> Message-ID: Steve, How is your server/mapscript/etc configured. It sounds like you could possibly getting mapscript thread corruption or something similar to that. -Steve W Steve Hall wrote: > Sorry Ed, I must have forgotten to put that part in my email. > > Yes, a simple refresh of the same map will, 9 times ot of 10, get rid of > the garbage. But then at a random interval it will reappear (but will > be different garbage). > > It's kind of hard for me to "post" the entire app, or allow access, > right now i'm afraid so I appreciate it may be hard for anyone to help, > I as just fishing for ideas really! > > Thanks, > > > Steve > > > Ed McNierney wrote: > >> Steve - >> >> I actually was asking if the output changed if the SAME map was >> refreshed - don't zoom in, out, or pan, just refresh the image/reload >> the page. Does the same image request always return the same image? >> >> - Ed >> >> Ed McNierney >> President and Chief Mapmaker >> TopoZone.com / Maps a la carte, Inc. >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> ed at topozone.com >> (978) 251-4242 >> >> >> ------------------------------------------------------------------------ >> *From:* Steve Hall [mailto:steve.hall at mercatorgeosystems.co.uk] >> *Sent:* Thursday, September 14, 2006 10:39 AM >> *To:* Ed McNierney >> *Cc:* MAPSERVER-USERS at LISTS.UMN.EDU >> *Subject:* Re: [UMN_MAPSERVER-USERS] Strange map draw issue >> >> Hi Ed, >> >> Thanks for this. I may check my label columns in the database for >> NULLs and replace them with an empty string ('') instead. It looks >> like a classic 'null' issue doesn't it? >> >> Yup - zoom in, zoom out, pan etc and the garbage generally just >> disappears, or changes its 'content'. Often the angle is the same >> (suspicious) but sometimes not..... There aren't any features on the >> angles so i'm not sure if it's a labelling issue or not. Plus the >> problem only occurs about 1 in 20 or so map draws so is kind of hard >> to get a definite problem case. >> >> Checkout these additional ones : >> >> http://demo.mercatorgeosystems.co.uk/tmp/1158243616324003.png >> >> And just to prove it's not all CA.... ;-) >> >> http://demo.mercatorgeosystems.co.uk/tmp/1158244089248601.png >> http://demo.mercatorgeosystems.co.uk/tmp/1158244147717403.png >> >> Thanks Ed, >> Steve >> >> >> Take a >> Ed McNierney wrote: >> >>> Steve - >>> >>> Well, just about anything in California is a little odd..... >>> >>> Are you saying that if you simply refresh the image and re-draw the >>> exact same map you'll see this line of text change? That's >>> puzzling. I would speculate that it's a (garbage) text label for >>> some garbage feature - there's some feature that's defective in both >>> location and label (attributes messed up) and that feature is being >>> labeled. >>> >>> The first thing I'd try is to eliminate layers from the image, >>> testing until the garbage goes away. That could identify the >>> offending layer; if there are multiple classes in that layer, use the >>> same system to identify which class it is. Then see if that says >>> anything helpful. >>> >>> - Ed >>> >>> Ed McNierney >>> President and Chief Mapmaker >>> TopoZone.com / Maps a la carte, Inc. >>> 73 Princeton Street, Suite 305 >>> North Chelmsford, MA 01863 >>> ed at topozone.com >>> (978) 251-4242 >>> >>> >>> ------------------------------------------------------------------------ >>> *From:* UMN MapServer Users List >>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Steve Hall >>> *Sent:* Thursday, September 14, 2006 9:22 AM >>> *To:* MAPSERVER-USERS at LISTS.UMN.EDU >>> *Subject:* [UMN_MAPSERVER-USERS] Strange map draw issue >>> >>> Hi All, >>> >>> I've been using Mapserver for a while now, in a variety of >>> situations, but am seeing a slightly strange behaviour in one of my >>> setups. Basically i'm getting a line of 'garbage' being drawn across >>> the generated map image. >>> >>> A sample of what I mean is here : >>> >>> http://demo.mercatorgeosystems.co.uk/tmp/1158239461914994.png >>> >>> There is no road feature or other line that should be there, and if I >>> redraw the map the line of garbage will either disappear or change in >>> either length or 'content'. It doesn't appear all the time, but >>> certainly enough to be annoying. >>> >>> My MapServer version is 4.8.1, running with Apache 1.3.31 on Fedora >>> Core 4. I've got several other MapServer based configurations on >>> this setup and they're all working fine. The data source in >>> question is an Oracle 10g (10.1) database which is also used for >>> other systems and seems fine..... >>> >>> Weird eh? Any suggestions much appreciated! >>> >>> Thanks, >>> Steve H >>> From steve.hall at MERCATORGEOSYSTEMS.CO.UK Thu Sep 14 14:09:30 2006 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Thu, 14 Sep 2006 22:09:30 +0100 Subject: Strange map draw issue In-Reply-To: <4509C34E.8000102@swoodbridge.com> Message-ID: Thanks Steve, I suspect it must be a data or config based issue as the same server / mapserver / web server is used (heavily) in other configurations with no sign of this problem. It's just this map file & database with the issue. Steve H Stephen Woodbridge wrote: > Steve, > > How is your server/mapscript/etc configured. It sounds like you could > possibly getting mapscript thread corruption or something similar to > that. > > -Steve W > > Steve Hall wrote: > >> Sorry Ed, I must have forgotten to put that part in my email. >> >> Yes, a simple refresh of the same map will, 9 times ot of 10, get rid >> of the garbage. But then at a random interval it will reappear (but >> will be different garbage). >> >> It's kind of hard for me to "post" the entire app, or allow access, >> right now i'm afraid so I appreciate it may be hard for anyone to >> help, I as just fishing for ideas really! >> >> Thanks, >> >> >> Steve >> >> >> Ed McNierney wrote: >> >>> Steve - >>> >>> I actually was asking if the output changed if the SAME map was >>> refreshed - don't zoom in, out, or pan, just refresh the >>> image/reload the page. Does the same image request always return >>> the same image? >>> >>> - Ed >>> >>> Ed McNierney >>> President and Chief Mapmaker >>> TopoZone.com / Maps a la carte, Inc. >>> 73 Princeton Street, Suite 305 >>> North Chelmsford, MA 01863 >>> ed at topozone.com >>> (978) 251-4242 >>> >>> >>> ------------------------------------------------------------------------ >>> >>> *From:* Steve Hall [mailto:steve.hall at mercatorgeosystems.co.uk] >>> *Sent:* Thursday, September 14, 2006 10:39 AM >>> *To:* Ed McNierney >>> *Cc:* MAPSERVER-USERS at LISTS.UMN.EDU >>> *Subject:* Re: [UMN_MAPSERVER-USERS] Strange map draw issue >>> >>> Hi Ed, >>> >>> Thanks for this. I may check my label columns in the database for >>> NULLs and replace them with an empty string ('') instead. It looks >>> like a classic 'null' issue doesn't it? >>> >>> Yup - zoom in, zoom out, pan etc and the garbage generally just >>> disappears, or changes its 'content'. Often the angle is the same >>> (suspicious) but sometimes not..... There aren't any features on >>> the angles so i'm not sure if it's a labelling issue or not. Plus >>> the problem only occurs about 1 in 20 or so map draws so is kind of >>> hard to get a definite problem case. >>> >>> Checkout these additional ones : >>> >>> http://demo.mercatorgeosystems.co.uk/tmp/1158243616324003.png >>> >>> And just to prove it's not all CA.... ;-) >>> >>> http://demo.mercatorgeosystems.co.uk/tmp/1158244089248601.png >>> http://demo.mercatorgeosystems.co.uk/tmp/1158244147717403.png >>> >>> Thanks Ed, >>> Steve >>> >>> >>> Take a >>> Ed McNierney wrote: >>> >>>> Steve - >>>> >>>> Well, just about anything in California is a little odd..... >>>> >>>> Are you saying that if you simply refresh the image and re-draw the >>>> exact same map you'll see this line of text change? That's >>>> puzzling. I would speculate that it's a (garbage) text label for >>>> some garbage feature - there's some feature that's defective in >>>> both location and label (attributes messed up) and that feature is >>>> being labeled. >>>> >>>> The first thing I'd try is to eliminate layers from the image, >>>> testing until the garbage goes away. That could identify the >>>> offending layer; if there are multiple classes in that layer, use >>>> the same system to identify which class it is. Then see if that >>>> says anything helpful. >>>> >>>> - Ed >>>> >>>> Ed McNierney >>>> President and Chief Mapmaker >>>> TopoZone.com / Maps a la carte, Inc. >>>> 73 Princeton Street, Suite 305 >>>> North Chelmsford, MA 01863 >>>> ed at topozone.com >>>> (978) 251-4242 >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> *From:* UMN MapServer Users List >>>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Steve Hall >>>> *Sent:* Thursday, September 14, 2006 9:22 AM >>>> *To:* MAPSERVER-USERS at LISTS.UMN.EDU >>>> *Subject:* [UMN_MAPSERVER-USERS] Strange map draw issue >>>> >>>> Hi All, >>>> >>>> I've been using Mapserver for a while now, in a variety of >>>> situations, but am seeing a slightly strange behaviour in one of my >>>> setups. Basically i'm getting a line of 'garbage' being drawn >>>> across the generated map image. >>>> >>>> A sample of what I mean is here : >>>> >>>> http://demo.mercatorgeosystems.co.uk/tmp/1158239461914994.png >>>> >>>> There is no road feature or other line that should be there, and if >>>> I redraw the map the line of garbage will either disappear or >>>> change in either length or 'content'. It doesn't appear all the >>>> time, but certainly enough to be annoying. >>>> >>>> My MapServer version is 4.8.1, running with Apache 1.3.31 on Fedora >>>> Core 4. I've got several other MapServer based configurations on >>>> this setup and they're all working fine. The data source in >>>> question is an Oracle 10g (10.1) database which is also used for >>>> other systems and seems fine..... >>>> >>>> Weird eh? Any suggestions much appreciated! >>>> >>>> Thanks, >>>> Steve H >>>> From woodbri at SWOODBRIDGE.COM Thu Sep 14 14:36:10 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 14 Sep 2006 17:36:10 -0400 Subject: projection question Message-ID: Hi all, I am trying to reproject some shapefiles using perl/mapscript. The script seems to be working as I have used it with great success in the past. So I have been trying various input and output projections using the following definitions: my $prjin = 'proj=latlong,ellps=clrk66,towgs84=89,-279,-183,0,0,0,0'; # NAD83 my $prjout = "init=epsg:4269"; # or WGS84 #my $prjout = "init=epsg:4326"; #my $prjout = "proj=latlong,datum=WGS84"; The data gets reprojected just fine but it seems to only move about half the distance that I need it to, to lineup with my other data set. So I have tried to push it a little further by changing the towgs84 parameters, but I can't seem to make it move! For example changing -279 to -1279 does not move the geometry relative reference geometry that is not reprojected! Any thoughts on how to get this to move using proj? It just seemed like a better way to go than to add dx, dy to all the shape points by hand. -Steve W. From ollerery at ENGR.ORST.EDU Thu Sep 14 15:14:27 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Thu, 14 Sep 2006 15:14:27 -0700 Subject: ogr2ogr: Command not found In-Reply-To: <4509C34E.8000102@swoodbridge.com> Message-ID: So i had to recompile gdal from the source in order to add support for Xerces-C but after i did this i was still getting the same error so i removed ogr2ogr from the /usr/local/bin/ directory and then recompiled gdal again but now the ogr2ogr command is not being put back into the /usr/local/bin/ directory. does anyone know what do i need to do in order to get the gdal commands back in there. Thank you, -Ryan From donal_regan10 at YAHOO.CO.UK Thu Sep 14 20:42:11 2006 From: donal_regan10 at YAHOO.CO.UK (Donal Regan) Date: Fri, 15 Sep 2006 04:42:11 +0100 Subject: setExpression issue - matching strings as opposed to numbers? Message-ID: Hello. I am trying to use oClass->setExpression() and can only get it to work if the value I'm setting is a number as opposed to a string. For example In my db I have an entry with id = 19; session_id = 85488e93fe70fe0d52eee0f6a60662b0. I'm trying to get this entry and style it. $oClass->setExpression("([id] = 19)"); works as does (if I edit the session_id to be '85488') $oClass->setExpression("([session_id] = 85488"); When I try $oClass->setExpression("([session_id] = 85488e93fe70fe0d52eee0f6a60662b0)"); or $oClass->setExpression("([session_id] = \"85488e93fe70fe0d52eee0f6a60662b0\")"); or $oClass->setExpression("([session_id] = '85488e93fe70fe0d52eee0f6a60662b0')"); my shapes don't appear. It looks like there it doesn't like the letters in my string. Any ideas? My code and mapfile layer follow. if (strcmp($oLayer->getMetaData ("temp_only"), "true" ) == 0){ $oClass = ms_newClassObj($oLayer); $oClass->setExpression("([session_id] = 85488)");#Displays ok #$oClass->setExpression("([id] = 19)");#Displays ok $oStyle = ms_newStyleObj($oClass); $oStyle->color->setRGB(0,0,0); $oStyle->outlinecolor->setRGB(0,0,0); $oLayer->set('status',MS_ON); } LAYER GROUP "TemporaryAddedPolygons" NAME "TemporaryAddedPolygons" TYPE POLYGON STATUS OFF CONNECTIONTYPE postgis CONNECTION "user=xx dbname=xx host=xx" DATA "the_geom FROM (select type,id,oid,the_geom,session_id from added_shapes_temp) as foo using unique oid using srid=4326" METADATA "opacity" "50" "temp_only" "true" "tile_source" "nocache" END CLASSITEM "session_id" END I'm a bit lost and would appreciate any help. Cheers. Donal. --------------------------------- Yahoo! Messenger - with free PC-PC calling and photo sharing. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at REMOTEINFORMATION.COM.AU Thu Sep 14 22:57:44 2006 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Fri, 15 Sep 2006 13:57:44 +0800 Subject: No subject Message-ID: G'day Donal, you could try : $oLayer -> set('classitem','SessionID'); $oClass = ms_newClassObj($oLayer); $oClass -> setExpression($sessionvalue); The expression might need to be quoted, I don't know if setExpression does this? get it to output ($map->save()) a mapfile and check. good luck. cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Fri Sep 15 01:41:28 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Fri, 15 Sep 2006 10:41:28 +0200 Subject: use an XML file as filter to select data from a vector layer. Message-ID: Hi All, I am trying now to select line segments from a given MapInfo vector layer, and the IDs of the line segments are stored in an XML file, but I don't know how to define the layer filter using this XML file to select the needed line segments. can anyone help me to work this out? or is there any other way to do this? Best Regards Zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From higon_jos at GVA.ES Fri Sep 15 01:42:50 2006 From: higon_jos at GVA.ES (=?ISO-8859-1?Q?Jos=E9_Vicente_Higon?=) Date: Fri, 15 Sep 2006 10:42:50 +0200 Subject: The bounding box request is different to the bbox received In-Reply-To: <450678980200008F00002017@co5.dnr.state.mn.us> Message-ID: Hi list, I have a problem when I request a GetMap in mapserver 4.9 (FWtools linux). I request a layer in tiff format with a especific bounding box but the response doesn't have the same bounding box !! For instance : request=GetMap&version=1.1.1&width=64&height=64&layers=odcv05&styles=&srs=EPSG:4326&format=image/tiff&bbox=-0.3515625,38.583984375,-0.3076171875,38.6279296875 but if I do "gdalinfo" ... I obtain minx= -0.3512192, miny = 38.5843277, max = -0.3079605 maxy = 38.6275864 Is mapserver operating correctly? Thanks in advance. From sebastian.walter at FU-BERLIN.DE Fri Sep 15 03:47:57 2006 From: sebastian.walter at FU-BERLIN.DE (Sebastian Walter) Date: Fri, 15 Sep 2006 12:47:57 +0200 Subject: ogr2ogr: Command not found In-Reply-To: <4509D443.1060808@engr.orst.edu> Message-ID: Ryan Ollerenshaw wrote: > does anyone know what do i need to do in order to get the gdal > commands back in there. You could try, after compiling: make install | grep ogr2ogr From assefa at DMSOLUTIONS.CA Fri Sep 15 03:48:55 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 15 Sep 2006 06:48:55 -0400 Subject: patch for SLD (vs. 4.8.3) In-Reply-To: <38779.137.229.40.226.1158110473.squirrel@www.sfos.uaf.edu> Message-ID: Hi, I have added a bug 1914 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1914). I will commit the chanhes before the 4.10.0 release. Thanks Rob Cermak wrote: > Hi, > > We have a patch for the SLD rendering for the colormap. It seems that it is > documented to take doubles, but all floats passed via SLD become ints through > use of atoi. > > This patch only takes care of the ColorMap. This allows color rendering of > float values. > > http://ak.aoos.org/data/patch/mapserver_483_mapogcsld.patch > > If some change could work into 4.10, that would be great. > > Cheers, > Rob > > --- mapogcsld.c.orig 2006-09-12 15:30:39.000000000 -0800 > +++ mapogcsld.c 2006-09-12 15:32:24.000000000 -0800 > @@ -2354,6 +2354,7 @@ > char szExpression[100]; > int nClassId = 0; > double dfOpacity = 1.0; > + char *pch, *pchPrevious; > > if (!psRoot || !psLayer) > return; > @@ -2403,10 +2404,32 @@ > sColor.blue = hex2int(pszPreviousColor+5); > > /* ?? Test if pszPreviousQuality < pszQuantity */ > - sprintf(szExpression, > - "([pixel] >= %d AND [pixel] < %d)", > - atoi(pszPreviousQuality), > - atoi(pszQuantity)); > + > + /* pszQuantity and pszPreviousQuality may be integer or float */ > + pchPrevious=strchr(pszPreviousQuality,'.'); > + pch=strchr(pszQuantity,'.'); > + if (pchPrevious==NULL && pch==NULL) { > + sprintf(szExpression, > + "([pixel] >= %d AND [pixel] < %d)", > + atoi(pszPreviousQuality), > + atoi(pszQuantity)); > + } else if (pchPrevious != NULL && pch==NULL) { > + sprintf(szExpression, > + "([pixel] >= %f AND [pixel] < %d)", > + atof(pszPreviousQuality), > + atoi(pszQuantity)); > + } else if (pchPrevious == NULL && pch != NULL) { > + sprintf(szExpression, > + "([pixel] >= %d AND [pixel] < %f)", > + atoi(pszPreviousQuality), > + atof(pszQuantity)); > + } else { > + sprintf(szExpression, > + "([pixel] >= %f AND [pixel] < %f)", > + atof(pszPreviousQuality), > + atof(pszQuantity)); > + } > + > if (psLayer->numclasses < MS_MAXCLASSES) > { > initClass(&(psLayer->class[psLayer->numclasses])); > @@ -2456,7 +2479,15 @@ > sColor.red = hex2int(pszColor+1); > sColor.green= hex2int(pszColor+3); > sColor.blue = hex2int(pszColor+5); > - sprintf(szExpression, "([pixel] = %d)", atoi(pszQuantity)); > + > + /* pszQuantity may be integer or float */ > + pch=strchr(pszQuantity,'.'); > + if (pch==NULL) { > + sprintf(szExpression, "([pixel] = %d)", atoi(pszQuantity)); > + } else { > + sprintf(szExpression, "([pixel] = %f)", atof(pszQuantity)); > + } > + > if (psLayer->numclasses < MS_MAXCLASSES) > { > initClass(&(psLayer->class[psLayer->numclasses])); > > > Rob -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From dylan at MAPSERVER.CO.ZA Fri Sep 15 03:18:16 2006 From: dylan at MAPSERVER.CO.ZA (Dylan Rawlins) Date: Fri, 15 Sep 2006 12:18:16 +0200 Subject: OGR MySQL Spatial Connection In-Reply-To: Message-ID: I am trying to connect to a spatial table in MySQl using an OGR connection and ovf file. The ovf: MYSQL:test,user=ABC123,password=*****,host=localhost,port =3306,tables=glacier SELECT * FROM glacier wkbPoint ref The mapfile: LAYER NAME "MyAqi" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "aqidata.ovf" DATA "aqidata" CLASS NAME "MyClass" STYLE SYMBOL 'circle' SIZE 15 COLOR 0 255 0 END END END When I connect to the ovf via FWTools it works fine. However, when I try and connect through PHP Mapscript (v4.8) I get the following error: Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'MyAqi'. in C:\Program Files\Apache Group\Apache2\htdocs\test\OGR\RoWMapProcess.php on line 425 Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection `aqidata.ovf'. Failed to open datasource `MYSQL:test,user=ABC123,password=*****,host=localhost,port=3306,tables=g lacier'. in C:\Program Files\Apache Group\Apache2\htdocs\test\OGR\RoWMapProcess.php on line 425 Any ideas on what I have overlooked?? From beyhan at DEPREM.GOV.TR Fri Sep 15 04:40:11 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Fri, 15 Sep 2006 14:40:11 +0300 Subject: connect mysql by using ogr In-Reply-To: <20060915034211.97517.qmail@web25006.mail.ukl.yahoo.com> Message-ID: Dear Greg and friends; Finally I have solved to read data form mysql database than draw map by using those data. I have created Peag Ground Acceleration map for the earthquake which data are stored in MySql. But I would like to display map for all earthquake which are described in the Mysql table as eq-id column. I have querid mysql database by using ovf file as following ??? ?????? MYSQL:database,user=user,password=pass_wd,host=100.00.00.21,port=3306,tables=d_pgadata1 ??????? SELECT eq_id,latitude,longitude,acceleration from d_pgadata1 where eq_id like '%200006060242%' ??????? wkbPoint ??????? ??? As you see when I create map by layer OGR this will just the eq_id like '%200006060242%'. But I would like to change this eq_id by interactively for example who will like to see 200609151300 earthquake PGA map he/she can change sql statement in ovf file by using php or html commands fromweb... Do you have any idea is it possible or not. Please I wellcome any kind of information about it.. Thank you Murat But I would like to make php file for displaying other On Fri, 15 Sep 2006 08:21:43 +1000, Greg Luker wrote > Hi Murat, > > Have you found a solution to your problem yet? I'm a beginner > mapserver user and I'm using mapserver with MySQL. I am reading > point locations from a MySQL database using OGRVRT? and drawing > those points on a map. Is this what you want to do. I could send my > mapfile to you if that would help. > > Thanks, > Greg. > > Greg Luker > GIS Lab Manager, Southern Cross University > Lismore, AUSTRALIA. > gluker at scu.edu.au > phone 61 2 66203026 > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stan at SUMBERA.COM Fri Sep 15 04:35:55 2006 From: stan at SUMBERA.COM (Stanislav Sumbera) Date: Fri, 15 Sep 2006 13:35:55 +0200 Subject: Announce: MapSnack - Geospatial Virtual Appliance Message-ID: [cross posting to freegis] Hi all, I have presented at FOSS4G idea, way and solution to what I started to call as "Geospatial Virtual Appliance" Actually its name is MapSnack, it runs as virtual machine - completly isolated from underlying host machine, alowing you to make snapshots, extend, safely drop or return back state..simply all benefits offered by virtualization. I belive this could be a way of complimentary offering to binary distros to wide range of users who just don't want to install and interfere with their existing system - just copy files to your hdd and run via. Currently MapSnack supports VMWare virtualization platform (thus you need free VMWare player running either on Linux or Windows and soon on Mac). I plan to support various virtualization platforms (Xen, QEMU,..)and native run as well and create various appliances targeting specific user needs rather than putting there all possible packages. I feel that the term "GEOSPATIAL VIRTUAL APPLIANCE" is very important and need to be addressed to the users who are just unconsciously waiting for this option to start leverage SaaS approach without any risk. Main information you can find here: http://www.foss4g2006.org/contributionDisplay.py?contribId=84&sessionId=41&confId=1 home page of the project is: http://mapsnack.mendelu.cz download can be done via bittorent from: http://www.vmware.com/vmtn/appliances/directory/187 Kay Applications perinstalled: Apache-2.2.2 PHP-5.1.4 GDAL-1.3.1 PROJ-4.4.9 GRASS-6.0.2 MapServer-4.8.3 MapLab-2.2.1 ka-map-0.2.0 p.mapper-1.9.5 beta if you have any questions please contact me... ..enjoy ..your (map)Snack Stan From agrassic at GMAIL.COM Fri Sep 15 06:01:08 2006 From: agrassic at GMAIL.COM (Antonio Grassi) Date: Fri, 15 Sep 2006 10:01:08 -0300 Subject: Map file projection question Message-ID: Hi all. I don't know if this is a question for this list or the postgis's user list. We have several layers in a postgres/postgis database. Almost all layers are in utm zone 21 south, but we have some data in geographic coordinates. For several years we've data stored in the database with srid=-1 on the geometry_columns table. We had the utm projection defined in the MAP section, and the geographic coordinates projection defined in those LAYER sections corresponding to the layers in geographic coordinates. Today I loaded the spatial_ref_sys table and updated the srid field for those layers that are in geographic coordinates. We took out the projection definition from the LAYER sections corresponding to those layers, and kept the utm projection definition in the MAP section. I thought that, as the proj information is stored in the spatial_ref_sys table and referenced through the geometry_columns table, there was no need to specify it in the .map file, as mapserver could know it from the database layer definition, or maybe postgis could return the geometrys converted to the system specified in the MAP section. Well, in the generated map, all the utm layers are shown, but the geographic coordinates layers are not drawn. Looking in both mapserver's and postgis's documentation and mailing lists I'm almost sure that both assumptions are wrong, and that it's not an error in the proj WKT or something like that. So my question is simple: Do i have to specify a projection section in every layer that is not in the same system of that in the map section, or is there a way of making any of the different components that participate in the layer drawing process to reason it? Thanks very much, Antonio -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at TERRESTRIS.DE Fri Sep 15 06:20:26 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Fri, 15 Sep 2006 15:20:26 +0200 Subject: Announce: MapSnack - Geospatial Virtual Appliance In-Reply-To: <20060915133555.j0ea155ub534s4w4@webmail.servery.cz> Message-ID: Dear Stanislav, that's a great one ;-) especially I like the name "mapsnack". As we talked about this yesterday we have to keep things going on and maybe merge together our projects. What you've done is what we have done (as it is too often) and called it "GDIdevL". I hope there are a lot of people out there and going to use that stuff for enlarge this community. Regards ,Till > [cross posting to freegis] > Hi all, > > I have presented at FOSS4G idea, way and solution to what I started to > call as "Geospatial Virtual Appliance" Actually its name is MapSnack, > it runs as virtual machine - completly isolated from underlying host > machine, alowing you to make snapshots, extend, safely drop or return > back state..simply all benefits offered by virtualization. > I belive this could be a way of complimentary offering to binary > distros to wide range of users who just don't want to install and > interfere with their existing system - just copy files to your hdd and > run via. > > Currently MapSnack supports VMWare virtualization platform (thus you > need free VMWare player running either on Linux or Windows and soon on > Mac). I plan to support various virtualization platforms (Xen, > QEMU,..)and native run as well and create various appliances targeting > specific user needs rather than putting there all possible packages. > > I feel that the term "GEOSPATIAL VIRTUAL APPLIANCE" is very important > and need to be addressed to the users who are just unconsciously > waiting for this option to start leverage SaaS approach without any > risk. > > Main information you can find here: > http://www.foss4g2006.org/contributionDisplay.py?contribId=84&sessionId=41&confId=1 > > > home page of the project is: http://mapsnack.mendelu.cz > download can be done via bittorent from: > http://www.vmware.com/vmtn/appliances/directory/187 > > Kay Applications perinstalled: Apache-2.2.2 PHP-5.1.4 GDAL-1.3.1 > PROJ-4.4.9 GRASS-6.0.2 MapServer-4.8.3 MapLab-2.2.1 ka-map-0.2.0 > p.mapper-1.9.5 beta > > > > if you have any questions please contact me... > > ..enjoy ..your (map)Snack > > > Stan > -- ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From zhonghaiw at GMAIL.COM Fri Sep 15 08:32:55 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Fri, 15 Sep 2006 17:32:55 +0200 Subject: is it possible to make a query on a TILEINDEX layer? Message-ID: Hi All, I have a shapefile more than 500MB, to speed up the performance, I've made a TILEINDEX shapefile and use it in mapfile instead of the original shapefile. Now I want to make a query on this layer, but using the attributes in the DBF file of the original shapefile. Is it possible to make this query like that? thanks for any hints. Regards Zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Fri Sep 15 09:22:59 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 15 Sep 2006 09:22:59 -0700 Subject: ogr2ogr: Command not found In-Reply-To: <450A6875.4080106@fu-berlin.de> Message-ID: Sebastian Walter wrote: > Ryan Ollerenshaw wrote: >> does anyone know what do i need to do in order to get the gdal >> commands back into /usr/local/bin/ > You could try, after compiling: > > make install | grep ogr2ogr I have tried the following as root in /usr/share/gdal-1.3.2/ but none of the gdal commands that were compiled with my original gdal install are replaced: # make clean #./configure --with-xerces=/root/xerces-c-src_2_7_0/ # make # make install | grep ogr2ogr make: *** No rule to make target `install'. Stop. and # make clean #./configure --with-xerces=/root/xerces-c-src_2_7_0/ # make # make install From scottpez at HOTMAIL.COM Wed Sep 13 07:08:00 2006 From: scottpez at HOTMAIL.COM (scottpez) Date: Wed, 13 Sep 2006 07:08:00 -0700 Subject: raster data looks washed out Message-ID: Hi, I am trying to serve up a raster dataset in mapserver. The raster dataset is an aerial orthophoto. When I view this dataset in any program other than mapserver (Imagine, ArcGIS and even FWTools1.0.6 OpenEV_FW program) the dataset looks fine. However, when I serve the dataset up through mapserver as a wms request, the returned image looks washed out. The colors do not seem to be quite right. Also, it seems like the resolution isn't as great but then this could simply be because of the washed out colors. Does anyone know what may be going on here? I am not sure the current mapserver version I am using but it is not that recent. Thanks in advance for any suggestions, Scott -- View this message in context: http://www.nabble.com/raster-data-looks-washed-out-tf2265476.html#a6286352 Sent from the Mapserver - User forum at Nabble.com. From LESSARDST at DFO-MPO.GC.CA Fri Sep 15 10:48:53 2006 From: LESSARDST at DFO-MPO.GC.CA (Stephane Lessard) Date: Fri, 15 Sep 2006 13:48:53 -0400 Subject: BAG File Format Support Message-ID: Hi list, Anyone knows if there are plans to support the Bathymetric Attributed Grid (BAG) file format? This format is used for gridded bathymetry data, and is part of the Open Navigation Surface project. http://www.opennavsurf.org/background.html They provide their source code and API... If someone is interested, we might be able to provide some fundings... Thanks! Stephane Lessard Canadian Coast Guard -------------- next part -------------- An HTML attachment was scrubbed... URL: From j_siever at YAHOO.COM Fri Sep 15 11:13:57 2006 From: j_siever at YAHOO.COM (Jason Sievers) Date: Fri, 15 Sep 2006 11:13:57 -0700 Subject: Image color problems Message-ID: I have built a raster catalog and am display orthophotos in my MapServer application. Some of my TIFF images are rendered with incorrect color. Here is an example: http://www.co.linn.or.us/webmap/ELLAMaps1.0/badcolor.png. This is an 8-bit TIFF input and MapServer outputs it as an 8-bit png. It seems that the really dark (black or very close to it) pixels are rendered white by MapServer. The original image does not have these white pixels. I've read through the Raster HOW-TO and played with OUTPUTFORMAT but with no success. Thanks for any help. Jason Sievers jsievers at co.linn.or.us Linn County GIS Department Albany, OR 97321 --------------------------------- Get your email and more, right on the new Yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tkirstine at JDBARNES.COM Fri Sep 15 11:23:40 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine) Date: Fri, 15 Sep 2006 14:23:40 -0400 Subject: Image color problems In-Reply-To: <20060915181358.43494.qmail@web36604.mail.mud.yahoo.com> Message-ID: Try adding: PROCESSING "SCALE=AUTO" to your layer definition Travis -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Jason Sievers Sent: Friday, September 15, 2006 2:14 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Image color problems I have built a raster catalog and am display orthophotos in my MapServer application. Some of my TIFF images are rendered with incorrect color. Here is an example: http://www.co.linn.or.us/webmap/ELLAMaps1.0/badcolor.png. This is an 8-bit TIFF input and MapServer outputs it as an 8-bit png. It seems that the really dark (black or very close to it) pixels are rendered white by MapServer. The original image does not have these white pixels. I've read through the Raster HOW-TO and played with OUTPUTFORMAT but with no success. Thanks for any help. Jason Sievers jsievers at co.linn.or.us Linn County GIS Department Albany, OR 97321 ---------------------------------------------------------------------------- -- Get your email and more, right on the new Yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From arndw at WTAL.DE Fri Sep 15 12:35:52 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Fri, 15 Sep 2006 21:35:52 +0200 Subject: AW: [UMN_MAPSERVER-USERS] Image color problems In-Reply-To: <20060915181358.43494.qmail@web36604.mail.mud.yahoo.com> Message-ID: Hello Jason, perhaps you have set IMAGECOLOR 255 255 255 and TRANSPARENT ON in your mapfile IMAGECOLOR [r] [g] [b] Color to initialize the map with (i.e. background color). When transparency is enabled (TRANSPARENT ON) for the typical case of 8-bit pseudocolored map generation, this color will be marked as transparent in the output file palette. Any other map components drawn in this color will also be transparenct, so for map generation with transparency it is best to use an otherwise unused color as the background color. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/pinguinale/ ________________________________ Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Jason Sievers Gesendet: Freitag, 15. September 2006 20:14 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] Image color problems I have built a raster catalog and am display orthophotos in my MapServer application. Some of my TIFF images are rendered with incorrect color. Here is an example: http://www.co.linn.or.us/webmap/ELLAMaps1.0/badcolor.png. This is an 8-bit TIFF input and MapServer outputs it as an 8-bit png. It seems that the really dark (black or very close to it) pixels are rendered white by MapServer. The original image does not have these white pixels. I've read through the Raster HOW-TO and played with OUTPUTFORMAT but with no success. Thanks for any help. Jason Sievers jsievers at co.linn.or.us Linn County GIS Department Albany, OR 97321 ________________________________ Get your email and more, right on the new Yahoo.com From arndw at WTAL.DE Fri Sep 15 12:48:33 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Fri, 15 Sep 2006 21:48:33 +0200 Subject: AW: [UMN_MAPSERVER-USERS] raster data looks washed out In-Reply-To: <6286352.post@talk.nabble.com> Message-ID: Hi Scott, If the original photo is of 24 bit color you must use png24 or jpeg for the output with mapserver. That's what I often forget. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/pinguinale/ -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von scottpez Gesendet: Mittwoch, 13. September 2006 16:08 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] raster data looks washed out Hi, I am trying to serve up a raster dataset in mapserver. The raster dataset is an aerial orthophoto. When I view this dataset in any program other than mapserver (Imagine, ArcGIS and even FWTools1.0.6 OpenEV_FW program) the dataset looks fine. However, when I serve the dataset up through mapserver as a wms request, the returned image looks washed out. The colors do not seem to be quite right. Also, it seems like the resolution isn't as great but then this could simply be because of the washed out colors. Does anyone know what may be going on here? I am not sure the current mapserver version I am using but it is not that recent. Thanks in advance for any suggestions, Scott -- View this message in context: http://www.nabble.com/raster-data-looks-washed-out-tf2265476.html#a6286352 Sent from the Mapserver - User forum at Nabble.com. From ollerery at ENGR.ORST.EDU Fri Sep 15 17:51:31 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 15 Sep 2006 17:51:31 -0700 Subject: gdal install In-Reply-To: <20060915195030.AC2CA1B574E@smtp.tal.de> Message-ID: I think that i took care of my previous problem by installing the ogdi rmp but now i am getting the following errors during make. Do these errors mean that i need to install grass? isnt grass its own GIS application why would i need to install it if i only need gdal to use with MapServer? I am using this configure command: ./configure --with-png=internal --with-libtiff=internal --with-jpeg=internal --with-gif=internal --with-pg=/usr/local/pgsql/bin/pg_config --with-geos --with-xerces=/root/xerces-c-src_2_7_0/ Here are the errors that are displayed: grassdataset.cpp:84:22: error: libgrass.h: No such file or directory grassdataset.cpp: In constructor 'GRASSRasterBand::GRASSRasterBand(GRASSDataset*, int, const char*, const char*)': grassdataset.cpp:182: error: aggregate 'Cell_head sCellInfo' has incomplete type and cannot be defined grassdataset.cpp:187: error: 'G_get_cellhd' was not declared in this scope grassdataset.cpp:188: error: 'G_raster_map_type' was not declared in this scope grassdataset.cpp:193: error: aggregate 'FPRange sRange' has incomplete type and cannot be defined grassdataset.cpp:196: error: 'G_read_fp_range' was not declared in this scope grassdataset.cpp:203: error: 'G_get_fp_range_min_max' was not declared in this scope grassdataset.cpp:210: error: 'CELL_TYPE' was not declared in this scope grassdataset.cpp:236: error: 'FCELL_TYPE' was not declared in this scope grassdataset.cpp:241: error: 'DCELL_TYPE' was not declared in this scope grassdataset.cpp:250: error: 'G_open_cell_old' was not declared in this scope grassdataset.cpp:255: error: aggregate 'Colors sGrassColors' has incomplete type and cannot be defined grassdataset.cpp:259: error: 'G_read_colors' was not declared in this scope grassdataset.cpp:267: error: 'G_get_color' was not declared in this scope grassdataset.cpp:287: error: 'G_free_colors' was not declared in this scope grassdataset.cpp: In destructor 'virtual GRASSRasterBand::~GRASSRasterBand()': grassdataset.cpp:302: error: 'G_close_cell' was not declared in this scope grassdataset.cpp: In member function 'virtual CPLErr GRASSRasterBand::IReadBlock(int, int, void*)': grassdataset.cpp:321: error: 'G_get_null_value_row' was not declared in this scope grassdataset.cpp:326: error: 'G_get_raster_row' was not declared in this scope grassdataset.cpp:346: error: 'G_get_raster_row' was not declared in this scope grassdataset.cpp: In static member function 'static GDALDataset* GRASSDataset::Open(GDALOpenInfo*)': grassdataset.cpp:517: error: 'G_set_error_routine' was not declared in this scope grassdataset.cpp:518: error: 'G_gisinit_2' was not declared in this scope grassdataset.cpp:524: error: 'G_check_cell' was not declared in this scope grassdataset.cpp:529: error: 'G_free' was not declared in this scope grassdataset.cpp:536: error: 'I_check_group' was not declared in this scope grassdataset.cpp:538: error: aggregate 'Ref ref' has incomplete type and cannot be defined grassdataset.cpp:540: error: 'I_init_group_ref' was not declared in this scope grassdataset.cpp:541: error: 'I_get_group_ref' was not declared in this scope grassdataset.cpp:549: error: 'I_free_group_ref' was not declared in this scope grassdataset.cpp:551: error: 'G_free' was not declared in this scope grassdataset.cpp:571: error: aggregate 'Cell_head sCellInfo' has incomplete type and cannot be defined grassdataset.cpp:573: error: 'G_get_cellhd' was not declared in this scope grassdataset.cpp:582: error: 'G_set_window' was not declared in this scope grassdataset.cpp:596: error: 'G_get_cell_as_proj4' was not declared in this scope grassdataset.cpp:606: error: 'G_free' was not declared in this scope make[2]: *** [../o/grassdataset.o] Error 1 make[2]: Leaving directory `/usr/share/gdal-1.3.2/frmts/grass' make[1]: *** [grass-install-obj] Error 2 make[1]: Leaving directory `/usr/share/gdal-1.3.2/frmts' make: *** [frmts-target] Error 2 From sebastian.walter at FU-BERLIN.DE Sat Sep 16 03:03:01 2006 From: sebastian.walter at FU-BERLIN.DE (Sebastian Walter) Date: Sat, 16 Sep 2006 12:03:01 +0200 Subject: ogr2ogr: Command not found In-Reply-To: <450AD363.2080401@engr.orst.edu> Message-ID: Ryan Ollerenshaw wrote: > I have tried the following as root in /usr/share/gdal-1.3.2/ but none > of the gdal commands that were compiled with my original gdal install > are replaced: > > # make clean > #./configure --with-xerces=/root/xerces-c-src_2_7_0/ > # make > # make install | grep ogr2ogr > make: *** No rule to make target `install'. Stop. Strange. This looks like there is no install target in your Makefile. I suggest either reconfigure, recompile and reinstall with a newly unpacked tarball (I did a quick test and for my download, there *is* an install target. My ./configure output gives me: [...] GDAL is now configured for i686-pc-linux-gnu Installation directory: /usr/local C compiler: gcc -O2 C++ compiler: g++ -O2 [...] Alternatively, you can manually mv the files to /usr/local/bin, of course: mv ogr/ogr2ogr [...] /usr/local/bin/ From flavio at TYDAC.CH Sat Sep 16 03:33:12 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Sat, 16 Sep 2006 12:33:12 +0200 Subject: MapInfo .tab vs Shapefile In-Reply-To: Message-ID: Hi Kristine we use both in many projects and do not see any remarkable difference (such as who would count or care about millieconds ...). the spatial indexing is the same for both. the advantage of mapinfo files is that you have more "functionality", such as label files (reads the mapinfo label positioning and rotation), automatic styling (use the same colors as in mapinfo using STYLEITEM "Auto"), less restriction in column naming and so on. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Travis Kirstine To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Wed, 13 Sep 2006 08:52:01 -0400 Subject: [UMN_MAPSERVER-USERS] MapInfo .tab vs Shapefile > Hi, > In general do shp files with a .qix index display faster than mapinfo > .tab > files connected with ogr? > I've looked through the docs and that is the general impression I get > but > there is no definite statement. > > Cheers, > Travis From arndw at WTAL.DE Sat Sep 16 07:01:01 2006 From: arndw at WTAL.DE (Arnd Wippermann) Date: Sat, 16 Sep 2006 16:01:01 +0200 Subject: Reprojection of rasterdata Message-ID: Hello, I have no problem to reproject rasterdata from EPSG:4326 to EPSG:31466 (German Gauss-Kr?ger-Projection) through mapserver. But now I want the first time get rasterdata from EPSG:31466 to EPSG:4326 reprojected, but mapserver (4.8.0-beta1, also 4.8.4, 4.9) generates no correct reprojection. Mapserver moves the data from coordinates like 2586000, 5680000 to 7, 50, but renders without distortion of the original data. Have someone a clue? Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/pinguinale/ From luca.casagrande at GMAIL.COM Sun Sep 17 07:49:18 2006 From: luca.casagrande at GMAIL.COM (Luca Casagrande) Date: Sun, 17 Sep 2006 16:49:18 +0200 Subject: Mapserver requires restart of apache Message-ID: Hi to all! I have noticed that each time I modify the .map file, I need to restart apache to see any changes.. Any idea of which can be the matter? Thanks for all Luca -------------- next part -------------- An HTML attachment was scrubbed... URL: From cplist at EARTHLINK.NET Sun Sep 17 18:12:05 2006 From: cplist at EARTHLINK.NET (Charlton Purvis) Date: Sun, 17 Sep 2006 21:12:05 -0400 Subject: can't create Perl mapObj w/ filename In-Reply-To: <8d09169d0609170749k19b56b0cj32669940becfebb0@mail.gmail.com> Message-ID: Hi, folks: For the life of me, I can't figure out what I'm doing wrong. Whenever I pump in a filename to create a mapObj, I get nowhere. When I pump in an empty filename, I'm allowed to continue. use mapscript; my $map_file = 'foo.map'; my $map = mapscript::mapObj->new($map_file); $map->setExtent(0,0,0,0); perl -c is OK. At runtime: Can't call method "setExtent" without a package or object reference at ./ms.pl line 4. If I simply make $map_file = '';, everything works great. But the deal is that I want to read from an existing (and 100% working) .map file. What the devil am I doing wrong? Thanks for your help. Charlton mapserver-4.8.4 From cplist at EARTHLINK.NET Sun Sep 17 22:08:09 2006 From: cplist at EARTHLINK.NET (Charlton Purvis) Date: Mon, 18 Sep 2006 01:08:09 -0400 Subject: can't create Perl mapObj w/ filename In-Reply-To: <000701c6dabf$7b24b610$6401a8c0@latitude> Message-ID: > For the life of me, I can't figure out what I'm doing wrong. Whenever I > pump in a filename to create a mapObj, I get nowhere. When I pump in an > empty filename, I'm allowed to continue. I think I've narrowed it down to some underlying library snag. It works fine on another box. I only wish the error messages were more helpful. :) Charlton From Jukka.Rahkonen at MMMTIKE.FI Sun Sep 17 22:52:54 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 18 Sep 2006 08:52:54 +0300 Subject: Mapserver requires restart of apache Message-ID: Hi, I have never experienced just this behaviour, but I have seen that for example MapLab applications do not trigger the new map file with just pushing the Refresh button. But if I check/uncheck a layer or zoom in/out or something then the new map file is used. Could this be the case for you as well? If you still need to restart Apache each time to see the effect of editing the mapfile then I believe that the mapfile itself of some program object created from that must be cached somewhere in your system. Then it might be due to your application rather than Mapserver. Have you tried what happens if you send requests to your Mapserver-cgi and the edited mapfile through browser, for example? Regards, -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Luca Casagrande L?hetetty: su 17.9.2006 17:49 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] Mapserver requires restart of apache Hi to all! I have noticed that each time I modify the .map file, I need to restart apache to see any changes.. Any idea of which can be the matter? Thanks for all Luca From Walter.Pleyer at LFRZ.AT Mon Sep 18 04:22:34 2006 From: Walter.Pleyer at LFRZ.AT (Pleyer, Walter) Date: Mon, 18 Sep 2006 13:22:34 +0200 Subject: Mapfile Tuning Message-ID: Hi folks! We are currently experiencing some performance troubles which we tracked to the size of the mapfile. We expect the mapfile to grow to well over 100 layers and analysis shows that the parsing of this mapfile slows the mapgeneration down by almost a second each time. Is there enaything else, apart from using mapscript, that can be done to tweak the performance? Walter LFRZ A-1200 Wien, Dresdner Strasse 89 Tel: ++43(1)33 176/421 Fax: ++43(1)33 176/999 Mobil: 0676/5256642 Email: walter.pleyer at lfrz.at WWW: http://www.lfrz.at From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Sep 18 05:12:57 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Mon, 18 Sep 2006 14:12:57 +0200 Subject: Mapfile Tuning Message-ID: I think Tamas mentioned an interesting idea a while ago to use binary MAP files. If your MAP file does not change that often, it could be a good way to speed things up in a production environment. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Pleyer, Walter Verzonden: maandag 18 september 2006 13:23 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Mapfile Tuning Hi folks! We are currently experiencing some performance troubles which we tracked to the size of the mapfile. We expect the mapfile to grow to well over 100 layers and analysis shows that the parsing of this mapfile slows the mapgeneration down by almost a second each time. Is there enaything else, apart from using mapscript, that can be done to tweak the performance? Walter LFRZ A-1200 Wien, Dresdner Strasse 89 Tel: ++43(1)33 176/421 Fax: ++43(1)33 176/999 Mobil: 0676/5256642 Email: walter.pleyer at lfrz.at WWW: http://www.lfrz.at Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From Walter.Pleyer at LFRZ.AT Mon Sep 18 06:02:48 2006 From: Walter.Pleyer at LFRZ.AT (Pleyer, Walter) Date: Mon, 18 Sep 2006 15:02:48 +0200 Subject: AW: [UMN_MAPSERVER-USERS] Mapfile Tuning In-Reply-To: <450E8DF6.2040000@swoodbridge.com> Message-ID: Hi Steven! We are using a mix of raster and shape files. We compared the "fat" mapfile with a "slim" mapfile, that contained only the layers, that we wanted to parse and the latter one was a lot faster. Debug output showed that actually loading those layers and rendering the map was equally fast, so obviously the loss on performance is connected to the number of not displayed layers. What I forgot to mention was the system: We are using Windows 2003 and IIS on a 4 Xeon machine. Walter From tadamcz at AE.KATOWICE.PL Mon Sep 18 05:26:17 2006 From: tadamcz at AE.KATOWICE.PL (Tomasz Adamczewski) Date: Mon, 18 Sep 2006 14:26:17 +0200 Subject: GEOCMS Message-ID: Hi, I looking for any information about GeoCMS. Is it an OpenSource Project? Is it possible to download it and look at this closer? Is there any documentation/articles about GeoCMS? I found something here: http://mapserver.gis.umn.edu/gallery/gallery.2006-05-09.7042623469 But thise note is very short... Thank you for help! Tomash From woodbri at SWOODBRIDGE.COM Mon Sep 18 06:14:57 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 18 Sep 2006 09:14:57 -0400 Subject: AW: [UMN_MAPSERVER-USERS] Mapfile Tuning In-Reply-To: Message-ID: Pleyer, Walter wrote: > Hi Steven! > > We are using a mix of raster and shape files. > We compared the "fat" mapfile with a "slim" mapfile, that contained only > the layers, that we wanted to parse and the latter one was a lot faster. > Debug output showed that actually loading those layers and rendering the > map was equally fast, so obviously the loss on performance is connected > to the number of not displayed layers. > > What I forgot to mention was the system: We are using Windows 2003 and > IIS on a 4 Xeon machine. OK, well this may not be the performance of "loading" the extra layers then, it may be the performance of having a lot of layers loaded that are not displayed, if you get the difference. One would therefore want to look in a different place for the the performance issue. I wrote a simple mapscript routine and timed the cost to create an new map object. This code is basically just loading the mapfile and doing nothing else. It is very fast, like typically 0.1 sec for most large mapfiles. So the issue is unlikely with the mapfile parser. -SteveW From dmorissette at MAPGEARS.COM Mon Sep 18 06:47:02 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 18 Sep 2006 09:47:02 -0400 Subject: Mapfile Tuning In-Reply-To: Message-ID: Do you use "init=epsg:xxxx" type of projection definitions in your layers? In the past I have found the EPSG codes lookup to be quite expensive. If you use that then you may find that using native proj4 definitions for your projections might help. Daniel Pleyer, Walter wrote: > Hi folks! > > We are currently experiencing some performance troubles which we tracked > to the size of the mapfile. > We expect the mapfile to grow to well over 100 layers and analysis shows > that the parsing of this mapfile slows the mapgeneration down by almost > a second each time. > Is there enaything else, apart from using mapscript, that can be done to > tweak the performance? > > Walter > > LFRZ > A-1200 Wien, Dresdner Strasse 89 > Tel: ++43(1)33 176/421 > Fax: ++43(1)33 176/999 > Mobil: 0676/5256642 > Email: walter.pleyer at lfrz.at > WWW: http://www.lfrz.at From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Sep 18 06:52:30 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Mon, 18 Sep 2006 15:52:30 +0200 Subject: Mapfile Tuning Message-ID: That's absolutely true. And it is read a few times for a map request ..... Alternatively, you can strip all unused entries from your epsg file. That's the approach we take here. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Daniel Morissette Verzonden: maandag 18 september 2006 15:47 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Mapfile Tuning Do you use "init=epsg:xxxx" type of projection definitions in your layers? In the past I have found the EPSG codes lookup to be quite expensive. If you use that then you may find that using native proj4 definitions for your projections might help. Daniel Pleyer, Walter wrote: > Hi folks! > > We are currently experiencing some performance troubles which we tracked > to the size of the mapfile. > We expect the mapfile to grow to well over 100 layers and analysis shows > that the parsing of this mapfile slows the mapgeneration down by almost > a second each time. > Is there enaything else, apart from using mapscript, that can be done to > tweak the performance? > > Walter > > LFRZ > A-1200 Wien, Dresdner Strasse 89 > Tel: ++43(1)33 176/421 > Fax: ++43(1)33 176/999 > Mobil: 0676/5256642 > Email: walter.pleyer at lfrz.at > WWW: http://www.lfrz.at Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From David.Fawcett at STATE.MN.US Mon Sep 18 07:03:58 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 18 Sep 2006 09:03:58 -0500 Subject: Mapfile Tuning In-Reply-To: A<5958F6B0C15AFE449245A966FB967B58074F73@rws-s001000.ad.rws.nl> Message-ID: This sounds like a great start to a 'Mapfile Tuning' HowTo... -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Eijnden, Bart van den (AGI) Sent: Monday, September 18, 2006 8:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapfile Tuning That's absolutely true. And it is read a few times for a map request ..... Alternatively, you can strip all unused entries from your epsg file. That's the approach we take here. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Daniel Morissette Verzonden: maandag 18 september 2006 15:47 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Mapfile Tuning Do you use "init=epsg:xxxx" type of projection definitions in your layers? In the past I have found the EPSG codes lookup to be quite expensive. If you use that then you may find that using native proj4 definitions for your projections might help. Daniel Pleyer, Walter wrote: > Hi folks! > > We are currently experiencing some performance troubles which we > tracked to the size of the mapfile. We expect the mapfile to grow to > well over 100 layers and analysis shows that the parsing of this > mapfile slows the mapgeneration down by almost a second each time. > Is there enaything else, apart from using mapscript, that can be done to > tweak the performance? > > Walter > > LFRZ > A-1200 Wien, Dresdner Strasse 89 > Tel: ++43(1)33 176/421 > Fax: ++43(1)33 176/999 > Mobil: 0676/5256642 > Email: walter.pleyer at lfrz.at > WWW: http://www.lfrz.at Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From john.cole at UAI.COM Mon Sep 18 07:39:49 2006 From: john.cole at UAI.COM (John Cole) Date: Mon, 18 Sep 2006 09:39:49 -0500 Subject: Mapfile Tuning Message-ID: Do you have to remove the extra projections or is it good enough to move the ones you use to the front of the file? Thanks, John Cole -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fawcett, David Sent: Monday, September 18, 2006 9:04 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapfile Tuning This sounds like a great start to a 'Mapfile Tuning' HowTo... -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Eijnden, Bart van den (AGI) Sent: Monday, September 18, 2006 8:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapfile Tuning That's absolutely true. And it is read a few times for a map request ..... Alternatively, you can strip all unused entries from your epsg file. That's the approach we take here. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Daniel Morissette Verzonden: maandag 18 september 2006 15:47 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Mapfile Tuning Do you use "init=epsg:xxxx" type of projection definitions in your layers? In the past I have found the EPSG codes lookup to be quite expensive. If you use that then you may find that using native proj4 definitions for your projections might help. Daniel Pleyer, Walter wrote: > Hi folks! > > We are currently experiencing some performance troubles which we > tracked to the size of the mapfile. We expect the mapfile to grow to > well over 100 layers and analysis shows that the parsing of this > mapfile slows the mapgeneration down by almost a second each time. > Is there enaything else, apart from using mapscript, that can be done to > tweak the performance? > > Walter > > LFRZ > A-1200 Wien, Dresdner Strasse 89 > Tel: ++43(1)33 176/421 > Fax: ++43(1)33 176/999 > Mobil: 0676/5256642 > Email: walter.pleyer at lfrz.at > WWW: http://www.lfrz.at Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Sep 18 07:43:12 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Mon, 18 Sep 2006 16:43:12 +0200 Subject: Mapfile Tuning Message-ID: Good question, to be honest I don't know, we remove them to be safe. Frank should be able to answer this. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens John Cole Verzonden: maandag 18 september 2006 16:40 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Mapfile Tuning Do you have to remove the extra projections or is it good enough to move the ones you use to the front of the file? Thanks, John Cole -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fawcett, David Sent: Monday, September 18, 2006 9:04 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapfile Tuning This sounds like a great start to a 'Mapfile Tuning' HowTo... -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Eijnden, Bart van den (AGI) Sent: Monday, September 18, 2006 8:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapfile Tuning That's absolutely true. And it is read a few times for a map request ..... Alternatively, you can strip all unused entries from your epsg file. That's the approach we take here. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Daniel Morissette Verzonden: maandag 18 september 2006 15:47 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Mapfile Tuning Do you use "init=epsg:xxxx" type of projection definitions in your layers? In the past I have found the EPSG codes lookup to be quite expensive. If you use that then you may find that using native proj4 definitions for your projections might help. Daniel Pleyer, Walter wrote: > Hi folks! > > We are currently experiencing some performance troubles which we > tracked to the size of the mapfile. We expect the mapfile to grow to > well over 100 layers and analysis shows that the parsing of this > mapfile slows the mapgeneration down by almost a second each time. > Is there enaything else, apart from using mapscript, that can be done to > tweak the performance? > > Walter > > LFRZ > A-1200 Wien, Dresdner Strasse 89 > Tel: ++43(1)33 176/421 > Fax: ++43(1)33 176/999 > Mobil: 0676/5256642 > Email: walter.pleyer at lfrz.at > WWW: http://www.lfrz.at Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From ollerery at ENGR.ORST.EDU Mon Sep 18 09:02:25 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Mon, 18 Sep 2006 09:02:25 -0700 Subject: error: gdal.h: No such file or directory In-Reply-To: <76758090F8686C47A44B6FF52514A1D3079098DE@hermes.uai.int> Message-ID: When recompiling MapServer i am getting the following error: -I/usr3/pkg4/OpenEV_FW_Tree/FWTools/include mapfile.c -o mapfile.o mapfile.c:149:20: error: gdal.h: No such file or directory make: *** [mapfile.o] Error 1 [root at neuron mapserver-4.8.3]# locate gdal.h /root/FWTools-1.0.5/include/gdal.h the configure that i am using is: ./configure --with-proj=/usr/local/ --enable-runpath --with-geos=/root/FWTools-1.0.5/bin/geos-config --with-ogr=/root/FWTools-1.0.5/bin/gdal-config --with-gdal=/root/FWTools-1.0.5/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-curl-config=/usr/bin/curl-config --with-php=/usr/local/include/php --with-wcs --with-wfs --with-wmsclient --with-wfsclient --with-threads the gdal.h file is present i do not know why i am getting this error. From tylermitchell at SHAW.CA Mon Sep 18 10:23:36 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 18 Sep 2006 19:23:36 +0200 Subject: GEOCMS In-Reply-To: <64941.80.55.132.22.1158582377.squirrel@klingon.ae.katowice.pl> Message-ID: Hi Tomash, I think this reference is specifically about the tikiwiki CMS that has an add-on to support the mapping/geo stuff. See http:// tikiwiki.org. Hope that helps, Tyler On 18-Sep-06, at 2:26 PM, Tomasz Adamczewski wrote: > Hi, > I looking for any information about GeoCMS. > Is it an OpenSource Project? > Is it possible to download it and look at this closer? > Is there any documentation/articles about GeoCMS? > > I found something here: > http://mapserver.gis.umn.edu/gallery/gallery.2006-05-09.7042623469 > But thise note is very short... > > Thank you for help! > > Tomash From scottpez at HOTMAIL.COM Mon Sep 18 13:32:21 2006 From: scottpez at HOTMAIL.COM (scottpez) Date: Mon, 18 Sep 2006 13:32:21 -0700 Subject: AW: [UMN_MAPSERVER-USERS] raster data looks washed out In-Reply-To: <20060915195030.AC2CA1B574E@smtp.tal.de> Message-ID: Arnd or others, Thank you for the reply. I will try this. My original data is in Tiff format. Does anyone know if there is a best setting for the outputformat type and imagemode? If I use png24, what would be the best imagemode? What are the positives and negatives of using an outputformat type of png256? Would mapserver be slower producing the image? I will play around with different settings for this and see if I can get the colors right and also good performance. Thanks, Scott Arnd Wippermann wrote: > > Hi Scott, > > If the original photo is of 24 bit color you must use png24 or jpeg for > the > output with mapserver. That's what I often forget. > > Mit freundlichen Gr?ssen > > Arnd Wippermann > http://gis.ibbeck.de/pinguinale/ > > > > -----Urspr?ngliche Nachricht----- > Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im > Auftrag von scottpez > Gesendet: Mittwoch, 13. September 2006 16:08 > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: [UMN_MAPSERVER-USERS] raster data looks washed out > > Hi, > > I am trying to serve up a raster dataset in mapserver. The raster dataset > is > an aerial orthophoto. When I view this dataset in any program other than > mapserver (Imagine, ArcGIS and even FWTools1.0.6 OpenEV_FW program) the > dataset looks fine. However, when I serve the dataset up through mapserver > as a wms request, the returned image looks washed out. The colors do not > seem to be quite right. Also, it seems like the resolution isn't as great > but then this could simply be because of the washed out colors. Does > anyone > know what may be going on here? > > I am not sure the current mapserver version I am using but it is not that > recent. > > Thanks in advance for any suggestions, > Scott > -- > View this message in context: > http://www.nabble.com/raster-data-looks-washed-out-tf2265476.html#a6286352 > Sent from the Mapserver - User forum at Nabble.com. > > -- View this message in context: http://www.nabble.com/raster-data-looks-washed-out-tf2265476.html#a6371591 Sent from the Mapserver - User mailing list archive at Nabble.com. From ollerery at ENGR.ORST.EDU Mon Sep 18 14:07:16 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Mon, 18 Sep 2006 14:07:16 -0700 Subject: Mapserver install In-Reply-To: <6371591.post@talk.nabble.com> Message-ID: The Error that i am getting: *Warning*: dl() [function.dl ]: (null): Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=0 PHP compiled with module API=20020429, debug=0, thread-safety=0 These options need to match in */var/www/htdocs/mapserver/phpinfo_mapscript.phtml* on line *21 *this occures when i try to call dl('php_mapscript.so')* * Here is the configure that i am using: ./configure --with-proj=/usr/local/ --enable-runpath --with-geos=/usr/local/bin/geos-config --with-ogr=/root/FWTools-1.0.5/bin/gdal-config --with-gdal=/root/FWTools-1.0.5/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-curl-config=/usr/bin/curl-config --with-php=/usr/local/include/php --with-wcs --with-wfs --with-wmsclient --with-wfsclient --with-threads I then make mapscript/php3/php_mapscript cp mapserv /var/www/cgi-bin/ cp mapscript/php3/php_mapscript.so /path/to/php/extenstion/directory Any idea on what i could be missing? or how i can better find out what the problem is? From visualj at SOHU.COM Sun Sep 17 03:05:20 2006 From: visualj at SOHU.COM (sch) Date: Sun, 17 Sep 2006 03:05:20 -0700 Subject: querybypoint using c++ Message-ID: hi, in my project, i want to query road name from shape file using c++ and mapserver 4.8.4's lib, but i get Segment fault error every time, does anybody have an example? the code i used is here: int main() { printf("main function.\n"); mapObj *map = NULL; char *mapfile = "/home/www/mapserver/gmap/htdocs/china_pg.map"; map = msLoadMap(mapfile, NULL); if(!map) { printf("msLoadMap error.\n"); msWriteError(stderr); exit(0); } int status = msMapSetExtent(map, 73.81367424697862, 17.620038368633608, 134.3885088548217, 55.14595792129112); pointObj point = {111.12, 34.76}; msQueryByPoint(map, -1, MS_SINGLE, point, -1); msFreeMap(map); msCleanup(); return 1; } by the way, the os i used is Redhat3.0. when i use php-mapscript to query, it's ok. -- View this message in context: http://www.nabble.com/querybypoint-using-c%2B%2B-tf2285326.html#a6348169 Sent from the Mapserver - User mailing list archive at Nabble.com. From Jacob.Delfos at MAUNSELL.COM Mon Sep 18 18:05:54 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 19 Sep 2006 09:05:54 +0800 Subject: PHP_Mapscript QueryByAttributes on PostGIS layer - bug or feature? Message-ID: Hi List, I'm trying to perform a QueryByAttributes operation on a PostGIS layer, but I get an error. Basically, it seems that the where clause being generated leaves out the attribute name and operator. Am I doing something wrong? My code is: $gotResult = $oLayer->queryByAttributes("roadname","EMERALD RD",MS_MULTIPLE); My PHP error is: [19-Sep-2006 08:53:34] PHP Warning: [MapServer Error]: prepare_database(): Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT roadname::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from roads WHERE (EMERALD RD) and (the_geom && setSRID( 'BOX3D(-149999998.5 -99999999,149999998.5 99999999)'::BOX3D,find_srid('','roads','the_geom') ))'

It works if I do: $oLayer->queryByAttributes("roadname","roadname like 'EMERALD RD'",MS_MULTIPLE); Am I supposed to perform the QueryByAttributes operation differently for different data sources? It gets more difficult if I don't know in advance whether the type is text or number.... I searched the list and bugzilla for something similar, but couldn't find it. I'm using php_mapscript 4.8.3 (I tried using 4.10beta2, but all my mapfiles get invalid map extent errors for some reason). Regards, Jacob JACOB DELFOS GIS ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From beyhan at DEPREM.GOV.TR Tue Sep 19 00:21:08 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Tue, 19 Sep 2006 10:21:08 +0300 Subject: How can Create OVF file (for OGR MYSQL connection) interactively In-Reply-To: <20060915113852.M35709@deprem.gov.tr> Message-ID: ?Dear friends; ? ?Finally I have solved to read point data form mysql database than draw map by using ?those data. ?I have created Peak Ground Acceleration (PGA) map for the specified earthquake which data are ?stored in MySql. But I would like to display map for all earthquake which are ?described in the Mysql table as eq-id column.I mean PGA data are stored in mysql database.table for several earthquakes and one of the column is called EQ_ID which use for the seperate PGA data from other earthquake like EQ_ID??????????? Lon?? Lat???? PGA 200006060242 30.40 32.45 2.5 200006060242 30.41 32.46 2.6 200006060242 30.42 32.47 2.7 ... 200606071708 38.45 40.98 5.6 200606071708 38.46 40.99 5.7 200606071708 38.47 41.00 5.7 200606071708 38.48 41.01 5.8 . . . ?I have querid mysql database by using ovf file as following ? ? ? ? ?MYSQL:database,user=user,password=pass_wd,host=100.00.00.21,port=3306,tables=d_pgadata1 ?SELECT eq_id,latitude,longitude,acceleration from d_pgadata1 ?where eq_id like '%200006060242%' ?wkbPoint ? ? ? ? ?As you see when I create map by layer OGR this will just the eq_id like ?'%200006060242%'. ?But I would like to change this eq_id by interactively for example who will ?like to see 200606071708 earthquake PGA map he/she can change sql statement in ?ovf file by using php or html commands from web... ? ?Do you have any idea is it possible or not. ? ?Please I wellcome any kind of information about it.. ?Thank you ?Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Tue Sep 19 00:30:50 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 19 Sep 2006 09:30:50 +0200 Subject: How can Create OVF file (for OGR MYSQL connection) interactively In-Reply-To: <20060919070615.M58364@deprem.gov.tr> Message-ID: See: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData Section: Dynamic Control of Virtual Sources Best regards, Bart > Dear friends; > > Finally I have solved to read point data form mysql database than draw > map by using > those data. > I have created Peak Ground Acceleration (PGA) map for the specified > earthquake which data are > stored in MySql. But I would like to display map for all earthquake which > are > described in the Mysql table as eq-id column.I mean PGA data are stored > in mysql database.table for several earthquakes > and one of the column is called EQ_ID which use for the seperate PGA data > from other earthquake like > EQ_ID Lon Lat PGA > 200006060242 30.40 32.45 2.5 > 200006060242 30.41 32.46 2.6 > 200006060242 30.42 32.47 2.7 > ... > 200606071708 38.45 40.98 5.6 > 200606071708 38.46 40.99 5.7 > 200606071708 38.47 41.00 5.7 > 200606071708 38.48 41.01 5.8 > . > . > . > I have querid mysql database by using ovf file as following > > > > > MYSQL:database,user=user,password=pass_wd,host=100.00.00.21,port=3306,tables=d_pgadata1 > SELECT eq_id,latitude,longitude,acceleration from d_pgadata1 > where eq_id like '%200006060242%' > wkbPoint > > > > > As you see when I create map by layer OGR this will just the eq_id like > '%200006060242%'. > But I would like to change this eq_id by interactively for example who > will > like to see 200606071708 earthquake PGA map he/she can change sql > statement in > ovf file by using php or html commands from web... > > Do you have any idea is it possible or not. > > Please I wellcome any kind of information about it.. > Thank you > Murat > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > From v.schulze at CCGIS.DE Tue Sep 19 01:59:02 2006 From: v.schulze at CCGIS.DE (Vera Schulze) Date: Tue, 19 Sep 2006 10:59:02 +0200 Subject: Problem with SLD Message-ID: Hi List, I'm trying to use a SLD but it doesn't work at all. What I'm trying to do with the SLD is to show just one symbol of my table "gps_data" (column "vehicle" and column "customer"). The result of the SLD should be to show just one specific vehicle symbol of a customer in the map. Would be great if someone can give me an easy example? Thank you in advance for any help. Greetings, Vera From tadamcz at AE.KATOWICE.PL Tue Sep 19 02:19:21 2006 From: tadamcz at AE.KATOWICE.PL (Tomasz Adamczewski) Date: Tue, 19 Sep 2006 11:19:21 +0200 Subject: GEOCMS In-Reply-To: <450F4F11.2040301@sopac.org> Message-ID: Thank you for help! Cheers, Tomash Franck Martin napisa?(a): >Tomasz, > >look at www.sopac.org/mapserver , www.sopac.org/maps , maps.tikiwiki.org >and doc.tikiwiki.org > >Cheers > >Tyler Mitchell wrote: > > >>Hi Tomash, >>I think this reference is specifically about the tikiwiki CMS that has >>an add-on to support the mapping/geo stuff. See http://tikiwiki.org. >> >>Hope that helps, >>Tyler >> >>On 18-Sep-06, at 2:26 PM, Tomasz Adamczewski wrote: >> >> >> >>>Hi, >>>I looking for any information about GeoCMS. >>>Is it an OpenSource Project? >>>Is it possible to download it and look at this closer? >>>Is there any documentation/articles about GeoCMS? >>> >>>I found something here: >>>http://mapserver.gis.umn.edu/gallery/gallery.2006-05-09.7042623469 >>>But thise note is very short... >>> >>>Thank you for help! >>> >>>Tomash >>> >>> > > > From fabio at GEOJA.COM.BR Mon Sep 18 14:16:51 2006 From: fabio at GEOJA.COM.BR (Fabio Leme de Almeida) Date: Mon, 18 Sep 2006 18:16:51 -0300 Subject: Linux or Windows / PHP or C# Message-ID: Hello All !! Please, I need some references about mapserver development. 1) - Linux or Windows (to serve the application into the internet) ? 2) - PHP or C# .NET for develop ? Thank's Fabio/Brasil -------------- next part -------------- An HTML attachment was scrubbed... URL: From v.schulze at CCGIS.DE Tue Sep 19 02:41:21 2006 From: v.schulze at CCGIS.DE (Vera Schulze) Date: Tue, 19 Sep 2006 11:41:21 +0200 Subject: Problem with SLD In-Reply-To: <450FB156.40604@ccgis.de> Message-ID: Vera Schulze schrieb: > Hi List, > > I'm trying to use a SLD but it doesn't work at all. > > What I'm trying to do with the SLD is to show just one symbol of my > table "gps_data" (column "vehicle" and column "customer"). The result of > the SLD should be to show just one specific vehicle symbol of a customer > in the map. > > Would be great if someone can give me an easy example? > > Thank you in advance for any help. > > Greetings, > Vera Here is my sld, which won't work: gpsdata vehicle car Any hints very much appreciated!! Thanks a lot, Vera From luca.casagrande at GMAIL.COM Tue Sep 19 02:48:16 2006 From: luca.casagrande at GMAIL.COM (Luca Casagrande) Date: Tue, 19 Sep 2006 11:48:16 +0200 Subject: Mapserver requires restart of apache In-Reply-To: Message-ID: On Mon, 18 Sep 2006 08:52:54 +0300 "Rahkonen Jukka" wrote: > Hi, > > I have never experienced just this behaviour, but I have seen that for example MapLab applications do not trigger the new map file with just pushing the Refresh button. But if I check/uncheck a layer or zoom in/out or something then the new map file is used. Could this be the case for you as well? > > If you still need to restart Apache each time to see the effect of editing the mapfile then I believe that the mapfile itself of some program object created from that must be cached somewhere in your system. Then it might be due to your application rather than Mapserver. Have you tried what happens if you send requests to your Mapserver-cgi and the edited mapfile through browser, for example? > > Regards, > Thanks for your answer! I did further investigation and i noticed this ( I am using ka-map): After starting apache2, all is fine: i can do anything, like search or query. Then i can't do no more query or, in the layer section, display the legend for each layer. If i close firefox, restart apache and reopen firefox, all come back to normal.. Am I missing something in apache config? Thanks Luca -- "Chiunque pu_ simpatizzare col dolore di un amico, ma solo chi ha un animo nobile riesce a simpatizzare col successo di un amico (Oscar Wilde)" LINUX User #411601 GENTOO-GIS Development Team jabber: casagrande at jabber.linux.it From wiharto_hernowo at YAHOO.COM Tue Sep 19 03:39:32 2006 From: wiharto_hernowo at YAHOO.COM (Wiharto Hernowo) Date: Tue, 19 Sep 2006 03:39:32 -0700 Subject: unable to load dll[mapscript] ....help me... Message-ID: hi list, Right now i'm developing a web application using mapserver to build a planning of electrical network distribution in ASP.NET using C# language and Oracle 9 i R2. And i have worked for 5 months and my mapscript_csharp.dll and mapscript.dll component is in good condition. And then 2 days ago my notebook was broken and fortunetly i could save my data. But after it has been fixed, i do a stupid things that makes my component can't run. I do uninstall the Oracle Client on my Notebook. And i think what i do it doesn't effect the others but the result is my component can't work properly and if i run on my visual Studio .net 2003 always open the error result "unable to load dll[mapscript]". And then i search in google and in the list.umn.edu. And i do it all the advice from the forum and the google. But the result is the same. I try to format all the drives on my notebook and the result is the same. I recompile all the component both in visual Studio.NET 2003 or Visual Studio 6 and the same all the result is "Unable to load DLL[mapscript]" . I try to build path in the windows to the dll and the result is the same. And then i put the mapscript.dll and the others except mapscript_csharp.dll in the System32 in the windows but still the same. And right now i'm stuck, i dont know what to do. And if i can get answer for my problem, i will sent my source code and my paper about my application that i use in ICTS (Information And Communication Technology Seminar in Surabaya ,Indonesia) to the forum. I do this cause i think this is my only way to thank you to the forum and maybe i will get reply about my application for improving and the others. Thank you in advance for any help. Greetings, Wiharto hernowo --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2?/min or less. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Tue Sep 19 04:20:01 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 19 Sep 2006 13:20:01 +0200 Subject: unable to load dll[mapscript] ....help me... In-Reply-To: <20060919103932.61490.qmail@web52013.mail.yahoo.com> Message-ID: Hi, I guess one of the subsequent dll-s could not be loaded by your application. You might want to use a file monitiring tool (like SysInternals filemon) to make sure that all of the dll-s could be loaded properly. It would be also helpful to recompile the latest version and confirm that the 'nmake -f makefile.vc test' is running on your system properly. For more information visit: http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile Downloading the Windows buildkit would be an useful starting point to make the compilation and get all of the required dll-s for the application. Best Regards Tamas Szekeres 2006/9/19, Wiharto Hernowo : > hi list, > > Right now i'm developing a web application using mapserver to build a > planning of electrical network distribution in ASP.NET using C# language > and Oracle 9 i R2. And i have worked for 5 months and my > mapscript_csharp.dll and mapscript.dll component is in good condition. And > then 2 days ago my notebook was broken and fortunetly i could save my data. > But after it has been fixed, i do a stupid things that makes my component > can't run. I do uninstall the Oracle Client on my Notebook. And i think what > i do it doesn't effect the others but the result is my component can't work > properly and if i run on my visual Studio .net 2003 always open the error > result "unable to load dll[mapscript]". > > And then i search in google and in the list.umn.edu. And i do it all the > advice from the forum and the google. But the result is the same. I try to > format all the drives on my notebook and the result is the same. I recompile > all the component both in visual Studio.NET 2003 or Visual Studio 6 and the > same all the result is "Unable to load DLL[mapscript]" . I try to build path > in the windows to the dll and the result is the same. And then i put the > mapscript.dll and the others except mapscript_csharp.dll in the System32 in > the windows but still the same. > > And right now i'm stuck, i dont know what to do. And if i can get answer for > my problem, i will sent my source code and my paper about my application > that i use in ICTS (Information And Communication Technology Seminar in > Surabaya ,Indonesia) to the forum. I do this cause i think this is my only > way to thank you to the forum and maybe i will get reply about my > application for improving and the others. > > Thank you in advance for any help. > > Greetings, > Wiharto hernowo > > > > ________________________________ > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ > countries) for 2?/min or less. > > From beyhan at DEPREM.GOV.TR Tue Sep 19 05:18:14 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Tue, 19 Sep 2006 15:18:14 +0300 Subject: How can Create OVF file (for OGR MYSQL connection) interactively In-Reply-To: <5169.145.50.39.8.1158651050.squirrel@webmail.xs4all.nl> Message-ID: It was fantastic. Just putting % in SQL statement in where clause than sending condition to the map file by html or Php than result spreading on the display by power of mapserver... Within one month I have achieved to draw and query map by using mapserver. Thank you for the help everyone. PHP-MYSQL and Mapserver are great tools... Murat On Tue, 19 Sep 2006 09:30:50 +0200, Bart van den Eijnden (OSGIS) wrote > See: > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData > > Section: Dynamic Control of Virtual Sources > > Best regards, > Bart > > > Dear friends; > > > > Finally I have solved to read point data form mysql database than draw > > map by using > > those data. > > I have created Peak Ground Acceleration (PGA) map for the specified > > earthquake which data are > > stored in MySql. But I would like to display map for all earthquake which > > are > > described in the Mysql table as eq-id column.I mean PGA data are stored > > in mysql database.table for several earthquakes > > and one of the column is called EQ_ID which use for the seperate PGA data > > from other earthquake like > > EQ_ID Lon Lat PGA > > 200006060242 30.40 32.45 2.5 > > 200006060242 30.41 32.46 2.6 > > 200006060242 30.42 32.47 2.7 > > ... > > 200606071708 38.45 40.98 5.6 > > 200606071708 38.46 40.99 5.7 > > 200606071708 38.47 41.00 5.7 > > 200606071708 38.48 41.01 5.8 > > . > > . > > . > > I have querid mysql database by using ovf file as following > > > > > > > > > > MYSQL:database,user=user,password=pass_wd,host=100.00.00.21,port=3306,tables=d_pgadata1 > > SELECT eq_id,latitude,longitude,acceleration from d_pgadata1 > > where eq_id like '%200006060242%' > > wkbPoint > > > > > > > > > > As you see when I create map by layer OGR this will just the eq_id like > > '%200006060242%'. > > But I would like to change this eq_id by interactively for example who > > will > > like to see 200606071708 earthquake PGA map he/she can change sql > > statement in > > ovf file by using php or html commands from web... > > > > Do you have any idea is it possible or not. > > > > Please I wellcome any kind of information about it.. > > Thank you > > Murat > > > > > > > > -- > > This message has been scanned for viruses and > > dangerous content by MailScanner, and is > > believed to be clean. > > > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From szekerest at GMAIL.COM Tue Sep 19 05:33:42 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 19 Sep 2006 14:33:42 +0200 Subject: Linux or Windows / PHP or C# In-Reply-To: Message-ID: For the C# specific stuff see: http://mapserver.gis.umn.edu/docs/reference/mapscript http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile And look over the threads according to multithreading, MONO and ASP.NET in the mapserver-users and mapserver-dev list. Best Regards, Tamas Szekeres 2006/9/18, Fabio Leme de Almeida : > > > > > Hello All !! > > > > Please, I need some references about mapserver development. > > > > 1) ? Linux or Windows (to serve the application into the internet) ? > > 2) ? PHP or C# .NET for develop ? > > > > Thank's > > > > Fabio/Brasil > > > > From ed at TOPOZONE.COM Tue Sep 19 05:53:27 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 19 Sep 2006 08:53:27 -0400 Subject: Mapfile Tuning Message-ID: Folks - Yes, I agree with the "MapFile Tuning HowTo" David suggested. I made this same discovery a while ago - the "processing" of the mapfile (I won't say "parsing" - see below) was taking 5 times as long as the map-rendering process! First, the time taken to load and process the mapfile is not displayed if you have DEBUG ON and watch the layer-processing times. This is, naturally, because DEBUG ON isn't set until the mapfile's been processed. You should assume that MapServer will process your mapfile and instantiate/load up every possible object in it just in case you want to use it. Do you have a lot of fonts and symbols? MapServer will locate and open every one of those raster symbol files each time that mapfile is processed, just to make sure it's there, even if they're never used. I have not found that unnecessary projection definitions are expensive, but I certainly agree that minimalist mapfiles will save you a lot of time. I haven't had the time to look into this in detail, but thoughtful application design in order to minize the complexity of your mapfiles will definitely produce a performance and capacity improvement in "large mapfile" applications. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pleyer, Walter Sent: Monday, September 18, 2006 7:23 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapfile Tuning Hi folks! We are currently experiencing some performance troubles which we tracked to the size of the mapfile. We expect the mapfile to grow to well over 100 layers and analysis shows that the parsing of this mapfile slows the mapgeneration down by almost a second each time. Is there enaything else, apart from using mapscript, that can be done to tweak the performance? Walter LFRZ A-1200 Wien, Dresdner Strasse 89 Tel: ++43(1)33 176/421 Fax: ++43(1)33 176/999 Mobil: 0676/5256642 Email: walter.pleyer at lfrz.at WWW: http://www.lfrz.at From stefan.schwarzer at GRID.UNEP.CH Tue Sep 19 06:01:26 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Tue, 19 Sep 2006 15:01:26 +0200 Subject: Re-Proejections and Calculation of Zooms Message-ID: Hi, I don't understand how I can calculate the extent of the zoom for a reprojected map,i.e. - my original layers are in Latlong - they are being (upon user request) reprojected (into for example Mollweide) - upon display of the global map, the user draws a rectangle to zoom in How do I have to deal now with the Latlong/DD and Mollweide/Meters parameters to get the proper extension of the chosen rectangle and zoom into that? I don't have clue... Thanks for any help, Stefan From David.Fawcett at STATE.MN.US Tue Sep 19 06:11:54 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 19 Sep 2006 08:11:54 -0500 Subject: How can Create OVF file (for OGR MYSQL connection) interactively In-Reply-To: A<5169.145.50.39.8.1158651050.squirrel@webmail.xs4all.nl> Message-ID: Bart, I am assuming that this method would be faster than requesting the whole table from MySQL and then using variable substitution to set an expression for a class that displays only the record of interest. I know that it would be faster to only pass the data that is needed, I am more curious about whether the OGR/MySQL query mechanism is better or worse than 'filtering' with a mapfile expression. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden (OSGIS) Sent: Tuesday, September 19, 2006 2:31 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] How can Create OVF file (for OGR MYSQL connection) interactively See: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData Section: Dynamic Control of Virtual Sources Best regards, Bart > Dear friends; > > Finally I have solved to read point data form mysql database than > draw map by using those data. > I have created Peak Ground Acceleration (PGA) map for the specified > earthquake which data are > stored in MySql. But I would like to display map for all earthquake which > are > described in the Mysql table as eq-id column.I mean PGA data are stored > in mysql database.table for several earthquakes > and one of the column is called EQ_ID which use for the seperate PGA data > from other earthquake like > EQ_ID Lon Lat PGA > 200006060242 30.40 32.45 2.5 > 200006060242 30.41 32.46 2.6 > 200006060242 30.42 32.47 2.7 > ... > 200606071708 38.45 40.98 5.6 > 200606071708 38.46 40.99 5.7 > 200606071708 38.47 41.00 5.7 > 200606071708 38.48 41.01 5.8 > . > . > . > I have querid mysql database by using ovf file as following > > > > > > MYSQL:database,user=user,password=pass_wd,host=100.00.00. 21,port=3306,tables=d_pgadata1 > SELECT eq_id,latitude,longitude,acceleration from d_pgadata1 > where eq_id like '%200006060242%' > wkbPoint > > > > > As you see when I create map by layer OGR this will just the eq_id > like '%200006060242%'. But I would like to change this eq_id by > interactively for example who will > like to see 200606071708 earthquake PGA map he/she can change sql > statement in > ovf file by using php or html commands from web... > > Do you have any idea is it possible or not. > > Please I wellcome any kind of information about it.. > Thank you > Murat > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > From warmerdam at POBOX.COM Tue Sep 19 06:48:05 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 19 Sep 2006 09:48:05 -0400 Subject: Mapfile Tuning In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DE1C0@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > I have not found that unnecessary projection definitions are expensive, > but I certainly agree that minimalist mapfiles will save you a lot of > time. Ed, others, I think a projection block that provides all the parameters should be very "cheap" in processing time, but any time you refer to projection details by EPSG code number, there is a whole file lookup involved. As far as I know cost is paid for each EPSG reference, even if many places refer to the same code. I would definately like to make some improvements in this regard, likely within PROJ itself. It would be interesting to prepare some timetests on this issue to see just how significant it is. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From ed at TOPOZONE.COM Tue Sep 19 07:57:42 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 19 Sep 2006 10:57:42 -0400 Subject: Mapfile Tuning Message-ID: Frank - Thanks; is that the case for all projection definitions advertised in a WMS service, even if a specific request doesn't use them? I was under the impression that there was no file access penalty for just advertising a lot of projections. Outside of WMS advertisements, most PROJECTION blocks aren't optional in a map file, of course. It was a while ago and I didn't do very formal testing, but my recollection is that the EPSG PROJECTION lookup phase for loading a relatively simple layer definition was indeed the most expensive part of that layer load, even though it didn't take very long. It's important for all of us to think through what will happen on a given map request. Layers in a map file that are included in a given request (i.e. they're turned on, so they might be needed) will trigger some processing and file I/O even if there ends up being nothing to draw. For example, if I have a simple raster layer with a TILEINDEX, MapServer will need to (a) open the TILEINDEX shapefile, (b) possibly deal with reprojecting the bounding box, (c) check to see if the shapefile bounding box intersects with the request, (d) if so, check to see if any tiles intersect with the request, and then (e) possibly draw nothing at all. This is after the map file is loaded of course, but remember that the loading causes MapServer to do everything it needs to do to prepare for the request. It is my informal impression that the simple text parsing of the map file goes quite quickly, so efforts toward a "compiled" or "binary" map file might not help much. It is the situations where map file parsing triggers file I/O that seem to be the most expensive, as one would expect. A while ago I tended toward creating convenient map files with every possible layer I could want loaded in there. Convenient, yes - fast, no. Since my applications all have some sort of front end between the Web client and MapServer, I am now tending towards minimalist map files. I create MANY map files, each with the minimum set of layers and other goodies to serve a particular sort of request. Then my front end generates a WMS request using the appropriate map file for the current client request's needs. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Tuesday, September 19, 2006 9:48 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapfile Tuning Ed McNierney wrote: > I have not found that unnecessary projection definitions are > expensive, but I certainly agree that minimalist mapfiles will save > you a lot of time. Ed, others, I think a projection block that provides all the parameters should be very "cheap" in processing time, but any time you refer to projection details by EPSG code number, there is a whole file lookup involved. As far as I know cost is paid for each EPSG reference, even if many places refer to the same code. I would definately like to make some improvements in this regard, likely within PROJ itself. It would be interesting to prepare some timetests on this issue to see just how significant it is. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From pramsey at REFRACTIONS.NET Tue Sep 19 08:31:29 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 19 Sep 2006 08:31:29 -0700 Subject: Mapfile Tuning In-Reply-To: <450FF515.5050508@pobox.com> Message-ID: We know from experience that the answer is "very expensive". We had a large number of "init=epsg:" references in a mapfile and when we converted them to straight proj4 strings realized almost a second in speed improvements. Frank Warmerdam wrote: > Ed McNierney wrote: >> I have not found that unnecessary projection definitions are expensive, >> but I certainly agree that minimalist mapfiles will save you a lot of >> time. > > Ed, others, > > I think a projection block that provides all the parameters should be very > "cheap" in processing time, but any time you refer to projection details by > EPSG code number, there is a whole file lookup involved. As far as I know > cost is paid for each EPSG reference, even if many places refer to the same > code. I would definately like to make some improvements in this regard, > likely within PROJ itself. > > It would be interesting to prepare some timetests on this issue to see just > how significant it is. > > Best regards, From bartvde at XS4ALL.NL Tue Sep 19 08:37:25 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 19 Sep 2006 17:37:25 +0200 Subject: How can Create OVF file (for OGR MYSQL connection) interactively In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0995@s-sp22.pca.state.mn.us> Message-ID: David, my guess without studying the code is that this does not make a difference in performance. I think a Mapserver EXPRESSION will make it into the SQL that OGR passes to MySQL in the end. I don't believe Mapserver does the filtering itself on the whole dataset. Best regards, Bart Fawcett, David schreef: > Bart, > > I am assuming that this method would be faster than requesting the whole > table from MySQL and then using variable substitution to set an > expression for a class that displays only the record of interest. > > I know that it would be faster to only pass the data that is needed, I > am more curious about whether the OGR/MySQL query mechanism is better or > worse than 'filtering' with a mapfile expression. > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Bart van den Eijnden (OSGIS) > Sent: Tuesday, September 19, 2006 2:31 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] How can Create OVF file (for OGR > MYSQL connection) interactively > > > See: > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData > > Section: Dynamic Control of Virtual Sources > > Best regards, > Bart > > >> Dear friends; >> >> Finally I have solved to read point data form mysql database than >> draw map by using those data. >> I have created Peak Ground Acceleration (PGA) map for the specified >> earthquake which data are >> stored in MySql. But I would like to display map for all earthquake >> > which > >> are >> described in the Mysql table as eq-id column.I mean PGA data are >> > stored > >> in mysql database.table for several earthquakes >> and one of the column is called EQ_ID which use for the seperate PGA >> > data > >> from other earthquake like >> EQ_ID Lon Lat PGA >> 200006060242 30.40 32.45 2.5 >> 200006060242 30.41 32.46 2.6 >> 200006060242 30.42 32.47 2.7 >> ... >> 200606071708 38.45 40.98 5.6 >> 200606071708 38.46 40.99 5.7 >> 200606071708 38.47 41.00 5.7 >> 200606071708 38.48 41.01 5.8 >> . >> . >> . >> I have querid mysql database by using ovf file as following >> >> >> >> >> >> >> > MYSQL:database,user=user,password=pass_wd,host=100.00.00. > 21,port=3306,tables=d_pgadata1 > >> SELECT eq_id,latitude,longitude,acceleration from d_pgadata1 >> where eq_id like '%200006060242%' >> wkbPoint >> > > y="latitude"/> > >> >> >> >> As you see when I create map by layer OGR this will just the eq_id >> like '%200006060242%'. But I would like to change this eq_id by >> interactively for example who will >> like to see 200606071708 earthquake PGA map he/she can change sql >> statement in >> ovf file by using php or html commands from web... >> >> Do you have any idea is it possible or not. >> >> Please I wellcome any kind of information about it.. >> Thank you >> Murat >> >> >> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. >> >> >> > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From David.Fawcett at STATE.MN.US Tue Sep 19 08:40:42 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 19 Sep 2006 10:40:42 -0500 Subject: Mapfile Tuning In-Reply-To: A<45100D51.80101@refractions.net> Message-ID: I started a Mapfile Tuning HowTo on the MapServer site. It is 'public', but the effective date is set into the future, so it is only visible by hitting the URL directly. http://mapserver.gis.umn.edu/docs/howto/mapfiletuning I didn't have time to write much this morning, once we have some real content, it I will make is visible. Add your suggestions/contributions for content as comments and I will compile them. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Ramsey Sent: Tuesday, September 19, 2006 10:31 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapfile Tuning We know from experience that the answer is "very expensive". We had a large number of "init=epsg:" references in a mapfile and when we converted them to straight proj4 strings realized almost a second in speed improvements. Frank Warmerdam wrote: > Ed McNierney wrote: >> I have not found that unnecessary projection definitions are >> expensive, but I certainly agree that minimalist mapfiles will save >> you a lot of time. > > Ed, others, > > I think a projection block that provides all the parameters should be > very "cheap" in processing time, but any time you refer to projection > details by EPSG code number, there is a whole file lookup involved. > As far as I know cost is paid for each EPSG reference, even if many > places refer to the same code. I would definately like to make some > improvements in this regard, likely within PROJ itself. > > It would be interesting to prepare some timetests on this issue to see > just how significant it is. > > Best regards, From warmerdam at POBOX.COM Tue Sep 19 08:52:00 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 19 Sep 2006 11:52:00 -0400 Subject: Mapfile Tuning In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DE1C2@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > Frank - > > Thanks; is that the case for all projection definitions advertised in a > WMS service, even if a specific request doesn't use them? I was under > the impression that there was no file access penalty for just > advertising a lot of projections. Ed, I was thinking primarily of PROJECTION blocks with an "init=" clause. I haven't traced through to see if WMS advertising of epsg projections triggers a lookup. I presume not, but that is just a presumption. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From dmorissette at MAPGEARS.COM Tue Sep 19 08:56:02 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 19 Sep 2006 11:56:02 -0400 Subject: Mapfile Tuning In-Reply-To: <45101220.5070405@pobox.com> Message-ID: Frank Warmerdam wrote: > > I was thinking primarily of PROJECTION blocks with an "init=" clause. I > haven't traced through to see if WMS advertising of epsg projections > triggers a lookup. I presume not, but that is just a presumption. > Last time I worked on that code there was no lookup for projections advertized via the wms_srs metadata, only for projections defined in the PROJECTION block using epsg codes. Daniel From zhonghaiw at GMAIL.COM Tue Sep 19 09:00:26 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 19 Sep 2006 18:00:26 +0200 Subject: drawing a route on an map image (MapInfo TAB file and ESRI Shapefile) Message-ID: Hi All, I've got some problems when I am trying to draw a route on an map image with MapServer(Using C# API). The routing results are provided by a third party application in an XML format, this XML file contains all the required line segment IDs for the route. In the vector layer containing the route line segments the segment ID is the primary key of the attribute table, therefore I tried to make a query using the line segment IDs specified in the XML file on the target vector layer. Unfortunately this query process takes very long, I can not even get any query results from MapServer, it seems that MapServer is crashed and doesn't react any more. I've tried with both ESRI Shapefile and MapInfo TAB file, but I still can not get anything encouraged me to continue it. I am using the QueryByAttribute function to make the query. Here I have some doubts and questions about QUERY in MapServer, hope that I can get some hints from you guys. 1. if I use the MapInfo TAB file for query, does the spatial index of MapInfo vector layer will be used during the query? if the query use the primary key of the attribute table, will any query algorithm be implemented for it? AFAIK, the index of the attribute table will be used if I make a query in MapXtreme with the MapInfo TAB files, and this impressively speed up the query performance. 2. if using ESRI shapefile as the query target, will any spatial index or attribute index be used for the query? there is something I must mentioned here: the target vector layer is very large, more than 700MB, and the attribute table contains about 5800000 records. thanks for any advice. Zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Sep 19 09:03:28 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 19 Sep 2006 12:03:28 -0400 Subject: How can Create OVF file (for OGR MYSQL connection) interactively In-Reply-To: <45100EB5.1020406@xs4all.nl> Message-ID: Bart van den Eijnden (OSGIS) wrote: > David, > > my guess without studying the code is that this does not make a > difference in performance. > > I think a Mapserver EXPRESSION will make it into the SQL that OGR passes > to MySQL in the end. I don't believe Mapserver does the filtering itself > on the whole dataset. Bart / David, I believe that an EXPRESSION for an OGR connection that starts with the keyword WHERE is passed down into OGR as an "attribute filter" on the layer and so will be potentially evaluated in the database. I'm not exactly certainly if this will get properly passed through the VRT mechanism and onto an ODBC datasource, which I think was the original question. Some experimentation with OGR debugging turned on for clues might be appropriate. To turn on OGR debugging I think you can add the following in your .map file: CONFIG "CPL_DEBUG" "ON" This should produce extra debug messages to the stderr which at least on unix will end up in the apache error_log file. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From work at XWB.COM Tue Sep 19 09:05:11 2006 From: work at XWB.COM (Chip Taylor) Date: Tue, 19 Sep 2006 09:05:11 -0700 Subject: Crime data In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB099E@s-sp22.pca.state.mn.us> Message-ID: Does anyone know of a source for shapefiles or WMS or WFS feeds for nationwide US crime data for analysis? Of course, I'd prefer free data but a source for data to purchase or subscribe is acceptable as well. Thank you. Chip Taylor Lead GIS and Web Developer Prepared Response, Inc. 1142 Broadway, Suite 400 Tacoma, WA 98402 253-272-1483 office 253-948-2525 cell 253-272-1562 fax www.preparedresponse.com STATEMENT OF CONFIDENTIALITY The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify Prepared Response, Inc. immediately at (206) 223-5544 and destroy all copies of this message and any attachments. From warmerdam at POBOX.COM Tue Sep 19 09:44:44 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 19 Sep 2006 12:44:44 -0400 Subject: error: gdal.h: No such file or directory In-Reply-To: <450EC311.7080801@engr.orst.edu> Message-ID: Ryan Ollerenshaw wrote: > When recompiling MapServer i am getting the following error: > > -I/usr3/pkg4/OpenEV_FW_Tree/FWTools/include mapfile.c -o mapfile.o > mapfile.c:149:20: error: gdal.h: No such file or directory > make: *** [mapfile.o] Error 1 > > [root at neuron mapserver-4.8.3]# locate gdal.h > /root/FWTools-1.0.5/include/gdal.h > > the configure that i am using is: > ./configure --with-proj=/usr/local/ --enable-runpath > --with-geos=/root/FWTools-1.0.5/bin/geos-config > --with-ogr=/root/FWTools-1.0.5/bin/gdal-config > --with-gdal=/root/FWTools-1.0.5/bin/gdal-config > --with-postgis=/usr/local/pgsql/bin/pg_config > --with-curl-config=/usr/bin/curl-config > --with-php=/usr/local/include/php --with-wcs --with-wfs > --with-wmsclient --with-wfsclient --with-threads > > the gdal.h file is present i do not know why i am getting this error. Ryan, Funky. /usr3/pkg4/ is where the FWTools stuff lives on my system when I am building it. I suspect the gdal-config script isn't being re-worked properly as part of the install process. Lacking that, you can just edit the MapServer Makefile to fix the problem, or possibly edit FWTools-1.0.5/bin/gdal-config and fix the path there. If you file a bug against FWTools on this issue, I'll try and handle it properly in the future. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From warmerdam at POBOX.COM Tue Sep 19 11:24:05 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 19 Sep 2006 14:24:05 -0400 Subject: Reprojection of rasterdata In-Reply-To: <20060916140300.C44571B6AFD@smtp.tal.de> Message-ID: Arnd Wippermann wrote: > Hello, > > I have no problem to reproject rasterdata from EPSG:4326 to EPSG:31466 > (German Gauss-Kr?ger-Projection) through mapserver. But now I want the first > time get rasterdata from EPSG:31466 to EPSG:4326 reprojected, but mapserver > (4.8.0-beta1, also 4.8.4, 4.9) generates no correct reprojection. Mapserver > moves the data from coordinates like 2586000, 5680000 to 7, 50, but renders > without distortion of the original data. > > Have someone a clue? > > Mit freundlichen Gr?ssen > > Arnd Wippermann > http://gis.ibbeck.de/pinguinale/ Arnd, I can't think of any obvious reason this wouldn't work. If you would like to follow up on this problem, I'd suggest filing a bug (and assigning to me) in the mapserver bugzilla with all the details required to reproduce the problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From James.Leveille at MTQ.GOUV.QC.CA Tue Sep 19 11:40:34 2006 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Tue, 19 Sep 2006 14:40:34 -0400 Subject: TIF vs JPG - Performance Message-ID: Hi, I've been using MapServer for a while (Oracle 10g, MapInfo, Shape Files, etc.) - everything works great ! For the first time, we want to use raster data - over 6000 orthophotos. All the orthophotos are available both in TIF and JPG. Every orthophoto if about 80 Mb in TIF (includes multi-res) and about 4Mb in JPG. 2 Questions : - Is there a concept of multi-res in the JPG format (as in TIFF) ? - Which format should I use to acquire the best performance from MapServer ??? Thanks a lot. Regards. __________________________________________ James L?veill? Int?lec G?omatique 420, boul. Charest Est Bureau 400 Qu?bec (QC), Canada G1K 8M4 Int?lec G?omatique: 418.687.5000 MTQ: 418.380.2005 (#227) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ollerery at ENGR.ORST.EDU Tue Sep 19 12:01:18 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Tue, 19 Sep 2006 12:01:18 -0700 Subject: Polar Projection of Northern Hemisphere In-Reply-To: <01b601c6dc05$6348f230$025aa8c0@DevChip> Message-ID: I am currently only able to display my data that is to the right of the northern pole i think down to the equator. I want to be able to project my data in a polar projection that shows the entire northern hemisphere but i am not sure what it is that i am doing wrong. I am using the following extent and projection in my MapFile EXTENT -4000000 -3000000 4000000 3000000 PROJECTION "proj=ortho" "lat_0=90" END Any help would be much appreciated. From warmerdam at POBOX.COM Tue Sep 19 13:45:49 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 19 Sep 2006 16:45:49 -0400 Subject: TIF vs JPG - Performance In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E02F92E8F@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: L?veill? wrote: > Hi, > > I've been using MapServer for a while (Oracle 10g, MapInfo, Shape Files, > etc.) - everything works great ! > > For the first time, we want to use raster data - over 6000 orthophotos. > All the orthophotos are available both in TIF and JPG. > Every orthophoto if about 80 Mb in TIF (includes multi-res) and about > 4Mb in JPG. > > 2 Questions : > > - Is there a concept of multi-res in the JPG format (as in TIFF) ? James, The JPEG format does not include any multi-resolution support. Well, at least not in any form useful from GDAL or mapserver. But GDAL (and thus mapserver) does support an external .ovr file for overviews. This will just be a TIFF file. It can be generated with gdaladdo. > - Which format should I use to acquire the best performance from > MapServer ??? Generally speaking pulling an overview out of raw JPEG, or pulling out a small subwindow not near the top of the file is very expensive. So for more dependable performance I'd suggest TIFF format. If space is an option consider producing tiled TIFFs with jpeg compression internally. Something like the following may work for you: gdal_translate public_html/world.tif jpeg_world.tif -co COMPRESS=JPEG -co TILED=YES -co JPEG_QUALITY=20 gdaladdo jpeg_world.tif 4 8 16 32 Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From cwatson at UTAS.EDU.AU Tue Sep 19 19:09:07 2006 From: cwatson at UTAS.EDU.AU (Christopher Watson) Date: Wed, 20 Sep 2006 12:09:07 +1000 Subject: Arrow symbology Message-ID: Hello, We're trying to plot a series of velocity vectors at specific point locations (GPS sites), reading direction and magnitude from an SQL database. We basically want a line with an arrow head at the end of it. We can position symbols at intervals along a line, and orientate them along the line, but not put them at the end of the line. Does anyone have any tips or work arounds? Perhaps we have to generate a polygon as the arrow head, based on the vector end point and orientation? Appreciate your help. Thanks, Chris From beyhan at DEPREM.GOV.TR Tue Sep 19 23:37:57 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Wed, 20 Sep 2006 09:37:57 +0300 Subject: How can Create OVF file (for OGR MYSQL connection) interactively In-Reply-To: <45100EB5.1020406@xs4all.nl> Message-ID: Dear Friends, I'm using Mandrake Linux 2005 limited edition on my computer which is pentium 4 3.0Ghz, 512MB RAM and the HD was divided 2 part one for the Windows XP. Linux uses 40GB. MySQL4.1.18. Mapserver4.8.4 php4.4.4 And I have measured the elapsed time for my study on my computer (as localhost) I'm connecting MySQL and drawing PGA distribution of an earthquake. The PGA data of the earthquake which I select use 40000 row in my database. And each line include Earthquake ID latitude longitude and PGA values. When I try to draw it on my machine It take 22 second. I'm not familiar to use phpmapscript so I have just used HTML code to draw map . I don't have any idea about the time it is acceptable or not. May I draw map in shorter time than 24 sec. by using PHPmapscript. I mean is it possible to increase the perfrmance of my aplication. Could you make some disscusion about this issue... Thank you Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From janeks.kamerovskis at SILVA.LV Tue Sep 19 23:46:38 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Wed, 20 Sep 2006 09:46:38 +0300 Subject: multilayer vector symbols Message-ID: Hi! Is the subj possible in Mapserver? Is the only way is to create multilayer vector symbols with creating multiple classes with different symbols? Or there are other tricks? Thanks in advance, Janeks From janeks.kamerovskis at SILVA.LV Wed Sep 20 01:41:26 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Wed, 20 Sep 2006 11:41:26 +0300 Subject: passing mapext to ogr sql query string Message-ID: Is the subj. possible? What I understand, that ogr takes all ogr layer defined sql query string for base mapextent. If it is possible, than it could give better performance. Thanks in advance, Janeks From hjulien at NRCAN.GC.CA Wed Sep 20 07:00:05 2006 From: hjulien at NRCAN.GC.CA (Julien, Heryk) Date: Wed, 20 Sep 2006 10:00:05 -0400 Subject: Google Earth can now access OGC WMS services. In-Reply-To: Message-ID: Hi to all, This may be of general interest. A couple of weeks ago I created a wms to kml online service transformation but I have just been informed that the new Google Earth (GE) 4.0.2091 (Beta) can now read OGC WMS services directly. I was able to view my Mapserver WMS services directly in GE. Cool! You'll find the new option in the image overlays. Plus, if you want your mapserver getmap images to have a transparent background, you should modify the WMS getmap call manually to fetch png rather than gif. Have fun! Cheers H?ryk From Steve.Lime at DNR.STATE.MN.US Wed Sep 20 07:14:02 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 20 Sep 2006 09:14:02 -0500 Subject: Arrow symbology Message-ID: The work around at the moment would be to create a point layer of arrow heads and then use a truetype font or MapServer vector symbol to draw the heads. Your point shapefile could contain an angle column from which you could pull the orientation. The STYLE object has an ANGLEITEM property that can pull in the angle from the attribute table. Layer might look like: LAYER NAME 'arrow_heads' DATA 'arrrow_heads' STATUS DEFAULT CLASS STYLE SYMBOL 'triangle' SIZE 5 ANGLEITEM 'angle' COLOR 255 0 0 END END END You could you mapscript to process the line file and create the point file with angles... Steve >>> Christopher Watson 09/19/06 9:09 PM >>> Hello, We're trying to plot a series of velocity vectors at specific point locations (GPS sites), reading direction and magnitude from an SQL database. We basically want a line with an arrow head at the end of it. We can position symbols at intervals along a line, and orientate them along the line, but not put them at the end of the line. Does anyone have any tips or work arounds? Perhaps we have to generate a polygon as the arrow head, based on the vector end point and orientation? Appreciate your help. Thanks, Chris From Steve.Lime at DNR.STATE.MN.US Wed Sep 20 07:15:25 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 20 Sep 2006 09:15:25 -0500 Subject: multilayer vector symbols Message-ID: Janeks: You can create multiple styles within a class and stack symbols that way. Steve >>> Janeks Kamerovskis 09/20/06 1:46 AM >>> Hi! Is the subj possible in Mapserver? Is the only way is to create multilayer vector symbols with creating multiple classes with different symbols? Or there are other tricks? Thanks in advance, Janeks From BKenne at ISO.COM Wed Sep 20 08:09:27 2006 From: BKenne at ISO.COM (Kenne, Bryon K.) Date: Wed, 20 Sep 2006 11:09:27 -0400 Subject: Question: ArcGIS Server using PostgreSQL/PostGIS Message-ID: Does anybody know if it is possible to use ESRI's ArcGIS Server and PostgreSQL/PostGIS together? I guess the larger question is: is it possible to use PSQL as the spatial data repository of ESRI products without the use of ESRI's ArcSDE. Side Note: I heard at the San Diego ESRI Intl. User Conference that ESRI intends to support PostgreSQL through ArcSDE sometime after their release of 9.2. Bryon Kenne ISO - Risk Decision Services 545 Washington Blvd. (18-12), Jersey City, NJ 07710-1686 * (201) 469-2525; FAX (201) 469-4123 * mailto:bkenne at iso.com Visit our web site at http://www.iso.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Pascoe at EC.GC.CA Wed Sep 20 08:35:32 2006 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Wed, 20 Sep 2006 11:35:32 -0400 Subject: OGR With SrcSQL Problem Message-ID: I currently have a Virtual Layer defined through OGR, which pulls a series of points from a SQL-Server database using a pre-defined View. However, I would like to make this query dynamic, by employing the technique described in the Virtual Spatial Data wiki entry (bottom of entry). I took the SQL code for the original View, and replaced the SrcLayer entry with an SrcSQL entry, wrapping the SQL text in single quotes as a start. There is no WHERE clause yet so no embeded quotations, but I get an error stating that the SQL failed, or did not return any records. Since this is exactly the same SQL string as is used in the view, I'm not sure where to trouble-shoot. The CONNECTION data is shown below, minus the login credentials. CONNECTION ' ODBC:****/****@CABIN 'SELECT DISTINCT dbo.tblstudylist.studyid, dbo.tblstudylist.study AS study_name, dbo.tblsite.siteid, dbo.tblsitedetail.sitedetailsid, dbo.tblsite.site, dbo.tblsitedetail.description AS site_description, dbo.tblsite.name, dbo.tblsite.basin, dbo.tbllocation.latdegree + dbo.tbllocation.latminute / 60.0 + dbo.tbllocation.latsecond / 3600.0 AS latitude, (dbo.tbllocation.londegree - dbo.tbllocation.lonminute / 60.0) - dbo.tbllocation.lonsecond / 3600.0 AS longitude, dbo.tblsite.streamorder, dbo.tblecoregion.ecoregion, dbo.tblsamplingdevice.description AS sampling_device, dbo.tblsitedetail.julianday AS julian_day, dbo.tblsitedetail.[year] FROM dbo.tblsitedetail INNER JOIN dbo.tblsite ON dbo.tblsitedetail.site_id = dbo.tblsite.siteid INNER JOIN dbo.tbllocation ON dbo.tblsitedetail.sitedetailsid = dbo.tbllocation.sitedetails_id INNER JOIN dbo.tblstudylist ON dbo.tblsite.study_id = dbo.tblstudylist.studyid INNER JOIN dbo.tblecoregion ON dbo.tblsite.ecoregion_id = dbo.tblecoregion.ecoregionID INNER JOIN dbo.tblsamplingdevice ON dbo.tblsitedetail.device_id = dbo.tblsamplingdevice.deviceid' sitedetailsid wkbPoint WGS84 ' The error returned is: msDrawMap(): Image handling error. Failed to draw layer named 'CABINPoints'. msOGRFileOpen(): OGR error. Open failed for OGR connection `C:/Inetpub/wwwroot/cabin/Maps/CABINPoints.ovf'. SQL statement failed, or returned no layer result: "SELECT DISTINCT dbo.tblstudylist.studyid, dbo.tblstudylist.study AS study_name, dbo.tblsite.siteid, dbo.tblsitedetail.sitedetailsid, dbo.tblsite.site, dbo.tblsitedetail.description AS site_description, dbo.tblsite.name, dbo.tblsite.basin, dbo.tbllocation.latdegree + dbo.tbllocation.latminute / 60.0 + dbo.tbllocation.latsecond / 3600.0 AS latitude, (dbo.tbllocation.londegree - dbo.tbllocation.lonminute / 60.0) - dbo.tbllocation.lonsecond / 3600.0 AS longitude, dbo.tblsite.streamorder, dbo.tblecoregion.ecoregion, dbo.tblsamplingdevice.description AS sampling_device, dbo.tblsitedetail.julianday AS julian_day, dbo.tblsitedetail.[year] FROM dbo.tblsitedetail INNER JOIN dbo.tblsite ON dbo.tblsitedetail.site_id = dbo.tblsite.siteid INNER JOIN dbo.tbllocation ON dbo.tblsitedetail.sitedetailsid = dbo.tbllocation.sitedetails_id INNER JOIN dbo.tblstudylist ON dbo.tblsite.study_id = dbo.tblstudylist.studyid INNER JOIN dbo.tblecoregion ON dbo.tblsite.ecoregion_id = dbo.tblecoregion.ecoregionID INNER JOIN dbo.tblsamplingdevice ON dbo.tblsitedetail.device_id = dbo.tblsamplingdevice.deviceid" Thanks for any suggestions, Timothy Pascoe Environmental Systems Scientist Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hjulien at NRCAN.GC.CA Wed Sep 20 08:48:36 2006 From: hjulien at NRCAN.GC.CA (Julien, Heryk) Date: Wed, 20 Sep 2006 11:48:36 -0400 Subject: Google Earth Placemark: Nasa WMS.kmz Message-ID: Hi John, Unfortunately my current Mapserver installation is not public however I'm sending you a kmz file with a wms landsat7 layer from Nasa (see attached file). I don't know what type of wms compliant server they are using however it's still a good wms example. Once you open the kmz file right click the new Nasa WMS layer in the left menu to access its properties. A window should then pop out. In the bottom the window you will find a tab that will let you access wms parameters so you don't have to manually edit the wms getmap url. That should do the trick. FYI, in my Mapserver setup I'm using png with the following mapfile configuration: # image format options OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END Cheers H?ryk -----Message d'origine----- De : John Cartwright [mailto:John.C.Cartwright at noaa.gov] Envoy? : 20 septembre 2006 11:16 ? : Julien, Heryk Objet : Re: [UMN_MAPSERVER-USERS] Google Earth can now access OGC WMS services. Hi Heryk, that is good news! Could you please send me an example of the new KML that you used to connect to your WMS? I'm not seeing the option in the docs. Thanks! -- john Julien, Heryk wrote: > Hi to all, > This may be of general interest. A couple of weeks ago I created a wms to kml online service transformation but I have just been informed that the new Google Earth (GE) 4.0.2091 (Beta) can now read OGC WMS services directly. I was able to view my Mapserver WMS services directly in GE. Cool! > > You'll find the new option in the image overlays. Plus, if you want your mapserver getmap images to have a transparent background, you should modify the WMS getmap call manually to fetch png rather than gif. Have fun! > > Cheers > H?ryk > > <> -------------- next part -------------- A non-text attachment was scrubbed... Name: Nasa WMS.kmz Type: application/octet-stream Size: 548 bytes Desc: not available URL: From hjulien at NRCAN.GC.CA Wed Sep 20 08:51:11 2006 From: hjulien at NRCAN.GC.CA (Julien, Heryk) Date: Wed, 20 Sep 2006 11:51:11 -0400 Subject: TR: Google Earth Placemark: Nasa WMS.kmz Message-ID: Bonjour St?phane, Check the email I just sent to John. That should help. Salutations H?ryk -----Message d'origine----- De : LESSARDST at dfo-mpo.gc.ca [mailto:LESSARDST at dfo-mpo.gc.ca] Envoy? : 20 septembre 2006 11:43 ? : Julien, Heryk Objet : RE: [UMN_MAPSERVER-USERS] Google Earth can now access OGC WMS services. Hi H?ryk, I can't find the new option in GE 4.0.2091. How do you add a WMS layer? Thanks! St?phane Lessard -----Message d'origine----- De?: Julien, Heryk Envoy??: 20 septembre 2006 11:49 ??: 'John Cartwright' Cc?: 'UMN MapServer Users List' Objet?: Google Earth Placemark: Nasa WMS.kmz Hi John, Unfortunately my current Mapserver installation is not public however I'm sending you a kmz file with a wms landsat7 layer from Nasa (see attached file). I don't know what type of wms compliant server they are using however it's still a good wms example. Once you open the kmz file right click the new Nasa WMS layer in the left menu to access its properties. A window should then pop out. In the bottom the window you will find a tab that will let you access wms parameters so you don't have to manually edit the wms getmap url. That should do the trick. FYI, in my Mapserver setup I'm using png with the following mapfile configuration: # image format options OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END Cheers H?ryk -----Message d'origine----- De : John Cartwright [mailto:John.C.Cartwright at noaa.gov] Envoy? : 20 septembre 2006 11:16 ? : Julien, Heryk Objet : Re: [UMN_MAPSERVER-USERS] Google Earth can now access OGC WMS services. Hi Heryk, that is good news! Could you please send me an example of the new KML that you used to connect to your WMS? I'm not seeing the option in the docs. Thanks! -- john Julien, Heryk wrote: > Hi to all, > This may be of general interest. A couple of weeks ago I created a wms to kml online service transformation but I have just been informed that the new Google Earth (GE) 4.0.2091 (Beta) can now read OGC WMS services directly. I was able to view my Mapserver WMS services directly in GE. Cool! > > You'll find the new option in the image overlays. Plus, if you want your mapserver getmap images to have a transparent background, you should modify the WMS getmap call manually to fetch png rather than gif. Have fun! > > Cheers > H?ryk > > <> -------------- next part -------------- A non-text attachment was scrubbed... Name: Nasa WMS.kmz Type: application/octet-stream Size: 548 bytes Desc: not available URL: From hjulien at NRCAN.GC.CA Wed Sep 20 08:59:11 2006 From: hjulien at NRCAN.GC.CA (Julien, Heryk) Date: Wed, 20 Sep 2006 11:59:11 -0400 Subject: Google Earth can now access OGC WMS services. (followup) In-Reply-To: <45116314.2000106@noaa.gov> Message-ID: Yes, I haven't figured out what is going. I'll have to look into this. Some wms servers are okay while others are definitely off! But the kmz example I sent you seems to show up correctly in GE. We have to point out that this is a new beta release. I'm sure the bug will be fixed in a near future. Have you tried Dapple? Very neat! It's GE like and wms compliant but you need Windows XP to run it. http://dapple.geosoft.com/help/wms.asp Cheers H?ryk -----Message d'origine----- De?: John Cartwright [mailto:John.C.Cartwright at noaa.gov] Envoy??: 20 septembre 2006 11:50 ??: Julien, Heryk Objet?: Re: [UMN_MAPSERVER-USERS] Google Earth can now access OGC WMS services. (followup) Hello Again, I've found what seems to be the correct syntax, but have significant distortion/displacement between the GE layers and WMS image. Did you have any trouble with this? Thanks again! -- john Untitled Image Overlay 99ffffff http://map.ngdc.noaa.gov/wmsconnector/com.esri.wms.Esrimap/basicworld?VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&WIDTH=1024&HEIGHT=1024&LAYERS=1,2&STYLES=&TRANSPARENT=TRUE&FORMAT=image/png& onStop 2 0.75 25.82492550172083 22.17223456100858 -108.3312728011091 -113.1527219411753 John Cartwright wrote: > Hi Heryk, > > that is good news! Could you please send me an example of the new KML > that you used to connect to your WMS? I'm not seeing the option in > the docs. > > Thanks! > > -- john > > > Julien, Heryk wrote: >> Hi to all, >> This may be of general interest. A couple of weeks ago I created a >> wms to kml online service transformation but I have just been >> informed that the new Google Earth (GE) 4.0.2091 (Beta) can now read >> OGC WMS services directly. I was able to view my Mapserver WMS >> services directly in GE. Cool! >> >> You'll find the new option in the image overlays. Plus, if you want >> your mapserver getmap images to have a transparent background, you >> should modify the WMS getmap call manually to fetch png rather than >> gif. Have fun! >> >> Cheers >> H?ryk >> >> > From umn-ms at HYDROTEC.DE Wed Sep 20 08:49:41 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Wed, 20 Sep 2006 17:49:41 +0200 Subject: Antwort: [UMN_MAPSERVER-USERS] Question: ArcGIS Server using PostgreSQL/PostGIS In-Reply-To: Message-ID: Bryon Obviously this question is quite off-topic in this list. I hope nobody minds me to answer anyway, since the question is so interesting :-) http://gforge2.uwc.ac.za/projects/ziggis I' think it's a great approach. I didn't test. Benedikt Btw: Same for Oracle would be nice also UMN MapServer Users List schrieb am 20.09.2006 17:09:27: > Does anybody know if it is possible to use ESRI?s ArcGIS Server and PostgreSQL/PostGIS together? I guess the larger question is: is it possible to use PSQL as the spatial data repository of ESRI products without the use of ESRI?s ArcSDE. Side Note: I heard at the San Diego ESRI Intl. User Conference that ESRI intends to support PostgreSQL through ArcSDE sometime after their release of 9.2. > > > Bryon Kenne > ISO - Risk Decision Services > 545 Washington Blvd. (18-12), Jersey City, NJ 07710-1686 > ( (201) 469-2525; FAX (201) 469-4123 > + mailto:bkenne at iso.com > Visit our web site at http://www.iso.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuarteve at LPARCHAEOLOGY.COM Wed Sep 20 11:25:13 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Wed, 20 Sep 2006 19:25:13 +0100 Subject: WMS loadparams() Message-ID: Dear all I am having a bit of trouble using the WxS phpMapscript wrapper. I am trying this code as from the example page: dl('php_mapscript.so'); $request = ms_newOwsRequestObj(); $request->loadparams(); ms_ioinstallstdouttobuffer(); $oMap = ms_newMapobj("mapserver/military.map"); $oMap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); $buffer = ms_iogetstdoutbufferstring(); header('Content-type: application/xml'); echo $buffer; ms_ioresethandlers(); However, all I get is the message (in Firefox) that the connection has been reset to the server. After a bit of debug I found it was to do with the $request->loadparams() call - by commenting that out and manually setting the variables... $request->setParameter("VeRsIoN","1.1.0"); $request->setParameter("SERVICE","WMS"); $request->setParameter("REQUEST","getcapabilities"); ...I get a perfect getcapabilities response. I could I guess manually request the variables from the querystring using php and set them, but that seems a lot of work! My URL looks like this http://blah.blah.com/wms.php?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities I am using MapServer version 4.10.0-beta3 Anyone got any ideas or have experienced this? Thanks Stuart Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com From jennifer at GREENINFO.ORG Wed Sep 20 12:53:02 2006 From: jennifer at GREENINFO.ORG (Jennifer Strahan) Date: Wed, 20 Sep 2006 12:53:02 -0700 Subject: Antialias lines - error Message-ID: Hello, I would like to use Antialias for some of my line layers. It works fine for one of my layers (regional trails), but when I use it for another layer (highways), I get this error message: Premature end of script headers: /var/www/cgi-bin/php. If the map extent includes the entire highways layer, the map image is generated. If I try to zoom in, the map image is not generated and I get that error. Here's the layer definition in the mapfile: LAYER GROUP "Line" NAME "Highways" STATUS ON TYPE LINE DATA Highways_dot TRANSPARENCY alpha CLASS NAME "Highways" STYLE WIDTH 1.5 COLOR 140 140 138 ANTIALIAS true END END #class END # Layer Here's the image output info: OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END Any suggestions? Thanks, Jennifer Jennifer Strahan (Shanks) GreenInfo Network - 1996-2006: A Decade of Mapping the Public Interest 116 New Montgomery Street Suite 738 San Francisco CA 94105 PH: (415)979-0343 x306 Fax: 415-979-0371 Web: www.greeninfo.org From jennifer at GREENINFO.ORG Wed Sep 20 13:51:04 2006 From: jennifer at GREENINFO.ORG (Jennifer Strahan) Date: Wed, 20 Sep 2006 13:51:04 -0700 Subject: Antialias lines - error In-Reply-To: <4511A72A.2070008@territoriumonline.com> Message-ID: Hello Andreas, Thanks for your response. I currently have: MapServer version 4.8.3. PHP/Mapscript ($Revision: 1.242.2.2 $ $Date: 2006/03/16 21:03:01 $) GD version 2.0 or higher I am thinking about upgrading to 4.10 for the curved label support, but I'll probably wait until it's out of beta. Any other suggestions on how I can get this working without upgrading? Thanks, Jennifer At 01:40 PM 9/20/2006, you wrote: >Jennifer, > >which version of Mapserver/Mapscript and GD are >you using? I've myself experienced random >crashes when trying to use antialiasing with >Mapserver versions prior to 4.8. Besides, back >then, even if the map rendered successfully, antialiasing didn't work. > >You should upgrade to the last stable version >(4.8.4) at least. You might even want to try the new 4.10 beta. > >Best regards, > >Jennifer Strahan wrote: >>Hello, >>I would like to use Antialias for some of my >>line layers. It works fine for one of my >>layers (regional trails), but when I use it for >>another layer (highways), I get this error >>message: Premature end of script headers: >>/var/www/cgi-bin/php. If the map extent >>includes the entire highways layer, the map >>image is generated. If I try to zoom in, the >>map image is not generated and I get that >>error. Here's the layer definition in the mapfile: >>LAYER >> GROUP "Line" >> NAME "Highways" >> STATUS ON >> TYPE LINE >> DATA Highways_dot >> TRANSPARENCY alpha >> CLASS >> NAME "Highways" >> STYLE >> WIDTH 1.5 >> COLOR 140 140 138 >> ANTIALIAS true >> END >> END #class >>END # Layer >>Here's the image output info: >>OUTPUTFORMAT >> NAME png24 >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGB >> EXTENSION "png" >>END >>Any suggestions? >>Thanks, >>Jennifer >> >> >>Jennifer Strahan (Shanks) >>GreenInfo Network - 1996-2006: A Decade of Mapping the Public Interest >>116 New Montgomery Street Suite 738 San Francisco CA 94105 >>PH: (415)979-0343 x306 Fax: 415-979-0371 Web: www.greeninfo.org > >-- >-------------------------------------------------------------------- >Andreas Albarello >Analysis & SW Development > >Territorium Online srl/GmbH >Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen >email: andreas.albarello at territoriumonline.com >web: www.territoriumonline.com >-------------------------------------------------------------------- > Jennifer Strahan (Shanks) GreenInfo Network - 1996-2006: A Decade of Mapping the Public Interest 116 New Montgomery Street Suite 738 San Francisco CA 94105 PH: (415)979-0343 x306 Fax: 415-979-0371 Web: www.greeninfo.org From andreas.albarello at TERRITORIUMONLINE.COM Wed Sep 20 13:40:10 2006 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Wed, 20 Sep 2006 22:40:10 +0200 Subject: Antialias lines - error In-Reply-To: <6.2.3.4.2.20060920123651.027b1080@hood.greeninfo.org> Message-ID: Jennifer, which version of Mapserver/Mapscript and GD are you using? I've myself experienced random crashes when trying to use antialiasing with Mapserver versions prior to 4.8. Besides, back then, even if the map rendered successfully, antialiasing didn't work. You should upgrade to the last stable version (4.8.4) at least. You might even want to try the new 4.10 beta. Best regards, Jennifer Strahan wrote: > > Hello, > > I would like to use Antialias for some of my line layers. It works fine > for one of my layers (regional trails), but when I use it for another > layer (highways), I get this error message: Premature end of script > headers: /var/www/cgi-bin/php. If the map extent includes the entire > highways layer, the map image is generated. If I try to zoom in, the > map image is not generated and I get that error. Here's the layer > definition in the mapfile: > > LAYER > GROUP "Line" > NAME "Highways" > STATUS ON > TYPE LINE > DATA Highways_dot > TRANSPARENCY alpha > CLASS > NAME "Highways" > STYLE > WIDTH 1.5 > COLOR 140 140 138 > ANTIALIAS true > END > END #class > END # Layer > > Here's the image output info: > > OUTPUTFORMAT > NAME png24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > Any suggestions? > Thanks, > Jennifer > > > > > > Jennifer Strahan (Shanks) > GreenInfo Network - 1996-2006: A Decade of Mapping the Public Interest > 116 New Montgomery Street Suite 738 San Francisco CA 94105 > PH: (415)979-0343 x306 Fax: 415-979-0371 Web: www.greeninfo.org > -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From woklist at KYNGCHAOS.COM Wed Sep 20 14:23:21 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Wed, 20 Sep 2006 16:23:21 -0500 Subject: Antialias lines - error In-Reply-To: <6.2.3.4.2.20060920134448.02815558@hood.greeninfo.org> Message-ID: There is a very important patch to GD for this very problem of crashing with antialiasing (it's not a MapServer problem). Search the list archives for details. It's not in the official GD release, and I don't know if any linux binary packages have it, so you'll probably have to build GD yourself. I thought I saw it mentioned on the MapServer site somewhere, but a search didn't turn up anything. On Sep 20, 2006, at 3:51 PM, Jennifer Strahan wrote: > Hello Andreas, > > Thanks for your response. I currently have: > > MapServer version 4.8.3. > PHP/Mapscript ($Revision: 1.242.2.2 $ $Date: 2006/03/16 21:03:01 $) > GD version 2.0 or higher > > I am thinking about upgrading to 4.10 for the curved label support, > but I'll probably wait until it's out of beta. Any other > suggestions on how I can get this working without upgrading? > > Thanks, > Jennifer > > At 01:40 PM 9/20/2006, you wrote: >> Jennifer, >> >> which version of Mapserver/Mapscript and GD are you using? I've >> myself experienced random crashes when trying to use antialiasing >> with Mapserver versions prior to 4.8. Besides, back then, even if >> the map rendered successfully, antialiasing didn't work. >> >> You should upgrade to the last stable version (4.8.4) at least. >> You might even want to try the new 4.10 beta. ----- William Kyngesburye http://www.kyngchaos.com/ "This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?" - The Ruler of the Universe From hobu at IASTATE.EDU Wed Sep 20 15:38:11 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 20 Sep 2006 17:38:11 -0500 Subject: How can Create OVF file (for OGR MYSQL connection) interactively In-Reply-To: Message-ID: Murat, If you are using the OGR connector for MySQL (and not the MyGIS one that can be used with MapServer), OGR will need to make an entire pass through the table to calculate the extent for the layer to satisfy calls to msLayerGetExtent. Unfortunately, setting an EXTENT for the layer does not seem to short circuit this call in either 4.8 or 4.10. It is possible (although I haven't looked and can't confirm) that setting wms_extent for the layer might short-circuit the request for the layer's extent and save an extra troll through the layer. I hope to resolve this issue in 5.0. Howard At 01:37 AM 9/20/2006, Murat BEYHAN wrote: >Dear Friends, > >I'm using Mandrake Linux 2005 limited edition on my computer which is pentium >4 3.0Ghz, 512MB RAM and the HD was divided 2 part one for the Windows XP. >Linux uses 40GB. > MySQL4.1.18. > Mapserver4.8.4 > php4.4.4 > >And I have measured the elapsed time for my study on my computer (as >localhost) > >I'm connecting MySQL and drawing PGA distribution of an earthquake. The PGA >data of the earthquake which I select use 40000 row in my database. And each >line include Earthquake ID latitude longitude and PGA values. >When I try to draw it on my machine It take 22 second. >I'm not familiar to use phpmapscript so I have just used HTML code >to draw map . >I don't have any idea about the time it is acceptable or not. May I draw map >in shorter time than 24 sec. by using PHPmapscript. I mean is it possible to >increase the perfrmance of my aplication. Could you make some disscusion about >this issue... > >Thank you > >Murat > >-- >This message has been scanned for viruses and >dangerous content by MailScanner, and is >believed to be clean. From hobu at IASTATE.EDU Wed Sep 20 15:40:28 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 20 Sep 2006 17:40:28 -0500 Subject: Antialias lines - error In-Reply-To: Message-ID: At 04:23 PM 9/20/2006, William Kyngesburye wrote: >There is a very important patch to GD for this very problem of >crashing with antialiasing (it's not a MapServer problem). Search >the list archives for details. It's not in the official GD release, >and I don't know if any linux binary packages have it, so you'll >probably have to build GD yourself. I thought I saw it mentioned on >the MapServer site somewhere, but a search didn't turn up anything. > >On Sep 20, 2006, at 3:51 PM, Jennifer Strahan wrote: > > > Hello Andreas, > > > > Thanks for your response. I currently have: > > > > MapServer version 4.8.3. > > PHP/Mapscript ($Revision: 1.242.2.2 $ $Date: 2006/03/16 21:03:01 $) > > GD version 2.0 or higher > > > > I am thinking about upgrading to 4.10 for the curved label support, > > but I'll probably wait until it's out of beta. Any other > > suggestions on how I can get this working without upgrading? > > > > Thanks, > > Jennifer > > > > At 01:40 PM 9/20/2006, you wrote: > >> Jennifer, > >> > >> which version of Mapserver/Mapscript and GD are you using? I've > >> myself experienced random crashes when trying to use antialiasing > >> with Mapserver versions prior to 4.8. Besides, back then, even if > >> the map rendered successfully, antialiasing didn't work. > >> > >> You should upgrade to the last stable version (4.8.4) at least. > >> You might even want to try the new 4.10 beta. > >----- >William Kyngesburye >http://www.kyngchaos.com/ > >"This is a question about the past, is it? ... How can I tell that >the past isn't a fiction designed to account for the discrepancy >between my immediate physical sensations and my state of mind?" > >- The Ruler of the Universe From woklist at KYNGCHAOS.COM Wed Sep 20 16:24:22 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Wed, 20 Sep 2006 18:24:22 -0500 Subject: Antialias lines - error In-Reply-To: <6.2.3.4.2.20060920174011.02c7b450@hobu.mail.iastate.edu> Message-ID: thanks. maybe my search would have worked if I used 'anti-aliasing', with the hyphen ^_^ On Sep 20, 2006, at 5:40 PM, Howard Butler wrote: > aliasing-and-segfaults> > > At 04:23 PM 9/20/2006, William Kyngesburye wrote: >> There is a very important patch to GD for this very problem of >> crashing with antialiasing (it's not a MapServer problem). Search >> the list archives for details. It's not in the official GD release, >> and I don't know if any linux binary packages have it, so you'll >> probably have to build GD yourself. I thought I saw it mentioned on >> the MapServer site somewhere, but a search didn't turn up anything. ----- William Kyngesburye http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro From Jacob.Delfos at MAUNSELL.COM Wed Sep 20 16:29:00 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 21 Sep 2006 07:29:00 +0800 Subject: PHP_Mapscript QueryByAttributes on PostGIS layer - bug or feature? Message-ID: Hi Sergio, Thanks for that. I am not sure if a QueryByPoint would help for me, but I just change the querystring for PostGIS. It's not clean and abstract, but for now that will have to do. I didn't manage to find the post you mentioned. Was it on the MapServer list? regards, Jacob ________________________________ From: Sergio L?pez [mailto:sergiodlopez at yahoo.com] Sent: 20 September 2006 23:39 To: Delfos, Jacob Subject: Re: [UMN_MAPSERVER-USERS] PHP_Mapscript QueryByAttributes on PostGIS layer - bug or feature? Jacob I had the same problem, and I think is a bug. I've solved it by implementing a query by point using POSTGIS spatial queries, because I use only Postgis layers. There is a post with the explanation (in spanish, i'm afraid). search the list , the subject of the post was "Possible bug", in may 2006. Sergio "Delfos, Jacob" escribi?: Hi List, I'm trying to perform a QueryByAttributes operation on a PostGIS layer, but I get an error. Basically, it seems that the where clause being generated leaves out the attribute name and operator. Am I doing something wrong? My code is: $gotResult = $oLayer->queryByAttributes("roadname","EMERALD RD",MS_MULTIPLE); My PHP error is: [19-Sep-2006 08:53:34] PHP Warning: [MapServer Error]: prepare_database(): Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT roadname::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from roads WHERE (EMERALD RD) and (the_geom && setSRID( 'BOX3D(-149999998.5 -99999999,149999998.5 99999999)'::BOX3D,find_srid('','roads','the_geom') ))'

It works if I do: $oLayer->queryByAttributes("roadname","roadname like 'EMERALD RD'",MS_MULTIPLE); Am I supposed to perform the QueryByAttributes operation differently for different data sources? It gets more difficult if I don't know in advance whether the type is text or number.... I searched the list and bugzilla for something similar, but couldn't find it. I'm using php_mapscript 4.8.3 (I tried using 4.10beta2, but all my mapfiles get invalid map extent errors for some reason). Regards, Jacob JACOB DELFOS GIS ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com ________________________________ Pregunt?. Respond?. Descubr?. Todo lo que quer?as saber, y lo que ni imaginabas, est? en Yahoo! Respuestas (Beta). Probalo ya! -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhoward at AKIMEKA.COM Wed Sep 20 20:13:46 2006 From: mhoward at AKIMEKA.COM (Mark Howard) Date: Wed, 20 Sep 2006 17:13:46 -1000 Subject: PHP setup using tomcat Message-ID: I'm setting up a Tomcat server to use for ka-maps. I've got mapserv working correctly in the C:\tomcat\webapps\ROOT\WEB-INF\cgi folder (as http://my_server/cgi-bin/mapserv.exe). So this works fine: http://my_server/cgi-bin/mapserv.exe?REQUEST=GetMap&VERSION=1.1.1&MAP=C: \tomcat\webapps\ka-map\Akidemo\AkiDemo1.map&SRS=EPSG:4326&bbox=-180,-90, 180,90&width=200&height=200&layers=countries&format=image/PNG I've got PHP installed and configured -- php.exe and php.ini are in C:\WINDOWS\system32 and the php.ini extension_dir = /ms4w/Apache/php/ext/ This works on the command line - for example: php quickmap.php > zzz.png makes a perfectly good png. Where quickmap.php has // define variables define( "MAPFILE", "C:/tomcat/webapps/ka-map/AkiDemo1.map" ); define( "MODULE", "php_mapscript_48.dll" ); However If I access the same php file in a web context, I just get the php file streamed back. Obviously php is not running. I tried putting php and all the dll's in the cgi folder (probably stupid - eh?). Do I need to download and install a php class library (jar) to run as a servlet - as in these instructions? -- http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-usi ng-tomcat-4x-or-5x/ OR is there something simple I'm missing in the system configuration (web.xml....)???? TIA for any assistance!!!!! Mark JMEWS II/Medical Situational Awareness (MSA) Akimeka, LLC 1305 North Holopono Street, Suite # 3 Kihei, HI 96753 Office (808) 442-7137 Fax (808) 442-7140 Cell (303) 829-1255 mhoward at akimeka.com From Jacob.Delfos at MAUNSELL.COM Wed Sep 20 20:20:33 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 21 Sep 2006 11:20:33 +0800 Subject: PHP setup using tomcat Message-ID: Mark, I don't believe there is a very simple solution to getting php to run on tomcat. I had to do it myself a while ago, and it seems the general agreement out there is that for best performance, you should run PHP using Apache webserver (on port 80), and then use a proxy/reverse proxy for running Tomcat on a different port, proxied through the normal Apache webserver. You can then run Tomcat on a different port, while running Apache on the normal port. This works for me, but I'm no expert on this. Is there any reason why you are using Tomcat? You mentioned it's for Ka-Map, but Ka-Map is php-based. Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mark Howard > Sent: 21 September 2006 11:14 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] PHP setup using tomcat > > I'm setting up a Tomcat server to use for ka-maps. I've got mapserv > working correctly in the C:\tomcat\webapps\ROOT\WEB-INF\cgi folder > (as http://my_server/cgi-bin/mapserv.exe). > > So this works fine: > http://my_server/cgi-bin/mapserv.exe?REQUEST=GetMap&VERSION=1. > 1.1&MAP=C: > \tomcat\webapps\ka-map\Akidemo\AkiDemo1.map&SRS=EPSG:4326&bbox > =-180,-90, > 180,90&width=200&height=200&layers=countries&format=image/PNG > > > I've got PHP installed and configured -- php.exe and php.ini are in > C:\WINDOWS\system32 and the php.ini extension_dir = > /ms4w/Apache/php/ext/ > This works on the command line - for example: > php quickmap.php > zzz.png > > makes a perfectly good png. > > Where quickmap.php has > // define variables > define( "MAPFILE", "C:/tomcat/webapps/ka-map/AkiDemo1.map" ); > define( "MODULE", "php_mapscript_48.dll" ); > > > However If I access the same php file in a web context, I just get the > php file streamed back. Obviously php is not running. I tried putting > php and all the dll's in the cgi folder (probably stupid - eh?). > > Do I need to download and install a php class library (jar) > to run as a > servlet - as in these instructions? -- > > http://blog.taragana.com/index.php/archive/running-php-5x-on-w > indows-usi > ng-tomcat-4x-or-5x/ > > > OR is there something simple I'm missing in the system configuration > (web.xml....)???? > > > TIA for any assistance!!!!! > > Mark > > > JMEWS II/Medical Situational Awareness (MSA) > Akimeka, LLC > 1305 North Holopono Street, Suite # 3 > Kihei, HI 96753 > Office (808) 442-7137 > Fax (808) 442-7140 > Cell (303) 829-1255 > mhoward at akimeka.com > From adams at TERRESTRIS.DE Wed Sep 20 23:43:09 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Thu, 21 Sep 2006 08:43:09 +0200 Subject: Question: ArcGIS Server using PostgreSQL/PostGIS In-Reply-To: Message-ID: Bryon, I', not going t start the discussion WHY use this A... server .... ;-) To your question: There is an externsion to ArcGIs 8 called "PgArc" (->sourceforge). But first it is a kind of "unsufficient hack", because it does not make ArcGIS read PostGIS directly, it uses the shp2pgsql/pgsql2shp extensions to generate a shape, which then is used by ArcGIS and written back. Second since esri changed the object model between arcgis 8 and 9 it does not work with the 9-er stuff. I don't know of any possibilities you might have with FME? Cheers, Till Kenne, Bryon K. schrieb: > Does anybody know if it is possible to use ESRI?s ArcGIS Server and > PostgreSQL/PostGIS together? I guess the larger question is: is it > possible to use PSQL as the spatial data repository of ESRI products > without the use of ESRI?s ArcSDE. Side Note: I heard at the San Diego > ESRI Intl. User Conference that ESRI intends to support PostgreSQL > through ArcSDE sometime after their release of 9.2. > > **Bryon Kenne** > > **//****/ISO/**// //**/- Risk Decision Services /**/ > /545 Washington Blvd. (18-12), Jersey City, NJ 07710-1686 > (* *(201) 469-2525; FAX (201) 469-4123 > + mailto:bkenne at iso.com > Visit our web site at http://**www**.iso.com > -- ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From beyhan at DEPREM.GOV.TR Wed Sep 20 23:51:42 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Thu, 21 Sep 2006 09:51:42 +0300 Subject: PhpMapScript given extend for the map Message-ID: Dear Friends; I'm new on PhpMapScripting. I would like to draw map by given exten. In php I read the point from mysql than I calculate minx, miny,maxx and maxy by considering point. Then I draw map by following $map_path="/var/www/html/zone/"; $map = ms_newMapObj($map_path."epicenters.map"); $image=$map->draw(); $image_url=$image->saveWebImage(); print " Example 1: Displaying a map "; But I couldnt fix mapextend by given extend Because at the beginning of the map file we are giving map extend by EXTENT 26 45 36 42 something like that so the map always use this extent values.this means whole Turkey will draw each time. But I would like to draw the map by given extent values. Onthe web I have found these inforemation are following but I couldn't write code for that. Parmeters are : - oPixelExt (rect object) : Pixel Extents, with (0,0) at the top-left The rectangle contains the coordinates of the LL and UR coordinates in pixel. (the maxy in the rect object should be < miny value) ------- UR (values in the rect object : maxx, maxy) | | | | | | ------ LL (values in the rectobject minx, miny) - Width : width in pixel of the current image. - Height : Height in pixel of the current image. - Georef extent (rectObj) : current georef extents. Please give me the point where I have to start to fix mapextend by giving value in php. regards... Murat -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Sep 20 23:54:23 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Thu, 21 Sep 2006 08:54:23 +0200 Subject: PhpMapScript given extend for the map Message-ID: Use: $oMap->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); before you call draw. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Murat BEYHAN Verzonden: donderdag 21 september 2006 8:52 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] PhpMapScript given extend for the map Dear Friends; I'm new on PhpMapScripting. I would like to draw map by given exten. In php I read the point from mysql than I calculate minx, miny,maxx and maxy by considering point. Then I draw map by following $map_path="/var/www/html/zone/"; $map = ms_newMapObj($map_path."epicenters.map"); $image=$map->draw(); $image_url=$image->saveWebImage(); print " Example 1: Displaying a map "; But I couldnt fix mapextend by given extend Because at the beginning of the map file we are giving map extend by EXTENT 26 45 36 42 something like that so the map always use this extent values.this means whole Turkey will draw each time. But I would like to draw the map by given extent values. Onthe web I have found these inforemation are following but I couldn't write code for that. Parmeters are : - oPixelExt (rect object) : Pixel Extents, with (0,0) at the top-left The rectangle contains the coordinates of the LL and UR coordinates in pixel. (the maxy in the rect object should be < miny value) ------- UR (values in the rect object : maxx, maxy) | | | | | | ------ LL (values in the rectobject minx, miny) - Width : width in pixel of the current image. - Height : Height in pixel of the current image. - Georef extent (rectObj) : current georef extents. Please give me the point where I have to start to fix mapextend by giving value in php. regards... Murat -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From beyhan at DEPREM.GOV.TR Thu Sep 21 00:06:13 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Thu, 21 Sep 2006 10:06:13 +0300 Subject: PhpMapScript given extend for the map In-Reply-To: <5958F6B0C15AFE449245A966FB967B58074F8F@rws-s001000.ad.rws.nl> Message-ID: Dear Bart; Great..... Really thank you. The phpmapscript will continue to confuse me.. The second issiu to hilight the given point on the map and polygon... Could you help me about that.... With my best regards... Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From adams at TERRESTRIS.DE Thu Sep 21 01:13:43 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Thu, 21 Sep 2006 10:13:43 +0200 Subject: Question: ArcGIS Server using PostgreSQL/PostGIS In-Reply-To: Message-ID: Luca, ok. Never tried it again after i had three crashes some time ago :-( Till Luca Manganelli schrieb: > On 9/21/06, Till Adams wrote: > >> To your question: There is an externsion to ArcGIs 8 called "PgArc" >> (->sourceforge). But first it is a kind of "unsufficient hack", because >> it does not make ArcGIS read PostGIS directly, it uses the >> shp2pgsql/pgsql2shp extensions to generate a shape, which then is used >> by ArcGIS and written back. >> Second since esri changed the object model between arcgis 8 and 9 it >> does not work with the 9-er stuff. > > > You're wrong. It works with ArcGIS 9. But it is really SLOW. -- ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From fredlucca at GMAIL.COM Thu Sep 21 06:14:43 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 21 Sep 2006 10:14:43 -0300 Subject: Java Mapscript Message-ID: Hello list, I'm having trouble with mapserver and java mapscript, my tomcat broke with this error after some requests. Could someone help me? Best Regards, Fred # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x400eb3fd, pid=17455, tid=376856 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing) # Problematic frame: # C [libc.so.6+0x683fd] mempcpy+0x2d # --------------- T H R E A D --------------- Current thread (0x08204c28): JavaThread "http-8080-Processor15" daemon [_thread_in_native, id=17480] Stack: [0xbca01000,0xbcc00000), sp=0xbcbfe21c, free space=2036k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libc.so.6+0x683fd] mempcpy+0x2d C [libc.so.6+0x5dba3] C [libc.so.6+0x5ee48] _IO_sgetn+0x28 C [libc.so.6+0x539f4] _IO_fread+0x74 C [libmapscript.so+0x545d5] msSHPOpen+0x425 C [libmapscript.so+0x562a9] msSHPOpenFile+0x59 C [libmapscript.so+0x57de1] msShapeFileLayerOpen+0x91 C [libmapscript.so+0x80d11] msLayerOpen+0x71 C [libmapscript.so+0x8c3f6] msDrawVectorLayer+0xe6 C [libmapscript.so+0x8c155] msDrawLayer+0x95 C [libmapscript.so+0x8b9de] msDrawMap+0x42e C [libmapscript.so+0x2c59c] C [libmapscript.so+0x3e825] Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw+0x35 j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 j edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 j br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 j TileServer.exportExact(Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 j TileServer.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 j TileServer.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 j org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 j org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 j org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 j org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V+102 j org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub V [libjvm.so+0x174fec] V [libjvm.so+0x2821f8] V [libjvm.so+0x174845] V [libjvm.so+0x1748de] V [libjvm.so+0x1ebee5] V [libjvm.so+0x2ea563] V [libjvm.so+0x282d08] C [libpthread.so.0+0x654e] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 j edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 j br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 j TileServer.exportExact(Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 j TileServer.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 j TileServer.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 j org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 j org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 j org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 j org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V+102 j org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub 40000000-40015000 r-xp 00000000 08:01 12210 /lib/ld-2.3.4.so 40015000-40017000 rw-p 00014000 08:01 12210 /lib/ld-2.3.4.so 40017000-40018000 r--p 00000000 00:00 0 40018000-40019000 rwxp 00001000 00:00 0 40019000-4001f000 r-xp 00000000 08:01 144145 /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so 4001f000-40020000 rw-p 00006000 08:01 144145 /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so 40020000-40027000 r-xp 00000000 08:01 12445 /lib/libnss_compat-2.3.4.so 40027000-40029000 rw-p 00006000 08:01 12445 /lib/libnss_compat-2.3.4.so 40029000-4002b000 r--s 00000000 08:01 149512 /usr/lib/jdk1.5.0_06/jre/lib/ext/dnsns.jar 4002b000-4002c000 rw-p 00000000 00:00 0 4002c000-4003a000 r-xp 00000000 08:01 12452 /lib/libpthread-0.10.so 4003a000-4003c000 rw-p 0000d000 08:01 12452 /lib/libpthread-0.10.so 4003c000-4007e000 rw-p 00000000 00:00 0 4007e000-40080000 r-xp 00000000 08:01 12441 /lib/libdl-2.3.4.so 40080000-40082000 rw-p 00001000 08:01 12441 /lib/libdl-2.3.4.so 40082000-40083000 rw-p 00000000 00:00 0 40083000-40199000 r-xp 00000000 08:01 12438 /lib/libc-2.3.4.so 40199000-4019a000 ---p 00116000 08:01 12438 /lib/libc-2.3.4.so 4019a000-4019b000 r--p 00116000 08:01 12438 /lib/libc-2.3.4.so 4019b000-4019e000 rw-p 00117000 08:01 12438 /lib/libc-2.3.4.so 46862000-46863000 r-xp 00000000 08:01 12419 /usr/lib/gconv/ISO8859-1.so 46863000-46864000 ---p 00001000 08:01 12419 /usr/lib/gconv/ISO8859-1.so 46864000-46866000 rw-p 00001000 08:01 12419 /usr/lib/gconv/ISO8859-1.so 46874000-4688f000 r-xp 00000000 08:02 521 /usr/local/lib/libgd.so.2.0.0 4688f000-468af000 rw-p 0001a000 08:02 521 /usr/local/lib/libgd.so.2.0.0 468af000-468c3000 rw-p 00000000 00:00 0 468c3000-468df000 r-xp 00000000 08:01 201 /usr/lib/libjpeg.so.62.0.0 468df000-468e0000 rw-p 0001b000 08:01 201 /usr/lib/libjpeg.so.62.0.0 468e0000-468f0000 r-xp 00000000 08:01 59294 /usr/lib/libz.so.1.2.2 468f0000-468f1000 rw-p 0000f000 08:01 59294 /usr/lib/libz.so.1.2.2 468f1000-468f8000 r-xp 00000000 08:01 194 /usr/lib/libgcc_s.so.1 468f8000-468f9000 rw-p 00007000 08:01 194 /usr/lib/libgcc_s.so.1 468f9000-468ff000 r-xp 00000000 08:01 52949 /usr/lib/libungif.so.4.1.2 468ff000-46900000 rw-p 00006000 08:01 52949 /usr/lib/libungif.so.4.1.2 46900000-469fb000 rw-p 000c4000 00:00 0 469fb000-46a00000 ---p 000e5000 00:00 0 46a00000-46af4000 r-xp 00000000 08:02 1019 /usr/local/lib/libmapscript.so 46af4000-46af8000 rw-p 000f3000 08:02 1019 /usr/local/lib/libmapscript.so 46af8000-46afa000 rw-p 00000000 00:00 0 46afa000-46b5b000 r-xp 00000000 08:02 1035 /usr/local/lib/libfreetype.so.6.3.10 46b5b000-46b5e000 rw-p 00061000 08:02 1035 /usr/local/lib/libfreetype.so.6.3.10 46b5e000-46b8e000 r-xp 00000000 08:01 210 /usr/lib/libpng.so.3.1.2.8 46b8e000-46b8f000 rw-p 0002f000 08:01 210 /usr/lib/libpng.so.3.1.2.8 46b8f000-46bc4000 r-xp 00000000 08:02 383 /usr/local/lib/libproj.so.0.5.0 46bc4000-46bc6000 rw-p 00035000 08:02 383 /usr/local/lib/libproj.so.0.5.0 46bc6000-46edd000 r-xp 00000000 08:02 4586 /usr/local/lib/libgdal.so.1.10.0 46edd000-46f32000 rw-p 00316000 08:02 4586 /usr/local/lib/libgdal.so.1.10.0 46f32000-46f47000 rw-p 00000000 00:00 0 46f47000-46fe2000 r-xp 00000000 08:01 141965 /usr/lib/libstdc++.so.5.0.6 46fe2000-46ff9000 rw-p 0009b000 08:01 141965 /usr/lib/libstdc++.so.5.0.6 46ff9000-46ffe000 rw-p 00000000 00:00 0 46ffe000-4700c000 r-xp 00000000 08:01 69690 /usr/X11R6/lib/libXpm.so.4.11 4700c000-4700d000 rw-p 0000e000 08:01 69690 /usr/X11R6/lib/libXpm.so.4.11 4700d000-470d3000 r-xp 00000000 08:01 69832 /usr/X11R6/lib/libX11.so.6.2 470d3000-470d7000 rw-p 000c6000 08:01 69832 /usr/X11R6/lib/libX11.so.6.2 470d7000-470fa000 r-xp 00000000 08:01 69699 /usr/X11R6/lib/libfontconfig.so.1.0.4 470fa000-470fd000 rw-p 00022000 08:01 69699 /usr/X11R6/lib/libfontconfig.so.1.0.4 470fd000-470fe000 rw-p 00000000 00:00 0 470fe000-4712e000 r-xp 00000000 08:01 184 /usr/lib/libpng12.so.0.1.2.8 4712e000-4712f000 rw-p 0002f000 08:01 184 /usr/lib/libpng12.so.0.1.2.8 4712f000-4724f000 r-xp 00000000 08:02 4327 /usr/local/lib/libNCSEcw.so.0.0.0 4724f000-47258000 rw-p 00120000 08:02 4327 /usr/local/lib/libNCSEcw.so.0.0.0 47258000-47265000 rw-p 00000000 00:00 0 47265000-47279000 r-xp 00000000 08:02 4339 /usr/local/lib/libNCSCnet.so.0.0.0 47279000-4727a000 rw-p 00014000 08:02 4339 /usr/local/lib/libNCSCnet.so.0.0.0 4727a000-47299000 r-xp 00000000 08:02 4334 /usr/local/lib/libNCSUtil.so.0.0.0 47299000-4729b000 rw-p 0001e000 08:02 4334 /usr/local/lib/libNCSUtil.so.0.0.0 4729b000-4729c000 rw-p 00000000 00:00 0 4729c000-472e7000 r-xp 00000000 08:01 52823 /usr/lib/libtiff.so.3.7.1 472e7000-472e9000 rw-p 0004a000 08:01 52823 /usr/lib/libtiff.so.3.7.1 --------------- S Y S T E M --------------- OS:Linux uname:Linux 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 libc:glibc 2.3.4 linuxthreads-0.10 (fixed stack) rlimit: STACK 2044k, CORE 0k, NPROC 7168, NOFILE 1024, AS infinity load average:3.44 2.84 1.27 CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht Memory: 4k page, physical 904220k(52168k free), swap 2097136k(1994124k free) vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for linux-x86, built on Nov 10 2005 12:08:33 by java_re with gcc 3.2.1-7a (J2SE release) -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Thu Sep 21 06:57:09 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 21 Sep 2006 15:57:09 +0200 Subject: Java Mapscript In-Reply-To: Message-ID: On 9/21/06, Frederico Lucca wrote: > Hello list, > > I'm having trouble with mapserver and java mapscript, my tomcat broke with > this error after some requests. > Could someone help me? I would, but I need more details. There is a java mapscript doc on mapserver web site that has a section exactly about what you need to tell us to help us help you ;-). Umberto > > Best Regards, > > Fred > > # > # An unexpected error has been detected by HotSpot Virtual Machine: > > # > # SIGSEGV (0xb) at pc=0x400eb3fd, pid=17455, tid=376856 > # > # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing) > # Problematic frame: > # C [libc.so.6+0x683fd] mempcpy+0x2d > # > > > --------------- T H R E A D --------------- > > Current thread (0x08204c28): JavaThread "http-8080-Processor15" daemon > [_thread_in_native, id=17480] > > Stack: [0xbca01000,0xbcc00000), sp=0xbcbfe21c, free space=2036k > > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native > code) > C [libc.so.6+0x683fd] mempcpy+0x2d > C [libc.so.6+0x5dba3] > C [libc.so.6+0x5ee48] _IO_sgetn+0x28 > C [libc.so.6+0x539f4] _IO_fread+0x74 > > C [libmapscript.so+0x545d5] msSHPOpen+0x425 > C [libmapscript.so+0x562a9] msSHPOpenFile+0x59 > C [libmapscript.so+0x57de1] msShapeFileLayerOpen+0x91 > C [libmapscript.so+0x80d11] msLayerOpen+0x71 > C [libmapscript.so+0x8c3f6 > ] msDrawVectorLayer+0xe6 > C [libmapscript.so+0x8c155] msDrawLayer+0x95 > C [libmapscript.so+0x8b9de] msDrawMap+0x42e > C [libmapscript.so+0x2c59c] > C [libmapscript.so+0x3e825] > Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw+0x35 > > j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > j > edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 > j > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 > j TileServer.exportExact > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > j > TileServer.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > j > TileServer.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > j > javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > j > javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > j > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > j > org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > j > org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > j > org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > j > org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > j > org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > j > org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > j > org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > j > org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > j > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > j > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > j > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V+102 > > j > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 > j java.lang.Thread.run()V+11 > v ~StubRoutines::call_stub > V [libjvm.so+0x174fec] > V [libjvm.so+0x2821f8] > V [libjvm.so+0x174845] > > V [libjvm.so+0x1748de] > V [libjvm.so+0x1ebee5] > V [libjvm.so+0x2ea563] > V [libjvm.so+0x282d08] > C [libpthread.so.0+0x654e] > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > > j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > j > edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 > j > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 > j TileServer.exportExact > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > j > TileServer.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > j > TileServer.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > j > javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > j > javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > j > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > j > org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > j > org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > j > org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > j > org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > j > org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > j > org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > j > org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > j > org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > j > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > j > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > j > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V+102 > > j > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 > j java.lang.Thread.run()V+11 > v ~StubRoutines::call_stub > > 40000000-40015000 r-xp 00000000 08:01 12210 /lib/ld- > 2.3.4.so > 40015000-40017000 rw-p 00014000 08:01 12210 /lib/ld-2.3.4.so > 40017000-40018000 r--p 00000000 00:00 0 > 40018000-40019000 rwxp 00001000 00:00 0 > 40019000-4001f000 r-xp 00000000 08:01 144145 > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > > 4001f000-40020000 rw-p 00006000 08:01 144145 > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > 40020000-40027000 r-xp 00000000 08:01 12445 /lib/libnss_compat-2.3.4.so > > 40027000-40029000 rw-p 00006000 08:01 12445 /lib/libnss_compat-2.3.4.so > 40029000-4002b000 r--s 00000000 08:01 149512 > /usr/lib/jdk1.5.0_06/jre/lib/ext/dnsns.jar > 4002b000-4002c000 rw-p 00000000 00:00 0 > > 4002c000-4003a000 r-xp 00000000 08:01 12452 /lib/libpthread-0.10.so > 4003a000-4003c000 rw-p 0000d000 08:01 12452 /lib/libpthread-0.10.so > 4003c000-4007e000 rw-p 00000000 00:00 0 > > 4007e000-40080000 r-xp 00000000 08:01 12441 /lib/libdl-2.3.4.so > 40080000-40082000 rw-p 00001000 08:01 12441 /lib/libdl-2.3.4.so > 40082000-40083000 rw-p 00000000 00:00 0 > > 40083000-40199000 r-xp 00000000 08:01 12438 /lib/libc-2.3.4.so > 40199000-4019a000 ---p 00116000 08:01 12438 /lib/libc-2.3.4.so > 4019a000-4019b000 r--p 00116000 08:01 12438 /lib/libc- > 2.3.4.so > 4019b000-4019e000 rw-p 00117000 08:01 12438 /lib/libc-2.3.4.so > 46862000-46863000 r-xp 00000000 08:01 12419 /usr/lib/gconv/ISO8859-1.so > > 46863000-46864000 ---p 00001000 08:01 12419 /usr/lib/gconv/ISO8859-1.so > 46864000-46866000 rw-p 00001000 08:01 12419 /usr/lib/gconv/ISO8859-1.so > 46874000-4688f000 r-xp 00000000 08:02 521 /usr/local/lib/libgd.so.2.0.0 > > 4688f000-468af000 rw-p 0001a000 08:02 521 /usr/local/lib/libgd.so.2.0.0 > 468af000-468c3000 rw-p 00000000 00:00 0 > 468c3000-468df000 r-xp 00000000 08:01 201 /usr/lib/libjpeg.so.62.0.0 > 468df000-468e0000 rw-p 0001b000 08:01 201 /usr/lib/libjpeg.so.62.0.0 > > 468e0000-468f0000 r-xp 00000000 08:01 59294 /usr/lib/libz.so.1.2.2 > 468f0000-468f1000 rw-p 0000f000 08:01 59294 /usr/lib/libz.so.1.2.2 > 468f1000-468f8000 r-xp 00000000 08:01 194 /usr/lib/libgcc_s.so.1 > > 468f8000-468f9000 rw-p 00007000 08:01 194 /usr/lib/libgcc_s.so.1 > 468f9000-468ff000 r-xp 00000000 08:01 52949 /usr/lib/libungif.so.4.1.2 > 468ff000-46900000 rw-p 00006000 08:01 52949 /usr/lib/libungif.so.4.1.2 > > 46900000-469fb000 rw-p 000c4000 00:00 0 > 469fb000-46a00000 ---p 000e5000 00:00 0 > 46a00000-46af4000 r-xp 00000000 08:02 1019 /usr/local/lib/libmapscript.so > 46af4000-46af8000 rw-p 000f3000 08:02 1019 /usr/local/lib/libmapscript.so > > 46af8000-46afa000 rw-p 00000000 00:00 0 > 46afa000-46b5b000 r-xp 00000000 08:02 1035 > /usr/local/lib/libfreetype.so.6.3.10 > 46b5b000-46b5e000 rw-p 00061000 08:02 1035 > /usr/local/lib/libfreetype.so.6.3.10 > > 46b5e000-46b8e000 r-xp 00000000 08:01 210 /usr/lib/libpng.so.3.1.2.8 > 46b8e000-46b8f000 rw-p 0002f000 08:01 210 /usr/lib/libpng.so.3.1.2.8 > 46b8f000-46bc4000 r-xp 00000000 08:02 383 /usr/local/lib/libproj.so.0.5.0 > > 46bc4000-46bc6000 rw-p 00035000 08:02 383 /usr/local/lib/libproj.so.0.5.0 > 46bc6000-46edd000 r-xp 00000000 08:02 4586 > /usr/local/lib/libgdal.so.1.10.0 > 46edd000-46f32000 rw-p 00316000 08:02 4586 > /usr/local/lib/libgdal.so.1.10.0 > > 46f32000-46f47000 rw-p 00000000 00:00 0 > 46f47000-46fe2000 r-xp 00000000 08:01 141965 /usr/lib/libstdc++.so.5.0.6 > 46fe2000-46ff9000 rw-p 0009b000 08:01 141965 /usr/lib/libstdc++.so.5.0.6 > 46ff9000-46ffe000 rw-p 00000000 00:00 0 > > 46ffe000-4700c000 r-xp 00000000 08:01 69690 /usr/X11R6/lib/libXpm.so.4.11 > 4700c000-4700d000 rw-p 0000e000 08:01 69690 /usr/X11R6/lib/libXpm.so.4.11 > 4700d000-470d3000 r-xp 00000000 08:01 69832 /usr/X11R6/lib/libX11.so.6.2 > > 470d3000-470d7000 rw-p 000c6000 08:01 69832 /usr/X11R6/lib/libX11.so.6.2 > 470d7000-470fa000 r-xp 00000000 08:01 69699 > /usr/X11R6/lib/libfontconfig.so.1.0.4 > 470fa000-470fd000 rw-p 00022000 08:01 69699 > /usr/X11R6/lib/libfontconfig.so.1.0.4 > > 470fd000-470fe000 rw-p 00000000 00:00 0 > 470fe000-4712e000 r-xp 00000000 08:01 184 /usr/lib/libpng12.so.0.1.2.8 > 4712e000-4712f000 rw-p 0002f000 08:01 184 /usr/lib/libpng12.so.0.1.2.8 > 4712f000-4724f000 r-xp 00000000 08:02 4327 > /usr/local/lib/libNCSEcw.so.0.0.0 > > 4724f000-47258000 rw-p 00120000 08:02 4327 > /usr/local/lib/libNCSEcw.so.0.0.0 > 47258000-47265000 rw-p 00000000 00:00 0 > 47265000-47279000 r-xp 00000000 08:02 4339 > /usr/local/lib/libNCSCnet.so.0.0.0 > > 47279000-4727a000 rw-p 00014000 08:02 4339 > /usr/local/lib/libNCSCnet.so.0.0.0 > 4727a000-47299000 r-xp 00000000 08:02 4334 > /usr/local/lib/libNCSUtil.so.0.0.0 > 47299000-4729b000 rw-p 0001e000 08:02 4334 > /usr/local/lib/libNCSUtil.so.0.0.0 > > 4729b000-4729c000 rw-p 00000000 00:00 0 > 4729c000-472e7000 r-xp 00000000 08:01 52823 /usr/lib/libtiff.so.3.7.1 > 472e7000-472e9000 rw-p 0004a000 08:01 52823 /usr/lib/libtiff.so.3.7.1 > > --------------- S Y S T E M --------------- > > > OS:Linux > uname:Linux 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 > libc:glibc 2.3.4 linuxthreads-0.10 (fixed stack) > rlimit: STACK 2044k, CORE 0k, NPROC 7168, NOFILE 1024, AS infinity > load average:3.44 2.84 > 1.27 > > CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht > > Memory: 4k page, physical 904220k(52168k free), swap 2097136k(1994124k free) > > vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for linux-x86, built on > Nov 10 2005 12:08:33 by java_re with gcc > 3.2.1-7a (J2SE release) > > > > -- > "Everything under the sun is in tune > But the sun is eclipsed by the moon" From beyhan at DEPREM.GOV.TR Thu Sep 21 07:17:58 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Thu, 21 Sep 2006 17:17:58 +0300 Subject: PhpMapScript reference map In-Reply-To: <75b4b93e0609210657j7977f329m78918d3b79e9858a@mail.gmail.com> Message-ID: Dear Friends I have created map by following codes in Php. I have also created reference map for my study. But the outline box doesn't appear on the reference map. What is the wrong with my code. I have using gmap demo gmap.php.inc and gmap.php for develop my study. the reference map on the map file as follows REFERENCE IMAGE ../mapdata/zone.png # The reference image SIZE 200 150 # The size of the reference image in pixels # EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 # The extent of the reference image in map units EXTENT 26 35 45 43 STATUS ON MINBOXSIZE 10 # How small can the reference box be before it gets drawn as a point, in pixels MAXBOXSIZE 150 # The maximum size of the reference box, in pixels COLOR -1 -1 -1 # The reference box fill color, negative numbers mean transparent OUTLINECOLOR 0 255 255 # The reference box outline color MARKERSIZE 8 # The size of the point marker MARKER 'star' # The marker symbol END PHP codes are here................................... function IsHtmlMode() { GLOBAL $gbIsHtmlMode; return $gbIsHtmlMode; } if (strpos( ms_GetVersion(), "OUTPUT=GIF") > 0 ) { $gAppletImgFmt = MS_GIF; $gImagesFmt = MS_GIF; } else { $gAppletImgFmt = MS_JPEG; $gImagesFmt = MS_PNG; } function GMapDrawKeyMap() { GLOBAL $map; GLOBAL $gAppletImgFmt, $gImagesFmt; } $map_path="/var/www/html/zone/"; $map = ms_newMapObj($map_path."zone.map"); $imgref = $map->drawreferencemap(); $urlref = $imgref->saveWebImage($gImagesFmt, 0, 0, -1); $map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); $image=$map->draw(); $image_url=$image->saveWebImage(); //$gpoMap = ms_newMapObj("gmap75_key.map"); /* -------------------------------------------------------------------- */ /* extents set in the .map file. */ /* */ /* max extents are 10% of the map. */ /* -------------------------------------------------------------------- */ print " Harita

"; -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From mtodaro at ACSE.IT Thu Sep 21 07:49:45 2006 From: mtodaro at ACSE.IT (Michelangelo Todaro) Date: Thu, 21 Sep 2006 16:49:45 +0200 Subject: Problem with make step Message-ID: This is the result of make instruction: touch mapscriptvars pwd > mapscriptvars echo -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_WCS_SVR >> mapscriptvars echo -I. -I/usr/local/include -I/usr/include -I/usr/local/include >> mapscriptvars echo -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -L/usr/X11/lib -lXpm -lX11 -ltiff -ljpeg -lfreetype -lpng -lz -L/usr/X11/lib -lXpm -lX11 -L/usr/local/lib -lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/local/pgsql/lib -lpq -L/usr/lib -lcurl -L/lib -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lpthread -L/usr//lib -liconv -lz -lm -lstdc++ >> mapscriptvars echo >> mapscriptvars grep '#define MS_VERSION' map.h >> mapscriptvars I have executed all the instructions suggested by "Verbose Linux Installation" Thank you for your help Regards, Michelangelo From fredlucca at GMAIL.COM Thu Sep 21 08:47:53 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 21 Sep 2006 12:47:53 -0300 Subject: Java Mapscript In-Reply-To: <75b4b93e0609210657j7977f329m78918d3b79e9858a@mail.gmail.com> Message-ID: Umberto, Here are the information that I can give. Linux porto 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 unknown unknown GNU/Linux gcc (GCC) 3.3.4 MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) SWIG Version 1.3.29 Compiled with g++ [i686-pc-linux-gnu] gdal 1.3.2 proj 4.4.9 tomcat 5.5.9 I configure --with-threads --with-ogr --with-gdal --with-proj The code is simple like open, setExtent, draw Best Regards, Fred On 9/21/06, Umberto Nicoletti wrote: > > On 9/21/06, Frederico Lucca wrote: > > Hello list, > > > > I'm having trouble with mapserver and java mapscript, my tomcat broke > with > > this error after some requests. > > Could someone help me? > > I would, but I need more details. There is a java mapscript doc on > mapserver web site that has a section exactly about what you need to > tell us to help us help you ;-). > > Umberto > > > > > Best Regards, > > > > Fred > > > > # > > # An unexpected error has been detected by HotSpot Virtual Machine: > > > > # > > # SIGSEGV (0xb) at pc=0x400eb3fd, pid=17455, tid=376856 > > # > > # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing) > > # Problematic frame: > > # C [libc.so.6+0x683fd] mempcpy+0x2d > > # > > > > > > --------------- T H R E A D --------------- > > > > Current thread (0x08204c28): JavaThread "http-8080-Processor15" daemon > > [_thread_in_native, id=17480] > > > > Stack: [0xbca01000,0xbcc00000), sp=0xbcbfe21c, free space=2036k > > > > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > C=native > > code) > > C [libc.so.6+0x683fd] mempcpy+0x2d > > C [libc.so.6+0x5dba3] > > C [libc.so.6+0x5ee48] _IO_sgetn+0x28 > > C [libc.so.6+0x539f4] _IO_fread+0x74 > > > > C [libmapscript.so+0x545d5] msSHPOpen+0x425 > > C [libmapscript.so+0x562a9] msSHPOpenFile+0x59 > > C [libmapscript.so+0x57de1] msShapeFileLayerOpen+0x91 > > C [libmapscript.so+0x80d11] msLayerOpen+0x71 > > C [libmapscript.so+0x8c3f6 > > ] msDrawVectorLayer+0xe6 > > C [libmapscript.so+0x8c155] msDrawLayer+0x95 > > C [libmapscript.so+0x8b9de] msDrawMap+0x42e > > C [libmapscript.so+0x2c59c] > > C [libmapscript.so+0x3e825] > > Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw+0x35 > > > > j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > > j > > edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 > > j > > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 > > j TileServer.exportExact > > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > > j > > TileServer.processRequest > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > > j > > TileServer.doPost > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > > > j > > javax.servlet.http.HttpServlet.service > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > > j > > javax.servlet.http.HttpServlet.service > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > > > j > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > > j > > org.apache.catalina.core.ApplicationFilterChain.doFilter > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > > > j > > org.apache.catalina.core.StandardWrapperValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > > j > > org.apache.catalina.core.StandardContextValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > > > j > > org.apache.catalina.core.StandardHostValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > > j > > org.apache.catalina.valves.ErrorReportValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > > > j > > org.apache.catalina.core.StandardEngineValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > > j > > org.apache.catalina.connector.CoyoteAdapter.service > (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > > > j > > org.apache.coyote.http11.Http11Processor.process > (Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > > j > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection > (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > > > j > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket > (Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > > j > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt > ([Ljava/lang/Object;)V+102 > > > > j > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 > > j java.lang.Thread.run()V+11 > > v ~StubRoutines::call_stub > > V [libjvm.so+0x174fec] > > V [libjvm.so+0x2821f8] > > V [libjvm.so+0x174845] > > > > V [libjvm.so+0x1748de] > > V [libjvm.so+0x1ebee5] > > V [libjvm.so+0x2ea563] > > V [libjvm.so+0x282d08] > > C [libpthread.so.0+0x654e] > > > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > > > > j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > > j > > edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 > > j > > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 > > j TileServer.exportExact > > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > > j > > TileServer.processRequest > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > > j > > TileServer.doPost > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > > > j > > javax.servlet.http.HttpServlet.service > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > > j > > javax.servlet.http.HttpServlet.service > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > > > j > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > > j > > org.apache.catalina.core.ApplicationFilterChain.doFilter > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > > > j > > org.apache.catalina.core.StandardWrapperValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > > j > > org.apache.catalina.core.StandardContextValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > > > j > > org.apache.catalina.core.StandardHostValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > > j > > org.apache.catalina.valves.ErrorReportValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > > > j > > org.apache.catalina.core.StandardEngineValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > > j > > org.apache.catalina.connector.CoyoteAdapter.service > (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > > > j > > org.apache.coyote.http11.Http11Processor.process > (Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > > j > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection > (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > > > j > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket > (Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > > j > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt > ([Ljava/lang/Object;)V+102 > > > > j > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 > > j java.lang.Thread.run()V+11 > > v ~StubRoutines::call_stub > > > > 40000000-40015000 r-xp 00000000 08:01 12210 /lib/ld- > > 2.3.4.so > > 40015000-40017000 rw-p 00014000 08:01 12210 /lib/ld-2.3.4.so > > 40017000-40018000 r--p 00000000 00:00 0 > > 40018000-40019000 rwxp 00001000 00:00 0 > > 40019000-4001f000 r-xp 00000000 08:01 144145 > > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > > > > 4001f000-40020000 rw-p 00006000 08:01 144145 > > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > > 40020000-40027000 r-xp 00000000 08:01 12445 /lib/libnss_compat-2.3.4.so > > > > 40027000-40029000 rw-p 00006000 08:01 12445 /lib/libnss_compat-2.3.4.so > > 40029000-4002b000 r--s 00000000 08:01 149512 > > /usr/lib/jdk1.5.0_06/jre/lib/ext/dnsns.jar > > 4002b000-4002c000 rw-p 00000000 00:00 0 > > > > 4002c000-4003a000 r-xp 00000000 08:01 12452 /lib/libpthread-0.10.so > > 4003a000-4003c000 rw-p 0000d000 08:01 12452 /lib/libpthread-0.10.so > > 4003c000-4007e000 rw-p 00000000 00:00 0 > > > > 4007e000-40080000 r-xp 00000000 08:01 12441 /lib/libdl-2.3.4.so > > 40080000-40082000 rw-p 00001000 08:01 12441 /lib/libdl-2.3.4.so > > 40082000-40083000 rw-p 00000000 00:00 0 > > > > 40083000-40199000 r-xp 00000000 08:01 12438 /lib/libc-2.3.4.so > > 40199000-4019a000 ---p 00116000 08:01 12438 /lib/libc-2.3.4.so > > 4019a000-4019b000 r--p 00116000 08:01 12438 /lib/libc- > > 2.3.4.so > > 4019b000-4019e000 rw-p 00117000 08:01 12438 /lib/libc-2.3.4.so > > 46862000-46863000 r-xp 00000000 08:01 12419 /usr/lib/gconv/ISO8859-1.so > > > > 46863000-46864000 ---p 00001000 08:01 12419 /usr/lib/gconv/ISO8859-1.so > > 46864000-46866000 rw-p 00001000 08:01 12419 /usr/lib/gconv/ISO8859-1.so > > 46874000-4688f000 r-xp 00000000 08:02 521 /usr/local/lib/libgd.so.2.0.0 > > > > 4688f000-468af000 rw-p 0001a000 08:02 521 /usr/local/lib/libgd.so.2.0.0 > > 468af000-468c3000 rw-p 00000000 00:00 0 > > 468c3000-468df000 r-xp 00000000 08:01 201 /usr/lib/libjpeg.so.62.0.0 > > 468df000-468e0000 rw-p 0001b000 08:01 201 /usr/lib/libjpeg.so.62.0.0 > > > > 468e0000-468f0000 r-xp 00000000 08:01 59294 /usr/lib/libz.so.1.2.2 > > 468f0000-468f1000 rw-p 0000f000 08:01 59294 /usr/lib/libz.so.1.2.2 > > 468f1000-468f8000 r-xp 00000000 08:01 194 /usr/lib/libgcc_s.so.1 > > > > 468f8000-468f9000 rw-p 00007000 08:01 194 /usr/lib/libgcc_s.so.1 > > 468f9000-468ff000 r-xp 00000000 08:01 52949 /usr/lib/libungif.so.4.1.2 > > 468ff000-46900000 rw-p 00006000 08:01 52949 /usr/lib/libungif.so.4.1.2 > > > > 46900000-469fb000 rw-p 000c4000 00:00 0 > > 469fb000-46a00000 ---p 000e5000 00:00 0 > > 46a00000-46af4000 r-xp 00000000 08:02 1019 > /usr/local/lib/libmapscript.so > > 46af4000-46af8000 rw-p 000f3000 08:02 1019 > /usr/local/lib/libmapscript.so > > > > 46af8000-46afa000 rw-p 00000000 00:00 0 > > 46afa000-46b5b000 r-xp 00000000 08:02 1035 > > /usr/local/lib/libfreetype.so.6.3.10 > > 46b5b000-46b5e000 rw-p 00061000 08:02 1035 > > /usr/local/lib/libfreetype.so.6.3.10 > > > > 46b5e000-46b8e000 r-xp 00000000 08:01 210 /usr/lib/libpng.so.3.1.2.8 > > 46b8e000-46b8f000 rw-p 0002f000 08:01 210 /usr/lib/libpng.so.3.1.2.8 > > 46b8f000-46bc4000 r-xp 00000000 08:02 383 > /usr/local/lib/libproj.so.0.5.0 > > > > 46bc4000-46bc6000 rw-p 00035000 08:02 383 > /usr/local/lib/libproj.so.0.5.0 > > 46bc6000-46edd000 r-xp 00000000 08:02 4586 > > /usr/local/lib/libgdal.so.1.10.0 > > 46edd000-46f32000 rw-p 00316000 08:02 4586 > > /usr/local/lib/libgdal.so.1.10.0 > > > > 46f32000-46f47000 rw-p 00000000 00:00 0 > > 46f47000-46fe2000 r-xp 00000000 08:01 141965 /usr/lib/libstdc++.so.5.0.6 > > 46fe2000-46ff9000 rw-p 0009b000 08:01 141965 /usr/lib/libstdc++.so.5.0.6 > > 46ff9000-46ffe000 rw-p 00000000 00:00 0 > > > > 46ffe000-4700c000 r-xp 00000000 08:01 69690 > /usr/X11R6/lib/libXpm.so.4.11 > > 4700c000-4700d000 rw-p 0000e000 08:01 69690 > /usr/X11R6/lib/libXpm.so.4.11 > > 4700d000-470d3000 r-xp 00000000 08:01 69832 /usr/X11R6/lib/libX11.so.6.2 > > > > 470d3000-470d7000 rw-p 000c6000 08:01 69832 /usr/X11R6/lib/libX11.so.6.2 > > 470d7000-470fa000 r-xp 00000000 08:01 69699 > > /usr/X11R6/lib/libfontconfig.so.1.0.4 > > 470fa000-470fd000 rw-p 00022000 08:01 69699 > > /usr/X11R6/lib/libfontconfig.so.1.0.4 > > > > 470fd000-470fe000 rw-p 00000000 00:00 0 > > 470fe000-4712e000 r-xp 00000000 08:01 184 /usr/lib/libpng12.so.0.1.2.8 > > 4712e000-4712f000 rw-p 0002f000 08:01 184 /usr/lib/libpng12.so.0.1.2.8 > > 4712f000-4724f000 r-xp 00000000 08:02 4327 > > /usr/local/lib/libNCSEcw.so.0.0.0 > > > > 4724f000-47258000 rw-p 00120000 08:02 4327 > > /usr/local/lib/libNCSEcw.so.0.0.0 > > 47258000-47265000 rw-p 00000000 00:00 0 > > 47265000-47279000 r-xp 00000000 08:02 4339 > > /usr/local/lib/libNCSCnet.so.0.0.0 > > > > 47279000-4727a000 rw-p 00014000 08:02 4339 > > /usr/local/lib/libNCSCnet.so.0.0.0 > > 4727a000-47299000 r-xp 00000000 08:02 4334 > > /usr/local/lib/libNCSUtil.so.0.0.0 > > 47299000-4729b000 rw-p 0001e000 08:02 4334 > > /usr/local/lib/libNCSUtil.so.0.0.0 > > > > 4729b000-4729c000 rw-p 00000000 00:00 0 > > 4729c000-472e7000 r-xp 00000000 08:01 52823 /usr/lib/libtiff.so.3.7.1 > > 472e7000-472e9000 rw-p 0004a000 08:01 52823 /usr/lib/libtiff.so.3.7.1 > > > > --------------- S Y S T E M --------------- > > > > > > OS:Linux > > uname:Linux 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 > > libc:glibc 2.3.4 linuxthreads-0.10 (fixed stack) > > rlimit: STACK 2044k, CORE 0k, NPROC 7168, NOFILE 1024, AS infinity > > load average:3.44 2.84 > > 1.27 > > > > CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht > > > > Memory: 4k page, physical 904220k(52168k free), swap 2097136k(1994124k > free) > > > > vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for linux-x86, built > on > > Nov 10 2005 12:08:33 by java_re with gcc > > 3.2.1-7a (J2SE release) > > > > > > > > -- > > "Everything under the sun is in tune > > But the sun is eclipsed by the moon" > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhoward at AKIMEKA.COM Thu Sep 21 11:47:24 2006 From: mhoward at AKIMEKA.COM (Mark Howard) Date: Thu, 21 Sep 2006 08:47:24 -1000 Subject: PHP setup using tomcat In-Reply-To: A<4997F456680DAD4DA1E042C40C463611C33CEB@auper1ex002.au.aecomnet.com> Message-ID: Thanks for the reply Jacob. I'm using tomcat for my webapps 'cause we do a lot of servlet/jsp stuff in this environment. I've used mapserv in WIN/IIS a LONG time now - as I'd initially had problems getting it working in tomcat. Unfortunately to run IIS and tomcat, one needs to run port 80 and the other another port like 8080 (yea you can proxy).......... so I'd like to run everything in one environment. One good offshoot of this exercise is getting mapserv to run in tomcat -- our production server is UNIX (no IIS). I'm trying to get a test server up to run Ka-Map. My first e-mail detailed my progress. I've got the sample app (KA-EXPLORER!) running in a new context. I'm just not getting any services or maps. I've configured the config.php to use a tested mapserv map file. I've observed that the sample app calls "init.php" -- "http://my_server/ka-map/init.php" So yes - Ka-Map is php-based BUT it appears that php has to run in a web app container. I'd be interested in finding out how to test/debug this problem. Are you using Ka-Map now? Mark -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Delfos, Jacob Sent: Wednesday, September 20, 2006 5:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP setup using tomcat Mark, I don't believe there is a very simple solution to getting php to run on tomcat. I had to do it myself a while ago, and it seems the general agreement out there is that for best performance, you should run PHP using Apache webserver (on port 80), and then use a proxy/reverse proxy for running Tomcat on a different port, proxied through the normal Apache webserver. You can then run Tomcat on a different port, while running Apache on the normal port. This works for me, but I'm no expert on this. Is there any reason why you are using Tomcat? You mentioned it's for Ka-Map, but Ka-Map is php-based. Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mark Howard > Sent: 21 September 2006 11:14 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] PHP setup using tomcat > > I'm setting up a Tomcat server to use for ka-maps. I've got mapserv > working correctly in the C:\tomcat\webapps\ROOT\WEB-INF\cgi folder > (as http://my_server/cgi-bin/mapserv.exe). > > So this works fine: > http://my_server/cgi-bin/mapserv.exe?REQUEST=GetMap&VERSION=1. > 1.1&MAP=C: > \tomcat\webapps\ka-map\Akidemo\AkiDemo1.map&SRS=EPSG:4326&bbox > =-180,-90, > 180,90&width=200&height=200&layers=countries&format=image/PNG > > > I've got PHP installed and configured -- php.exe and php.ini are in > C:\WINDOWS\system32 and the php.ini extension_dir = > /ms4w/Apache/php/ext/ > This works on the command line - for example: > php quickmap.php > zzz.png > > makes a perfectly good png. > > Where quickmap.php has > // define variables > define( "MAPFILE", "C:/tomcat/webapps/ka-map/AkiDemo1.map" ); > define( "MODULE", "php_mapscript_48.dll" ); > > > However If I access the same php file in a web context, I just get the > php file streamed back. Obviously php is not running. I tried putting > php and all the dll's in the cgi folder (probably stupid - eh?). > > Do I need to download and install a php class library (jar) > to run as a > servlet - as in these instructions? -- > > http://blog.taragana.com/index.php/archive/running-php-5x-on-w > indows-usi > ng-tomcat-4x-or-5x/ > > > OR is there something simple I'm missing in the system configuration > (web.xml....)???? > > > TIA for any assistance!!!!! > > Mark > > > JMEWS II/Medical Situational Awareness (MSA) > Akimeka, LLC > 1305 North Holopono Street, Suite # 3 > Kihei, HI 96753 > Office (808) 442-7137 > Fax (808) 442-7140 > Cell (303) 829-1255 > mhoward at akimeka.com > From John.C.Cartwright at NOAA.GOV Thu Sep 21 13:24:27 2006 From: John.C.Cartwright at NOAA.GOV (John Cartwright) Date: Thu, 21 Sep 2006 14:24:27 -0600 Subject: Google Earth can now access OGC WMS services. (followup) Message-ID: -------------- next part -------------- An embedded message was scrubbed... From: John Cartwright Subject: Re: [UMN_MAPSERVER-USERS] Google Earth can now access OGC WMS services. (followup) Date: Thu, 21 Sep 2006 13:36:47 -0600 Size: 3770 URL: From ollerery at ENGR.ORST.EDU Thu Sep 21 13:32:04 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Thu, 21 Sep 2006 13:32:04 -0700 Subject: MapServer Spatial Extent In-Reply-To: Message-ID: I have a shapfile of the continents thats current longitude extent is from -180 to 180 and i need the extent to be from 0 to 360. I was able to change the projection in ArcCatalog and display the map there with the changed extent but when i copied this shapfile back to my MapServer, MapServer still displayed the shapfile from -180 to 180. and you can see that in the extent of the shapefile when ogrinfo is ran on it. but you can also see the projection information that ArcCatalog added that says there should be a false easting of -180 to correct for this. So does anyone know why MapServer is still displaying the layer with an extent from -180 to 180? I am using ESPG:4326 as my projection. # ogrinfo -al -so world_adm0.shp INFO: Open of `world_adm0.shp' using driver `ESRI Shapefile' successful. Layer name: world_adm0 Geometry: Polygon Feature Count: 209 Extent: (-180.000183, -90.000000) - (180.000000, 83.623032) Layer SRS WKT: PROJCS["WGS_360", GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",6378137.0,298.257223563]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Cylindrical_Equal_Area"], PARAMETER["False_Easting",-180.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",180.0], PARAMETER["Standard_Parallel_1",0.0], UNIT["Meter",1.0]] NAME: String (40.0) GMI_CNTRY: String (3.0) REGION: String (25.0) The map Layer looks like this: LAYER NAME "world" STATUS ON TYPE POLYGON #labelitem "name" DATA "world_adm0.shp" PROJECTION "init=epsg:4326" END METADATA wms_title "continent outline" wms_srs "EPSG:4326" END CLASS STYLE OUTLINECOLOR 200 200 200 COLOR 255 255 0 SYMBOL 0 END LABEL COLOR 255 255 0 TYPE TRUETYPE FONT times SIZE 9 POSITION AUTO PARTIALS FALSE BUFFER 3 END END END From warmerdam at POBOX.COM Thu Sep 21 13:50:26 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 21 Sep 2006 16:50:26 -0400 Subject: MapServer Spatial Extent In-Reply-To: <4512F6C4.9060100@engr.orst.edu> Message-ID: Ryan Ollerenshaw wrote: > Extent: (-180.000183, -90.000000) - (180.000000, 83.623032) > Layer SRS WKT: > PROJCS["WGS_360", > GEOGCS["GCS_WGS_1984", > DATUM["WGS_1984", > SPHEROID["WGS_1984",6378137.0,298.257223563]], > PRIMEM["Greenwich",0.0], > UNIT["Degree",0.0174532925199433]], > PROJECTION["Cylindrical_Equal_Area"], > PARAMETER["False_Easting",-180.0], > PARAMETER["False_Northing",0.0], > PARAMETER["Central_Meridian",180.0], > PARAMETER["Standard_Parallel_1",0.0], > UNIT["Meter",1.0]] Ryan, Could you email me the actual .prj file associated with this shapefile? The above WKT seems like gobblygook to me. It seems to be expressing projection parameters in decimal degrees when they ought to be in meters. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Jacob.Delfos at MAUNSELL.COM Thu Sep 21 16:12:10 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Fri, 22 Sep 2006 07:12:10 +0800 Subject: PHP setup using tomcat Message-ID: Hi Mark, Yes, I do use Ka-Map, but my setup is different. You'd normally configure IIS or Apache webserver to run PHP, which is quite straightforward, and then set up php_mapscript. Mapserv is independent from php_mapscript, which is the PHP extension that you will need to get running to use Ka-Map. I suppose there is an equivalent procedure for TomCat. So are you trying to get this to work for your IIS test-server (not your production server)? You can try to follow these instructions to run PHP on tomcat: http://wiki.apache.org/tomcat/UsingPhp Then make sure that it can access the php_mapscript.dll and its dependencies. Or you will have to run php on Apache webserver (not tomcat) or on IIS, and proxy one through the other (best put IIS or Apache in front, because they perform better than tomcat for normal serving). Hope this helps. Regards, Jacob > -----Original Message----- > From: Mark Howard [mailto:mhoward at akimeka.com] > Sent: 22 September 2006 02:47 > To: Delfos, Jacob; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] PHP setup using tomcat > > Thanks for the reply Jacob. I'm using tomcat for my webapps > 'cause we do > a lot of servlet/jsp stuff in this environment. I've used mapserv in > WIN/IIS a LONG time now - as I'd initially had problems getting it > working in tomcat. Unfortunately to run IIS and tomcat, one > needs to run > port 80 and the other another port like 8080 (yea you can > proxy).......... so I'd like to run everything in one environment. One > good offshoot of this exercise is getting mapserv to run in tomcat -- > our production server is UNIX (no IIS). I'm trying to get a > test server > up to run Ka-Map. My first e-mail detailed my progress. I've got the > sample app (KA-EXPLORER!) running in a new context. I'm just > not getting > any services or maps. I've configured the config.php to use a tested > mapserv map file. I've observed that the sample app calls > "init.php" -- > > "http://my_server/ka-map/init.php" > So yes - Ka-Map is php-based BUT it appears that php has to > run in a web > app container. I'd be interested in finding out how to test/debug this > problem. > Are you using Ka-Map now? > > Mark > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Delfos, Jacob > Sent: Wednesday, September 20, 2006 5:21 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] PHP setup using tomcat > > Mark, > > I don't believe there is a very simple solution to getting > php to run on > tomcat. I had to do it myself a while ago, and it seems the general > agreement out there is that for best performance, you should run PHP > using Apache webserver (on port 80), and then use a > proxy/reverse proxy > for running Tomcat on a different port, proxied through the normal > Apache webserver. You can then run Tomcat on a different port, while > running Apache on the normal port. This works for me, but I'm > no expert > on this. > > Is there any reason why you are using Tomcat? You mentioned it's for > Ka-Map, but Ka-Map is php-based. > > Regards, > > Jacob > > > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mark Howard > > Sent: 21 September 2006 11:14 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] PHP setup using tomcat > > > > I'm setting up a Tomcat server to use for ka-maps. I've got mapserv > > working correctly in the C:\tomcat\webapps\ROOT\WEB-INF\cgi folder > > (as http://my_server/cgi-bin/mapserv.exe). > > > > So this works fine: > > http://my_server/cgi-bin/mapserv.exe?REQUEST=GetMap&VERSION=1. > > 1.1&MAP=C: > > \tomcat\webapps\ka-map\Akidemo\AkiDemo1.map&SRS=EPSG:4326&bbox > > =-180,-90, > > 180,90&width=200&height=200&layers=countries&format=image/PNG > > > > > > I've got PHP installed and configured -- php.exe and php.ini are in > > C:\WINDOWS\system32 and the php.ini extension_dir = > > /ms4w/Apache/php/ext/ > > This works on the command line - for example: > > php quickmap.php > zzz.png > > > > makes a perfectly good png. > > > > Where quickmap.php has > > // define variables > > define( "MAPFILE", "C:/tomcat/webapps/ka-map/AkiDemo1.map" ); > > define( "MODULE", "php_mapscript_48.dll" ); > > > > > > However If I access the same php file in a web context, I > just get the > > php file streamed back. Obviously php is not running. I > tried putting > > php and all the dll's in the cgi folder (probably stupid - eh?). > > > > Do I need to download and install a php class library (jar) > > to run as a > > servlet - as in these instructions? -- > > > > http://blog.taragana.com/index.php/archive/running-php-5x-on-w > > indows-usi > > ng-tomcat-4x-or-5x/ > > > > > > OR is there something simple I'm missing in the system configuration > > (web.xml....)???? > > > > > > TIA for any assistance!!!!! > > > > Mark > > > > > > JMEWS II/Medical Situational Awareness (MSA) > > Akimeka, LLC > > 1305 North Holopono Street, Suite # 3 > > Kihei, HI 96753 > > Office (808) 442-7137 > > Fax (808) 442-7140 > > Cell (303) 829-1255 > > mhoward at akimeka.com > > > From romoloman at HOTMAIL.COM Fri Sep 22 00:01:09 2006 From: romoloman at HOTMAIL.COM (Romolo Manfredini) Date: Fri, 22 Sep 2006 09:01:09 +0200 Subject: PHP setup using tomcat Message-ID: ----- Original Message ----- .... Subject: [UMN_MAPSERVER-USERS] PHP setup using tomcat Do I need to download and install a php class library (jar) to run as a servlet - as in these instructions? -- OR is there something simple I'm missing in the system configuration (web.xml....)???? ... ----- End of Original Message ----- Probably from a performance point of view it would be better to run apache httpd server with php installed as module, then to run tomcat on the same machine using the coyote connector. Furthermore tomcat by default has troubles when running on port 80 using an unpriviledged user due to restrictions of the JRE so the coyote solution is commonly the most used one to override this problem, as tomcat runs on 8080 but apache handles jsp request on 80 using the connector. Romolo. From Artur.Skalski at ACXIOM.COM Fri Sep 22 01:29:03 2006 From: Artur.Skalski at ACXIOM.COM (Skalski Artur - askals) Date: Fri, 22 Sep 2006 10:29:03 +0200 Subject: looking for GIS specialist, location: Poland Message-ID: Hi folks, We're lokking for someone who knows a bit about GIS and is quite familliar with Mapserver and all the things arround it (like: php, javasript, html, css) all the details are at this address: http://www.jobpilot.pl/misc/adframe/jobpilot/7d6/24/1697013.htm it's in Polish ;) - sorry for that sorry all for posting it to this forum, but in my opinion this is the best place to find a man that I need. Best Regards Artur Skalski Acxiom Polska Sp. z o.o ul. Domaniewska 41 02-672 Warszawa Tel. +48 (0) 22 606 11 27 Fax. +48 (0) 22 606 11 28 *************************************************************************** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. **************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovidio at PLANETEK.IT Fri Sep 22 02:46:00 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Fri, 22 Sep 2006 11:46:00 +0200 Subject: Getfeatureinfo : link feature_id to external database Message-ID: Hi list ! How can I do to display into GetFeatureInfo Response metadata stored in external database linking by feature_id field from my layer (SHP file) in the map file ? Thank you. ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From visualj at SOHU.COM Fri Sep 22 02:51:43 2006 From: visualj at SOHU.COM (sch) Date: Fri, 22 Sep 2006 02:51:43 -0700 Subject: querybypoint using c++ In-Reply-To: <6348169.post@talk.nabble.com> Message-ID: sch wrote: > > hi, > in my project, i want to query road name from shape file using c++ and > mapserver 4.8.4's lib, but i get Segment fault error every time, does > anybody have an example? > the code i used is here: > > int main() > { > printf("main function.\n"); > > mapObj *map = NULL; > char *mapfile = "/home/www/mapserver/gmap/htdocs/china_pg.map"; > > map = msLoadMap(mapfile, NULL); > if(!map) { > printf("msLoadMap error.\n"); > msWriteError(stderr); > exit(0); > } > > int status = msMapSetExtent(map, 73.81367424697862, > 17.620038368633608, 134.3885088548217, 55.14595792129112); > pointObj point = {111.12, 34.76}; > > msQueryByPoint(map, -1, MS_SINGLE, point, -1); > > msFreeMap(map); > msCleanup(); > > return 1; > } > > by the way, the os i used is Redhat3.0. when i use php-mapscript to query, > it's ok. > -- View this message in context: http://www.nabble.com/querybypoint-using-c%2B%2B-tf2285326.html#a6444166 Sent from the Mapserver - User mailing list archive at Nabble.com. From toni at SIGTE.UDG.ES Fri Sep 22 03:28:29 2006 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Fri, 22 Sep 2006 12:28:29 +0200 Subject: profile in mapserver In-Reply-To: <45118789.8070808@lparchaeology.com> Message-ID: hi all, Can Mapserver create a profile (z -coordenate) from a shape file? Is that possible? From beyhan at DEPREM.GOV.TR Fri Sep 22 04:21:23 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Fri, 22 Sep 2006 14:21:23 +0300 Subject: PHPMapScript and OGR In-Reply-To: <4513BACD.9030409@sigte.udg.es> Message-ID: Dear Friends; I'm trying to draw a point on the map by using ogr connection. I have already achieved it by using mapserver and OGR. But Now I'm reading latitude and longitude of the poimt from mysql by using php. By following $iladi=$_POST['iller']; $ilceadi=$_POST['ilceler']; $koyadi=$_POST['koyler']; $query = "SELECT * FROM $db_tb WHERE city LIKE '$iladi' AND district LIKE '$ilceadi' AND village LIKE '$koyadi'"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); $num = mysql_numrows($result); $i=0; while ($i < $num) { $koyadi = mysql_result($result,$i,"village"); $ilceadi = mysql_result($result,$i,"district"); $iladi = mysql_result($result,$i,"city"); $zone = mysql_result($result,$i,"zone"); $lon = mysql_result($result,$i,"lon"); $lat = mysql_result($result,$i,"lat"); ++$i; } and I draw map by followings $map_path="/var/www/html/zone/"; $map = ms_newMapObj($map_path."zone.map"); $map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); $ref = $map->drawreferencemap(); $legend=$map->drawLegend(); $image=$map->draw(); thats ok. But I would like to draw just one point on the map by using result value of mysql query in php. I'm not sure there is some easy way may be exist in PHPmapscript . May be by using querymap or etc. But I have try it by using ogr LAYER NAME sel_loc CONNECTIONTYPE OGR CONNECTION ' MYSQL:bina,user=root,password=mysql_123,host=localhost,port=3306,tables=zoneson SELECT lat,lon,village from zoneson where village = "%koyadi%" and city = "%iladi%" and district = "%ilceadi%" wkbPoint ' DATA sel_loc STATUS default TYPE POINT CLASS NAME "koy merkezis" SYMBOL "cpoint" SIZE 15 COLOR 255 255 0 END END but the By using above codes I have sent data from html code.But I could'n do with PHPmapScript please help me what I'm doing wrong... Or are there any easy way with phpMapScript for do that. Thank you very much. Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From mateusz at LOSKOT.NET Fri Sep 22 03:27:55 2006 From: mateusz at LOSKOT.NET (Mateusz Loskot) Date: Fri, 22 Sep 2006 12:27:55 +0200 Subject: looking for GIS specialist, location: Poland In-Reply-To: <7D1D1DD803D83641A6DEA6F9F428DEE285CF77@warmsx02.Corp.Acxiom.net> Message-ID: Skalski Artur - askals wrote: > Hi folks, > > We're lokking for someone who knows a bit about GIS and is quite > familliar with Mapserver and all the things arround it (like: php, > javasript, html, css) Artur, There is nothing about PHP, JS, etc. in the job offer below. > all the details are at this address: > http://www.jobpilot.pl/misc/adframe/jobpilot/7d6/24/1697013.htm > > it's in Polish ;) - sorry for that It's not very long to translate to english :-) > sorry all for posting it to this forum, but in my opinion this is the > best place to find a man that I need. I'd also suggest you to try to ask on the pl.comp.gis newsgroup. There are a few people working with MapSever, so may be they will be interested. Cheers -- Mateusz Loskot http://mateusz.loskot.net From luca.casagrande at GMAIL.COM Fri Sep 22 04:46:38 2006 From: luca.casagrande at GMAIL.COM (Luca Casagrande) Date: Fri, 22 Sep 2006 13:46:38 +0200 Subject: Query builder Message-ID: Hi to all! do you know if there are project that uses a query builder for SHP files? Thanks Luca -- "Chiunque pu_ simpatizzare col dolore di un amico, ma solo chi ha un animo nobile riesce a simpatizzare col successo di un amico (Oscar Wilde)" LINUX User #411601 GENTOO-GIS Development Team jabber: casagrande at jabber.linux.it From luca.casagrande at GMAIL.COM Fri Sep 22 05:39:23 2006 From: luca.casagrande at GMAIL.COM (Luca Casagrande) Date: Fri, 22 Sep 2006 14:39:23 +0200 Subject: [UMN_MAPSERVER-USERS] Query builder In-Reply-To: <20060922123246.28387.qmail@web26713.mail.ukl.yahoo.com> Message-ID: On Fri, 22 Sep 2006 14:32:46 +0200 (CEST) werner leyh wrote: > yes, qgis, but even more interesting for Postgis layers.. > > Luca Casagrande a ?crit : > Hi to all! > do you know if there are project that uses a query builder for SHP files? > > Thanks > Luca > Thanks for your answer, but i mean in a Mapserver application ;) Luca -- "Chiunque pu_ simpatizzare col dolore di un amico, ma solo chi ha un animo nobile riesce a simpatizzare col successo di un amico (Oscar Wilde)" LINUX User #411601 GENTOO-GIS Development Team jabber: casagrande at jabber.linux.it From werner_leyh at YAHOO.FR Fri Sep 22 05:32:46 2006 From: werner_leyh at YAHOO.FR (werner leyh) Date: Fri, 22 Sep 2006 14:32:46 +0200 Subject: [UMN_MAPSERVER-USERS] Query builder In-Reply-To: <20060922134638.201d10da@gekomachine.casa> Message-ID: yes, qgis, but even more interesting for Postgis layers.. Luca Casagrande a ?crit : Hi to all! do you know if there are project that uses a query builder for SHP files? Thanks Luca -- "Chiunque pu_ simpatizzare col dolore di un amico, ma solo chi ha un animo nobile riesce a simpatizzare col successo di un amico (Oscar Wilde)" LINUX User #411601 GENTOO-GIS Development Team jabber: casagrande at jabber.linux.it --------------------------------- D?couvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/R?ponses pour partager vos connaissances, vos opinions et vos exp?riences. Cliquez ici. -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Fri Sep 22 06:38:18 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 22 Sep 2006 15:38:18 +0200 Subject: Java Mapscript In-Reply-To: Message-ID: Frederico, are you sharing the same map object among threads i.e. you have one mapObj per web application that is shared between all users or you reuse the mapserver objects across http requests? The recommended (and so far the only known to work in webapps) is to create a new mapObj with every request. The overhead is unnoticeable. Umberto On 9/21/06, Frederico Lucca wrote: > Umberto, > > Here are the information that I can give. > > Linux porto 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 unknown unknown > GNU/Linux > > gcc (GCC) 3.3.4 > > MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > java version "1.5.0_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) > > SWIG Version 1.3.29 > Compiled with g++ [i686-pc-linux-gnu] > > gdal 1.3.2 > > proj 4.4.9 > > tomcat 5.5.9 > > I configure --with-threads --with-ogr --with-gdal --with-proj > > The code is simple like open, setExtent, draw > > Best Regards, > > Fred > > > On 9/21/06, Umberto Nicoletti wrote: > > On 9/21/06, Frederico Lucca wrote: > > > Hello list, > > > > > > I'm having trouble with mapserver and java mapscript, my tomcat broke > with > > > this error after some requests. > > > Could someone help me? > > > > I would, but I need more details. There is a java mapscript doc on > > mapserver web site that has a section exactly about what you need to > > tell us to help us help you ;-). > > > > Umberto > > > > > > > > Best Regards, > > > > > > Fred > > > > > > # > > > # An unexpected error has been detected by HotSpot Virtual Machine: > > > > > > # > > > # SIGSEGV (0xb) at pc=0x400eb3fd, pid=17455, tid=376856 > > > # > > > # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing) > > > # Problematic frame: > > > # C [libc.so.6+0x683fd] mempcpy+0x2d > > > # > > > > > > > > > --------------- T H R E A D --------------- > > > > > > Current thread (0x08204c28): JavaThread "http-8080-Processor15" daemon > > > [_thread_in_native, id=17480] > > > > > > Stack: [0xbca01000,0xbcc00000), sp=0xbcbfe21c, free space=2036k > > > > > > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > C=native > > > code) > > > C [libc.so.6+0x683fd] mempcpy+0x2d > > > C [libc.so.6+0x5dba3] > > > C [libc.so.6+0x5ee48] _IO_sgetn+0x28 > > > C [ libc.so.6+0x539f4] _IO_fread+0x74 > > > > > > C [libmapscript.so+0x545d5] msSHPOpen+0x425 > > > C [libmapscript.so+0x562a9] msSHPOpenFile+0x59 > > > C [libmapscript.so+0x57de1] msShapeFileLayerOpen+0x91 > > > C [ libmapscript.so+0x80d11] msLayerOpen+0x71 > > > C [libmapscript.so+0x8c3f6 > > > ] msDrawVectorLayer+0xe6 > > > C [libmapscript.so+0x8c155] msDrawLayer+0x95 > > > C [libmapscript.so+0x8b9de] msDrawMap+0x42e > > > C [ libmapscript.so+0x2c59c] > > > C [libmapscript.so+0x3e825] > > > > Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw+0x35 > > > > > > j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > > > j > > > edu.umn.gis.mapscript.mapObj.draw > ()Ledu/umn/gis/mapscript/imageObj;+4 > > > j > > > > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 > > > j TileServer.exportExact > > > > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > > > j > > > > TileServer.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > > > j > > > > TileServer.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > > > > > j > > > > javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > > > j > > > > javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > > > > > j > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > > > j > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > > > > > j > > > > org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > > > j > > > > org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > > > > > j > > > org.apache.catalina.core.StandardHostValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > > > j > > > > org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > > > > > j > > > > org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > > > j > > > org.apache.catalina.connector.CoyoteAdapter.service > (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > > > > > j > > > > org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > > > j > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection > (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > > > > > j > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > > > j > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V+102 > > > > > > j > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 > > > j java.lang.Thread.run ()V+11 > > > v ~StubRoutines::call_stub > > > V [libjvm.so+0x174fec] > > > V [libjvm.so+0x2821f8] > > > V [libjvm.so+0x174845] > > > > > > V [libjvm.so+0x1748de] > > > V [libjvm.so+0x1ebee5] > > > V [libjvm.so+0x2ea563 ] > > > V [libjvm.so+0x282d08] > > > C [libpthread.so.0+0x654e] > > > > > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > > > > > > j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > > > j > > > > edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 > > > j > > > > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 > > > j TileServer.exportExact > > > > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > > > j > > > > TileServer.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > > > j > > > > TileServer.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > > > > > j > > > > javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > > > j > > > > javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > > > > > j > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > > > j > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > > > > > j > > > > org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > > > j > > > > org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > > > > > j > > > org.apache.catalina.core.StandardHostValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > > > j > > > > org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > > > > > j > > > > org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > > > j > > > org.apache.catalina.connector.CoyoteAdapter.service > (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > > > > > j > > > > org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > > > j > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection > (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > > > > > j > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > > > j > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V+102 > > > > > > j > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 > > > j java.lang.Thread.run ()V+11 > > > v ~StubRoutines::call_stub > > > > > > 40000000-40015000 r-xp 00000000 08:01 12210 /lib/ld- > > > 2.3.4.so > > > 40015000-40017000 rw-p 00014000 08:01 12210 /lib/ld- 2.3.4.so > > > 40017000-40018000 r--p 00000000 00:00 0 > > > 40018000-40019000 rwxp 00001000 00:00 0 > > > 40019000-4001f000 r-xp 00000000 08:01 144145 > > > > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > > > > > > 4001f000-40020000 rw-p 00006000 08:01 144145 > > > > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > > > 40020000-40027000 r-xp 00000000 08:01 12445 /lib/libnss_compat- 2.3.4.so > > > > > > 40027000-40029000 rw-p 00006000 08:01 12445 /lib/libnss_compat-2.3.4.so > > > 40029000-4002b000 r--s 00000000 08:01 149512 > > > /usr/lib/jdk1.5.0_06/jre/lib/ext/dnsns.jar > > > 4002b000-4002c000 rw-p 00000000 00:00 0 > > > > > > 4002c000-4003a000 r-xp 00000000 08:01 12452 /lib/libpthread-0.10.so > > > 4003a000-4003c000 rw-p 0000d000 08:01 12452 /lib/libpthread- 0.10.so > > > 4003c000-4007e000 rw-p 00000000 00:00 0 > > > > > > 4007e000-40080000 r-xp 00000000 08:01 12441 /lib/libdl-2.3.4.so > > > 40080000-40082000 rw-p 00001000 08:01 12441 /lib/libdl- 2.3.4.so > > > 40082000-40083000 rw-p 00000000 00:00 0 > > > > > > 40083000-40199000 r-xp 00000000 08:01 12438 /lib/libc-2.3.4.so > > > 40199000-4019a000 ---p 00116000 08:01 12438 /lib/libc- 2.3.4.so > > > 4019a000-4019b000 r--p 00116000 08:01 12438 /lib/libc- > > > 2.3.4.so > > > 4019b000-4019e000 rw-p 00117000 08:01 12438 /lib/libc- 2.3.4.so > > > 46862000-46863000 r-xp 00000000 08:01 12419 /usr/lib/gconv/ISO8859-1.so > > > > > > 46863000-46864000 ---p 00001000 08:01 12419 /usr/lib/gconv/ISO8859-1.so > > > 46864000-46866000 rw-p 00001000 08:01 12419 /usr/lib/gconv/ISO8859- 1.so > > > 46874000-4688f000 r-xp 00000000 08:02 521 /usr/local/lib/libgd.so.2.0.0 > > > > > > 4688f000-468af000 rw-p 0001a000 08:02 521 /usr/local/lib/libgd.so.2.0.0 > > > 468af000-468c3000 rw-p 00000000 00:00 0 > > > 468c3000-468df000 r-xp 00000000 08:01 201 /usr/lib/libjpeg.so.62.0.0 > > > 468df000-468e0000 rw-p 0001b000 08:01 201 /usr/lib/libjpeg.so.62.0.0 > > > > > > 468e0000-468f0000 r-xp 00000000 08:01 59294 /usr/lib/libz.so.1.2.2 > > > 468f0000-468f1000 rw-p 0000f000 08:01 59294 /usr/lib/libz.so.1.2.2 > > > 468f1000-468f8000 r-xp 00000000 08:01 194 /usr/lib/libgcc_s.so.1 > > > > > > 468f8000-468f9000 rw-p 00007000 08:01 194 /usr/lib/libgcc_s.so.1 > > > 468f9000-468ff000 r-xp 00000000 08:01 52949 /usr/lib/libungif.so.4.1.2 > > > 468ff000-46900000 rw-p 00006000 08:01 52949 /usr/lib/libungif.so.4.1.2 > > > > > > 46900000-469fb000 rw-p 000c4000 00:00 0 > > > 469fb000-46a00000 ---p 000e5000 00:00 0 > > > 46a00000-46af4000 r-xp 00000000 08:02 1019 > /usr/local/lib/libmapscript.so > > > 46af4000-46af8000 rw-p 000f3000 08:02 1019 > /usr/local/lib/libmapscript.so > > > > > > 46af8000-46afa000 rw-p 00000000 00:00 0 > > > 46afa000-46b5b000 r-xp 00000000 08:02 1035 > > > /usr/local/lib/libfreetype.so.6.3.10 > > > 46b5b000-46b5e000 rw-p 00061000 08:02 1035 > > > /usr/local/lib/libfreetype.so.6.3.10 > > > > > > 46b5e000-46b8e000 r-xp 00000000 08:01 210 /usr/lib/libpng.so.3.1.2.8 > > > 46b8e000-46b8f000 rw-p 0002f000 08:01 210 /usr/lib/libpng.so.3.1.2.8 > > > 46b8f000-46bc4000 r-xp 00000000 08:02 383 > /usr/local/lib/libproj.so.0.5.0 > > > > > > 46bc4000-46bc6000 rw-p 00035000 08:02 383 > /usr/local/lib/libproj.so.0.5.0 > > > 46bc6000-46edd000 r-xp 00000000 08:02 4586 > > > /usr/local/lib/libgdal.so.1.10.0 > > > 46edd000-46f32000 rw-p 00316000 08:02 4586 > > > /usr/local/lib/libgdal.so.1.10.0 > > > > > > 46f32000-46f47000 rw-p 00000000 00:00 0 > > > 46f47000-46fe2000 r-xp 00000000 08:01 141965 /usr/lib/libstdc++.so.5.0.6 > > > 46fe2000-46ff9000 rw-p 0009b000 08:01 141965 /usr/lib/libstdc++.so.5.0.6 > > > 46ff9000-46ffe000 rw-p 00000000 00:00 0 > > > > > > 46ffe000-4700c000 r-xp 00000000 08:01 69690 > /usr/X11R6/lib/libXpm.so.4.11 > > > 4700c000-4700d000 rw-p 0000e000 08:01 69690 > /usr/X11R6/lib/libXpm.so.4.11 > > > 4700d000-470d3000 r-xp 00000000 08:01 69832 /usr/X11R6/lib/libX11.so.6.2 > > > > > > 470d3000-470d7000 rw-p 000c6000 08:01 69832 /usr/X11R6/lib/libX11.so.6.2 > > > 470d7000-470fa000 r-xp 00000000 08:01 69699 > > > /usr/X11R6/lib/libfontconfig.so.1.0.4 > > > 470fa000-470fd000 rw-p 00022000 08:01 69699 > > > /usr/X11R6/lib/libfontconfig.so.1.0.4 > > > > > > 470fd000-470fe000 rw-p 00000000 00:00 0 > > > 470fe000-4712e000 r-xp 00000000 08:01 184 /usr/lib/libpng12.so.0.1.2.8 > > > 4712e000-4712f000 rw-p 0002f000 08:01 184 /usr/lib/libpng12.so.0.1.2.8 > > > 4712f000-4724f000 r-xp 00000000 08:02 4327 > > > /usr/local/lib/libNCSEcw.so.0.0.0 > > > > > > 4724f000-47258000 rw-p 00120000 08:02 4327 > > > /usr/local/lib/libNCSEcw.so.0.0.0 > > > 47258000-47265000 rw-p 00000000 00:00 0 > > > 47265000-47279000 r-xp 00000000 08:02 4339 > > > /usr/local/lib/libNCSCnet.so.0.0.0 > > > > > > 47279000-4727a000 rw-p 00014000 08:02 4339 > > > /usr/local/lib/libNCSCnet.so.0.0.0 > > > 4727a000-47299000 r-xp 00000000 08:02 4334 > > > /usr/local/lib/libNCSUtil.so.0.0.0 > > > 47299000-4729b000 rw-p 0001e000 08:02 4334 > > > /usr/local/lib/libNCSUtil.so.0.0.0 > > > > > > 4729b000-4729c000 rw-p 00000000 00:00 0 > > > 4729c000-472e7000 r-xp 00000000 08:01 52823 /usr/lib/libtiff.so.3.7.1 > > > 472e7000-472e9000 rw-p 0004a000 08:01 52823 /usr/lib/libtiff.so.3.7.1 > > > > > > --------------- S Y S T E M --------------- > > > > > > > > > OS:Linux > > > uname:Linux 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 > > > libc:glibc 2.3.4 linuxthreads-0.10 (fixed stack) > > > rlimit: STACK 2044k, CORE 0k, NPROC 7168, NOFILE 1024, AS infinity > > > load average:3.44 2.84 > > > 1.27 > > > > > > CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht > > > > > > Memory: 4k page, physical 904220k(52168k free), swap 2097136k(1994124k > free) > > > > > > vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for linux-x86, built > on > > > Nov 10 2005 12:08:33 by java_re with gcc > > > 3.2.1-7a (J2SE release) > > > > > > > > > > > > -- > > > "Everything under the sun is in tune > > > But the sun is eclipsed by the moon" > > > > > > -- > > "Everything under the sun is in tune > But the sun is eclipsed by the moon" From tfagin at COORDINATESOLUTIONS.COM Fri Sep 22 06:49:28 2006 From: tfagin at COORDINATESOLUTIONS.COM (Todd Fagin) Date: Fri, 22 Sep 2006 08:49:28 -0500 Subject: WMS and C# Mapscript Message-ID: Greetings list, We are using the following to access data from a WMS. It works fine in a straight map file, but does not work with a C# mapscript. The error message simply states "System.ApplicationException was unhandled. Message="No such file or directory". Source="mapscript_csharp"" Any suggestions would be greatly appreciated. LAYER NAME "wms_2003" GROUP "Imagery" TYPE RASTER STATUS ON CONNECTION "http://maps.scigis.com/wmsconnector/com.esri.wms.Esrimap/WMS_COLOR_DOQQ?" CONNECTIONTYPE WMS TRANSPARENCY 60 METADATA "wms_srs" "EPSG:102003" "wms_name" "1" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_title" "2003 Aerial Photos" "NoID" "T" legend_order "4" END END Todd Fagin Coordinate Solutions, Inc. 501 N.E. 15th St. Oklahoma City, OK 73104 405.246.9396 (Voice) 405.227.0781 (Fax) -------------- next part -------------- An HTML attachment was scrubbed... URL: From tkirstine at JDBARNES.COM Fri Sep 22 06:49:52 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine) Date: Fri, 22 Sep 2006 09:49:52 -0400 Subject: mogrify and GeoTiff Message-ID: Hi all, I would like to colour reduce some geotiffs using mogrify however when running the command all geo-reference header info is stripped. Does anyone off hand know the command option to keep the coord info? Travis From bartvde at OSGIS.NL Fri Sep 22 06:59:10 2006 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 22 Sep 2006 15:59:10 +0200 Subject: [UMN_MAPSERVER-USERS] Query builder In-Reply-To: <20060922143923.405c27d1@gekomachine.casa> Message-ID: Chameleon ( http://chameleon.maptools.org/) has a querybuilder (ExpressionBuilder widget) which can work on WMS layers, and ofcourse Mapserver can serve out shapefiles as WMS. Best regards, Bart Luca Casagrande schreef: > On Fri, 22 Sep 2006 14:32:46 +0200 (CEST) > werner leyh wrote: > > >> yes, qgis, but even more interesting for Postgis layers.. >> >> Luca Casagrande a ?crit : >> Hi to all! >> do you know if there are project that uses a query builder for SHP files? >> >> Thanks >> Luca >> >> > Thanks for your answer, but i mean in a Mapserver application ;) > > Luca > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From warmerdam at POBOX.COM Fri Sep 22 07:13:57 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 22 Sep 2006 10:13:57 -0400 Subject: mogrify and GeoTiff In-Reply-To: Message-ID: Travis Kirstine wrote: > Hi all, > I would like to colour reduce some geotiffs using mogrify however when > running the command all geo-reference header info is stripped. Does anyone > off hand know the command option to keep the coord info? Travis, You can use the listgeo utility to dump the geotiff tags to a text file from the original file. Then use geotifcp to "reapply" the geotiff tags. I think this is covered in the GeoTIFF FAQ at: http://geotiff.maptools.org/faq.html#preserve_metadata The FWTools suite includes the listgeo and geotifcp programs if you don't already have them handy. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From warmerdam at POBOX.COM Fri Sep 22 07:23:13 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 22 Sep 2006 10:23:13 -0400 Subject: BAG File Format Support In-Reply-To: Message-ID: Stephane Lessard wrote: > Hi list, > > Anyone knows if there are plans to support the Bathymetric Attributed > Grid (BAG) file format? This format is used for gridded bathymetry data, > and is part of the Open Navigation Surface project. > > _http://www.opennavsurf.org/background.html_ > > They provide their source code and API... If someone is interested, we > might be able to provide some fundings... Stephane, I downloaded the toolkit and docs, did a very quick skim and came to the conclusion that the BAG files are HDF files. To an HDF enabled GDAL the file has to apparent subdatasets, one with the depth and one with the confidence values. There was no recognised geolocation information in the file, and the vast majority of the metadata included was disregarded by GDAL. So, I think we could get pretty good BAG support by adding a bit of "custom product" logic in the existing HDF driver. We have had to do this for lots of other HDF products too. But even as things stand you can already read the raw depth and confidence arrays using GDAL. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From fredlucca at GMAIL.COM Fri Sep 22 07:23:44 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Fri, 22 Sep 2006 11:23:44 -0300 Subject: Java Mapscript In-Reply-To: <75b4b93e0609220638y619aa6h3c213f20dde3572@mail.gmail.com> Message-ID: Umberto, I think that I'm creating a map for each request. It's something like... mapObj map = new mapObj("/usr/local/mapserver/mapfile.map"); map.setSize(w,h); map.setExtent(rectObj); imageObj imgObj = map.draw(); imgObj.save(path, map); Is that right? Best Regards, Fred On 9/22/06, Umberto Nicoletti wrote: > > Frederico, > are you sharing the same map object among threads i.e. you have one > mapObj per web application that is shared between all users or you > reuse the mapserver objects across http requests? > > The recommended (and so far the only known to work in webapps) is to > create a new mapObj with every request. The overhead is unnoticeable. > > Umberto > > > > On 9/21/06, Frederico Lucca wrote: > > Umberto, > > > > Here are the information that I can give. > > > > Linux porto 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 unknown unknown > > GNU/Linux > > > > gcc (GCC) 3.3.4 > > > > MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > > SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > java version "1.5.0_06" > > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) > > > > SWIG Version 1.3.29 > > Compiled with g++ [i686-pc-linux-gnu] > > > > gdal 1.3.2 > > > > proj 4.4.9 > > > > tomcat 5.5.9 > > > > I configure --with-threads --with-ogr --with-gdal --with-proj > > > > The code is simple like open, setExtent, draw > > > > Best Regards, > > > > Fred > > > > > > On 9/21/06, Umberto Nicoletti wrote: > > > On 9/21/06, Frederico Lucca wrote: > > > > Hello list, > > > > > > > > I'm having trouble with mapserver and java mapscript, my tomcat > broke > > with > > > > this error after some requests. > > > > Could someone help me? > > > > > > I would, but I need more details. There is a java mapscript doc on > > > mapserver web site that has a section exactly about what you need to > > > tell us to help us help you ;-). > > > > > > Umberto > > > > > > > > > > > Best Regards, > > > > > > > > Fred > > > > > > > > # > > > > # An unexpected error has been detected by HotSpot Virtual Machine: > > > > > > > > # > > > > # SIGSEGV (0xb) at pc=0x400eb3fd, pid=17455, tid=376856 > > > > # > > > > # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, > sharing) > > > > # Problematic frame: > > > > # C [libc.so.6+0x683fd] mempcpy+0x2d > > > > # > > > > > > > > > > > > --------------- T H R E A D --------------- > > > > > > > > Current thread (0x08204c28): JavaThread "http-8080-Processor15" > daemon > > > > [_thread_in_native, id=17480] > > > > > > > > Stack: [0xbca01000,0xbcc00000), sp=0xbcbfe21c, free space=2036k > > > > > > > > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > > C=native > > > > code) > > > > C [libc.so.6+0x683fd] mempcpy+0x2d > > > > C [libc.so.6+0x5dba3] > > > > C [libc.so.6+0x5ee48] _IO_sgetn+0x28 > > > > C [ libc.so.6+0x539f4] _IO_fread+0x74 > > > > > > > > C [libmapscript.so+0x545d5] msSHPOpen+0x425 > > > > C [libmapscript.so+0x562a9] msSHPOpenFile+0x59 > > > > C [libmapscript.so+0x57de1] msShapeFileLayerOpen+0x91 > > > > C [ libmapscript.so+0x80d11] msLayerOpen+0x71 > > > > C [libmapscript.so+0x8c3f6 > > > > ] msDrawVectorLayer+0xe6 > > > > C [libmapscript.so+0x8c155] msDrawLayer+0x95 > > > > C [libmapscript.so+0x8b9de] msDrawMap+0x42e > > > > C [ libmapscript.so+0x2c59c] > > > > C [libmapscript.so+0x3e825] > > > > > > Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw+0x35 > > > > > > > > j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > > > > j > > > > edu.umn.gis.mapscript.mapObj.draw > > ()Ledu/umn/gis/mapscript/imageObj;+4 > > > > j > > > > > > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 > > > > j TileServer.exportExact > > > > > > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > > > > j > > > > > > TileServer.processRequest > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > > > > j > > > > > > TileServer.doPost > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > > > > > > > j > > > > > > javax.servlet.http.HttpServlet.service > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > > > > j > > > > > > javax.servlet.http.HttpServlet.service > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > > > > > > > j > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > > > > j > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter > > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > > > > > > > j > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > > > > j > > > > > > org.apache.catalina.core.StandardContextValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > > > > > > > j > > > > org.apache.catalina.core.StandardHostValve.invoke > > > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > > > > j > > > > > > org.apache.catalina.valves.ErrorReportValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > > > > > > > j > > > > > > org.apache.catalina.core.StandardEngineValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > > > > j > > > > org.apache.catalina.connector.CoyoteAdapter.service > > (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > > > > > > > j > > > > > > org.apache.coyote.http11.Http11Processor.process > (Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > > > > j > > > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection > > (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > > > > > > > j > > > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket > (Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > > > > j > > > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt > ([Ljava/lang/Object;)V+102 > > > > > > > > j > > > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 > > > > j java.lang.Thread.run ()V+11 > > > > v ~StubRoutines::call_stub > > > > V [libjvm.so+0x174fec] > > > > V [libjvm.so+0x2821f8] > > > > V [libjvm.so+0x174845] > > > > > > > > V [libjvm.so+0x1748de] > > > > V [libjvm.so+0x1ebee5] > > > > V [libjvm.so+0x2ea563 ] > > > > V [libjvm.so+0x282d08] > > > > C [libpthread.so.0+0x654e] > > > > > > > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > > > > > > > > j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > > > > j > > > > > > edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 > > > > j > > > > > > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 > > > > j TileServer.exportExact > > > > > > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > > > > j > > > > > > TileServer.processRequest > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > > > > j > > > > > > TileServer.doPost > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > > > > > > > j > > > > > > javax.servlet.http.HttpServlet.service > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > > > > j > > > > > > javax.servlet.http.HttpServlet.service > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > > > > > > > j > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > > > > j > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter > > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > > > > > > > j > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > > > > j > > > > > > org.apache.catalina.core.StandardContextValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > > > > > > > j > > > > org.apache.catalina.core.StandardHostValve.invoke > > > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > > > > j > > > > > > org.apache.catalina.valves.ErrorReportValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > > > > > > > j > > > > > > org.apache.catalina.core.StandardEngineValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > > > > j > > > > org.apache.catalina.connector.CoyoteAdapter.service > > (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > > > > > > > j > > > > > > org.apache.coyote.http11.Http11Processor.process > (Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > > > > j > > > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection > > (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > > > > > > > j > > > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket > (Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > > > > j > > > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt > ([Ljava/lang/Object;)V+102 > > > > > > > > j > > > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 > > > > j java.lang.Thread.run ()V+11 > > > > v ~StubRoutines::call_stub > > > > > > > > 40000000-40015000 r-xp 00000000 08:01 12210 /lib/ld- > > > > 2.3.4.so > > > > 40015000-40017000 rw-p 00014000 08:01 12210 /lib/ld- 2.3.4.so > > > > 40017000-40018000 r--p 00000000 00:00 0 > > > > 40018000-40019000 rwxp 00001000 00:00 0 > > > > 40019000-4001f000 r-xp 00000000 08:01 144145 > > > > > > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > > > > > > > > 4001f000-40020000 rw-p 00006000 08:01 144145 > > > > > > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > > > > 40020000-40027000 r-xp 00000000 08:01 12445 /lib/libnss_compat- > 2.3.4.so > > > > > > > > 40027000-40029000 rw-p 00006000 08:01 12445 /lib/libnss_compat- > 2.3.4.so > > > > 40029000-4002b000 r--s 00000000 08:01 149512 > > > > /usr/lib/jdk1.5.0_06/jre/lib/ext/dnsns.jar > > > > 4002b000-4002c000 rw-p 00000000 00:00 0 > > > > > > > > 4002c000-4003a000 r-xp 00000000 08:01 12452 /lib/libpthread-0.10.so > > > > 4003a000-4003c000 rw-p 0000d000 08:01 12452 /lib/libpthread- 0.10.so > > > > 4003c000-4007e000 rw-p 00000000 00:00 0 > > > > > > > > 4007e000-40080000 r-xp 00000000 08:01 12441 /lib/libdl-2.3.4.so > > > > 40080000-40082000 rw-p 00001000 08:01 12441 /lib/libdl- 2.3.4.so > > > > 40082000-40083000 rw-p 00000000 00:00 0 > > > > > > > > 40083000-40199000 r-xp 00000000 08:01 12438 /lib/libc-2.3.4.so > > > > 40199000-4019a000 ---p 00116000 08:01 12438 /lib/libc- 2.3.4.so > > > > 4019a000-4019b000 r--p 00116000 08:01 12438 /lib/libc- > > > > 2.3.4.so > > > > 4019b000-4019e000 rw-p 00117000 08:01 12438 /lib/libc- 2.3.4.so > > > > 46862000-46863000 r-xp 00000000 08:01 12419 /usr/lib/gconv/ISO8859- > 1.so > > > > > > > > 46863000-46864000 ---p 00001000 08:01 12419 /usr/lib/gconv/ISO8859- > 1.so > > > > 46864000-46866000 rw-p 00001000 08:01 12419 /usr/lib/gconv/ISO8859- > 1.so > > > > 46874000-4688f000 r-xp 00000000 08:02 521 > /usr/local/lib/libgd.so.2.0.0 > > > > > > > > 4688f000-468af000 rw-p 0001a000 08:02 521 > /usr/local/lib/libgd.so.2.0.0 > > > > 468af000-468c3000 rw-p 00000000 00:00 0 > > > > 468c3000-468df000 r-xp 00000000 08:01 201 /usr/lib/libjpeg.so.62.0.0 > > > > 468df000-468e0000 rw-p 0001b000 08:01 201 /usr/lib/libjpeg.so.62.0.0 > > > > > > > > 468e0000-468f0000 r-xp 00000000 08:01 59294 /usr/lib/libz.so.1.2.2 > > > > 468f0000-468f1000 rw-p 0000f000 08:01 59294 /usr/lib/libz.so.1.2.2 > > > > 468f1000-468f8000 r-xp 00000000 08:01 194 /usr/lib/libgcc_s.so.1 > > > > > > > > 468f8000-468f9000 rw-p 00007000 08:01 194 /usr/lib/libgcc_s.so.1 > > > > 468f9000-468ff000 r-xp 00000000 08:01 52949 > /usr/lib/libungif.so.4.1.2 > > > > 468ff000-46900000 rw-p 00006000 08:01 52949 > /usr/lib/libungif.so.4.1.2 > > > > > > > > 46900000-469fb000 rw-p 000c4000 00:00 0 > > > > 469fb000-46a00000 ---p 000e5000 00:00 0 > > > > 46a00000-46af4000 r-xp 00000000 08:02 1019 > > /usr/local/lib/libmapscript.so > > > > 46af4000-46af8000 rw-p 000f3000 08:02 1019 > > /usr/local/lib/libmapscript.so > > > > > > > > 46af8000-46afa000 rw-p 00000000 00:00 0 > > > > 46afa000-46b5b000 r-xp 00000000 08:02 1035 > > > > /usr/local/lib/libfreetype.so.6.3.10 > > > > 46b5b000-46b5e000 rw-p 00061000 08:02 1035 > > > > /usr/local/lib/libfreetype.so.6.3.10 > > > > > > > > 46b5e000-46b8e000 r-xp 00000000 08:01 210 /usr/lib/libpng.so.3.1.2.8 > > > > 46b8e000-46b8f000 rw-p 0002f000 08:01 210 /usr/lib/libpng.so.3.1.2.8 > > > > 46b8f000-46bc4000 r-xp 00000000 08:02 383 > > /usr/local/lib/libproj.so.0.5.0 > > > > > > > > 46bc4000-46bc6000 rw-p 00035000 08:02 383 > > /usr/local/lib/libproj.so.0.5.0 > > > > 46bc6000-46edd000 r-xp 00000000 08:02 4586 > > > > /usr/local/lib/libgdal.so.1.10.0 > > > > 46edd000-46f32000 rw-p 00316000 08:02 4586 > > > > /usr/local/lib/libgdal.so.1.10.0 > > > > > > > > 46f32000-46f47000 rw-p 00000000 00:00 0 > > > > 46f47000-46fe2000 r-xp 00000000 08:01 141965 > /usr/lib/libstdc++.so.5.0.6 > > > > 46fe2000-46ff9000 rw-p 0009b000 08:01 141965 > /usr/lib/libstdc++.so.5.0.6 > > > > 46ff9000-46ffe000 rw-p 00000000 00:00 0 > > > > > > > > 46ffe000-4700c000 r-xp 00000000 08:01 69690 > > /usr/X11R6/lib/libXpm.so.4.11 > > > > 4700c000-4700d000 rw-p 0000e000 08:01 69690 > > /usr/X11R6/lib/libXpm.so.4.11 > > > > 4700d000-470d3000 r-xp 00000000 08:01 69832 > /usr/X11R6/lib/libX11.so.6.2 > > > > > > > > 470d3000-470d7000 rw-p 000c6000 08:01 69832 > /usr/X11R6/lib/libX11.so.6.2 > > > > 470d7000-470fa000 r-xp 00000000 08:01 69699 > > > > /usr/X11R6/lib/libfontconfig.so.1.0.4 > > > > 470fa000-470fd000 rw-p 00022000 08:01 69699 > > > > /usr/X11R6/lib/libfontconfig.so.1.0.4 > > > > > > > > 470fd000-470fe000 rw-p 00000000 00:00 0 > > > > 470fe000-4712e000 r-xp 00000000 08:01 184 > /usr/lib/libpng12.so.0.1.2.8 > > > > 4712e000-4712f000 rw-p 0002f000 08:01 184 > /usr/lib/libpng12.so.0.1.2.8 > > > > 4712f000-4724f000 r-xp 00000000 08:02 4327 > > > > /usr/local/lib/libNCSEcw.so.0.0.0 > > > > > > > > 4724f000-47258000 rw-p 00120000 08:02 4327 > > > > /usr/local/lib/libNCSEcw.so.0.0.0 > > > > 47258000-47265000 rw-p 00000000 00:00 0 > > > > 47265000-47279000 r-xp 00000000 08:02 4339 > > > > /usr/local/lib/libNCSCnet.so.0.0.0 > > > > > > > > 47279000-4727a000 rw-p 00014000 08:02 4339 > > > > /usr/local/lib/libNCSCnet.so.0.0.0 > > > > 4727a000-47299000 r-xp 00000000 08:02 4334 > > > > /usr/local/lib/libNCSUtil.so.0.0.0 > > > > 47299000-4729b000 rw-p 0001e000 08:02 4334 > > > > /usr/local/lib/libNCSUtil.so.0.0.0 > > > > > > > > 4729b000-4729c000 rw-p 00000000 00:00 0 > > > > 4729c000-472e7000 r-xp 00000000 08:01 52823 > /usr/lib/libtiff.so.3.7.1 > > > > 472e7000-472e9000 rw-p 0004a000 08:01 52823 > /usr/lib/libtiff.so.3.7.1 > > > > > > > > --------------- S Y S T E M --------------- > > > > > > > > > > > > OS:Linux > > > > uname:Linux 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 > > > > libc:glibc 2.3.4 linuxthreads-0.10 (fixed stack) > > > > rlimit: STACK 2044k, CORE 0k, NPROC 7168, NOFILE 1024, AS infinity > > > > load average:3.44 2.84 > > > > 1.27 > > > > > > > > CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht > > > > > > > > Memory: 4k page, physical 904220k(52168k free), swap > 2097136k(1994124k > > free) > > > > > > > > vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for linux-x86, > built > > on > > > > Nov 10 2005 12:08:33 by java_re with gcc > > > > 3.2.1-7a (J2SE release) > > > > > > > > > > > > > > > > -- > > > > "Everything under the sun is in tune > > > > But the sun is eclipsed by the moon" > > > > > > > > > > > -- > > > > "Everything under the sun is in tune > > But the sun is eclipsed by the moon" > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Fri Sep 22 07:40:48 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 22 Sep 2006 16:40:48 +0200 Subject: Java Mapscript In-Reply-To: Message-ID: On 9/22/06, Frederico Lucca wrote: > Umberto, > > I think that I'm creating a map for each request. > > It's something like... > > mapObj map = new > mapObj("/usr/local/mapserver/mapfile.map"); > map.setSize(w,h); > map.setExtent(rectObj); > imageObj imgObj = map.draw(); > imgObj.save(path, map); > > Is that right? yes. What kind of output are you using? Try to remove SVG. Keep unneeded featureas at a minimum. Umberto > > Best Regards, > > Fred > > > On 9/22/06, Umberto Nicoletti < umberto.nicoletti at gmail.com> wrote: > > Frederico, > > are you sharing the same map object among threads i.e. you have one > > mapObj per web application that is shared between all users or you > > reuse the mapserver objects across http requests? > > > > The recommended (and so far the only known to work in webapps) is to > > create a new mapObj with every request. The overhead is unnoticeable. > > > > Umberto > > > > > > > > On 9/21/06, Frederico Lucca wrote: > > > Umberto, > > > > > > Here are the information that I can give. > > > > > > Linux porto 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 unknown unknown > > > GNU/Linux > > > > > > gcc (GCC) 3.3.4 > > > > > > MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > > > SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > > > java version "1.5.0_06" > > > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > > > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) > > > > > > SWIG Version 1.3.29 > > > Compiled with g++ [i686-pc-linux-gnu] > > > > > > gdal 1.3.2 > > > > > > proj 4.4.9 > > > > > > tomcat 5.5.9 > > > > > > I configure --with-threads --with-ogr --with-gdal --with-proj > > > > > > The code is simple like open, setExtent, draw > > > > > > Best Regards, > > > > > > Fred > > > > > > > > > On 9/21/06, Umberto Nicoletti wrote: > > > > On 9/21/06, Frederico Lucca wrote: > > > > > Hello list, > > > > > > > > > > I'm having trouble with mapserver and java mapscript, my tomcat > broke > > > with > > > > > this error after some requests. > > > > > Could someone help me? > > > > > > > > I would, but I need more details. There is a java mapscript doc on > > > > mapserver web site that has a section exactly about what you need to > > > > tell us to help us help you ;-). > > > > > > > > Umberto > > > > > > > > > > > > > > Best Regards, > > > > > > > > > > Fred > > > > > > > > > > # > > > > > # An unexpected error has been detected by HotSpot Virtual Machine: > > > > > > > > > > # > > > > > # SIGSEGV (0xb) at pc=0x400eb3fd, pid=17455, tid=376856 > > > > > # > > > > > # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, > sharing) > > > > > # Problematic frame: > > > > > # C [libc.so.6+0x683fd] mempcpy+0x2d > > > > > # > > > > > > > > > > > > > > > --------------- T H R E A D --------------- > > > > > > > > > > Current thread (0x08204c28): JavaThread "http-8080-Processor15" > daemon > > > > > [_thread_in_native, id=17480] > > > > > > > > > > Stack: [0xbca01000,0xbcc00000), sp=0xbcbfe21c, free space=2036k > > > > > > > > > > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > > > C=native > > > > > code) > > > > > C [libc.so.6+0x683fd] mempcpy+0x2d > > > > > C [libc.so.6+0x5dba3] > > > > > C [libc.so.6+0x5ee48] _IO_sgetn+0x28 > > > > > C [ libc.so.6+0x539f4] _IO_fread+0x74 > > > > > > > > > > C [libmapscript.so+0x545d5] msSHPOpen+0x425 > > > > > C [libmapscript.so+0x562a9] msSHPOpenFile+0x59 > > > > > C [libmapscript.so+0x57de1] msShapeFileLayerOpen+0x91 > > > > > C [ libmapscript.so+0x80d11] msLayerOpen+0x71 > > > > > C [libmapscript.so+0x8c3f6 > > > > > ] msDrawVectorLayer+0xe6 > > > > > C [libmapscript.so+0x8c155] msDrawLayer+0x95 > > > > > C [ libmapscript.so+0x8b9de] msDrawMap+0x42e > > > > > C [ libmapscript.so+0x2c59c] > > > > > C [libmapscript.so+0x3e825] > > > > > > > > > Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw+0x35 > > > > > > > > > > j > edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > > > > > j > > > > > edu.umn.gis.mapscript.mapObj.draw > > > ()Ledu/umn/gis/mapscript/imageObj;+4 > > > > > j > > > > > > > > > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 > > > > > j TileServer.exportExact > > > > > > > > > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > > > > > j > > > > > > > > > TileServer.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > > > > > j > > > > > > > > TileServer.doPost > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > > > > > > > > > j > > > > > > > > > javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > > > > > j > > > > > > > > > javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > > > > > > > > > j > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > > > > > j > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter > > > > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > > > > > > > > > j > > > > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > > > > > j > > > > > > > > > org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > > > > > > > > > j > > > > > org.apache.catalina.core.StandardHostValve.invoke > > > > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > > > > > j > > > > > > > > org.apache.catalina.valves.ErrorReportValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > > > > > > > > > j > > > > > > > > > org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > > > > > j > > > > > org.apache.catalina.connector.CoyoteAdapter.service > > > > (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > > > > > > > > > j > > > > > > > > > org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > > > > > j > > > > > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection > > > > (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > > > > > > > > > j > > > > > > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > > > > > j > > > > > > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V+102 > > > > > > > > > > j > > > > > > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run > ()V+167 > > > > > j java.lang.Thread.run ()V+11 > > > > > v ~StubRoutines::call_stub > > > > > V [libjvm.so+0x174fec] > > > > > V [libjvm.so+0x2821f8] > > > > > V [libjvm.so+0x174845 ] > > > > > > > > > > V [libjvm.so+0x1748de] > > > > > V [libjvm.so+0x1ebee5] > > > > > V [libjvm.so+0x2ea563 ] > > > > > V [libjvm.so+0x282d08] > > > > > C [libpthread.so.0+0x654e ] > > > > > > > > > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > > > > > > > > > > j > edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > > > > > j > > > > > > > > > edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 > > > > > j > > > > > > > > > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 > > > > > j TileServer.exportExact > > > > > > > > > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > > > > > j > > > > > > > > > TileServer.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > > > > > j > > > > > > > > > TileServer.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > > > > > > > > > j > > > > > > > > javax.servlet.http.HttpServlet.service > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > > > > > j > > > > > > > > > javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > > > > > > > > > j > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > > > > > j > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter > > > > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > > > > > > > > > j > > > > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > > > > > j > > > > > > > > org.apache.catalina.core.StandardContextValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > > > > > > > > > j > > > > > org.apache.catalina.core.StandardHostValve.invoke > > > > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > > > > > j > > > > > > > > > org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > > > > > > > > > j > > > > > > > > > org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > > > > > j > > > > > org.apache.catalina.connector.CoyoteAdapter.service > > > > (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > > > > > > > > > j > > > > > > > > > org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > > > > > j > > > > > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection > > > > (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > > > > > > > > > j > > > > > > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > > > > > j > > > > > > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V+102 > > > > > > > > > > j > > > > > > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 > > > > > j java.lang.Thread.run ()V+11 > > > > > v ~StubRoutines::call_stub > > > > > > > > > > 40000000-40015000 r-xp 00000000 08:01 12210 /lib/ld- > > > > > 2.3.4.so > > > > > 40015000-40017000 rw-p 00014000 08:01 12210 /lib/ld- 2.3.4.so > > > > > 40017000-40018000 r--p 00000000 00:00 0 > > > > > 40018000-40019000 rwxp 00001000 00:00 0 > > > > > 40019000-4001f000 r-xp 00000000 08:01 144145 > > > > > > > > > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > > > > > > > > > > 4001f000-40020000 rw-p 00006000 08:01 144145 > > > > > > > > > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > > > > > 40020000-40027000 r-xp 00000000 08:01 12445 /lib/libnss_compat- > 2.3.4.so > > > > > > > > > > 40027000-40029000 rw-p 00006000 08:01 12445 > /lib/libnss_compat-2.3.4.so > > > > > 40029000-4002b000 r--s 00000000 08:01 149512 > > > > > /usr/lib/jdk1.5.0_06/jre/lib/ext/dnsns.jar > > > > > 4002b000-4002c000 rw-p 00000000 00:00 0 > > > > > > > > > > 4002c000-4003a000 r-xp 00000000 08:01 12452 /lib/libpthread-0.10.so > > > > > 4003a000-4003c000 rw-p 0000d000 08:01 12452 /lib/libpthread- 0.10.so > > > > > 4003c000-4007e000 rw-p 00000000 00:00 0 > > > > > > > > > > 4007e000-40080000 r-xp 00000000 08:01 12441 /lib/libdl-2.3.4.so > > > > > 40080000-40082000 rw-p 00001000 08:01 12441 /lib/libdl- 2.3.4.so > > > > > 40082000-40083000 rw-p 00000000 00:00 0 > > > > > > > > > > 40083000-40199000 r-xp 00000000 08:01 12438 /lib/libc- 2.3.4.so > > > > > 40199000-4019a000 ---p 00116000 08:01 12438 /lib/libc- 2.3.4.so > > > > > 4019a000-4019b000 r--p 00116000 08:01 12438 /lib/libc- > > > > > 2.3.4.so > > > > > 4019b000-4019e000 rw-p 00117000 08:01 12438 /lib/libc- 2.3.4.so > > > > > 46862000-46863000 r-xp 00000000 08:01 12419 /usr/lib/gconv/ISO8859- > 1.so > > > > > > > > > > 46863000-46864000 ---p 00001000 08:01 12419 > /usr/lib/gconv/ISO8859-1.so > > > > > 46864000-46866000 rw-p 00001000 08:01 12419 /usr/lib/gconv/ISO8859- > 1.so > > > > > 46874000-4688f000 r-xp 00000000 08:02 521 > /usr/local/lib/libgd.so.2.0.0 > > > > > > > > > > 4688f000-468af000 rw-p 0001a000 08:02 521 > /usr/local/lib/libgd.so.2.0.0 > > > > > 468af000-468c3000 rw-p 00000000 00:00 0 > > > > > 468c3000-468df000 r-xp 00000000 08:01 201 /usr/lib/libjpeg.so.62.0.0 > > > > > 468df000-468e0000 rw-p 0001b000 08:01 201 /usr/lib/libjpeg.so.62.0.0 > > > > > > > > > > 468e0000-468f0000 r-xp 00000000 08:01 59294 /usr/lib/libz.so.1.2.2 > > > > > 468f0000-468f1000 rw-p 0000f000 08:01 59294 /usr/lib/libz.so.1.2.2 > > > > > 468f1000-468f8000 r-xp 00000000 08:01 194 /usr/lib/libgcc_s.so.1 > > > > > > > > > > 468f8000-468f9000 rw-p 00007000 08:01 194 /usr/lib/libgcc_s.so.1 > > > > > 468f9000-468ff000 r-xp 00000000 08:01 52949 > /usr/lib/libungif.so.4.1.2 > > > > > 468ff000-46900000 rw-p 00006000 08:01 52949 > /usr/lib/libungif.so.4.1.2 > > > > > > > > > > 46900000-469fb000 rw-p 000c4000 00:00 0 > > > > > 469fb000-46a00000 ---p 000e5000 00:00 0 > > > > > 46a00000-46af4000 r-xp 00000000 08:02 1019 > > > /usr/local/lib/libmapscript.so > > > > > 46af4000-46af8000 rw-p 000f3000 08:02 1019 > > > /usr/local/lib/libmapscript.so > > > > > > > > > > 46af8000-46afa000 rw-p 00000000 00:00 0 > > > > > 46afa000-46b5b000 r-xp 00000000 08:02 1035 > > > > > /usr/local/lib/libfreetype.so.6.3.10 > > > > > 46b5b000-46b5e000 rw-p 00061000 08:02 1035 > > > > > /usr/local/lib/libfreetype.so.6.3.10 > > > > > > > > > > 46b5e000-46b8e000 r-xp 00000000 08:01 210 /usr/lib/libpng.so.3.1.2.8 > > > > > 46b8e000-46b8f000 rw-p 0002f000 08:01 210 /usr/lib/libpng.so.3.1.2.8 > > > > > 46b8f000-46bc4000 r-xp 00000000 08:02 383 > > > /usr/local/lib/libproj.so.0.5.0 > > > > > > > > > > 46bc4000-46bc6000 rw-p 00035000 08:02 383 > > > /usr/local/lib/libproj.so.0.5.0 > > > > > 46bc6000-46edd000 r-xp 00000000 08:02 4586 > > > > > /usr/local/lib/libgdal.so.1.10.0 > > > > > 46edd000-46f32000 rw-p 00316000 08:02 4586 > > > > > /usr/local/lib/libgdal.so.1.10.0 > > > > > > > > > > 46f32000-46f47000 rw-p 00000000 00:00 0 > > > > > 46f47000-46fe2000 r-xp 00000000 08:01 141965 > /usr/lib/libstdc++.so.5.0.6 > > > > > 46fe2000-46ff9000 rw-p 0009b000 08:01 141965 > /usr/lib/libstdc++.so.5.0.6 > > > > > 46ff9000-46ffe000 rw-p 00000000 00:00 0 > > > > > > > > > > 46ffe000-4700c000 r-xp 00000000 08:01 69690 > > > /usr/X11R6/lib/libXpm.so.4.11 > > > > > 4700c000-4700d000 rw-p 0000e000 08:01 69690 > > > /usr/X11R6/lib/libXpm.so.4.11 > > > > > 4700d000-470d3000 r-xp 00000000 08:01 69832 > /usr/X11R6/lib/libX11.so.6.2 > > > > > > > > > > 470d3000-470d7000 rw-p 000c6000 08:01 69832 > /usr/X11R6/lib/libX11.so.6.2 > > > > > 470d7000-470fa000 r-xp 00000000 08:01 69699 > > > > > /usr/X11R6/lib/libfontconfig.so.1.0.4 > > > > > 470fa000-470fd000 rw-p 00022000 08:01 69699 > > > > > /usr/X11R6/lib/libfontconfig.so.1.0.4 > > > > > > > > > > 470fd000-470fe000 rw-p 00000000 00:00 0 > > > > > 470fe000-4712e000 r-xp 00000000 08:01 184 > /usr/lib/libpng12.so.0.1.2.8 > > > > > 4712e000-4712f000 rw-p 0002f000 08:01 184 > /usr/lib/libpng12.so.0.1.2.8 > > > > > 4712f000-4724f000 r-xp 00000000 08:02 4327 > > > > > /usr/local/lib/libNCSEcw.so.0.0.0 > > > > > > > > > > 4724f000-47258000 rw-p 00120000 08:02 4327 > > > > > /usr/local/lib/libNCSEcw.so.0.0.0 > > > > > 47258000-47265000 rw-p 00000000 00:00 0 > > > > > 47265000-47279000 r-xp 00000000 08:02 4339 > > > > > /usr/local/lib/libNCSCnet.so.0.0.0 > > > > > > > > > > 47279000-4727a000 rw-p 00014000 08:02 4339 > > > > > /usr/local/lib/libNCSCnet.so.0.0.0 > > > > > 4727a000-47299000 r-xp 00000000 08:02 4334 > > > > > /usr/local/lib/libNCSUtil.so.0.0.0 > > > > > 47299000-4729b000 rw-p 0001e000 08:02 4334 > > > > > /usr/local/lib/libNCSUtil.so.0.0.0 > > > > > > > > > > 4729b000-4729c000 rw-p 00000000 00:00 0 > > > > > 4729c000-472e7000 r-xp 00000000 08:01 52823 > /usr/lib/libtiff.so.3.7.1 > > > > > 472e7000-472e9000 rw-p 0004a000 08:01 52823 > /usr/lib/libtiff.so.3.7.1 > > > > > > > > > > --------------- S Y S T E M --------------- > > > > > > > > > > > > > > > OS:Linux > > > > > uname:Linux 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 > > > > > libc:glibc 2.3.4 linuxthreads-0.10 (fixed stack) > > > > > rlimit: STACK 2044k, CORE 0k, NPROC 7168, NOFILE 1024, AS infinity > > > > > load average:3.44 2.84 > > > > > 1.27 > > > > > > > > > > CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht > > > > > > > > > > Memory: 4k page, physical 904220k(52168k free), swap > 2097136k(1994124k > > > free) > > > > > > > > > > vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for linux-x86, > built > > > on > > > > > Nov 10 2005 12:08:33 by java_re with gcc > > > > > 3.2.1-7a (J2SE release) > > > > > > > > > > > > > > > > > > > > -- > > > > > "Everything under the sun is in tune > > > > > But the sun is eclipsed by the moon" > > > > > > > > > > > > > > > > -- > > > > > > "Everything under the sun is in tune > > > But the sun is eclipsed by the moon" > > > > > > -- > > "Everything under the sun is in tune > But the sun is eclipsed by the moon" From fredlucca at GMAIL.COM Fri Sep 22 07:51:22 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Fri, 22 Sep 2006 11:51:22 -0300 Subject: Java Mapscript In-Reply-To: <75b4b93e0609220740s5e7cc920yfa9d134782d8f68b@mail.gmail.com> Message-ID: Umberto, At this moment I'm using jpg with this format: OUTPUTFORMAT NAME jpg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "QUALITY=70" END But few days ago I was using gif and the problem was the same. The problem appears when I use many threads at same time, because of a tile server that I create, the requests at same time are constants. Is that a problem? Best Regards, Fred On 9/22/06, Umberto Nicoletti wrote: > > On 9/22/06, Frederico Lucca wrote: > > Umberto, > > > > I think that I'm creating a map for each request. > > > > It's something like... > > > > mapObj map = new > > mapObj("/usr/local/mapserver/mapfile.map"); > > map.setSize(w,h); > > map.setExtent(rectObj); > > imageObj imgObj = map.draw(); > > imgObj.save(path, map); > > > > Is that right? > > yes. > What kind of output are you using? Try to remove SVG. Keep unneeded > featureas at a minimum. > > Umberto > > > > > Best Regards, > > > > Fred > > > > > > On 9/22/06, Umberto Nicoletti < umberto.nicoletti at gmail.com> wrote: > > > Frederico, > > > are you sharing the same map object among threads i.e. you have one > > > mapObj per web application that is shared between all users or you > > > reuse the mapserver objects across http requests? > > > > > > The recommended (and so far the only known to work in webapps) is to > > > create a new mapObj with every request. The overhead is unnoticeable. > > > > > > Umberto > > > > > > > > > > > > On 9/21/06, Frederico Lucca wrote: > > > > Umberto, > > > > > > > > Here are the information that I can give. > > > > > > > > Linux porto 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 unknown > unknown > > > > GNU/Linux > > > > > > > > gcc (GCC) 3.3.4 > > > > > > > > MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP > > > > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > > > > SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > > > > > java version "1.5.0_06" > > > > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05 > ) > > > > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) > > > > > > > > SWIG Version 1.3.29 > > > > Compiled with g++ [i686-pc-linux-gnu] > > > > > > > > gdal 1.3.2 > > > > > > > > proj 4.4.9 > > > > > > > > tomcat 5.5.9 > > > > > > > > I configure --with-threads --with-ogr --with-gdal --with-proj > > > > > > > > The code is simple like open, setExtent, draw > > > > > > > > Best Regards, > > > > > > > > Fred > > > > > > > > > > > > On 9/21/06, Umberto Nicoletti wrote: > > > > > On 9/21/06, Frederico Lucca wrote: > > > > > > Hello list, > > > > > > > > > > > > I'm having trouble with mapserver and java mapscript, my tomcat > > broke > > > > with > > > > > > this error after some requests. > > > > > > Could someone help me? > > > > > > > > > > I would, but I need more details. There is a java mapscript doc on > > > > > mapserver web site that has a section exactly about what you need > to > > > > > tell us to help us help you ;-). > > > > > > > > > > Umberto > > > > > > > > > > > > > > > > > Best Regards, > > > > > > > > > > > > Fred > > > > > > > > > > > > # > > > > > > # An unexpected error has been detected by HotSpot Virtual > Machine: > > > > > > > > > > > > # > > > > > > # SIGSEGV (0xb) at pc=0x400eb3fd, pid=17455, tid=376856 > > > > > > # > > > > > > # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, > > sharing) > > > > > > # Problematic frame: > > > > > > # C [libc.so.6+0x683fd] mempcpy+0x2d > > > > > > # > > > > > > > > > > > > > > > > > > --------------- T H R E A D --------------- > > > > > > > > > > > > Current thread (0x08204c28): JavaThread "http-8080-Processor15" > > daemon > > > > > > [_thread_in_native, id=17480] > > > > > > > > > > > > Stack: [0xbca01000,0xbcc00000), sp=0xbcbfe21c, free space=2036k > > > > > > > > > > > > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > > > > C=native > > > > > > code) > > > > > > C [libc.so.6+0x683fd] mempcpy+0x2d > > > > > > C [libc.so.6+0x5dba3] > > > > > > C [libc.so.6+0x5ee48] _IO_sgetn+0x28 > > > > > > C [ libc.so.6+0x539f4] _IO_fread+0x74 > > > > > > > > > > > > C [libmapscript.so+0x545d5] msSHPOpen+0x425 > > > > > > C [libmapscript.so+0x562a9] msSHPOpenFile+0x59 > > > > > > C [libmapscript.so+0x57de1] msShapeFileLayerOpen+0x91 > > > > > > C [ libmapscript.so+0x80d11] msLayerOpen+0x71 > > > > > > C [libmapscript.so+0x8c3f6 > > > > > > ] msDrawVectorLayer+0xe6 > > > > > > C [libmapscript.so+0x8c155] msDrawLayer+0x95 > > > > > > C [ libmapscript.so+0x8b9de] msDrawMap+0x42e > > > > > > C [ libmapscript.so+0x2c59c] > > > > > > C [libmapscript.so+0x3e825] > > > > > > > > > > > > Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw+0x35 > > > > > > > > > > > > j > > edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > > > > > > j > > > > > > edu.umn.gis.mapscript.mapObj.draw > > > > ()Ledu/umn/gis/mapscript/imageObj;+4 > > > > > > j > > > > > > > > > > > > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 > > > > > > j TileServer.exportExact > > > > > > > > > > > > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > > > > > > j > > > > > > > > > > > > TileServer.processRequest > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > > > > > > j > > > > > > > > > > TileServer.doPost > > > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > > > > > > > > > > > j > > > > > > > > > > > > javax.servlet.http.HttpServlet.service > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > > > > > > j > > > > > > > > > > > > javax.servlet.http.HttpServlet.service > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > > > > > > > > > > > j > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > > > > > > j > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter > > > > > > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > > > > > > > > > > > j > > > > > > > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > > > > > > j > > > > > > > > > > > > org.apache.catalina.core.StandardContextValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > > > > > > > > > > > j > > > > > > org.apache.catalina.core.StandardHostValve.invoke > > > > > > > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > > > > > > j > > > > > > > > > > org.apache.catalina.valves.ErrorReportValve.invoke > > > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > > > > > > > > > > > j > > > > > > > > > > > > org.apache.catalina.core.StandardEngineValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > > > > > > j > > > > > > org.apache.catalina.connector.CoyoteAdapter.service > > > > > > (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > > > > > > > > > > > j > > > > > > > > > > > > org.apache.coyote.http11.Http11Processor.process > (Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > > > > > > j > > > > > > > > > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection > > > > > > (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > > > > > > > > > > > j > > > > > > > > > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket > (Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > > > > > > j > > > > > > > > > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt > ([Ljava/lang/Object;)V+102 > > > > > > > > > > > > j > > > > > > > > > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run > > ()V+167 > > > > > > j java.lang.Thread.run ()V+11 > > > > > > v ~StubRoutines::call_stub > > > > > > V [libjvm.so+0x174fec] > > > > > > V [libjvm.so+0x2821f8] > > > > > > V [libjvm.so+0x174845 ] > > > > > > > > > > > > V [libjvm.so+0x1748de] > > > > > > V [libjvm.so+0x1ebee5] > > > > > > V [libjvm.so+0x2ea563 ] > > > > > > V [libjvm.so+0x282d08] > > > > > > C [libpthread.so.0+0x654e ] > > > > > > > > > > > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > > > > > > > > > > > > j > > edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > > > > > > j > > > > > > > > > > > > edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 > > > > > > j > > > > > > > > > > > > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 > > > > > > j TileServer.exportExact > > > > > > > > > > > > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > > > > > > j > > > > > > > > > > > > TileServer.processRequest > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > > > > > > j > > > > > > > > > > > > TileServer.doPost > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > > > > > > > > > > > j > > > > > > > > > > javax.servlet.http.HttpServlet.service > > > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > > > > > > j > > > > > > > > > > > > javax.servlet.http.HttpServlet.service > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > > > > > > > > > > > j > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > > > > > > j > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter > > > > > > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > > > > > > > > > > > j > > > > > > > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > > > > > > j > > > > > > > > > > org.apache.catalina.core.StandardContextValve.invoke > > > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > > > > > > > > > > > j > > > > > > org.apache.catalina.core.StandardHostValve.invoke > > > > > > > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > > > > > > j > > > > > > > > > > > > org.apache.catalina.valves.ErrorReportValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > > > > > > > > > > > j > > > > > > > > > > > > org.apache.catalina.core.StandardEngineValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > > > > > > j > > > > > > org.apache.catalina.connector.CoyoteAdapter.service > > > > > > (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > > > > > > > > > > > j > > > > > > > > > > > > org.apache.coyote.http11.Http11Processor.process > (Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > > > > > > j > > > > > > > > > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection > > > > > > (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > > > > > > > > > > > j > > > > > > > > > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket > (Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > > > > > > j > > > > > > > > > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt > ([Ljava/lang/Object;)V+102 > > > > > > > > > > > > j > > > > > > > > > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 > > > > > > j java.lang.Thread.run ()V+11 > > > > > > v ~StubRoutines::call_stub > > > > > > > > > > > > 40000000-40015000 r-xp 00000000 08:01 12210 /lib/ld- > > > > > > 2.3.4.so > > > > > > 40015000-40017000 rw-p 00014000 08:01 12210 /lib/ld- 2.3.4.so > > > > > > 40017000-40018000 r--p 00000000 00:00 0 > > > > > > 40018000-40019000 rwxp 00001000 00:00 0 > > > > > > 40019000-4001f000 r-xp 00000000 08:01 144145 > > > > > > > > > > > > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > > > > > > > > > > > > 4001f000-40020000 rw-p 00006000 08:01 144145 > > > > > > > > > > > > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > > > > > > 40020000-40027000 r-xp 00000000 08:01 12445 /lib/libnss_compat- > > 2.3.4.so > > > > > > > > > > > > 40027000-40029000 rw-p 00006000 08:01 12445 > > /lib/libnss_compat-2.3.4.so > > > > > > 40029000-4002b000 r--s 00000000 08:01 149512 > > > > > > /usr/lib/jdk1.5.0_06/jre/lib/ext/dnsns.jar > > > > > > 4002b000-4002c000 rw-p 00000000 00:00 0 > > > > > > > > > > > > 4002c000-4003a000 r-xp 00000000 08:01 12452 /lib/libpthread- > 0.10.so > > > > > > 4003a000-4003c000 rw-p 0000d000 08:01 12452 /lib/libpthread- > 0.10.so > > > > > > 4003c000-4007e000 rw-p 00000000 00:00 0 > > > > > > > > > > > > 4007e000-40080000 r-xp 00000000 08:01 12441 /lib/libdl-2.3.4.so > > > > > > 40080000-40082000 rw-p 00001000 08:01 12441 /lib/libdl- 2.3.4.so > > > > > > 40082000-40083000 rw-p 00000000 00:00 0 > > > > > > > > > > > > 40083000-40199000 r-xp 00000000 08:01 12438 /lib/libc- 2.3.4.so > > > > > > 40199000-4019a000 ---p 00116000 08:01 12438 /lib/libc- 2.3.4.so > > > > > > 4019a000-4019b000 r--p 00116000 08:01 12438 /lib/libc- > > > > > > 2.3.4.so > > > > > > 4019b000-4019e000 rw-p 00117000 08:01 12438 /lib/libc- 2.3.4.so > > > > > > 46862000-46863000 r-xp 00000000 08:01 12419 > /usr/lib/gconv/ISO8859- > > 1.so > > > > > > > > > > > > 46863000-46864000 ---p 00001000 08:01 12419 > > /usr/lib/gconv/ISO8859-1.so > > > > > > 46864000-46866000 rw-p 00001000 08:01 12419 > /usr/lib/gconv/ISO8859- > > 1.so > > > > > > 46874000-4688f000 r-xp 00000000 08:02 521 > > /usr/local/lib/libgd.so.2.0.0 > > > > > > > > > > > > 4688f000-468af000 rw-p 0001a000 08:02 521 > > /usr/local/lib/libgd.so.2.0.0 > > > > > > 468af000-468c3000 rw-p 00000000 00:00 0 > > > > > > 468c3000-468df000 r-xp 00000000 08:01 201 > /usr/lib/libjpeg.so.62.0.0 > > > > > > 468df000-468e0000 rw-p 0001b000 08:01 201 > /usr/lib/libjpeg.so.62.0.0 > > > > > > > > > > > > 468e0000-468f0000 r-xp 00000000 08:01 59294 > /usr/lib/libz.so.1.2.2 > > > > > > 468f0000-468f1000 rw-p 0000f000 08:01 59294 > /usr/lib/libz.so.1.2.2 > > > > > > 468f1000-468f8000 r-xp 00000000 08:01 194 /usr/lib/libgcc_s.so.1 > > > > > > > > > > > > 468f8000-468f9000 rw-p 00007000 08:01 194 /usr/lib/libgcc_s.so.1 > > > > > > 468f9000-468ff000 r-xp 00000000 08:01 52949 > > /usr/lib/libungif.so.4.1.2 > > > > > > 468ff000-46900000 rw-p 00006000 08:01 52949 > > /usr/lib/libungif.so.4.1.2 > > > > > > > > > > > > 46900000-469fb000 rw-p 000c4000 00:00 0 > > > > > > 469fb000-46a00000 ---p 000e5000 00:00 0 > > > > > > 46a00000-46af4000 r-xp 00000000 08:02 1019 > > > > /usr/local/lib/libmapscript.so > > > > > > 46af4000-46af8000 rw-p 000f3000 08:02 1019 > > > > /usr/local/lib/libmapscript.so > > > > > > > > > > > > 46af8000-46afa000 rw-p 00000000 00:00 0 > > > > > > 46afa000-46b5b000 r-xp 00000000 08:02 1035 > > > > > > /usr/local/lib/libfreetype.so.6.3.10 > > > > > > 46b5b000-46b5e000 rw-p 00061000 08:02 1035 > > > > > > /usr/local/lib/libfreetype.so.6.3.10 > > > > > > > > > > > > 46b5e000-46b8e000 r-xp 00000000 08:01 210 > /usr/lib/libpng.so.3.1.2.8 > > > > > > 46b8e000-46b8f000 rw-p 0002f000 08:01 210 > /usr/lib/libpng.so.3.1.2.8 > > > > > > 46b8f000-46bc4000 r-xp 00000000 08:02 383 > > > > /usr/local/lib/libproj.so.0.5.0 > > > > > > > > > > > > 46bc4000-46bc6000 rw-p 00035000 08:02 383 > > > > /usr/local/lib/libproj.so.0.5.0 > > > > > > 46bc6000-46edd000 r-xp 00000000 08:02 4586 > > > > > > /usr/local/lib/libgdal.so.1.10.0 > > > > > > 46edd000-46f32000 rw-p 00316000 08:02 4586 > > > > > > /usr/local/lib/libgdal.so.1.10.0 > > > > > > > > > > > > 46f32000-46f47000 rw-p 00000000 00:00 0 > > > > > > 46f47000-46fe2000 r-xp 00000000 08:01 141965 > > /usr/lib/libstdc++.so.5.0.6 > > > > > > 46fe2000-46ff9000 rw-p 0009b000 08:01 141965 > > /usr/lib/libstdc++.so.5.0.6 > > > > > > 46ff9000-46ffe000 rw-p 00000000 00:00 0 > > > > > > > > > > > > 46ffe000-4700c000 r-xp 00000000 08:01 69690 > > > > /usr/X11R6/lib/libXpm.so.4.11 > > > > > > 4700c000-4700d000 rw-p 0000e000 08:01 69690 > > > > /usr/X11R6/lib/libXpm.so.4.11 > > > > > > 4700d000-470d3000 r-xp 00000000 08:01 69832 > > /usr/X11R6/lib/libX11.so.6.2 > > > > > > > > > > > > 470d3000-470d7000 rw-p 000c6000 08:01 69832 > > /usr/X11R6/lib/libX11.so.6.2 > > > > > > 470d7000-470fa000 r-xp 00000000 08:01 69699 > > > > > > /usr/X11R6/lib/libfontconfig.so.1.0.4 > > > > > > 470fa000-470fd000 rw-p 00022000 08:01 69699 > > > > > > /usr/X11R6/lib/libfontconfig.so.1.0.4 > > > > > > > > > > > > 470fd000-470fe000 rw-p 00000000 00:00 0 > > > > > > 470fe000-4712e000 r-xp 00000000 08:01 184 > > /usr/lib/libpng12.so.0.1.2.8 > > > > > > 4712e000-4712f000 rw-p 0002f000 08:01 184 > > /usr/lib/libpng12.so.0.1.2.8 > > > > > > 4712f000-4724f000 r-xp 00000000 08:02 4327 > > > > > > /usr/local/lib/libNCSEcw.so.0.0.0 > > > > > > > > > > > > 4724f000-47258000 rw-p 00120000 08:02 4327 > > > > > > /usr/local/lib/libNCSEcw.so.0.0.0 > > > > > > 47258000-47265000 rw-p 00000000 00:00 0 > > > > > > 47265000-47279000 r-xp 00000000 08:02 4339 > > > > > > /usr/local/lib/libNCSCnet.so.0.0.0 > > > > > > > > > > > > 47279000-4727a000 rw-p 00014000 08:02 4339 > > > > > > /usr/local/lib/libNCSCnet.so.0.0.0 > > > > > > 4727a000-47299000 r-xp 00000000 08:02 4334 > > > > > > /usr/local/lib/libNCSUtil.so.0.0.0 > > > > > > 47299000-4729b000 rw-p 0001e000 08:02 4334 > > > > > > /usr/local/lib/libNCSUtil.so.0.0.0 > > > > > > > > > > > > 4729b000-4729c000 rw-p 00000000 00:00 0 > > > > > > 4729c000-472e7000 r-xp 00000000 08:01 52823 > > /usr/lib/libtiff.so.3.7.1 > > > > > > 472e7000-472e9000 rw-p 0004a000 08:01 52823 > > /usr/lib/libtiff.so.3.7.1 > > > > > > > > > > > > --------------- S Y S T E M --------------- > > > > > > > > > > > > > > > > > > OS:Linux > > > > > > uname:Linux 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 > > > > > > libc:glibc 2.3.4 linuxthreads-0.10 (fixed stack) > > > > > > rlimit: STACK 2044k, CORE 0k, NPROC 7168, NOFILE 1024, AS > infinity > > > > > > load average:3.44 2.84 > > > > > > 1.27 > > > > > > > > > > > > CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht > > > > > > > > > > > > Memory: 4k page, physical 904220k(52168k free), swap > > 2097136k(1994124k > > > > free) > > > > > > > > > > > > vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for > linux-x86, > > built > > > > on > > > > > > Nov 10 2005 12:08:33 by java_re with gcc > > > > > > 3.2.1-7a (J2SE release) > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > "Everything under the sun is in tune > > > > > > But the sun is eclipsed by the moon" > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > "Everything under the sun is in tune > > > > But the sun is eclipsed by the moon" > > > > > > > > > > > -- > > > > "Everything under the sun is in tune > > But the sun is eclipsed by the moon" > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at TERRESTRIS.DE Fri Sep 22 07:49:23 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Fri, 22 Sep 2006 16:49:23 +0200 Subject: profile in mapserver In-Reply-To: <4513BACD.9030409@sigte.udg.es> Message-ID: Toni, we did sth. like that, but we used mapserver only for visualisation, in the backend we used postgis to geht the data and Jpgraph for drawing the graph: Look here fpr a demo: http://maps.terrestris.de/mapbender22/frames/login.php?&gui_id=lithos&name=lithos&password=phere Use the blue flag, klick into the map to set the startpoint, then check the checkbox (Profil zeichen) and click again into the map for setting the endpoint (it takes some time if the profile is over a long distance: We didn't do anything in performance tuning in that demo ;-)) I could somehow help if it's that what you need, Till toni hern?ndez schrieb: > hi all, > > Can Mapserver create a profile (z -coordenate) from a shape file? > Is that possible? -- ***************************************** * www.webmapcenter.de - Hosting * * GDIdevL 'Start GDI from CD' * * http://www.terrestris.de * ***************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From umberto.nicoletti at GMAIL.COM Fri Sep 22 07:54:55 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 22 Sep 2006 16:54:55 +0200 Subject: Java Mapscript In-Reply-To: Message-ID: On 9/22/06, Frederico Lucca wrote: > Umberto, > > At this moment I'm using jpg with this format: > > OUTPUTFORMAT > NAME jpg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > FORMATOPTION "QUALITY=70" > END > > But few days ago I was using gif and the problem was the same. > > The problem appears when I use many threads at same time, because of a tile > server that I create, the requests at same time are constants. Is that a > problem? As long as each thread uses a private mapObj and releases it as soon as it is done with it, no. Have you got other error reports around? Do they always crash in SHPOpen? Can you post or email privately to me the map file? Umberto > > > Best Regards, > > Fred > > > On 9/22/06, Umberto Nicoletti wrote: > > On 9/22/06, Frederico Lucca wrote: > > > Umberto, > > > > > > I think that I'm creating a map for each request. > > > > > > It's something like... > > > > > > mapObj map = new > > > mapObj("/usr/local/mapserver/mapfile.map"); > > > map.setSize(w,h); > > > map.setExtent(rectObj); > > > imageObj imgObj = map.draw(); > > > imgObj.save(path, map); > > > > > > Is that right? > > > > yes. > > What kind of output are you using? Try to remove SVG. Keep unneeded > > featureas at a minimum. > > > > Umberto > > > > > > > > Best Regards, > > > > > > Fred > > > > > > > > > On 9/22/06, Umberto Nicoletti < umberto.nicoletti at gmail.com > wrote: > > > > Frederico, > > > > are you sharing the same map object among threads i.e. you have one > > > > mapObj per web application that is shared between all users or you > > > > reuse the mapserver objects across http requests? > > > > > > > > The recommended (and so far the only known to work in webapps) is to > > > > create a new mapObj with every request. The overhead is unnoticeable. > > > > > > > > Umberto > > > > > > > > > > > > > > > > On 9/21/06, Frederico Lucca wrote: > > > > > Umberto, > > > > > > > > > > Here are the information that I can give. > > > > > > > > > > Linux porto 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 unknown > unknown > > > > > GNU/Linux > > > > > > > > > > gcc (GCC) 3.3.4 > > > > > > > > > > MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP > > > > > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > > > > > SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > > > > > > > java version "1.5.0_06" > > > > > Java(TM) 2 Runtime Environment, Standard Edition (build > 1.5.0_06-b05) > > > > > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) > > > > > > > > > > SWIG Version 1.3.29 > > > > > Compiled with g++ [i686-pc-linux-gnu] > > > > > > > > > > gdal 1.3.2 > > > > > > > > > > proj 4.4.9 > > > > > > > > > > tomcat 5.5.9 > > > > > > > > > > I configure --with-threads --with-ogr --with-gdal --with-proj > > > > > > > > > > The code is simple like open, setExtent, draw > > > > > > > > > > Best Regards, > > > > > > > > > > Fred > > > > > > > > > > > > > > > On 9/21/06, Umberto Nicoletti wrote: > > > > > > On 9/21/06, Frederico Lucca wrote: > > > > > > > Hello list, > > > > > > > > > > > > > > I'm having trouble with mapserver and java mapscript, my tomcat > > > broke > > > > > with > > > > > > > this error after some requests. > > > > > > > Could someone help me? > > > > > > > > > > > > I would, but I need more details. There is a java mapscript doc on > > > > > > mapserver web site that has a section exactly about what you need > to > > > > > > tell us to help us help you ;-). > > > > > > > > > > > > Umberto > > > > > > > > > > > > > > > > > > > > Best Regards, > > > > > > > > > > > > > > Fred > > > > > > > > > > > > > > # > > > > > > > # An unexpected error has been detected by HotSpot Virtual > Machine: > > > > > > > > > > > > > > # > > > > > > > # SIGSEGV (0xb) at pc=0x400eb3fd, pid=17455, tid=376856 > > > > > > > # > > > > > > > # Java VM: Java HotSpot(TM) Client VM ( 1.5.0_06-b05 mixed mode, > > > sharing) > > > > > > > # Problematic frame: > > > > > > > # C [libc.so.6+0x683fd] mempcpy+0x2d > > > > > > > # > > > > > > > > > > > > > > > > > > > > > --------------- T H R E A D --------------- > > > > > > > > > > > > > > Current thread (0x08204c28): JavaThread "http-8080-Processor15" > > > daemon > > > > > > > [_thread_in_native, id=17480] > > > > > > > > > > > > > > Stack: [0xbca01000,0xbcc00000), sp=0xbcbfe21c, free space=2036k > > > > > > > > > > > > > > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > > > > > C=native > > > > > > > code) > > > > > > > C [libc.so.6+0x683fd] mempcpy+0x2d > > > > > > > C [libc.so.6+0x5dba3] > > > > > > > C [libc.so.6+0x5ee48 ] _IO_sgetn+0x28 > > > > > > > C [ libc.so.6+0x539f4] _IO_fread+0x74 > > > > > > > > > > > > > > C [libmapscript.so+0x545d5] msSHPOpen+0x425 > > > > > > > C [libmapscript.so+0x562a9 ] msSHPOpenFile+0x59 > > > > > > > C [libmapscript.so+0x57de1] msShapeFileLayerOpen+0x91 > > > > > > > C [ libmapscript.so+0x80d11] msLayerOpen+0x71 > > > > > > > C [libmapscript.so+0x8c3f6 > > > > > > > ] msDrawVectorLayer+0xe6 > > > > > > > C [libmapscript.so+0x8c155] msDrawLayer+0x95 > > > > > > > C [ libmapscript.so+0x8b9de] msDrawMap+0x42e > > > > > > > C [ libmapscript.so+0x2c59c] > > > > > > > C [libmapscript.so+0x3e825] > > > > > > > > > > > > > > > > Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw+0x35 > > > > > > > > > > > > > > j > > > edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > > > > > > > j > > > > > > > edu.umn.gis.mapscript.mapObj.draw > > > > > ()Ledu/umn/gis/mapscript/imageObj;+4 > > > > > > > j > > > > > > > > > > > > > > > > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4 > > > > > > > j TileServer.exportExact > > > > > > > > > > > > > > > > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > > > > > > > j > > > > > > > > > > > > > > > > TileServer.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > > > > > > > j > > > > > > > > > > > > TileServer.doPost > > > > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > > > > > > > > > > > > > j > > > > > > > > > > > > > > > > javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > > > > > > > j > > > > > > > > > > > > > > > > javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > > > > > > > > > > > > > j > > > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > > > > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > > > > > > > j > > > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter > > > > > > > > > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > > > > > > > > > > > > > j > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > > > > > > > j > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > > > > > > > > > > > > > j > > > > > > > > org.apache.catalina.core.StandardHostValve.invoke > > > > > > > > > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > > > > > > > j > > > > > > > > > > > > org.apache.catalina.valves.ErrorReportValve.invoke > > > > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > > > > > > > > > > > > > j > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > > > > > > > j > > > > > > > > org.apache.catalina.connector.CoyoteAdapter.service > > > > > > > > > (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > > > > > > > > > > > > > j > > > > > > > > > > > > > > > > org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > > > > > > > j > > > > > > > > > > > > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection > > > > > > > > > (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > > > > > > > > > > > > > j > > > > > > > > > > > > > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > > > > > > > j > > > > > > > > > > > > > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V+102 > > > > > > > > > > > > > > j > > > > > > > > > > > > > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run > > > ()V+167 > > > > > > > j java.lang.Thread.run ()V+11 > > > > > > > v ~StubRoutines::call_stub > > > > > > > V [libjvm.so+0x174fec] > > > > > > > V [libjvm.so+0x2821f8] > > > > > > > V [libjvm.so+0x174845 ] > > > > > > > > > > > > > > V [libjvm.so+0x1748de ] > > > > > > > V [libjvm.so+0x1ebee5] > > > > > > > V [libjvm.so+0x2ea563 ] > > > > > > > V [libjvm.so+0x282d08] > > > > > > > C [libpthread.so.0+0x654e ] > > > > > > > > > > > > > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > > > > > > > > > > > > > > j > > > edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > > > > > > > j > > > > > > > > > > > > > > > > edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 > > > > > > > j > > > > > > > > > > > > > > > br.com.multispectral.mapapp.MapServerApp.export > (Ljava/lang/String;)V+4 > > > > > > > j TileServer.exportExact > > > > > > > > > > > > > > > > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61 > > > > > > > j > > > > > > > > > > > > > > > > TileServer.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248 > > > > > > > j > > > > > > > > > > > > > > > > TileServer.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 > > > > > > > > > > > > > > j > > > > > > > > > > > > javax.servlet.http.HttpServlet.service > > > > (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 > > > > > > > j > > > > > > > > > > > > > > > javax.servlet.http.HttpServlet.service > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 > > > > > > > > > > > > > > j > > > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354 > > > > > > > j > > > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter > > > > > > > > > (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101 > > > > > > > > > > > > > > j > > > > > > > > > > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 > > > > > > > j > > > > > > > > > > > > > org.apache.catalina.core.StandardContextValve.invoke > > > > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 > > > > > > > > > > > > > > j > > > > > > > > org.apache.catalina.core.StandardHostValve.invoke > > > > > > > > > (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 > > > > > > > j > > > > > > > > > > > > > > > > org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 > > > > > > > > > > > > > > j > > > > > > > > > > > > > > > > org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 > > > > > > > j > > > > > > > > org.apache.catalina.connector.CoyoteAdapter.service > > > > > > > > > (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 > > > > > > > > > > > > > > j > > > > > > > > > > > > > > > > org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+521 > > > > > > > j > > > > > > > > > > > > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection > > > > > > > > > (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 > > > > > > > > > > > > > > j > > > > > > > > > > > > > > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 > > > > > > > j > > > > > > > > > > > > > > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V+102 > > > > > > > > > > > > > > j > > > > > > > > > > > > > > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 > > > > > > > j java.lang.Thread.run ()V+11 > > > > > > > v ~StubRoutines::call_stub > > > > > > > > > > > > > > 40000000-40015000 r-xp 00000000 08:01 12210 /lib/ld- > > > > > > > 2.3.4.so > > > > > > > 40015000-40017000 rw-p 00014000 08:01 12210 /lib/ld- 2.3.4.so > > > > > > > 40017000-40018000 r--p 00000000 00:00 0 > > > > > > > 40018000-40019000 rwxp 00001000 00:00 0 > > > > > > > 40019000-4001f000 r-xp 00000000 08:01 144145 > > > > > > > > > > > > > > > > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > > > > > > > > > > > > > > 4001f000-40020000 rw-p 00006000 08:01 144145 > > > > > > > > > > > > > > > > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so > > > > > > > 40020000-40027000 r-xp 00000000 08:01 12445 /lib/libnss_compat- > > > 2.3.4.so > > > > > > > > > > > > > > 40027000-40029000 rw-p 00006000 08:01 12445 > > > /lib/libnss_compat-2.3.4.so > > > > > > > 40029000-4002b000 r--s 00000000 08:01 149512 > > > > > > > /usr/lib/jdk1.5.0_06/jre/lib/ext/dnsns.jar > > > > > > > 4002b000-4002c000 rw-p 00000000 00:00 0 > > > > > > > > > > > > > > 4002c000-4003a000 r-xp 00000000 08:01 12452 /lib/libpthread- > 0.10.so > > > > > > > 4003a000-4003c000 rw-p 0000d000 08:01 12452 /lib/libpthread- > 0.10.so > > > > > > > 4003c000-4007e000 rw-p 00000000 00:00 0 > > > > > > > > > > > > > > 4007e000-40080000 r-xp 00000000 08:01 12441 /lib/libdl-2.3.4.so > > > > > > > 40080000-40082000 rw-p 00001000 08:01 12441 /lib/libdl- 2.3.4.so > > > > > > > 40082000-40083000 rw-p 00000000 00:00 0 > > > > > > > > > > > > > > 40083000-40199000 r-xp 00000000 08:01 12438 /lib/libc- 2.3.4.so > > > > > > > 40199000-4019a000 ---p 00116000 08:01 12438 /lib/libc- 2.3.4.so > > > > > > > 4019a000-4019b000 r--p 00116000 08:01 12438 /lib/libc- > > > > > > > 2.3.4.so > > > > > > > 4019b000-4019e000 rw-p 00117000 08:01 12438 /lib/libc- 2.3.4.so > > > > > > > 46862000-46863000 r-xp 00000000 08:01 12419 > /usr/lib/gconv/ISO8859- > > > 1.so > > > > > > > > > > > > > > 46863000-46864000 ---p 00001000 08:01 12419 > > > /usr/lib/gconv/ISO8859-1.so > > > > > > > 46864000-46866000 rw-p 00001000 08:01 12419 > /usr/lib/gconv/ISO8859- > > > 1.so > > > > > > > 46874000-4688f000 r-xp 00000000 08:02 521 > > > /usr/local/lib/libgd.so.2.0.0 > > > > > > > > > > > > > > 4688f000-468af000 rw-p 0001a000 08:02 521 > > > /usr/local/lib/libgd.so.2.0.0 > > > > > > > 468af000-468c3000 rw-p 00000000 00:00 0 > > > > > > > 468c3000-468df000 r-xp 00000000 08:01 201 > /usr/lib/libjpeg.so.62.0.0 > > > > > > > 468df000-468e0000 rw-p 0001b000 08:01 201 > /usr/lib/libjpeg.so.62.0.0 > > > > > > > > > > > > > > 468e0000-468f0000 r-xp 00000000 08:01 59294 > /usr/lib/libz.so.1.2.2 > > > > > > > 468f0000-468f1000 rw-p 0000f000 08:01 59294 > /usr/lib/libz.so.1.2.2 > > > > > > > 468f1000-468f8000 r-xp 00000000 08:01 194 /usr/lib/libgcc_s.so.1 > > > > > > > > > > > > > > 468f8000-468f9000 rw-p 00007000 08:01 194 /usr/lib/libgcc_s.so.1 > > > > > > > 468f9000-468ff000 r-xp 00000000 08:01 52949 > > > /usr/lib/libungif.so.4.1.2 > > > > > > > 468ff000-46900000 rw-p 00006000 08:01 52949 > > > /usr/lib/libungif.so.4.1.2 > > > > > > > > > > > > > > 46900000-469fb000 rw-p 000c4000 00:00 0 > > > > > > > 469fb000-46a00000 ---p 000e5000 00:00 0 > > > > > > > 46a00000-46af4000 r-xp 00000000 08:02 1019 > > > > > /usr/local/lib/libmapscript.so > > > > > > > 46af4000-46af8000 rw-p 000f3000 08:02 1019 > > > > > /usr/local/lib/libmapscript.so > > > > > > > > > > > > > > 46af8000-46afa000 rw-p 00000000 00:00 0 > > > > > > > 46afa000-46b5b000 r-xp 00000000 08:02 1035 > > > > > > > /usr/local/lib/libfreetype.so.6.3.10 > > > > > > > 46b5b000-46b5e000 rw-p 00061000 08:02 1035 > > > > > > > /usr/local/lib/libfreetype.so.6.3.10 > > > > > > > > > > > > > > 46b5e000-46b8e000 r-xp 00000000 08:01 210 > /usr/lib/libpng.so.3.1.2.8 > > > > > > > 46b8e000-46b8f000 rw-p 0002f000 08:01 210 > /usr/lib/libpng.so.3.1.2.8 > > > > > > > 46b8f000-46bc4000 r-xp 00000000 08:02 383 > > > > > /usr/local/lib/libproj.so.0.5.0 > > > > > > > > > > > > > > 46bc4000-46bc6000 rw-p 00035000 08:02 383 > > > > > /usr/local/lib/libproj.so.0.5.0 > > > > > > > 46bc6000-46edd000 r-xp 00000000 08:02 4586 > > > > > > > /usr/local/lib/libgdal.so.1.10.0 > > > > > > > 46edd000-46f32000 rw-p 00316000 08:02 4586 > > > > > > > /usr/local/lib/libgdal.so.1.10.0 > > > > > > > > > > > > > > 46f32000-46f47000 rw-p 00000000 00:00 0 > > > > > > > 46f47000-46fe2000 r-xp 00000000 08:01 141965 > > > /usr/lib/libstdc++.so.5.0.6 > > > > > > > 46fe2000-46ff9000 rw-p 0009b000 08:01 141965 > > > /usr/lib/libstdc++.so.5.0.6 > > > > > > > 46ff9000-46ffe000 rw-p 00000000 00:00 0 > > > > > > > > > > > > > > 46ffe000-4700c000 r-xp 00000000 08:01 69690 > > > > > /usr/X11R6/lib/libXpm.so.4.11 > > > > > > > 4700c000-4700d000 rw-p 0000e000 08:01 69690 > > > > > /usr/X11R6/lib/libXpm.so.4.11 > > > > > > > 4700d000-470d3000 r-xp 00000000 08:01 69832 > > > /usr/X11R6/lib/libX11.so.6.2 > > > > > > > > > > > > > > 470d3000-470d7000 rw-p 000c6000 08:01 69832 > > > /usr/X11R6/lib/libX11.so.6.2 > > > > > > > 470d7000-470fa000 r-xp 00000000 08:01 69699 > > > > > > > /usr/X11R6/lib/libfontconfig.so.1.0.4 > > > > > > > 470fa000-470fd000 rw-p 00022000 08:01 69699 > > > > > > > /usr/X11R6/lib/libfontconfig.so.1.0.4 > > > > > > > > > > > > > > 470fd000-470fe000 rw-p 00000000 00:00 0 > > > > > > > 470fe000-4712e000 r-xp 00000000 08:01 184 > > > /usr/lib/libpng12.so.0.1.2.8 > > > > > > > 4712e000-4712f000 rw-p 0002f000 08:01 184 > > > /usr/lib/libpng12.so.0.1.2.8 > > > > > > > 4712f000-4724f000 r-xp 00000000 08:02 4327 > > > > > > > /usr/local/lib/libNCSEcw.so.0.0.0 > > > > > > > > > > > > > > 4724f000-47258000 rw-p 00120000 08:02 4327 > > > > > > > /usr/local/lib/libNCSEcw.so.0.0.0 > > > > > > > 47258000-47265000 rw-p 00000000 00:00 0 > > > > > > > 47265000-47279000 r-xp 00000000 08:02 4339 > > > > > > > /usr/local/lib/libNCSCnet.so.0.0.0 > > > > > > > > > > > > > > 47279000-4727a000 rw-p 00014000 08:02 4339 > > > > > > > /usr/local/lib/libNCSCnet.so.0.0.0 > > > > > > > 4727a000-47299000 r-xp 00000000 08:02 4334 > > > > > > > /usr/local/lib/libNCSUtil.so.0.0.0 > > > > > > > 47299000-4729b000 rw-p 0001e000 08:02 4334 > > > > > > > /usr/local/lib/libNCSUtil.so.0.0.0 > > > > > > > > > > > > > > 4729b000-4729c000 rw-p 00000000 00:00 0 > > > > > > > 4729c000-472e7000 r-xp 00000000 08:01 52823 > > > /usr/lib/libtiff.so.3.7.1 > > > > > > > 472e7000-472e9000 rw-p 0004a000 08:01 52823 > > > /usr/lib/libtiff.so.3.7.1 > > > > > > > > > > > > > > --------------- S Y S T E M --------------- > > > > > > > > > > > > > > > > > > > > > OS:Linux > > > > > > > uname:Linux 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 > > > > > > > libc:glibc 2.3.4 linuxthreads-0.10 (fixed stack) > > > > > > > rlimit: STACK 2044k, CORE 0k, NPROC 7168, NOFILE 1024, AS > infinity > > > > > > > load average:3.44 2.84 > > > > > > > 1.27 > > > > > > > > > > > > > > CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht > > > > > > > > > > > > > > Memory: 4k page, physical 904220k(52168k free), swap > > > 2097136k(1994124k > > > > > free) > > > > > > > > > > > > > > vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for > linux-x86, > > > built > > > > > on > > > > > > > Nov 10 2005 12:08:33 by java_re with gcc > > > > > > > 3.2.1-7a (J2SE release) > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > "Everything under the sun is in tune > > > > > > > But the sun is eclipsed by the moon" > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > "Everything under the sun is in tune > > > > > But the sun is eclipsed by the moon" > > > > > > > > > > > > > > > > -- > > > > > > "Everything under the sun is in tune > > > But the sun is eclipsed by the moon" > > > > > > -- > > "Everything under the sun is in tune > But the sun is eclipsed by the moon" From elshayal at SMARTWEBONLINE.COM Fri Sep 22 08:51:55 2006 From: elshayal at SMARTWEBONLINE.COM (Mohamed Elshayal) Date: Fri, 22 Sep 2006 18:51:55 +0300 Subject: Query builder Message-ID: Hi Luca, do you mean a Query builder to search and select layer and then select field and then select value and then search in dbf file and then view the selected feature in the shape file "See the attached file picture" First, I have built this query builder in ASP to work with MapServer Second, I have modified it to work my software. Third, I am updating it to have more than one condition in one step Thank you and best personal Regards Awaiting for your reply Mohamed Elshayal http://www.smartwebonline.com/ The First Arabian GIS Software? ----- Original Message ----- From: "Luca Casagrande" To: Sent: Friday, September 22, 2006 2:46 PM Subject: [UMN_MAPSERVER-USERS] Query builder > Hi to all! > do you know if there are project that uses a query builder for SHP files? > > Thanks > Luca > > -- > "Chiunque pu_ simpatizzare col dolore di un amico, ma solo chi ha un animo > nobile riesce a simpatizzare col successo di un amico (Oscar Wilde)" > > LINUX User #411601 > GENTOO-GIS Development Team > jabber: casagrande at jabber.linux.it > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: queryBuilder1.JPG Type: image/jpeg Size: 34252 bytes Desc: not available URL: From buggy.pine at GMAIL.COM Fri Sep 22 08:50:01 2006 From: buggy.pine at GMAIL.COM (Buggy Pine) Date: Fri, 22 Sep 2006 16:50:01 +0100 Subject: Failed to open map file Message-ID: Hallo list, I'm having some problems with ms_newMapObj("mapfile.map"); where mapfile.map is in the same directory of PHP script page (atind.php). The warning message is: Warning: Failed to open map file mapfile.map in /home/mapserver/public_html/html/mapp/atind.php on line 38 I tryed also chmod 777 mapfile.map to exclude permission issues, but the warning message is the same... Mapserver version is 4.8.3 on Linux Gentoo No problems with the same PHP/Mspscript project on Suse 9.2 with mapserver 4.6.1... I will be glad if any one of you can help me!!! TIA Ruggero From szekerest at GMAIL.COM Fri Sep 22 09:04:09 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 22 Sep 2006 18:04:09 +0200 Subject: WMS and C# Mapscript In-Reply-To: <004101c6de4d$ece92bf0$690ba8c0@TFD620> Message-ID: Hi, Did you mean that the same mapfile works with the mapserv application, but not works when loading into a mapObj using mapscript? Tamas 2006/9/22, Todd Fagin : > > > > > Greetings list, > > > > We are using the following to access data from a WMS. It works fine in a > straight map file, but does not work with a C# mapscript. The error message > simply states "System.ApplicationException was unhandled. Message="No such > file or directory". Source="mapscript_csharp"" > > > > Any suggestions would be greatly appreciated. > > > > LAYER > > NAME "wms_2003" > > GROUP "Imagery" > > TYPE RASTER > > STATUS ON > > CONNECTION > "http://maps.scigis.com/wmsconnector/com.esri.wms.Esrimap/WMS_COLOR_DOQQ?" > > CONNECTIONTYPE WMS > > TRANSPARENCY 60 > > METADATA > > "wms_srs" "EPSG:102003" > > "wms_name" "1" > > "wms_server_version" "1.1.1" > > "wms_format" "image/png" > > "wms_title" "2003 Aerial Photos" > > "NoID" "T" > > legend_order "4" > > END > > END > > > > > > Todd Fagin > > > > Coordinate Solutions, Inc. > > > 501 N.E. 15th St. > > > Oklahoma City, OK 73104 > > > 405.246.9396 (Voice) > > > 405.227.0781 (Fax) From tfagin at COORDINATESOLUTIONS.COM Fri Sep 22 09:12:30 2006 From: tfagin at COORDINATESOLUTIONS.COM (Todd Fagin) Date: Fri, 22 Sep 2006 11:12:30 -0500 Subject: WMS and C# Mapscript In-Reply-To: Message-ID: The answer to your question is yes, it works in CGI MapServer, but not C# MapServer. We have tracked the problem down to the location of the Proj library files and are currently attempting to work through it. Thanks, Todd Fagin Coordinate Solutions, Inc. 501 N.E. 15th St. Oklahoma City, OK 73104 405.246.9396 (Voice) 405.227.0781 (Fax) -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tamas Szekeres Sent: Friday, September 22, 2006 11:04 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS and C# Mapscript Hi, Did you mean that the same mapfile works with the mapserv application, but not works when loading into a mapObj using mapscript? Tamas 2006/9/22, Todd Fagin : > > > > > Greetings list, > > > > We are using the following to access data from a WMS. It works fine in a > straight map file, but does not work with a C# mapscript. The error message > simply states "System.ApplicationException was unhandled. Message="No such > file or directory". Source="mapscript_csharp"" > > > > Any suggestions would be greatly appreciated. > > > > LAYER > > NAME "wms_2003" > > GROUP "Imagery" > > TYPE RASTER > > STATUS ON > > CONNECTION > "http://maps.scigis.com/wmsconnector/com.esri.wms.Esrimap/WMS_COLOR_DOQQ?" > > CONNECTIONTYPE WMS > > TRANSPARENCY 60 > > METADATA > > "wms_srs" "EPSG:102003" > > "wms_name" "1" > > "wms_server_version" "1.1.1" > > "wms_format" "image/png" > > "wms_title" "2003 Aerial Photos" > > "NoID" "T" > > legend_order "4" > > END > > END > > > > > > Todd Fagin > > > > Coordinate Solutions, Inc. > > > 501 N.E. 15th St. > > > Oklahoma City, OK 73104 > > > 405.246.9396 (Voice) > > > 405.227.0781 (Fax) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdege at KORTERRA.COM Fri Sep 22 13:25:17 2006 From: jdege at KORTERRA.COM (Jeff Dege) Date: Fri, 22 Sep 2006 15:25:17 -0500 Subject: Multiple feature queries to WFS? Message-ID: I have a number of features for which I need bounding boxes. I've configured a mapserver installation to provide a WFS that I can query to get these boxes, and that's working fine. I send the URL, with a filter included, and I get back a bunch of XML I can parse to find the bounding box. Problem is that doing it for the bunch of them is rather slow. Would it be possible to include more than one feature in each request? My query is: http: //domain/cgi-bin/mapserv.exe?map=/path/mapfile.map& SERVICE=WFS& VERSION=1.0.0& REQUEST=getfeature& TYPENAME=featurecode& FILTER= featurecode featurevalue (Minus the formatting that I added to make it readable of course.) Can I include multiple matches in a filter? Is there a limit to how large my filterXML can get? From jdege at KORTERRA.COM Fri Sep 22 13:39:18 2006 From: jdege at KORTERRA.COM (Jeff Dege) Date: Fri, 22 Sep 2006 15:39:18 -0500 Subject: Filtering attributes in WFS? Message-ID: Looking again at my WFS queries, I'm seeing that one of the reasons they are taking so long is that some of them are returning a large amount of data. One, for example, is returning 7.5Meg of data. Is there a way, in WFS, to filter which attributes I want returned? To have it return only the feature's bounding box, and not it's geometry? From volunteer at SPATIALLINK.ORG Fri Sep 22 15:47:59 2006 From: volunteer at SPATIALLINK.ORG (siva) Date: Fri, 22 Sep 2006 15:47:59 -0700 Subject: multiple style in class Message-ID: hello will some one give example of multiple style in class?? map has many layer. layer has many class. why class has many style?? many thank yous sincerely sshekar From viaris at GMAIL.COM Fri Sep 22 15:53:26 2006 From: viaris at GMAIL.COM (Vida Luz Arista) Date: Fri, 22 Sep 2006 17:53:26 -0500 Subject: Begining With Map Server Message-ID: Hi All, In theUniversity we have a project for , We need to use a mapserver to see online when a vehicule is running, we have the maps, this was created with Arcview, I have twot questions. - Can I to use this maps ? - using mapserver I can to move the object in the map ? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri Sep 22 16:09:30 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 22 Sep 2006 19:09:30 -0400 Subject: multiple style in class In-Reply-To: <20060922154759.b22b5ede89d48a4249261b5ab56693f4.f1ac70d6b2.wbe@email.secureserver.net> Message-ID: siva wrote: > hello will some one give example of multiple style in class?? > > map has many layer. layer has many class. why class has many style?? > > many thank yous > sincerely > sshekar SShekar, I believe multiple styles are normally used for "multi part" drawing. For instance, a think highway line with a thin line down the center might be handled as a class with two styles. The first style is the thick line, and the second style is the thin line. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From volunteer at SPATIALLINK.ORG Fri Sep 22 16:52:42 2006 From: volunteer at SPATIALLINK.ORG (siva) Date: Fri, 22 Sep 2006 16:52:42 -0700 Subject: class status off on?? Message-ID: hello map_layername_class_#_status=off not possible?? how i chnage class status?? many thank yous sincerely sshekar From bob.b at GRITECHNOLOGIES.COM Fri Sep 22 18:48:56 2006 From: bob.b at GRITECHNOLOGIES.COM (Bob Basques) Date: Fri, 22 Sep 2006 20:48:56 -0500 Subject: HTML Legend. Message-ID: All, Hi all, I've been using the HTML legend for a while now with very good results, I have a check box system working nicely showing when a layer is on/off, etc. I was wondering, has anyone an example of setting it up to grey out a checkbox if the scale of view is out of range (MINSCALE/MAXSCALE in the mapfile). I have an idea of how it might be done, but not sure. Just asking before I go at it from scratch. Here is my Legend TEMPLATE as it stands now along with a typical MAPFILE entry, and a sample output on the end: MAPFILE ENTRY (one of many :c): METADATA LEGEND_TITLE "Census Tract Centroids" LEGEND_META_GROUP "foreground" LEGEND_DISPLAY_LEVEL "1" END LEGEND TEMPLATE: [leg_header_html] [/leg_header_html] [leg_group_html] [if name=first_foreground_layer oper=isset] Foreground:
[/if] [if name=first_background_layer oper=isset] Background:
[/if] [if name=legend_display_level oper=isset] [if name=legend_display_level oper=neq value=-1] [if name=layer_status oper=neq value=2] [if name=group_maxscale oper=isset] [/if] [if name=group_minscale oper=isset] [/if] [leg_group_name] Legend Image [/if] [if name=metadata_url oper=isset] [/if] [if name=legend_title oper=isset] [metadata name=LEGEND_TITLE] [/if] [if name=metadata_url oper=isset] [/if]
[/if] [/if] [/leg_group_html] [leg_layer_html opt_flag=0] [if name=legend_display_level oper=isset] [if name=legend_display_level oper=eq value=2] Group Legend Image
[leg_layer_name]
[/if] [/if] [/leg_layer_html] [leg_class_html opt_flag=0] [if name=legend_display_level oper=isset] [if name=legend_display_level oper=eq value=3] Class Legend Image
[leg_class_name]
[/if] [/if] [/leg_class_html] [leg_footer_html] [/leg_footer_html] OUTPUT: bg_mntrct00_point Legend Image Census Tract Centroids
-------------- next part -------------- An HTML attachment was scrubbed... URL: From volunteer at SPATIALLINK.ORG Fri Sep 22 20:58:45 2006 From: volunteer at SPATIALLINK.ORG (siva) Date: Fri, 22 Sep 2006 20:58:45 -0700 Subject: class status off on?? Message-ID: hello again how i make map_layername_class_color=255+0+0 persistant?? many thank yous sincerely sshekar > -------- Original Message -------- > Subject: [UMN_MAPSERVER-USERS] class status off on?? > From: siva > Date: Fri, September 22, 2006 7:52 pm > To: MAPSERVER-USERS at LISTS.UMN.EDU > > hello map_layername_class_#_status=off not possible?? how i chnage class > status?? > > many thank yous > sincerely > sshekar From bartvde at OSGIS.NL Sat Sep 23 00:27:16 2006 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 23 Sep 2006 09:27:16 +0200 Subject: Multiple feature queries to WFS? In-Reply-To: <3BF1166FC5125A47ABB8FD2F2EE5FDD27F602D@mrburns.KorOffice.korterra.com> Message-ID: Hi Jeff, you can get multiple by combining the PropertyIsEqualTo's with the tag. Also, what datastore are you using? Remember that shapefiles have no attribute indexes, so access on an attribute will be slow and requires parsing of the whole shapefile normally. This kind of use case might be better of in PostGIS. The limit is usually the limit of the web server, Apache's limit is somewhere around 8000 characters (HTTP GET). Best regards, Bart Jeff Dege schreef: > I have a number of features for which I need bounding boxes. > > I've configured a mapserver installation to provide a WFS that I can > query to get these boxes, and that's working fine. I send the URL, with > a filter included, and I get back a bunch of XML I can parse to find the > bounding box. > > Problem is that doing it for the bunch of them is rather slow. > > Would it be possible to include more than one feature in each request? > > My query is: > > http: > //domain/cgi-bin/mapserv.exe?map=/path/mapfile.map& > SERVICE=WFS& > VERSION=1.0.0& > REQUEST=getfeature& > TYPENAME=featurecode& > FILTER= > > > featurecode > featurevalue > > > > (Minus the formatting that I added to make it readable of course.) > > Can I include multiple matches in a filter? > > Is there a limit to how large my filterXML can get? > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at OSGIS.NL Sat Sep 23 00:41:03 2006 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 23 Sep 2006 09:41:03 +0200 Subject: Filtering attributes in WFS? In-Reply-To: <3BF1166FC5125A47ABB8FD2F2EE5FDD27F602E@mrburns.KorOffice.korterra.com> Message-ID: Hi Jeff, in WFS it's possible, but Mapserver does not support it client-side, see for details: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=675 If you have some funding, it could finally be added though. Alternatively, you can however set this server-side, look at gml_exclude_items in the WFS server howto. Also, if you want to exclude the geometry, in the 4.10 version you should be able to use: GML_GEOMETRIES "none" Hope this helps. Best regards, Bart Jeff Dege schreef: > Looking again at my WFS queries, I'm seeing that one of the reasons they > are taking so long is that some of them are returning a large amount of > data. > > One, for example, is returning 7.5Meg of data. > > Is there a way, in WFS, to filter which attributes I want returned? > > To have it return only the feature's bounding box, and not it's > geometry? > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at OSGIS.NL Sat Sep 23 00:45:08 2006 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 23 Sep 2006 09:45:08 +0200 Subject: HTML Legend. In-Reply-To: <45149288.5040907@gritechnologies.com> Message-ID: Hi Bob, have a look here: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=648 It was added in 4.4. Best regards, Bart Bob Basques schreef: > All, > > Hi all, I've been using the HTML legend for a while now with very good > results, I have a check box system working nicely showing when a layer > is on/off, etc. > > I was wondering, has anyone an example of setting it up to grey out a > checkbox if the scale of view is out of range (MINSCALE/MAXSCALE in > the mapfile). I have an idea of how it might be done, but not sure. > Just asking before I go at it from scratch. > > Here is my Legend TEMPLATE as it stands now along with a typical > MAPFILE entry, and a sample output on the end: > > MAPFILE ENTRY (one of many :c): > > METADATA > LEGEND_TITLE "Census Tract Centroids" > LEGEND_META_GROUP "foreground" > LEGEND_DISPLAY_LEVEL "1" > END > > > LEGEND TEMPLATE: > > [leg_header_html] > [/leg_header_html] > > [leg_group_html] > [if name=first_foreground_layer oper=isset] Foreground:
/> [/if] > [if name=first_background_layer oper=isset] Background:
/> [/if] > > [if name=legend_display_level oper=isset] > [if name=legend_display_level oper=neq value=-1] > [if name=layer_status oper=neq value=2] > [if name=legend_meta_group oper=eq value=foreground] > type="checkbox" [/if] > [if name=legend_meta_group oper=eq value=background] type="radio" > [/if] > name="layer" value="[leg_group_name]" > [if name=layer_status oper=neq value=0] checked="checked" [/if] /> > [if name=group_maxscale oper=isset] > value="[metadata name=group_maxscale]" /> > [/if] > [if name=group_minscale oper=isset] > value="[metadata name=group_minscale]" /> > [/if] > [leg_group_name] Legend Image name="[leg_group_name]LegendImg" src="[leg_icon]" width="21" > height="14" /> > [/if] > [if name=metadata_url oper=isset] > > [/if] > [if name=legend_title oper=isset] > [metadata name=LEGEND_TITLE] > [/if] > [if name=metadata_url oper=isset] > > [/if] >
> [/if] > [/if] > [/leg_group_html] > > > [leg_layer_html opt_flag=0] > [if name=legend_display_level oper=isset] > [if name=legend_display_level oper=eq value=2] > Group Legend Image height="14" />
[leg_layer_name]
> [/if] > [/if] > [/leg_layer_html] > > > [leg_class_html opt_flag=0] > [if name=legend_display_level oper=isset] > [if name=legend_display_level oper=eq value=3] > Class Legend Image height="14" />
[leg_class_name]
> [/if] > [/if] > [/leg_class_html] > [leg_footer_html] > [/leg_footer_html] > > > > OUTPUT: > > type="checkbox" name="layer" value="bg_mntrct00_point" /> > > bg_mntrct00_point Legend Image > > Census Tract Centroids > > >
> > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From w.blanken at GEON.NL Sat Sep 23 00:48:26 2006 From: w.blanken at GEON.NL (Wim Blanken) Date: Sat, 23 Sep 2006 09:48:26 +0200 Subject: HTML Legend. In-Reply-To: <45149288.5040907@gritechnologies.com> Message-ID: Hello Bob, We did it a long time ago with a metadata setting containing the max and minscale. Below you can see our html legend. Don't mind the javascript... I have also included a layer from a mapfile to see the metadatasetting. Regards, Wim Blanken Geon bv The Netherlands ------------------------------------------- [leg_layer_html opt_flag=11] [if name=gvLegend oper=isset] [if name=gvLegend oper=neq value=-1] [if name=gvLegend oper=eq value=0] [if name=layer_status oper=eq value=1]   [metadata name=gvLayerTitle] [/if] [/if] [if name=gvLegend oper=neq value=0] [if name=layer_status oper=eq value=2]   [/if] [if name=layer_status oper=neq value=2] [/if] [if name=gvLayerQuery oper=eq value=true] [/if] [if name=gvLayerQuery oper=neq value=true]   [/if] [if name=gvLegend oper=eq value=1]   [/if] [if name=gvLegend oper=eq value=2] [if name=layer_status oper=eq value=0]   [/if] [if name=layer_status oper=neq value=0] [/if] [/if] [metadata name=gvLayerTitle] (M) [/if] [/if] [/if] [/leg_layer_html] [leg_class_html opt_flag=0]     [leg_class_name] [/leg_class_html] MAPFILE PART: LAYER NAME "Buildings" MAXSCALE 15000 TYPE Line STATUS ON DATA "buildings" CLASS NAME "Gebouwen" STYLE SIZE 1.5 SYMBOL 'simple' COLOR 250 50 50 END END # CLASS METADATA gvLayerTitle "Gebouwen" gvLegend "1" gvLayerQuery "false" gvMaxScale "15000" END END # LAYER _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bob Basques Sent: zaterdag 23 september 2006 3:49 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] HTML Legend. All, Hi all, I've been using the HTML legend for a while now with very good results, I have a check box system working nicely showing when a layer is on/off, etc. I was wondering, has anyone an example of setting it up to grey out a checkbox if the scale of view is out of range (MINSCALE/MAXSCALE in the mapfile). I have an idea of how it might be done, but not sure. Just asking before I go at it from scratch. Here is my Legend TEMPLATE as it stands now along with a typical MAPFILE entry, and a sample output on the end: MAPFILE ENTRY (one of many :c): METADATA LEGEND_TITLE "Census Tract Centroids" LEGEND_META_GROUP "foreground" LEGEND_DISPLAY_LEVEL "1" END LEGEND TEMPLATE: [leg_header_html] [/leg_header_html] [leg_group_html] [if name=first_foreground_layer oper=isset] Foreground:
[/if] [if name=first_background_layer oper=isset] Background:
[/if] [if name=legend_display_level oper=isset] [if name=legend_display_level oper=neq value=-1] [if name=layer_status oper=neq value=2] [if name=group_maxscale oper=isset] [/if] [if name=group_minscale oper=isset] [/if] [leg_group_name] Legend Image [/if] [if name=metadata_url oper=isset] [/if] [if name=legend_title oper=isset] [metadata name=LEGEND_TITLE] [/if] [if name=metadata_url oper=isset] [/if]
[/if] [/if] [/leg_group_html] [leg_layer_html opt_flag=0] [if name=legend_display_level oper=isset] [if name=legend_display_level oper=eq value=2] Group Legend Image
[leg_layer_name]
[/if] [/if] [/leg_layer_html] [leg_class_html opt_flag=0] [if name=legend_display_level oper=isset] [if name=legend_display_level oper=eq value=3] Class Legend Image
[leg_class_name]
[/if] [/if] [/leg_class_html] [leg_footer_html] [/leg_footer_html] OUTPUT: bg_mntrct00_point Legend Image Census Tract Centroids
-------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at TYDAC.CH Sat Sep 23 01:26:00 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Sat, 23 Sep 2006 10:26:00 +0200 Subject: Photos FOSS4G2006 In-Reply-To: <0J6100FA6CF12H@smtp19.wxs.nl> Message-ID: Hello List our pictures are online (sorry, tons ...), enjoy: http://www.tydac.ch/foss4g2006/ Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Wim Blanken To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Sat, 23 Sep 2006 09:48:26 +0200 Subject: Re: [UMN_MAPSERVER-USERS] HTML Legend. > Hello Bob, > > > > We did it a long time ago with a metadata setting containing the max > and > minscale. Below you can see our html legend. Don't mind the > javascript... I > have also included a layer from a mapfile to see the metadatasetting. > > > > Regards, > > > > Wim Blanken > > Geon bv > > The Netherlands > > > > ------------------------------------------- > > [leg_layer_html opt_flag=11] > > [if name=gvLegend oper=isset] [if name=gvLegend oper=neq > value=-1] > > > > [if name=gvLegend oper=eq value=0] [if name=layer_status oper=eq > value=1] > > > > value="[leg_layer_name]" [[leg_layer_name]_check] > ONCLICK="javascript:layerToggle('[leg_layer_name]');">  > > > > > [metadata name=gvLayerTitle] > > > > [/if] [/if] > > > > [if name=gvLegend oper=neq value=0] > > > > > > > > [if name=layer_status oper=eq value=2] > >   > > [/if] > > [if name=layer_status oper=neq value=2] > > value="[leg_layer_name]" > [[leg_layer_name]_check] > ONCLICK="javascript:layerToggle('[leg_layer_name]');"> > > [/if] > > > > > > [if name=gvLayerQuery oper=eq value=true] > > value="[leg_layer_name]" > group="activelayerradio" > ONCLICK="javascript:activeLayerToggle('[leg_layer_name]');" > > > [/if] > > [if name=gvLayerQuery oper=neq value=true] > >   > > [/if] > > > > > > [if name=gvLegend oper=eq value=1] > >   > > [/if] > > [if name=gvLegend oper=eq value=2] > > [if name=layer_status oper=eq value=0] > >   > > [/if] > > [if name=layer_status oper=neq value=0] > > > > [/if] > > [/if] > > > > [metadata name=gvLayerTitle] HREF="javascript:metainfo('[metadata name=gvLayerTitle]');" > onmouseover="return overlib('Metainformatie opvragen over [metadata > name=gvLayerTitle]',FGCOLOR, > '#ffffee',WIDTH,100,DELAY,500,HAUTO,AUTOSTATUS);" onmouseout="return > nd();">(M) > > > > [/if] > > > > [/if] [/if] > > [/leg_layer_html] > > > > [leg_class_html opt_flag=0] > > > >     > > > > [leg_class_name] > > > > [/leg_class_html] > > > > > > MAPFILE PART: > > > > LAYER > > NAME "Buildings" > > MAXSCALE 15000 > > TYPE Line > > STATUS ON > > DATA "buildings" > > CLASS > > NAME "Gebouwen" > > STYLE > > SIZE 1.5 > > SYMBOL 'simple' > > COLOR 250 50 50 > > END > > END # CLASS > > METADATA > > gvLayerTitle "Gebouwen" > > gvLegend "1" > > gvLayerQuery "false" > > gvMaxScale "15000" > > END > > END # LAYER > > > > _____ > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > Behalf Of Bob Basques > Sent: zaterdag 23 september 2006 3:49 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] HTML Legend. > > > > All, > > Hi all, I've been using the HTML legend for a while now with very > good > results, I have a check box system working nicely showing when a > layer is > on/off, etc. > > I was wondering, has anyone an example of setting it up to grey out a > checkbox if the scale of view is out of range (MINSCALE/MAXSCALE in > the > mapfile). I have an idea of how it might be done, but not sure. > Just > asking before I go at it from scratch. > > Here is my Legend TEMPLATE as it stands now along with a typical > MAPFILE > entry, and a sample output on the end: > > MAPFILE ENTRY (one of many :c): > > METADATA > LEGEND_TITLE "Census Tract Centroids" > LEGEND_META_GROUP "foreground" > LEGEND_DISPLAY_LEVEL "1" > END > > > LEGEND TEMPLATE: > > [leg_header_html] > [/leg_header_html] > > [leg_group_html] > [if name=first_foreground_layer oper=isset] Foreground:
> [/if] > [if name=first_background_layer oper=isset] Background:
> [/if] > > [if name=legend_display_level oper=isset] > [if name=legend_display_level oper=neq value=-1] > [if name=layer_status oper=neq value=2] > [if name=legend_meta_group oper=eq value=foreground] type="checkbox" > [/if] > [if name=legend_meta_group oper=eq value=background] type="radio" > [/if] > name="layer" value="[leg_group_name]" > [if name=layer_status oper=neq value=0] checked="checked" [/if] /> > [if name=group_maxscale oper=isset] > value="[metadata > name=group_maxscale]" /> > [/if] > [if name=group_minscale oper=isset] > value="[metadata > name=group_minscale]" /> > [/if] > [leg_group_name] Legend Image name="[leg_group_name]LegendImg" > src="[leg_icon]" width="21" height="14" /> > [/if] > [if name=metadata_url oper=isset] > > [/if] > [if name=legend_title oper=isset] > [metadata name=LEGEND_TITLE] > [/if] > [if name=metadata_url oper=isset] > > [/if] >
> [/if] > [/if] > [/leg_group_html] > > > [leg_layer_html opt_flag=0] > [if name=legend_display_level oper=isset] > [if name=legend_display_level oper=eq value=2] > Group Legend Image />
/>[leg_layer_name]
> [/if] > [/if] > [/leg_layer_html] > > > [leg_class_html opt_flag=0] > [if name=legend_display_level oper=isset] > [if name=legend_display_level oper=eq value=3] > Class Legend Image />
/>[leg_class_name]
> [/if] > [/if] > [/leg_class_html] > [leg_footer_html] > [/leg_footer_html] > > > > OUTPUT: > > type="checkbox" name="layer" value="bg_mntrct00_point" /> > > bg_mntrct00_point Legend Image name="bg_mntrct00_pointLegendImg" > src="/tmp/view_27723_1158975512_22_0_20_12.png" width="21" > height="14" /> > > Census Tract Centroids > >
> > > > > > From stanley at FRESCO.SR.UNH.EDU Sat Sep 23 05:59:32 2006 From: stanley at FRESCO.SR.UNH.EDU (Stanley Glidden) Date: Sat, 23 Sep 2006 08:59:32 -0400 Subject: Example of valid NetCDF (cf) file and .map file needed. Message-ID: Can someone point me to a simple example of a .map file and a corresponding NetCDF (cf) file so that I can download them and see the required information to display NetCDF with mapserver. Thanks. From Walter.Pleyer at LFRZ.AT Sun Sep 24 23:54:03 2006 From: Walter.Pleyer at LFRZ.AT (Pleyer, Walter) Date: Mon, 25 Sep 2006 08:54:03 +0200 Subject: current Mapserver binaries for Windows woth SDE support Message-ID: Hi folks! Does someone know where I can get current Mapserver binaries for Windows with SDE support? Thanks, Walter LFRZ A-1200 Wien, Dresdner Strasse 89 Tel: ++43(1)33 176/421 Fax: ++43(1)33 176/999 Mobil: 0676/5256642 Email: walter.pleyer at lfrz.at WWW: http://www.lfrz.at From Jukka.Rahkonen at MMMTIKE.FI Sun Sep 24 23:59:42 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 25 Sep 2006 09:59:42 +0300 Subject: current Mapserver binaries for Windows woth SDE support Message-ID: Hi, MS4W main page seems to inform: * MapServer CGI 4.8.4 * MapScript 4.8.4 (CSharp, Java, PHP, Python) * Includes support for Oracle 10g, and SDE 9.1 data (if you have associated client/dlls) Regards, -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Pleyer, Walter L?hetetty: ma 25.9.2006 9:54 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] current Mapserver binaries for Windows woth SDE support Hi folks! Does someone know where I can get current Mapserver binaries for Windows with SDE support? Thanks, Walter LFRZ A-1200 Wien, Dresdner Strasse 89 Tel: ++43(1)33 176/421 Fax: ++43(1)33 176/999 Mobil: 0676/5256642 Email: walter.pleyer at lfrz.at WWW: http://www.lfrz.at From beyhan at DEPREM.GOV.TR Mon Sep 25 00:43:42 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Mon, 25 Sep 2006 10:43:42 +0300 Subject: Draw point by using phpMapscript Message-ID: Dear friends; I'm trying to draw a point on the map by using phpMapscript. My code : $lat=40.15 $lon=38.45 $map_path="/var/www/html/zone/"; $map = ms_newMapObj($map_path."zone.map"); $point=ms_newPointObj($lat, $lon); $map_url=$image->saveWebImage(); $st_pos_url=$image1->saveWebImage(); $image=$map->draw(); $image1=$point->draw(); I would like to see a point as a layer on the map. But I couldn't do that. What is my mistake. Thank you... Murat. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From beyhan at DEPREM.GOV.TR Mon Sep 25 03:24:52 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Mon, 25 Sep 2006 13:24:52 +0300 Subject: Draw point by using phpMapscript In-Reply-To: <20060925073547.M86780@deprem.gov.tr> Message-ID: Dear Friends; I have found some information on the list archieve. And I have added Camden's solution to my mapscript. But still I could not draw a point on the map. What Am I do wrong? Any idea would be appreciated.... Regards Murat The code are here... function add_point_to_layer($layer, $longitude, $latitude) { // create and initialize new point object $point = ms_newPointObj(); $point->setXY($longitude, $latitude); // create and initialize new line object $line = ms_newLineObj(); $line->add($point); // create and initialize new shape object $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape->add($line); // add our shape $layer->addFeature($shape); } $map_path="/var/www/html/zone/"; $map = ms_newMapObj($map_path."zone.map"); $map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); $layer = ms_newLayerObj($map); $layer->set("name","Point"); $layer->set("type",MS_LAYER_POINT); $layer->set("status", MS_ON); add_point_to_layer($layer, $lon, $lat); $ref = $map->drawreferencemap(); $legend=$map->drawLegend(); $image=$map->draw(); $map_url=$image->saveWebImage(); $ref_url = $ref->saveWebImage(); $legend_url=$legend->saveWebImage(); On Mon, 25 Sep 2006 10:43:42 +0300, Murat BEYHAN wrote > Dear friends; > > I'm trying to draw a point on the map by using phpMapscript. > My code : > > $lat=40.15 > $lon=38.45 > $map_path="/var/www/html/zone/"; > $map = ms_newMapObj($map_path."zone.map"); > $point=ms_newPointObj($lat, $lon); > > $map_url=$image->saveWebImage(); > $st_pos_url=$image1->saveWebImage(); > > $image=$map->draw(); > $image1=$point->draw(); > > > > I would like to see a point as a layer on the map. > But I couldn't do that. > What is my mistake. > Thank you... > Murat. > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From proxiroxp at YAHOO.GR Mon Sep 25 03:53:29 2006 From: proxiroxp at YAHOO.GR (K S) Date: Mon, 25 Sep 2006 11:53:29 +0100 Subject: Load raster images using wms Message-ID: I need to load raster images from a site on the internet. I believe that i need to find a wms server on the internet from which i can load raster images to my mapserver.How could this be possible? I have read documentation about it and I wonder how can i find information in order to fill this data to my map file (example): CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:42304" "wms_name" "prov_bound" "wms_server_version" "1.1.1" "wms_format" "image/gif" END --------------------------------- ?????????????? Yahoo! ?????????? ?? ?????????? ???? ???? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr -------------- next part -------------- An HTML attachment was scrubbed... URL: From cplist at EARTHLINK.NET Mon Sep 25 04:50:09 2006 From: cplist at EARTHLINK.NET (Charlton Purvis) Date: Mon, 25 Sep 2006 07:50:09 -0400 Subject: Draw point by using phpMapscript In-Reply-To: <20060925073547.M86780@deprem.gov.tr> Message-ID: > $point=ms_newPointObj($lat, $lon); Perhaps try reversing the parameters, $point=ms_newPointObj($lon, $lat); From beyhan at DEPREM.GOV.TR Mon Sep 25 05:18:09 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Mon, 25 Sep 2006 15:18:09 +0300 Subject: Draw point by using phpMapscript(3) In-Reply-To: <003101c6e098$c14652a0$0300a8c1@latitude> Message-ID: Dear Charlton; I have tried many example and also Tried your suggestion But Still I couldn't got result.... Dear All; I'm asking to the mapserver specialist ' how can I draw point on the map that point value already variable in the php files like $lon,$lat'. This following example is the third attempt but still the point doesn't appearing on the map. Please help me What is the code to draw point on the map by using PHP... I have tried the following but still doesn't work. Just Drawing map without point. $map_path="/var/www/html/zone/"; $map = ms_newMapObj($map_path."zone.map"); $map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); // create a temp layer to hold our points $point_layer = ms_newLayerObj($map); $point_layer->set("name", "markers"); $point_layer->set("type", MS_LAYER_POINT); $point_layer->set("status", MS_DEFAULT); $point_layer->setProjection("proj=latlong",MS_TRUE); // create a class and style for this layer $point_class = ms_newClassObj($point_layer); $point_style = ms_newStyleObj($point_class); $point_symbol = $map->getSymbolByName("cpoint"); $point_style->set("symbol", $point_symbol); $point_style->set("size", 20); // draw our image without the points $ref = $map->drawreferencemap(); $legend=$map->drawLegend(); $image = $map->draw(); // initialize our point and add it to the map $point = ms_newPointObj(); $longitude=$lon;// comes from select queries from mysql as a result $latitude=$lat;// comes from select queries from mysql as a result $point->setXY($longitude, $latitude); $point->draw($map, $point_layer, $image, 0, ""); $map_url=$image->saveWebImage(); $ref_url = $ref->saveWebImage(); $legend_url=$legend->saveWebImage(); On Mon, 25 Sep 2006 07:50:09 -0400, Charlton Purvis wrote > > $point=ms_newPointObj($lat, $lon); > > Perhaps try reversing the parameters, > > $point=ms_newPointObj($lon, $lat); > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From mikesaunt at GMAIL.COM Mon Sep 25 05:40:22 2006 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Mon, 25 Sep 2006 13:40:22 +0100 Subject: current Mapserver binaries for Windows woth SDE support In-Reply-To: Message-ID: Hi Walter Is there a shared directory? You bascially overwrite the libmap.dll when you have teh clients DLL's in the path. ALl should work fine. We also keep a 'vanilla' folder in the shared thatkeeps the original one. This has bade it really convenient for us! Cheers Mike On 25/09/06, Rahkonen Jukka wrote: > > Hi, > > MS4W main page seems to inform: > > > * MapServer CGI 4.8.4 > * MapScript 4.8.4 (CSharp, Java, PHP, Python) > * Includes support for Oracle 10g, and SDE 9.1 data (if you have > associated client/dlls) > > Regards, > > -Jukka Rahkonen- > > > > ________________________________ > > L?hett?j?: UMN MapServer Users List puolesta: Pleyer, Walter > L?hetetty: ma 25.9.2006 9:54 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: [UMN_MAPSERVER-USERS] current Mapserver binaries for Windows woth > SDE support > > > > Hi folks! > > Does someone know where I can get current Mapserver binaries for Windows > with SDE support? > > Thanks, > Walter > > LFRZ > A-1200 Wien, Dresdner Strasse 89 > Tel: ++43(1)33 176/421 > Fax: ++43(1)33 176/999 > Mobil: 0676/5256642 > Email: walter.pleyer at lfrz.at > WWW: http://www.lfrz.at > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Mon Sep 25 06:06:17 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 25 Sep 2006 08:06:17 -0500 Subject: class status off on?? In-Reply-To: A<20060922205845.b22b5ede89d48a4249261b5ab56693f4.ea1e6a2cb4.wbe@email.secureserver.net> Message-ID: Sshekar, A class does not have a status property. http://mapserver.gis.umn.edu/docs/reference/mapfile/class A layer does have a status property. http://mapserver.gis.umn.edu/docs/reference/mapfile/layer David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of siva Sent: Friday, September 22, 2006 10:59 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] class status off on?? hello again how i make map_layername_class_color=255+0+0 persistant?? many thank yous sincerely sshekar > -------- Original Message -------- > Subject: [UMN_MAPSERVER-USERS] class status off on?? > From: siva > Date: Fri, September 22, 2006 7:52 pm > To: MAPSERVER-USERS at LISTS.UMN.EDU > > hello map_layername_class_#_status=off not possible?? how i chnage > class status?? > > many thank yous > sincerely > sshekar From David.Fawcett at STATE.MN.US Mon Sep 25 06:27:13 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 25 Sep 2006 08:27:13 -0500 Subject: class status off on?? In-Reply-To: A<6246727221874A4FB8D3F9BBC37D9BD5FB09E4@s-sp22.pca.state.mn.us> Message-ID: Sorry, I was trying to reply to this message: hello map_layername_class_#_status=off not possible?? how i chnage class status?? many thank yous sincerely sshekar -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fawcett, David Sent: Monday, September 25, 2006 8:06 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] class status off on?? Sshekar, A class does not have a status property. http://mapserver.gis.umn.edu/docs/reference/mapfile/class A layer does have a status property. http://mapserver.gis.umn.edu/docs/reference/mapfile/layer David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of siva Sent: Friday, September 22, 2006 10:59 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] class status off on?? hello again how i make map_layername_class_color=255+0+0 persistant?? many thank yous sincerely sshekar > -------- Original Message -------- > Subject: [UMN_MAPSERVER-USERS] class status off on?? > From: siva > Date: Fri, September 22, 2006 7:52 pm > To: MAPSERVER-USERS at LISTS.UMN.EDU > > hello map_layername_class_#_status=off not possible?? how i chnage > class status?? > > many thank yous > sincerely > sshekar From viaris at GMAIL.COM Mon Sep 25 07:06:29 2006 From: viaris at GMAIL.COM (Vida Luz Arista) Date: Mon, 25 Sep 2006 08:06:29 -0600 Subject: Begining With Map Server In-Reply-To: <636cf2bf0609221553j7be8699ex59d10c625589ea86@mail.gmail.com> Message-ID: Hi All, In theUniversity we have a project for , We need to use a mapserver to see online when a vehicule is running, we have the maps, this was created with Arcview, I have twot questions. - Can I to use this maps ? - using mapserver I can to move the object in the map ? Regards From tylermitchell at SHAW.CA Mon Sep 25 07:08:24 2006 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 25 Sep 2006 07:08:24 -0700 Subject: Load raster images using wms In-Reply-To: <20060925105330.54144.qmail@web25509.mail.ukl.yahoo.com> Message-ID: I have several WMS examples in this file: http://spatialguru.com/ global/global.map - hope it helps you. Tyler On 25-Sep-06, at 3:53 AM, K S wrote: > I need to load raster images from a site on the internet. I believe > that i need to find a wms server on the internet from which i can > load raster images to my mapserver.How could this be possible? I > have read documentation about it and I wonder how can i find > information in order to fill this data to my map file > (example): > CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" > CONNECTIONTYPE WMS > METADATA > "wms_srs" "EPSG:42304" > "wms_name" "prov_bound" > "wms_server_version" "1.1.1" > "wms_format" "image/gif" > END > > ?????????????? Yahoo! > ?????????? ?? ?????????? ???? ???? > (spam); ?? Yahoo! Mail ???????? ??? ???????? > ?????? ????????? ???? ??? > ??????????? ????????? > http://login.yahoo.com/config/mail?.intl=gr -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at BYTEWISE.IT Mon Sep 25 06:38:58 2006 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Mon, 25 Sep 2006 15:38:58 +0200 Subject: Draw point by using phpMapscript(3) In-Reply-To: <20060925120145.M29814@deprem.gov.tr> Message-ID: Hi Murat, I set the "color" property of the style: $style->color->setRGB(250,50,0); and works well: the point appears on the map (I don't try, but you can also set the other appearance properties: outlinecolor, backgroundcolor ...) regards Pietro ________________ Pietro Giannini Bytewise srl Area GIS > Dear Charlton; > I have tried many example and also Tried your suggestion But Still I > couldn't > got result.... > > Dear All; > > I'm asking to the mapserver specialist ' how can I draw point on the map > that > point value already variable in the php files > like $lon,$lat'. > > This following example is the third attempt but still the point doesn't > appearing on the map. > Please help me What is the code to draw point on the map by using PHP... > I have tried the following but still doesn't work. Just Drawing map > without point. > > $map_path="/var/www/html/zone/"; > $map = ms_newMapObj($map_path."zone.map"); > $map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); > > > // create a temp layer to hold our points > $point_layer = ms_newLayerObj($map); > $point_layer->set("name", "markers"); > $point_layer->set("type", MS_LAYER_POINT); > $point_layer->set("status", MS_DEFAULT); > $point_layer->setProjection("proj=latlong",MS_TRUE); > > // create a class and style for this layer > $point_class = ms_newClassObj($point_layer); > $point_style = ms_newStyleObj($point_class); > $point_symbol = $map->getSymbolByName("cpoint"); > $point_style->set("symbol", $point_symbol); > $point_style->set("size", 20); > > // draw our image without the points > $ref = $map->drawreferencemap(); > $legend=$map->drawLegend(); > > $image = $map->draw(); > > // initialize our point and add it to the map > $point = ms_newPointObj(); > $longitude=$lon;// comes from select queries from mysql as a result > $latitude=$lat;// comes from select queries from mysql as a result > $point->setXY($longitude, $latitude); > $point->draw($map, $point_layer, $image, 0, ""); > > > $map_url=$image->saveWebImage(); > $ref_url = $ref->saveWebImage(); > $legend_url=$legend->saveWebImage(); > > > > > > On Mon, 25 Sep 2006 07:50:09 -0400, Charlton Purvis wrote >> > $point=ms_newPointObj($lat, $lon); >> >> Perhaps try reversing the parameters, >> >> $point=ms_newPointObj($lon, $lat); >> >> -- >> This message has been scanned for viruses and >> dangerous content by MailScanner, and is >> believed to be clean. > > > -- > Open WebMail Project (http://openwebmail.org) > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > From beyhan at DEPREM.GOV.TR Mon Sep 25 07:25:16 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Mon, 25 Sep 2006 17:25:16 +0300 Subject: Draw point by using phpMapscript(3) In-Reply-To: <2855.62.77.56.11.1159191538.squirrel@62.77.56.11> Message-ID: SUCCESS! I have spent one day But I got result finally Thank you Pietro... Murat On Mon, 25 Sep 2006 15:38:58 +0200, Pietro Giannini wrote > Hi Murat, > I set the "color" property of the style: > > $style->color->setRGB(250,50,0); > > and works well: the point appears on the map > > (I don't try, but you can also set the other appearance properties: > outlinecolor, backgroundcolor ...) > > regards > Pietro > > ________________ > Pietro Giannini > Bytewise srl > Area GIS > > > Dear Charlton; > > I have tried many example and also Tried your suggestion But Still I > > couldn't > > got result.... > > > > Dear All; > > > > I'm asking to the mapserver specialist ' how can I draw point on the map > > that > > point value already variable in the php files > > like $lon,$lat'. > > > > This following example is the third attempt but still the point doesn't > > appearing on the map. > > Please help me What is the code to draw point on the map by using PHP... > > I have tried the following but still doesn't work. Just Drawing map > > without point. > > > > $map_path="/var/www/html/zone/"; > > $map = ms_newMapObj($map_path."zone.map"); > > $map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); > > > > > > // create a temp layer to hold our points > > $point_layer = ms_newLayerObj($map); > > $point_layer->set("name", "markers"); > > $point_layer->set("type", MS_LAYER_POINT); > > $point_layer->set("status", MS_DEFAULT); > > $point_layer->setProjection("proj=latlong",MS_TRUE); > > > > // create a class and style for this layer > > $point_class = ms_newClassObj($point_layer); > > $point_style = ms_newStyleObj($point_class); > > $point_symbol = $map->getSymbolByName("cpoint"); > > $point_style->set("symbol", $point_symbol); > > $point_style->set("size", 20); > > > > // draw our image without the points > > $ref = $map->drawreferencemap(); > > $legend=$map->drawLegend(); > > > > $image = $map->draw(); > > > > // initialize our point and add it to the map > > $point = ms_newPointObj(); > > $longitude=$lon;// comes from select queries from mysql as a result > > $latitude=$lat;// comes from select queries from mysql as a result > > $point->setXY($longitude, $latitude); > > $point->draw($map, $point_layer, $image, 0, ""); > > > > > > $map_url=$image->saveWebImage(); > > $ref_url = $ref->saveWebImage(); > > $legend_url=$legend->saveWebImage(); > > > > > > > > > > > > On Mon, 25 Sep 2006 07:50:09 -0400, Charlton Purvis wrote > >> > $point=ms_newPointObj($lat, $lon); > >> > >> Perhaps try reversing the parameters, > >> > >> $point=ms_newPointObj($lon, $lat); > >> > >> -- > >> This message has been scanned for viruses and > >> dangerous content by MailScanner, and is > >> believed to be clean. > > > > > > -- > > Open WebMail Project (http://openwebmail.org) > > > > > > -- > > This message has been scanned for viruses and > > dangerous content by MailScanner, and is > > believed to be clean. > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From jdege at KORTERRA.COM Mon Sep 25 07:27:43 2006 From: jdege at KORTERRA.COM (Jeff Dege) Date: Mon, 25 Sep 2006 09:27:43 -0500 Subject: Multiple feature queries to WFS? In-Reply-To: <4514E1D3.3060601@osgis.nl> Message-ID: > -----Original Message----- > From: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl] > Sent: Saturday, September 23, 2006 2:27 AM > To: Jeff Dege > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Multiple feature queries to WFS? > > Hi Jeff, > > you can get multiple by combining the PropertyIsEqualTo's > with the tag. I discovered the tag on further investigation. Doesn't do all I need, since it returns a separate boundedBy for each featureMember, and one for the entire FeatureCollection. The data I'm using has multiple featureMembers for each property value. If I query on one property value, the featureCollection's boundedBy is what I need. If I query on several property values, the featureCollection's boundedBy is meaningless to me, and I need to add up the boundedBy's of each indivudal featureMember. Which isn't a hard thing. > Also, what datastore are you using? Remember that shapefiles have no > attribute indexes, so access on an attribute will be slow and requires > parsing of the whole shapefile normally. This kind of use case might be > better of in PostGIS. The data I have is provided in shapefiles. I could extract the attribute data and put it in a database, should it be necessary. I'm not sure that it is, right now. I'm using an Ajax client, and pulling the boundedBy values asynchronously, prior to the user's actually asking for it. > The limit is usually the limit of the web server, Apache's limit is > somewhere around 8000 characters (HTTP GET). Is there any other way of passing this data? From jdege at KORTERRA.COM Mon Sep 25 07:38:32 2006 From: jdege at KORTERRA.COM (Jeff Dege) Date: Mon, 25 Sep 2006 09:38:32 -0500 Subject: Filtering attributes in WFS? In-Reply-To: A<4514E50F.1030901@osgis.nl> Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van > den Eijnden (OSGIS) > Sent: Saturday, September 23, 2006 2:41 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Filtering attributes in WFS? > > Hi Jeff, > > in WFS it's possible, but Mapserver does not support it > client-side, see > for details: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=675 > > If you have some funding, it could finally be added though. > > Alternatively, you can however set this server-side, look at > gml_exclude_items in the WFS server howto. Also, if you want > to exclude > the geometry, in the 4.10 version you should be able to use: > > GML_GEOMETRIES "none" I'm using Mapserver to serve the WFS, I'm building the URLS that query against it myself, in javascript. > Hope this helps. > Gives me something to look at. I've been working in Mapscript 4.8.4, up to now. From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Sep 25 08:15:45 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Mon, 25 Sep 2006 17:15:45 +0200 Subject: mapserv and ogr2ogr reprojection (Google Earth) Message-ID: Hi list, first of all, maybe this would be better addressed at the gdal-dev list as well. Using Jan Hartman's PROJ.4 parameters for EPSG:28992 (http://postgis.refractions.net/pipermail/postgis-users/2005-November/009894.html), we successfully got Dutch national grid data to match the aerial photography of Google Earth. We used Mapserver WFS and ogr2ogr (GML input, KML output) to transform the data. If we transform using ogr2ogr and provide -s_srs with the exact same PROJ.4 string and t_srs of EPSG:4326, the overlay is not correct. Any ideas what could be causing this? All testing was done using FWTools 1.0.5 on Windows XP. Another question: -how hard would it be to have the same OUTPUTFORMAT mechanism for vector (Mapserver WFS/OGR), so that output formats of OGR could be outputted by Mapserver WFS? Thanks in advance. Best regards, Bart van den Eijnden ================================= drs. A.J. van den Eijnden adviseur Productteam Applicaties Geo-Informatie Rijkswaterstaat Adviesdienst Geo-informatie en ICT Postbus 5023, 2600 GA Delft Derde Werelddreef 1, 2622 HA Delft Telefoon: (015) 275 75 75 E-mail b.vdeijnden at agi.rws.minvenw.nl ================================= Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From warmerdam at POBOX.COM Mon Sep 25 08:55:53 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 25 Sep 2006 11:55:53 -0400 Subject: mapserv and ogr2ogr reprojection (Google Earth) In-Reply-To: <5958F6B0C15AFE449245A966FB967B58074FA0@rws-s001000.ad.rws.nl> Message-ID: Eijnden, Bart van den (AGI) wrote: > Hi list, > > first of all, maybe this would be better addressed at the gdal-dev list as > well. > > Using Jan Hartman's PROJ.4 parameters for EPSG:28992 > (http://postgis.refractions.net/pipermail/postgis-users/2005-November/009894.html), > we successfully got Dutch national grid data to match the aerial > photography of Google Earth. > > We used Mapserver WFS and ogr2ogr (GML input, KML output) to transform the > data. > > If we transform using ogr2ogr and provide -s_srs with the exact same PROJ.4 > string and t_srs of EPSG:4326, the overlay is not correct. > > Any ideas what could be causing this? All testing was done using FWTools > 1.0.5 on Windows XP. Bart, It is not immediately clear to me why this would not work properly. I did check the PROJ.4 coordinate system in question, and it appears to go through OGR's internal SRS conversions without any damage. If you could submit a bug report against OGR with all the details I will dig into it. In particular what I would like to see is a point transformed through ogr2ogr producing a different output value than the same point transformed using cs2cs. I gather your central premise is that with cs2cs you got the expected results, but you didn't see the same results with ogr2ogr, right? > Another question: > > -how hard would it be to have the same OUTPUTFORMAT mechanism for vector > (Mapserver WFS/OGR), so that output formats of OGR could be outputted by > Mapserver WFS? It would be a fairly substantial effort I think. I gather we would need something roughly analygous to mapgml.c that can write via an OGR driver, and then various machinery connecting up format selection in the wfs output. Perhaps a 2-3 week development effort. I think we would also need a mechanism to identify files to "bundle up" in a zip or something similar for multi-file formats such as shape, or mapinfo. But I can see that this would be an interesting capability. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Steve.Lime at DNR.STATE.MN.US Mon Sep 25 08:57:58 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 25 Sep 2006 10:57:58 -0500 Subject: multiple style in class In-Reply-To: <20060922154759.b22b5ede89d48a4249261b5ab56693f4.f1ac70d6b2.wbe@email.secureserver.net> Message-ID: Classes are ways to group like features based on a properties. Styles are ways to symbolize a single feature. So they are totally different conceptually. Often with complex symbols (e.g. round red circle in a blue square) you have to use multiple styles to achive that effect. Steve >>> siva 9/22/2006 5:47 PM >>> hello will some one give example of multiple style in class?? map has many layer. layer has many class. why class has many style?? many thank yous sincerely sshekar From fredlucca at GMAIL.COM Mon Sep 25 09:28:28 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Mon, 25 Sep 2006 13:28:28 -0300 Subject: Image PROJECTION Message-ID: Hello list, Which parameters must I pass to PROJECTION to see the image below correctly? My mapfile is latlong WGS84. I'm trying "proj=latlong" "ellps=intl" "zone=23" "units=m" "south" "no_defs" without success. Driver: ECW/ERMapper Compressed Wavelets Size is 8151, 4202 Coordinate System is: GEOGCS["CORREGO ALEGRE", DATUM["CORRALEG", SPHEROID["INT24",6378388,297]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] Origin = (-46.807828,-23.896465) Pixel Size = (0.00000491,-0.00000451) Corner Coordinates: Upper Left ( -46.8078275, -23.8964648) ( 46d48'28.18"W, 23d53'47.27"S) Lower Left ( -46.8078275, -23.9154343) ( 46d48'28.18"W, 23d54'55.56"S) Upper Right ( -46.7678042, -23.8964648) ( 46d46'4.10"W, 23d53'47.27"S) Lower Right ( -46.7678042, -23.9154343) ( 46d46'4.10"W, 23d54'55.56"S) Center ( -46.7878158, -23.9059496) ( 46d47'16.14"W, 23d54'21.42"S) Band 1 Block=8151x1 Type=Byte, ColorInterp=Red Overviews: arbitrary Band 2 Block=8151x1 Type=Byte, ColorInterp=Green Overviews: arbitrary Band 3 Block=8151x1 Type=Byte, ColorInterp=Blue Overviews: arbitrary Thanks in advance, Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From bitner at GYTTJA.ORG Mon Sep 25 09:41:33 2006 From: bitner at GYTTJA.ORG (David William Bitner) Date: Mon, 25 Sep 2006 11:41:33 -0500 Subject: mapserv and ogr2ogr reprojection (Google Earth) In-Reply-To: <4517FC09.7040609@pobox.com> Message-ID: That functionality would also offer instant "zip & ship" capabilities to MapServer which is something that is becoming a requirement for many data providers to be able to provide custom clipped data files over the web. On 9/25/06, Frank Warmerdam wrote: > > Eijnden, Bart van den (AGI) wrote: > > Hi list, > > > > first of all, maybe this would be better addressed at the gdal-dev list > as > > well. > > > > Using Jan Hartman's PROJ.4 parameters for EPSG:28992 > > ( > http://postgis.refractions.net/pipermail/postgis-users/2005-November/009894.html > ), > > we successfully got Dutch national grid data to match the aerial > > photography of Google Earth. > > > > We used Mapserver WFS and ogr2ogr (GML input, KML output) to transform > the > > data. > > > > If we transform using ogr2ogr and provide -s_srs with the exact same > PROJ.4 > > string and t_srs of EPSG:4326, the overlay is not correct. > > > > Any ideas what could be causing this? All testing was done using FWTools > > 1.0.5 on Windows XP. > > Bart, > > It is not immediately clear to me why this would not work properly. I > did check the PROJ.4 coordinate system in question, and it appears to > go through OGR's internal SRS conversions without any damage. > > If you could submit a bug report against OGR with all the details I will > dig into it. In particular what I would like to see is a point > transformed > through ogr2ogr producing a different output value than the same point > transformed using cs2cs. I gather your central premise is that with > cs2cs you got the expected results, but you didn't see the same results > with > ogr2ogr, right? > > > Another question: > > > > -how hard would it be to have the same OUTPUTFORMAT mechanism for vector > > (Mapserver WFS/OGR), so that output formats of OGR could be outputted by > > Mapserver WFS? > > It would be a fairly substantial effort I think. I gather we would need > something roughly analygous to mapgml.c that can write via an OGR driver, > and then various machinery connecting up format selection in the wfs > output. > Perhaps a 2-3 week development effort. > > I think we would also need a mechanism to identify files to "bundle up" > in a zip or something similar for multi-file formats such as shape, or > mapinfo. > > But I can see that this would be an interesting capability. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From ucfagls at GOOGLEMAIL.COM Mon Sep 25 09:44:00 2006 From: ucfagls at GOOGLEMAIL.COM (Gavin Simpson) Date: Mon, 25 Sep 2006 17:44:00 +0100 Subject: How to produce labels for dynamic points? Message-ID: Dear List, I'm having some trouble working out how to dynamically add information to a feature object on a dynamically created shape object that will show up as the labels for the points I have added to the layer. The layer is defined in my map file, but it is empty. I process the layer adding new points from a database like so: for ($i = 0; $row = mysql_fetch_array($samplesQuery); $i++) { $pt = ms_newPointObj(); $pt->setXY($row["fullEasting"], $row["fullNorthing"]); $line = ms_newLineObj(); $line->add($pt); $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape->add($line); $shape->set("index", $i); $shape->set("text", $row["siteCode"]); $layer->addFeature($shape); $pt->draw($map, $layer, $image, 0, $row["siteCode"]); } What do I need to turn on in my map file or what do I have to do in PHP to set the text for the labels for these dynamically produced points? My mapfile is appended below. Many thanks, Gav ## mapfile NAME "fumbledatabase" SIZE 280 350 STATUS ON SYMBOLSET "/var/www/fwu/maps/symbols/symbols.sym" #EXTENT -192554.507218 11697.368164 655524.562500 1218637.375000 #54320.312500 EXTENT -192554.507218 0 655524.562500 1225000 IMAGETYPE png24 UNITS METERS SHAPEPATH "/var/www/fwu/maps/data" FONTSET "/var/www/fwu/maps/files/fontset.txt" OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END WEB IMAGEPATH "/path/to/tmp/" IMAGEURL "/path/totmp/" END SCALEBAR LABEL #TYPE truetype #FONT "luxisansb" ANTIALIAS true SIZE small COLOR 0 0 0 END TRANSPARENT ON BACKGROUNDCOLOR 255 255 255 STATUS EMBED POSITION UL UNITS KILOMETERS INTERVALS 3 OUTLINECOLOR 0 0 0 SIZE 150 3 #STYLE 1 END LAYER NAME "uklores" TYPE POLYGON STATUS ON DATA "gb_lores" TRANSPARENCY alpha CLASS STYLE COLOR 255 255 255 OUTLINECOLOR 0 0 0 SYMBOL 0 ANTIALIAS TRUE END END END LAYER NAME "ireland" TYPE POLYGON STATUS ON DATA "ireland" TRANSPARENCY alpha CLASS STYLE COLOR 255 255 255 OUTLINECOLOR 0 0 0 SYMBOL 0 ANTIALIAS TRUE END END From dovidio at PLANETEK.IT Mon Sep 25 09:54:10 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Mon, 25 Sep 2006 18:54:10 +0200 Subject: Join dbf with SQL Server table in GetFeatureInfo Request Message-ID: Hi. Is it possible to do something like this ? I'd like to JOIN feature_id in dbf layer with information stored in SQL Server table by an SQl Statement. What about ? LAYER NAME "pug_iffi" TYPE POINT STATUS ON TEMPLATE "query.html" DATA "puglia/pug_iffi.shp" TOLERANCEUNITS PIXELS TOLERANCE 1000 CLASS NAME "Pug_iffi" # TEMPLATE STYLE SYMBOL "circlefd" SIZE 7 COLOR 127 255 0 OUTLINECOLOR 0 0 0 END END JOIN CONNECTION " ODBC:sb/@dbo Query_IdFrana " CONNECTIONTYPE OGR TABLE "Query_IdFrana" TO "SELECT * FROM??dbo.Query_IdFrana WHERE?(cod_pro + id + subid = IDFRANA)" NAME "join" FROM "IDFRANA" END PROJECTION #Lat/Lon "init=EPSG:32633" END END ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From bartvde at OSGIS.NL Mon Sep 25 10:47:46 2006 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 25 Sep 2006 19:47:46 +0200 Subject: Multiple feature queries to WFS? In-Reply-To: <3BF1166FC5125A47ABB8FD2F2EE5FDD27F6030@mrburns.KorOffice.korterra.com> Message-ID: If your urls end up being too long, the alternative is using HTTP POST. Best regards, Bart Jeff Dege schreef: >> -----Original Message----- >> From: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl] >> Sent: Saturday, September 23, 2006 2:27 AM >> To: Jeff Dege >> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Multiple feature queries to WFS? >> >> Hi Jeff, >> >> you can get multiple by combining the PropertyIsEqualTo's >> with the tag. >> > > I discovered the tag on further investigation. Doesn't do all I > need, since it returns a separate boundedBy for each featureMember, and > one for the entire FeatureCollection. The data I'm using has multiple > featureMembers for each property value. If I query on one property > value, the featureCollection's boundedBy is what I need. If I query on > several property values, the featureCollection's boundedBy is > meaningless to me, and I need to add up the boundedBy's of each > indivudal featureMember. > > Which isn't a hard thing. > > >> Also, what datastore are you using? Remember that shapefiles have no >> attribute indexes, so access on an attribute will be slow and requires >> > > >> parsing of the whole shapefile normally. This kind of use case might >> > be > >> better of in PostGIS. >> > > The data I have is provided in shapefiles. I could extract the > attribute data and put it in a database, should it be necessary. I'm > not sure that it is, right now. I'm using an Ajax client, and pulling > the boundedBy values asynchronously, prior to the user's actually asking > for it. > > >> The limit is usually the limit of the web server, Apache's limit is >> somewhere around 8000 characters (HTTP GET). >> > > Is there any other way of passing this data? > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From ierickson at ANALYGIS.COM Mon Sep 25 15:11:12 2006 From: ierickson at ANALYGIS.COM (Ian Erickson) Date: Mon, 25 Sep 2006 15:11:12 -0700 Subject: Labeling from a MySQL Datasource Message-ID: Does anyone have an example of how to label a MapServer layer with the results of a JOIN directive. Is this even possible using the LABELITEM parameter? Using PHP MapScript and MapServer 4.8. -- Ian Erickson AnalyGIS, LLC From ollerery at ENGR.ORST.EDU Mon Sep 25 15:11:57 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Mon, 25 Sep 2006 15:11:57 -0700 Subject: Rubberband Zoom in/out In-Reply-To: <98E4E7EE-329E-49E6-BC60-713A3097E961@grid.unep.ch> Message-ID: Does anyone have any good code examples of a javascript zoom in/out rubber band utility. I know this has been asked before but i have been yet to find a good code examples and i am not familiar enough with javascript to write this by myself in the limited amount of time that i have. I have found the rubber band code on the mapserver page at: http://mapserver.gis.umn.edu/search?SearchableText=rubber+band but it does not provide a way to return the lat/long bounding box created by the rubber band, which is the part that i need. From elshayal at SMARTWEBONLINE.COM Mon Sep 25 19:03:43 2006 From: elshayal at SMARTWEBONLINE.COM (Mohamed Elshayal) Date: Tue, 26 Sep 2006 05:03:43 +0300 Subject: Join dbf with SQL Server table in GetFeatureInfo Request Message-ID: Dear Sir, From Jacob.Delfos at MAUNSELL.COM Mon Sep 25 21:26:10 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 26 Sep 2006 12:26:10 +0800 Subject: Adding point to ESRI Personal Geodatabase through ODBC Message-ID: Hi All, I was wondering if anyone has knows how to add a point feature to an ESRI personal geodatabase, without using ESRI software (ideally through SQL). The spatial column is "long binary data" according to MS Access. I'm assuming I'd also have to update the spatial index. I'm using PHP, which I believe supports binary data through ODBC. I'm assuming it's possible, but I'm not sure yet how. Alternatively, I'll have to use ODBC/OVF. Not a drama, but I'd like to keep it all in one format. Thanks in advance, Jacob JACOB DELFOS GIS ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Tue Sep 26 00:51:57 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Tue, 26 Sep 2006 09:51:57 +0200 Subject: mapserv and ogr2ogr reprojection (Google Earth) Message-ID: Thanks Frank, I have opened up a bug in the GDAL/OGR bugzilla for this: http://bugzilla.remotesensing.org/show_bug.cgi?id=1307 Best regards, Bart -----Oorspronkelijk bericht----- Van: Frank Warmerdam [mailto:warmerdam at pobox.com] Verzonden: maandag 25 september 2006 17:56 Aan: Eijnden, Bart van den (AGI) CC: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] mapserv and ogr2ogr reprojection (Google Earth) Eijnden, Bart van den (AGI) wrote: > Hi list, > > first of all, maybe this would be better addressed at the gdal-dev list as > well. > > Using Jan Hartman's PROJ.4 parameters for EPSG:28992 > (http://postgis.refractions.net/pipermail/postgis-users/2005-November/009894.html), > we successfully got Dutch national grid data to match the aerial > photography of Google Earth. > > We used Mapserver WFS and ogr2ogr (GML input, KML output) to transform the > data. > > If we transform using ogr2ogr and provide -s_srs with the exact same PROJ.4 > string and t_srs of EPSG:4326, the overlay is not correct. > > Any ideas what could be causing this? All testing was done using FWTools > 1.0.5 on Windows XP. Bart, It is not immediately clear to me why this would not work properly. I did check the PROJ.4 coordinate system in question, and it appears to go through OGR's internal SRS conversions without any damage. If you could submit a bug report against OGR with all the details I will dig into it. In particular what I would like to see is a point transformed through ogr2ogr producing a different output value than the same point transformed using cs2cs. I gather your central premise is that with cs2cs you got the expected results, but you didn't see the same results with ogr2ogr, right? > Another question: > > -how hard would it be to have the same OUTPUTFORMAT mechanism for vector > (Mapserver WFS/OGR), so that output formats of OGR could be outputted by > Mapserver WFS? It would be a fairly substantial effort I think. I gather we would need something roughly analygous to mapgml.c that can write via an OGR driver, and then various machinery connecting up format selection in the wfs output. Perhaps a 2-3 week development effort. I think we would also need a mechanism to identify files to "bundle up" in a zip or something similar for multi-file formats such as shape, or mapinfo. But I can see that this would be an interesting capability. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From beyhan at DEPREM.GOV.TR Tue Sep 26 00:56:25 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Tue, 26 Sep 2006 10:56:25 +0300 Subject: adding label to point layer in PHPMapscript In-Reply-To: <4997F456680DAD4DA1E042C40C463611C33D07@auper1ex002.au.aecomnet.com> Message-ID: Dear Friends, I'have draw point layer by using php. That point only one in the map. Now I would like to make label for that point as $villagename I have tried following codes but I think something wrong. Could you help me What is my mistake... Regards Murat $villagename='kanamura'; ?$map_path="/var/www/html/zone/"; ?$map = ms_newMapObj($map_path."zone.map"); ?$map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); ? // create a temp layer to hold our points $point_layer = ms_newLayerObj($map); $point_layer->set("name", "$koyadi"); $point_layer->set("type", MS_LAYER_POINT); $point_layer->set("status", MS_DEFAULT); $point_layer->setProjection("proj=latlong",MS_TRUE); // create a class and style for this layer $point_class = ms_newClassObj($point_layer); $point_style = ms_newStyleObj($point_class); $point_symbol = $map->getSymbolByName("cpoint"); $point_style->set("symbol", $point_symbol); $point_style->set("size", 12); $point_style->color->setRGB(255,0,255); $point_style->outlinecolor->setRGB(255,255,0); $label = $point_class->label; $label->set("position", MS_CC); $label->set("font","sans"); $label->set("type",MS_TRUEYPE); $label->set("size",MS_MEDIUM); $label->color->setRGB(22,8,3); $label->backgroundcolor->setRGB(0,0,0); $label->set(minsize,4); $label->set(maxsize,100000); // draw our image without the points ?$ref = $map->drawreferencemap(); ?$legend=$map->drawLegend(); $image = $map->draw(); // initialize our point and add it to the map $point = ms_newPointObj(); $longitude=$lon;// comes from select queries from mysql as a result $latitude=$lat;// comes from select queries from mysql as a result $point->setXY($longitude, $latitude); $point->draw($map, $point_layer, $image, 0, ""); ? $map_url=$image->saveWebImage(); ? $ref_url = $ref->saveWebImage(); ? $legend_url=$legend->saveWebImage();? -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jacob.Delfos at MAUNSELL.COM Tue Sep 26 00:56:35 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 26 Sep 2006 15:56:35 +0800 Subject: OGR ODBC spatial query has invalid resultset Message-ID: Hi List, Sorry about all the questions I have been sending. I'm hoping someone can shed light on this one. After a QueryByPoint or QueryByRect operation in PHP, the number of results is correct, but the resultCacheMemberObj always points to the first "getNumResults()" objects. If there are 4 results, it holds references to objects 1-4. For one result, it always points to the 1st object. This is -not- the case for QueryByAttributes, though. The resultCacheMemberObj is correct for this type of query. This only occurs for OGR ODBC layers. I have tried MDB and CSV, with the same problem... If anyone knows why, please let me know. If someone thinks this is a bug, I'll file it. Regards, Jacob JACOB DELFOS GIS ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jacob.Delfos at MAUNSELL.COM Tue Sep 26 01:04:33 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 26 Sep 2006 16:04:33 +0800 Subject: adding label to point layer in PHPMapscript Message-ID: Murat, Are you sure you want all your villages to have the same label ($villagename)? I think you may want to define a labelitem: $point_layer->set("labelitem","villagename"); // "villagename" is the name of the attribute of the layer Also, you quoted "$koyadi", which is probably not correct. Or remove the '$'. Have you tested whether any part of this code works? Which part is giving you trouble? Does your PHP log say anything? regards, Jacob ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Murat BEYHAN Sent: 26 September 2006 15:56 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] adding label to point layer in PHPMapscript Dear Friends, I'have draw point layer by using php. That point only one in the map. Now I would like to make label for that point as $villagename I have tried following codes but I think something wrong. Could you help me What is my mistake... Regards Murat $villagename='kanamura'; $map_path="/var/www/html/zone/"; $map = ms_newMapObj($map_path."zone.map"); $map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); // create a temp layer to hold our points $point_layer = ms_newLayerObj($map); $point_layer->set("name", "$koyadi"); $point_layer->set("type", MS_LAYER_POINT); $point_layer->set("status", MS_DEFAULT); $point_layer->setProjection("proj=latlong",MS_TRUE); // create a class and style for this layer $point_class = ms_newClassObj($point_layer); $point_style = ms_newStyleObj($point_class); $point_symbol = $map->getSymbolByName("cpoint"); $point_style->set("symbol", $point_symbol); $point_style->set("size", 12); $point_style->color->setRGB(255,0,255); $point_style->outlinecolor->setRGB(255,255,0); $label = $point_class->label; $label->set("position", MS_CC); $label->set("font","sans"); $label->set("type",MS_TRUEYPE); $label->set("size",MS_MEDIUM); $label->color->setRGB(22,8,3); $label->backgroundcolor->setRGB(0,0,0); $label->set(minsize,4); $label->set(maxsize,100000); // draw our image without the points $ref = $map->drawreferencemap(); $legend=$map->drawLegend(); $image = $map->draw(); // initialize our point and add it to the map $point = ms_newPointObj(); $longitude=$lon;// comes from select queries from mysql as a result $latitude=$lat;// comes from select queries from mysql as a result $point->setXY($longitude, $latitude); $point->draw($map, $point_layer, $image, 0, ""); $map_url=$image->saveWebImage(); $ref_url = $ref->saveWebImage(); $legend_url=$legend->saveWebImage(); -- This message has been scanned for viruses and dangerous content by MailScanner , and is believed to be clean. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovidio at PLANETEK.IT Tue Sep 26 01:31:04 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Tue, 26 Sep 2006 10:31:04 +0200 Subject: Join dbf with SQL Server table in GetFeatureInfo Request In-Reply-To: <451825D2.27772.2002EBB@dovidio.planetek.it> Message-ID: I've tried to do this : LAYER NAME "pug2_iffi" TYPE POINT STATUS ON TEMPLATE "query.html" TOLERANCEUNITS PIXELS TOLERANCE 1000 CLASS NAME "Pug2_iffi" # TEMPLATE STYLE SYMBOL "circlefd" SIZE 7 COLOR 127 255 0 OUTLINECOLOR 0 0 0 END END PROJECTION #Lat/Lon "init=EPSG:32633" END CONNECTIONTYPE OGR CONNECTION "puglia/pug_iffi.shp" DATA "SELECT IDFRANA from pug_iffi LEFT JOIN 'ODBC:sa/@dbo'.Query_IdFrana ON cod_pro + id + subid = IDFRANA" END it doesn't work ! What about ? On 25 Sep 2006 at 18:54, Fabio D'Ovidio wrote: > > Hi. > > Is it possible to do something like this ? > > I'd like to JOIN feature_id in dbf layer with information stored in SQL Server table by an SQl > Statement. > > What about ? > > > > LAYER > NAME "pug_iffi" > TYPE POINT > STATUS ON > TEMPLATE "query.html" > DATA "puglia/pug_iffi.shp" > TOLERANCEUNITS PIXELS > TOLERANCE 1000 > CLASS > NAME "Pug_iffi" > # TEMPLATE > STYLE > SYMBOL "circlefd" > SIZE 7 > COLOR 127 255 0 > OUTLINECOLOR 0 0 0 > END > END > > > JOIN > CONNECTION > " > > ODBC:sb/@dbo > Query_IdFrana > > > " > > CONNECTIONTYPE OGR > > TABLE "Query_IdFrana" > TO "SELECT * FROMdbo.Query_IdFrana WHERE(cod_pro + id + subid = IDFRANA)" > NAME "join" > FROM "IDFRANA" > END > > > > > PROJECTION > #Lat/Lon > "init=EPSG:32633" > END > > > > END > ******************************************************************************************** > graphic > > Ing. Fabio D'Ovidio > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > ******************************************************************************************** ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From andreas.albarello at TERRITORIUMONLINE.COM Tue Sep 26 02:46:48 2006 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Tue, 26 Sep 2006 11:46:48 +0200 Subject: Labeling from a MySQL Datasource In-Reply-To: <45185400.4040209@analygis.com> Message-ID: Ian Erickson wrote: > Does anyone have an example of how to label a MapServer layer with the > results of a JOIN directive. Is this even possible using the LABELITEM > parameter? Using PHP MapScript and MapServer 4.8. Ian, I fear it's not possible to do what you'd like by the way you mention. AFAIK and according to http://mapserver.gis.umn.edu/docs/reference/mapfile/join fields joined through a JOIN directive can not be used to affect the look of a map. In fact, there's no working way to reference fields from a JOIN anywhere inside the mapfile. They can be referenced inside templates for HTML display only. You could however draw them dynamically from inside PHP. Best regards, Andreas From beyhan at DEPREM.GOV.TR Tue Sep 26 02:48:03 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Tue, 26 Sep 2006 12:48:03 +0300 Subject: adding label to point layer in PHPMapscript In-Reply-To: <20060926075514.M89447@deprem.gov.tr> Message-ID: Dear Jacob, Thank you for your suggestion. The following php codes bring one of the record from mysql I mean only one row. That row consist of the cityname (iladi), districtname (ilceadi) and village name (koyadi). $query = "SELECT * FROM $db_tb WHERE iladi LIKE '$iladi' AND ilceadi LIKE '$ilceadi' AND koyadi LIKE '$koyadi'"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); $num = mysql_numrows($result); ??????????????????? $i=0; while ($i < $num) { $koyadi??? = mysql_result($result,$i,"koyadi"); $ilceadi???? = mysql_result($result,$i,"ilceadi"); $iladi?????? = mysql_result($result,$i,"iladi"); $zone???????? = mysql_result($result,$i,"zone"); $lon????????? = mysql_result($result,$i,"lon"); $lat????????? = mysql_result($result,$i,"lat"); ??????????????????? ++$i; } > Have you tested whether any part of this code works? Which part is giving you trouble? Does your PHP log say anything? By using this query result I'm drawing point of the village on the map. The part of this issue does work succesfully. I mean drawing of the point was achieved already by the support of the list user. The second step Which I intend to write the name of village near to point. So I was changed the name of koyadi into villagename in order to understand for people in my message. sorry. Now I have tried to ad your suggestion into the php code but still the name of village doesnt appearing on the map.. I hope I could explained What I'm trying to do. Thanks. Murat The new codes are here after your suggestion. But I2m not sure exacly where I have to put your suggestion on the code. $map_path="/var/www/html/zone/"; ?$map = ms_newMapObj($map_path."zone.map"); ?$map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); ? // create a temp layer to hold our points $point_layer = ms_newLayerObj($map); $point_layer->set("name", "markers"); $point_layer->set("type", MS_LAYER_POINT); $point_layer->set("status", MS_DEFAULT); $point_layer->setProjection("proj=latlong",MS_TRUE); // create a class and style for this layer $point_class = ms_newClassObj($point_layer); $point_style = ms_newStyleObj($point_class); $point_layer->set("labelitem","$koyadi"); $point_symbol = $map->getSymbolByName("cpoint"); $point_style->set("symbol", $point_symbol); $point_style->set("size", 12); $point_style->color->setRGB(255,0,255); $point_style->outlinecolor->setRGB(255,255,0); $label = $point_class->label; $label->set("position", MS_CC); $label->set("font","sans"); $label->set("type",MS_TRUEYPE); $label->set("size",MS_MEDIUM); $label->color->setRGB(22,8,3); $label->backgroundcolor->setRGB(0,0,0); $label->set(minsize,4); $label->set(maxsize,100000); // draw our image without the points ?$ref = $map->drawreferencemap(); ?$legend=$map->drawLegend(); $image = $map->draw(); // initialize our point and add it to the map $point = ms_newPointObj(); $longitude=$lon;// comes from select queries from mysql as a result $latitude=$lat;// comes from select queries from mysql as a result echo $longitude, ' ', $lat; $point->setXY($longitude, $latitude); $point->draw($map, $point_layer, $image, 0, ""); ? $map_url=$image->saveWebImage(); ? $ref_url = $ref->saveWebImage(); ? $legend_url=$legend->saveWebImage(); ? ? On Tue, 26 Sep 2006 16:04:33 +0800, Delfos, Jacob wrote > Murat, > ? > Are you sure you want all your villages to have the same label ($villagename)? > I think you may want to define a labelitem: > ? > $point_layer->set("labelitem","villagename"); // "villagename" is the name of the attribute of the layer > ? > Also, you quoted "$koyadi", which is probably not correct. Or remove the '$'. > ? > Have you tested whether any part of this code works? Which part is giving you trouble? Does your PHP log say anything? > ? > regards, > ? > Jacob > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonnyprof at GMAIL.COM Tue Sep 26 03:40:09 2006 From: jonnyprof at GMAIL.COM (John Prof) Date: Tue, 26 Sep 2006 12:40:09 +0200 Subject: Doubts about points in php mapscript Message-ID: Hello, I'm trying to create a map using Mysql data. I've obtained one with the points on the map, but I would like to have the name of each point. I'd made the map adding a shape with the points in a layer, but I don't know how to put a name in each point (column 'nom' of the query), there is no "name" field or similar in the PointObj object. function consultar($query) { @mysql_connect("localhost", "gis", "*****") or die("Could not connect to MySQL server!"); @mysql_select_db("db") or die("Could not select database"); $result = mysql_query($query); $i = 0; while ( $row = mysql_fetch_array($result) ) { $qresult[$i] = $row; $i++; } return $qresult; } function llegirTrampes ($finca, $parcela ) { global $mapa; $this_layer = $mapa->getLayerByName('Trampes'); // Canviar x $finca i $parcela $qresult = consultar("SELECT nom, round(utmx,2) as utmx, round(utmy,2) as utmy FROM trampa t where idfinca=$idfinca and idparcela=$idparcela"); $shape = ms_newShapeObj(MS_SHAPE_POINT); foreach($qresult as $row) { $punt = ms_newPointObj(); $linia = ms_newLineObj(); $punt->setXY($row[1],$row[2]); $linia->add($punt); $shape->add($linia); } $this_layer->addFeature( $shape ); return; } I'd like to change the symbol of the point depending the feature... Some ideas? Thanks alot, I'm a little lost (sorry for my english) -------------- next part -------------- An HTML attachment was scrubbed... URL: From vulukut at TESCILTURK.COM Tue Sep 26 03:59:29 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Tue, 26 Sep 2006 13:59:29 +0300 Subject: Encoding problem with curved labels Message-ID: Hi List, I've been struggling with curved label support of mapserver. First I thought i got it working correctly but then i realised some of the labels got encoding glitches on them. Specifically the ones that need to be curved and have special characters, as you can see on the attachment. I'm assuming this is a bug. Anyone else came across this one and solved? Since curved labels are new, i couldn't find anything about this bug with googling. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: curvedlabel.jpg Type: image/jpeg Size: 14450 bytes Desc: not available URL: From adams at TERRESTRIS.DE Tue Sep 26 04:31:50 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Tue, 26 Sep 2006 13:31:50 +0200 Subject: Encoding problem with curved labels In-Reply-To: Message-ID: Volkan, might be you should use the "ENCODING" keyword for your label -> http://mapserver.gis.umn.edu/docs/reference/mapfile/label Just an idea, I never worked with that on my own. Till Volkan Ulukut schrieb: > Hi List, > > I?ve been struggling with curved label support of mapserver. First I > thought i got it working correctly but then i realised some of the > labels got encoding glitches on them. Specifically the ones that need > to be curved and have special characters, as you can see on the > attachment. I?m assuming this is a bug. Anyone else came across this > one and solved? Since curved labels are new, i couldn?t find anything > about this bug with googling. > > > ------------------------------------------------------------------------ > -- ***************************************** * www.webmapcenter.de - Hosting * * GDIdevL 'Start GDI from CD' * * http://www.terrestris.de * ***************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From vulukut at TESCILTURK.COM Tue Sep 26 05:08:47 2006 From: vulukut at TESCILTURK.COM (Volkan Ulukut) Date: Tue, 26 Sep 2006 15:08:47 +0300 Subject: Encoding problem with curved labels In-Reply-To: <45190FA6.5020503@terrestris.de> Message-ID: Till, Thanks for the suggestion but I'm already using ENCODING in my label definition. Here is the code for the label in my map file: LABEL TYPE TRUETYPE FONT "fritqat" SIZE 7 MINSIZE 4 MAXSIZE 256 POSITION cc OFFSET 0 0 ANGLE FOLLOW BUFFER 10 #MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 OUTLINECOLOR 254 254 254 ANTIALIAS TRUE PARTIALS FALSE FORCE FALSE ENCODING "ISO-8859-9" END Note that this is not just an encoding problem, other then the curved labels all labels are correctly encoded, the problem is only with curved ones. -----Original Message----- From: Till Adams [mailto:adams at TERRESTRIS.DE] Sent: Tuesday, September 26, 2006 2:32 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Encoding problem with curved labels Volkan, might be you should use the "ENCODING" keyword for your label -> http://mapserver.gis.umn.edu/docs/reference/mapfile/label Just an idea, I never worked with that on my own. Till Volkan Ulukut schrieb: > Hi List, > > I've been struggling with curved label support of mapserver. First I > thought i got it working correctly but then i realised some of the > labels got encoding glitches on them. Specifically the ones that need > to be curved and have special characters, as you can see on the > attachment. I'm assuming this is a bug. Anyone else came across this > one and solved? Since curved labels are new, i couldn't find anything > about this bug with googling. > > > ------------------------------------------------------------------------ > -- ***************************************** * www.webmapcenter.de - Hosting * * GDIdevL 'Start GDI from CD' * * http://www.terrestris.de * ***************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From beyhan at DEPREM.GOV.TR Tue Sep 26 05:42:05 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Tue, 26 Sep 2006 15:42:05 +0300 Subject: Font error In-Reply-To: Message-ID: Hi frieds; I would like to try the copyright text on my map by using following LAYER NAME copyright STATUS DEFAULT TYPE annotation TRANSFORM false FEATURE POINTS 260 450 #this is the position of the text in image coordinates (pixels) END TEXT "? xyz company 2006" #this is your displaying text END CLASS LABEL #defines the font, colors etc. of the text FONT arial TYPE truetype SIZE 8 BUFFER 1 COLOR 255 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END END then I have got this error message. I was configured Mapserver with freetype but Why I have faced this error and how can I solve. Regards... msGetLabelSize(): TrueType Font error. Requested font (arial) not found. [murat at sakura ~]$ mapserv -v MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=THREADS INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG [murat at sakura ~]$ Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From fredlucca at GMAIL.COM Tue Sep 26 05:50:49 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Tue, 26 Sep 2006 09:50:49 -0300 Subject: Reprojecting a layer using gdaltindex Message-ID: Hello list, Can I reproject a image that is inside a layer using tileindex? My problem is that I need to show a ECW that is in Corrego Alegre Datum. First of all I tried to use PROJECTION "init=epsg:4225" END without success. Than I tried to use gdalwarp to convert it to WGS84 that is my map Datum, but I can't write ECW format, why not? So, the only solution I found is convert using gdalwarp exporting as GTiff, but the image size is very large. I have many photos and want to use only a layer if is possible. There is a solution? Thanks, Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Sep 26 06:07:39 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 26 Sep 2006 09:07:39 -0400 Subject: OGR ODBC spatial query has invalid resultset In-Reply-To: <4997F456680DAD4DA1E042C40C463611C33D0B@auper1ex002.au.aecomnet.com> Message-ID: Delfos, Jacob wrote: > Hi List, > > Sorry about all the questions I have been sending. I'm hoping someone > can shed light on this one. > > After a QueryByPoint or QueryByRect operation in PHP, the number of > results is correct, but the resultCacheMemberObj always points to the > first "getNumResults()" objects. If there are 4 results, it holds > references to objects 1-4. For one result, it always points to the 1st > object. > > This is -not- the case for QueryByAttributes, though. The > resultCacheMemberObj is correct for this type of query. > > This only occurs for OGR ODBC layers. I have tried MDB and CSV, with the > same problem? > > If anyone knows why, please let me know. If someone thinks this is a > bug, I'll file it. Jacob, This occurs with OGR ODBC datasources that lack an FID column in the original table. Without an FID, OGR just assigns FIDs starting with zero to the result set. The problem really bites when different constraints (spatial or attribute) are in place at the point where the query is done, and when the results are fetched - which is the case when you do spatial queries as the spatial query apparently is cleared by mapserver before it starts fetching individual results. The overall point is that two-stage queries (as done by mapserver) are very unreliable against OGR datasources without a persistent FID, such as some ODBC datasources. BTW, you can use the mapserver config variable ODBC_OGR_FID to force the ODBC driver to pick a particular column as the FID. Unfortunately this is a global option so it only works smoothly if you have the same name for the id of all tables you are accessing in a given mapserver map. You would add something like the following in the MAP section of your map file to default to using the ID column of your odbc tables as the feature id. CONFIG "ODBC_OGR_FID" "ID" Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From dovidio at PLANETEK.IT Tue Sep 26 06:19:46 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Tue, 26 Sep 2006 15:19:46 +0200 Subject: OGR ODBC spatial query has invalid resultset In-Reply-To: <4519261B.9040808@pobox.com> Message-ID: Frank, please, what is wrong with this ?? LAYER NAME "pug2_iffi" TYPE POINT STATUS ON TEMPLATE "query.html" TOLERANCEUNITS PIXELS TOLERANCE 1000 CLASS NAME "Pug2_iffi" # TEMPLATE STYLE SYMBOL "circlefd" SIZE 7 COLOR 127 255 0 OUTLINECOLOR 0 0 0 END END PROJECTION #Lat/Lon "init=EPSG:32633" END CONNECTIONTYPE OGR CONNECTION "puglia/pug_iffi.shp" DATA "SELECT * from pug_iffi c LEFT JOIN 'ODBC:sa/@CartanetIFFI'.Query_IdFrana b ON c.IDFRANA = (b.cod_pro + b.id + b.subid)" END It doesn't work ! On 26 Sep 2006 at 9:07, Frank Warmerdam wrote: > Delfos, Jacob wrote: > > Hi List, > > > > Sorry about all the questions I have been sending. I'm hoping someone > > can shed light on this one. > > > > After a QueryByPoint or QueryByRect operation in PHP, the number of > > results is correct, but the resultCacheMemberObj always points to the > > first "getNumResults()" objects. If there are 4 results, it holds > > references to objects 1-4. For one result, it always points to the 1st > > object. > > > > This is -not- the case for QueryByAttributes, though. The > > resultCacheMemberObj is correct for this type of query. > > > > This only occurs for OGR ODBC layers. I have tried MDB and CSV, with the > > same problem... > > > > If anyone knows why, please let me know. If someone thinks this is a > > bug, I'll file it. > > Jacob, > > This occurs with OGR ODBC datasources that lack an FID column in the original > table. Without an FID, OGR just assigns FIDs starting with zero to the > result set. > > The problem really bites when different constraints (spatial or attribute) > are in place at the point where the query is done, and when the results are > fetched - which is the case when you do spatial queries as the spatial query > apparently is cleared by mapserver before it starts fetching individual > results. > > The overall point is that two-stage queries (as done by mapserver) are > very unreliable against OGR datasources without a persistent FID, such as > some ODBC datasources. > > BTW, you can use the mapserver config variable ODBC_OGR_FID to force the > ODBC driver to pick a particular column as the FID. Unfortunately this > is a global option so it only works smoothly if you have the same name > for the id of all tables you are accessing in a given mapserver map. You > would add something like the following in the MAP section of your map file > to default to using the ID column of your odbc tables as the feature id. > > CONFIG "ODBC_OGR_FID" "ID" > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From pgiannini at BYTEWISE.IT Tue Sep 26 06:33:08 2006 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Tue, 26 Sep 2006 15:33:08 +0200 Subject: adding label to point layer in PHPMapscript In-Reply-To: <20060926094749.M48763@deprem.gov.tr> Message-ID: hi Murat, i tried so, and works: /****************************************/ /* setting a label on the class */ $label = $class->label; $label->set("position", MS_CC); $label->set("font","arial"); $label->set("type",MS_TRUEYPE); $label->set("size",12); /* now the method is a bit more complicated as precedent */ /* create and locate a point object */ $point = ms_newPointObj(); $point->setXY($longitude, $latitude); /* create a line object and add the point */ $line = ms_newLineObj(); $line->add($point); /* create a shape object and add the mono-point line */ $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape->add($line); /* set the "text" property of the shape */ $shape->set("text","show must go on"); /* add this shape to the layer */ $layer->addFeature($shape); /* now you can create the image of the map and save it */ $image = $oMap->draw(); $map_url=$image->saveWebImage(); /* you don't need to invoke the */ // $point->draw($map, $layer, $image, 0, ""); /**************************************************/ best regards Pietro ___________________________ Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mar, 26 Settembre 2006 11:48, Murat BEYHAN disse: > Dear Jacob, > Thank you for your suggestion. > The following php codes bring one of the record from mysql I mean only one > row. > > That row consist of the cityname (iladi), districtname (ilceadi) and > village name (koyadi). > > $query = "SELECT * FROM $db_tb WHERE iladi LIKE '$iladi' AND > ilceadi LIKE '$ilceadi' AND koyadi LIKE '$koyadi'"; > > $result = mysql_query($query) or die("Query failed : " . mysql_error()); > > $num = mysql_numrows($result); > $i=0; > while ($i < $num) { > $koyadi = mysql_result($result,$i,"koyadi"); > $ilceadi = mysql_result($result,$i,"ilceadi"); > $iladi = mysql_result($result,$i,"iladi"); > $zone = mysql_result($result,$i,"zone"); > $lon = mysql_result($result,$i,"lon"); > $lat = mysql_result($result,$i,"lat"); > ++$i; > } > >> Have you tested whether any part of this code works? Which part is >> giving you trouble? Does your PHP log say anything? > By using this query result I'm drawing point of the village on the map. > The part of this issue does work succesfully. I mean drawing of the point > was achieved already by the support of the list user. > The second step Which I intend to write the name of village near to point. > > So I was changed the name of koyadi into villagename in order to > understand for people in my message. sorry. > Now I have tried to ad your suggestion into the php code but still the > name of village doesnt appearing on the map.. > I hope I could explained What I'm trying to do. > Thanks. > Murat > > The new codes are here after your suggestion. But I2m not sure exacly > where I have to put your suggestion on the code. > $map_path="/var/www/html/zone/"; > $map = ms_newMapObj($map_path."zone.map"); > $map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); > > // create a temp layer to hold our points > $point_layer = ms_newLayerObj($map); > $point_layer->set("name", "markers"); > $point_layer->set("type", MS_LAYER_POINT); > $point_layer->set("status", MS_DEFAULT); > $point_layer->setProjection("proj=latlong",MS_TRUE); > > // create a class and style for this layer > $point_class = ms_newClassObj($point_layer); > $point_style = ms_newStyleObj($point_class); > $point_layer->set("labelitem","$koyadi"); > $point_symbol = $map->getSymbolByName("cpoint"); > > $point_style->set("symbol", $point_symbol); > $point_style->set("size", 12); > $point_style->color->setRGB(255,0,255); > $point_style->outlinecolor->setRGB(255,255,0); > > $label = $point_class->label; > $label->set("position", MS_CC); > > $label->set("font","sans"); > $label->set("type",MS_TRUEYPE); > $label->set("size",MS_MEDIUM); > $label->color->setRGB(22,8,3); > $label->backgroundcolor->setRGB(0,0,0); > $label->set(minsize,4); > $label->set(maxsize,100000); > > // draw our image without the points > $ref = $map->drawreferencemap(); > $legend=$map->drawLegend(); > > $image = $map->draw(); > > // initialize our point and add it to the map > $point = ms_newPointObj(); > $longitude=$lon;// comes from select queries from mysql as a result > $latitude=$lat;// comes from select queries from mysql as a result > echo $longitude, ' ', $lat; > > $point->setXY($longitude, $latitude); > > $point->draw($map, $point_layer, $image, 0, ""); > > $map_url=$image->saveWebImage(); > $ref_url = $ref->saveWebImage(); > $legend_url=$legend->saveWebImage(); > > > > On Tue, 26 Sep 2006 16:04:33 +0800, Delfos, Jacob wrote >> Murat, >> >> Are you sure you want all your villages to have the same label >> ($villagename)? >> I think you may want to define a labelitem: >> >> $point_layer->set("labelitem","villagename"); // "villagename" is the >> name of the attribute of the layer >> >> Also, you quoted "$koyadi", which is probably not correct. Or remove the >> '$'. >> >> Have you tested whether any part of this code works? Which part is >> giving you trouble? Does your PHP log say anything? >> >> regards, >> >> Jacob >> > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > From warmerdam at POBOX.COM Tue Sep 26 06:42:05 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 26 Sep 2006 09:42:05 -0400 Subject: OGR ODBC spatial query has invalid resultset In-Reply-To: <45194512.7261.6623AF0@dovidio.planetek.it> Message-ID: Fabio D'Ovidio wrote: > Frank, please, what is wrong with this ?? ... END > CONNECTIONTYPE OGR > CONNECTION "puglia/pug_iffi.shp" > DATA "SELECT * from pug_iffi c LEFT JOIN > 'ODBC:sa/@CartanetIFFI'.Query_IdFrana b ON c.IDFRANA = (b.cod_pro + b.id > + b.subid)" > END > > It doesn't work ! Fabio, I believe the problem is that the join operation is being evaluated by OGR, and the OGR "pseudo-SQL" interpreter does not know how to evaluate operations like "(b.cod_pro + b.id > + b.subid)". It only knows how to do very simple key to key joins. So, in this case the limited nature of OGR SQL joins is failing you. This might work if you could create a regular column on your ODBC table with the merged key. I will warn that OGR joins tend to be slow since each joined record is fetched by a distinct SQL SELECT operation. So you should only use it for small numbers of records. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From warmerdam at POBOX.COM Tue Sep 26 06:52:39 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 26 Sep 2006 09:52:39 -0400 Subject: Reprojecting a layer using gdaltindex In-Reply-To: Message-ID: Frederico Lucca wrote: > Hello list, > > Can I reproject a image that is inside a layer using tileindex? Frederico, Yes. > My problem is that I need to show a ECW that is in Corrego Alegre Datum. > First of all I tried to use > PROJECTION > "init=epsg:4225" > END > without success. To be clear, are the bounds stored in the tile index in degrees? (as opposed to projected meters, feet, etc) > Than I tried to use gdalwarp to convert it to WGS84 that is my map > Datum, but I can't write ECW format, why not? The gdalwarp program processes the image in chunks, but the ECW writer (and also many other compressed GDAL drivers) only support line by line copying, so gdalwarp has to output to a "working file", which can then be converted to ecw using gdal_translate. I often use GeoTIFF or Imagine (HFA) formats for working files. > So, the only solution I found is convert using gdalwarp exporting as > GTiff, but the image size is very large. > > I have many photos and want to use only a layer if is possible. > There is a solution? Generally speaking, if all your photos are in EPSG:4225 you should be able to just label the layer that way, and your map as EPSG:4326, and mapserver will take care of reprojecting the images as needed. However, you cannot have a mix of coordinate systems in your tile index. So this only works if all the images in your tile index are in the same coordinate system. There is a performance cost to reprojecting rasters on the fly. You may still find you are better pre-reprojecting them using gdalwarp, and then recompressing to ECW with gdal_translate. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From fedutov at MAIL.RU Tue Sep 26 06:47:01 2006 From: fedutov at MAIL.RU (=?koi8-r?B?88XSx8XKIObFxNXUz9c=?=) Date: Tue, 26 Sep 2006 17:47:01 +0400 Subject: One way roads Message-ID: Hello! I have roads database (created from shapefile) and need to draw one way roads with direction marker. One way roads determine by special field, but direction bases on line data. For example, i have line with three points (long, lat) {0.1, 51.1; 0.2, 51.1; 0.3, 51.1}. So, if line have onway flag - direction is from left to right. If line data is {0.3, 51.1; 0.2, 51.1; 0.1, 51.1} direction is from right to left. How i can render these lines? I need something like ----->----- or ----<-----. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Sep 26 06:58:04 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 26 Sep 2006 09:58:04 -0400 Subject: Adding point to ESRI Personal Geodatabase through ODBC In-Reply-To: <4997F456680DAD4DA1E042C40C463611C33D07@auper1ex002.au.aecomnet.com> Message-ID: Delfos, Jacob wrote: > Hi All, > > I was wondering if anyone has knows how to add a point feature to an > ESRI personal geodatabase, without using ESRI software (ideally through > SQL). The spatial column is "long binary data" according to MS Access. > I'm assuming I'd also have to update the spatial index. I'm using PHP, > which I believe supports binary data through ODBC. > > I'm assuming it's possible, but I'm not sure yet how. Alternatively, > I'll have to use ODBC/OVF. Not a drama, but I'd like to keep it all in > one format. Jacob, The format of the geometry is based on the shapefile format, and there is code to decode it in OGR (for the geodatabase driver). I think it would be hard to construct these geometries properly using SQL, but then my SQL-fu is weak. I've never actually worked out how the spatial index works, so updating that might be quite challenging. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From woklist at KYNGCHAOS.COM Tue Sep 26 07:08:20 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Tue, 26 Sep 2006 09:08:20 -0500 Subject: Labeling from a MySQL Datasource In-Reply-To: <45185400.4040209@analygis.com> Message-ID: Search the mailing list archives. A mapserver JOIN won't work, but joining with OGR will. I don't have the details handy. On Sep 25, 2006, at 5:11 PM, Ian Erickson wrote: > Does anyone have an example of how to label a MapServer layer with > the results of a JOIN directive. Is this even possible using the > LABELITEM parameter? Using PHP MapScript and MapServer 4.8. > > -- > Ian Erickson > AnalyGIS, LLC ----- William Kyngesburye http://www.kyngchaos.com/ "This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?" - The Ruler of the Universe From beyhan at DEPREM.GOV.TR Tue Sep 26 07:26:57 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Tue, 26 Sep 2006 17:26:57 +0300 Subject: adding label to point layer in PHPMapscript In-Reply-To: <27011.62.77.56.16.1159277588.squirrel@62.77.56.16> Message-ID: Dear Pietro; Thank you for your suggestion. But still the label doesn't appearing I have change some point in yor result you sent me.. Please check it. I really try to write label with point by using PHP but I couldn't find any result on the list archive or on the web. Thank you very much for your interest.... the code which I changed a little are here..... $map_path="/var/www/html/zone/"; $map = ms_newMapObj($map_path."zone.map"); $map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); // create a temp layer to hold our points $point_layer = ms_newLayerObj($map); $point_layer->set("name", "markers"); $point_layer->set("type", MS_LAYER_POINT); $point_layer->set("status", MS_DEFAULT); $point_layer->setProjection("proj=latlong",MS_TRUE); // create a class and style for this layer $point_class = ms_newClassObj($point_layer); $point_style = ms_newStyleObj($point_class); $koyadi="deneme"; $point_layer->set("labelitem","$koyadi"); $point_symbol = $map->getSymbolByName("cpoint"); $point_style->set("symbol", $point_symbol); $point_style->set("size", 12); $point_style->color->setRGB(255,0,255); $point_style->outlinecolor->setRGB(255,255,0); /* setting a label on the class */ // $label = $class->label; /***** here also I have changed... as follows */ $label = $point_class->label; $label->set("position", MS_CC); $label->set("font","arial"); $label->set("type",MS_BITMAP);/* I HAVE CHANGE THIS LINE BECAUSE freetype format doesn't supporting my mapserver. I also try to find a solution for that.*/ $label->set("size","large"); /* also hereeeeeeee*/ $longitude=$lon;// comes from select queries from mysql as a result $latitude=$lat;// comes from select queries from mysql as a result /* now the method is a bit more complicated as precedent */ /* create and locate a point object */ $point = ms_newPointObj(); /* is this will be $point_layer for my code???*/ $point->setXY($longitude, $latitude); /* create a line object and add the point */ $line = ms_newLineObj(); $line->add($point); /* create a shape object and add the mono-point line */ $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape->add($line); /* set the "text" property of the shape */ $shape->set("text","show must go on"); /* add this shape to the layer */ $point_layer->addFeature($shape); /* also hereeee*/ /* now you can create the image of the map and save it */ // $image = $oMap->draw(); $image = $map->draw(); $map_url=$image->saveWebImage(); /* you don't need to invoke the */ // $point->draw($map, $layer, $image, 0, ""); /**************************************************/ // draw our image without the points $ref = $map->drawreferencemap(); $legend=$map->drawLegend(); On Tue, 26 Sep 2006 15:33:08 +0200, Pietro Giannini wrote > hi Murat, > i tried so, and works: > > /****************************************/ > /* setting a label on the class */ > $label = $class->label; > $label->set("position", MS_CC); > $label->set("font","arial"); > $label->set("type",MS_TRUEYPE); > $label->set("size",12); > > /* now the method is a bit more complicated as precedent */ > /* create and locate a point object */ > $point = ms_newPointObj(); > $point->setXY($longitude, $latitude); > /* create a line object and add the point */ > $line = ms_newLineObj(); > $line->add($point); > /* create a shape object and add the mono-point line */ > $shape = ms_newShapeObj(MS_SHAPE_POINT); > $shape->add($line); > /* set the "text" property of the shape */ > $shape->set("text","show must go on"); > /* add this shape to the layer */ > $layer->addFeature($shape); > > /* now you can create the image of the map and save it */ > $image = $oMap->draw(); > $map_url=$image->saveWebImage(); > /* you don't need to invoke the */ > // $point->draw($map, $layer, $image, 0, ""); > /**************************************************/ > > best regards > > Pietro > > ___________________________ > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > On Mar, 26 Settembre 2006 11:48, Murat BEYHAN disse: > > Dear Jacob, > > Thank you for your suggestion. > > The following php codes bring one of the record from mysql I mean only one > > row. > > > > That row consist of the cityname (iladi), districtname (ilceadi) and > > village name (koyadi). > > > > $query = "SELECT * FROM $db_tb WHERE iladi LIKE '$iladi' AND > > ilceadi LIKE '$ilceadi' AND koyadi LIKE '$koyadi'"; > > > > $result = mysql_query($query) or die("Query failed : " . mysql_error()); > > > > $num = mysql_numrows($result); > > $i=0; > > while ($i < $num) { > > $koyadi = mysql_result($result,$i,"koyadi"); > > $ilceadi = mysql_result($result,$i,"ilceadi"); > > $iladi = mysql_result($result,$i,"iladi"); > > $zone = mysql_result($result,$i,"zone"); > > $lon = mysql_result($result,$i,"lon"); > > $lat = mysql_result($result,$i,"lat"); > > ++$i; > > } > > > >> Have you tested whether any part of this code works? Which part is > >> giving you trouble? Does your PHP log say anything? > > By using this query result I'm drawing point of the village on the map. > > The part of this issue does work succesfully. I mean drawing of the point > > was achieved already by the support of the list user. > > The second step Which I intend to write the name of village near to point. > > > > So I was changed the name of koyadi into villagename in order to > > understand for people in my message. sorry. > > Now I have tried to ad your suggestion into the php code but still the > > name of village doesnt appearing on the map.. > > I hope I could explained What I'm trying to do. > > Thanks. > > Murat > > > > The new codes are here after your suggestion. But I2m not sure exacly > > where I have to put your suggestion on the code. > > $map_path="/var/www/html/zone/"; > > $map = ms_newMapObj($map_path."zone.map"); > > $map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); > > > > // create a temp layer to hold our points > > $point_layer = ms_newLayerObj($map); > > $point_layer->set("name", "markers"); > > $point_layer->set("type", MS_LAYER_POINT); > > $point_layer->set("status", MS_DEFAULT); > > $point_layer->setProjection("proj=latlong",MS_TRUE); > > > > // create a class and style for this layer > > $point_class = ms_newClassObj($point_layer); > > $point_style = ms_newStyleObj($point_class); > > $point_layer->set("labelitem","$koyadi"); > > $point_symbol = $map->getSymbolByName("cpoint"); > > > > $point_style->set("symbol", $point_symbol); > > $point_style->set("size", 12); > > $point_style->color->setRGB(255,0,255); > > $point_style->outlinecolor->setRGB(255,255,0); > > > > $label = $point_class->label; > > $label->set("position", MS_CC); > > > > $label->set("font","sans"); > > $label->set("type",MS_TRUEYPE); > > $label->set("size",MS_MEDIUM); > > $label->color->setRGB(22,8,3); > > $label->backgroundcolor->setRGB(0,0,0); > > $label->set(minsize,4); > > $label->set(maxsize,100000); > > > > // draw our image without the points > > $ref = $map->drawreferencemap(); > > $legend=$map->drawLegend(); > > > > $image = $map->draw(); > > > > // initialize our point and add it to the map > > $point = ms_newPointObj(); > > $longitude=$lon;// comes from select queries from mysql as a result > > $latitude=$lat;// comes from select queries from mysql as a result > > echo $longitude, ' ', $lat; > > > > $point->setXY($longitude, $latitude); > > > > $point->draw($map, $point_layer, $image, 0, ""); > > > > $map_url=$image->saveWebImage(); > > $ref_url = $ref->saveWebImage(); > > $legend_url=$legend->saveWebImage(); > > > > > > > > On Tue, 26 Sep 2006 16:04:33 +0800, Delfos, Jacob wrote > >> Murat, > >> > >> Are you sure you want all your villages to have the same label > >> ($villagename)? > >> I think you may want to define a labelitem: > >> > >> $point_layer->set("labelitem","villagename"); // "villagename" is the > >> name of the attribute of the layer > >> > >> Also, you quoted "$koyadi", which is probably not correct. Or remove the > >> '$'. > >> > >> Have you tested whether any part of this code works? Which part is > >> giving you trouble? Does your PHP log say anything? > >> > >> regards, > >> > >> Jacob > >> > > > > > > > > -- > > This message has been scanned for viruses and > > dangerous content by MailScanner, and is > > believed to be clean. > > > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From David.Fawcett at STATE.MN.US Tue Sep 26 07:33:53 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 26 Sep 2006 09:33:53 -0500 Subject: Font error Message-ID: Murat, In the Map block of your Map File, do you have a FONTSET line that contains the correct path to your fonts.list file. In that file, is there an entry for 'arial'? Is there a corresponding arial.ttf file for that entry? Are the permissions correct for the directory in which the font.list and fonts are in? If you are on a unix or linux system, do the cases of the characters in the names and paths of the fonts match? David. -----Original Message----- From: UMN MapServer Users List on behalf of Murat BEYHAN Sent: Tue 9/26/2006 7:42 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Font error Hi frieds; I would like to try the copyright text on my map by using following LAYER NAME copyright STATUS DEFAULT TYPE annotation TRANSFORM false FEATURE POINTS 260 450 #this is the position of the text in image coordinates (pixels) END TEXT "? xyz company 2006" #this is your displaying text END CLASS LABEL #defines the font, colors etc. of the text FONT arial TYPE truetype SIZE 8 BUFFER 1 COLOR 255 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END END then I have got this error message. I was configured Mapserver with freetype but Why I have faced this error and how can I solve. Regards... msGetLabelSize(): TrueType Font error. Requested font (arial) not found. [murat at sakura ~]$ mapserv -v MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=THREADS INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG [murat at sakura ~]$ Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From btrimble at SFWMD.GOV Tue Sep 26 07:41:15 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Tue, 26 Sep 2006 10:41:15 -0400 Subject: Testing Message-ID: Testing: Why can't I post a message? Beheen Trimble -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovidio at PLANETEK.IT Tue Sep 26 08:03:35 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Tue, 26 Sep 2006 17:03:35 +0200 Subject: OGR ODBC spatial query has invalid resultset In-Reply-To: <45192E2D.2060609@pobox.com> Message-ID: Thank u ! I 'll try with this ! I have another problem. My table is a VIEW and It seems that OGR SQL doesn't connect to VIEWS but only connects to Tables Is it true ? On 26 Sep 2006 at 9:42, Frank Warmerdam wrote: > Fabio D'Ovidio wrote: > > Frank, please, what is wrong with this ?? > ... > > END > > CONNECTIONTYPE OGR > > CONNECTION "puglia/pug_iffi.shp" > > DATA "SELECT * from pug_iffi c LEFT JOIN > > 'ODBC:sa/@CartanetIFFI'.Query_IdFrana b ON c.IDFRANA = (b.cod_pro + b.id > > + b.subid)" > > END > > > > It doesn't work ! > > Fabio, > > I believe the problem is that the join operation is being evaluated by > OGR, and the OGR "pseudo-SQL" interpreter does not know how to evaluate > operations like "(b.cod_pro + b.id > + b.subid)". It only knows how to > do very simple key to key joins. > > So, in this case the limited nature of OGR SQL joins is failing you. > > This might work if you could create a regular column on your ODBC table > with the merged key. I will warn that OGR joins tend to be slow since > each joined record is fetched by a distinct SQL SELECT operation. So you > should only use it for small numbers of records. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From fredlucca at GMAIL.COM Tue Sep 26 08:05:26 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Tue, 26 Sep 2006 12:05:26 -0300 Subject: Reprojecting a layer using gdaltindex In-Reply-To: <451930A7.30202@pobox.com> Message-ID: On 9/26/06, Frank Warmerdam wrote: > > Frederico Lucca wrote: > > Hello list, > > > > Can I reproject a image that is inside a layer using tileindex? > > Frederico, > > Yes. > > > My problem is that I need to show a ECW that is in Corrego Alegre Datum. > > First of all I tried to use > > PROJECTION > > "init=epsg:4225" > > END > > without success. > > To be clear, are the bounds stored in the tile index in degrees? > (as opposed to projected meters, feet, etc) Frank, Yes, the bounds are stored in degrees, with Corrego Alegre datum. Almost the same as WGS84, in some places with difference of 60 meters from one to other. > Than I tried to use gdalwarp to convert it to WGS84 that is my map > > Datum, but I can't write ECW format, why not? > > The gdalwarp program processes the image in chunks, but the ECW > writer (and also many other compressed GDAL drivers) only support > line by line copying, so gdalwarp has to output to a "working file", > which can then be converted to ecw using gdal_translate. I often > use GeoTIFF or Imagine (HFA) formats for working files. Great! The problem is the hard disk space, I have more than 1000 images and no space. Each GeoTiff have 100.000 MB and compressing with ECW 10.000 MB. > So, the only solution I found is convert using gdalwarp exporting as > > GTiff, but the image size is very large. > > > > I have many photos and want to use only a layer if is possible. > > There is a solution? > > Generally speaking, if all your photos are in EPSG:4225 you should be > able to just label the layer that way, and your map as EPSG:4326, and > mapserver will take care of reprojecting the images as needed. > > However, you cannot have a mix of coordinate systems in your tile index. > So this only works if all the images in your tile index are in the same > coordinate system. Ok, all my images have the same coordinate system. There is a performance cost to reprojecting rasters on the fly. You > may still find you are better pre-reprojecting them using gdalwarp, > and then recompressing to ECW with gdal_translate. Ok, I will try, thanks a lot. Fred. Good luck, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From stan at SUMBERA.COM Tue Sep 26 08:46:40 2006 From: stan at SUMBERA.COM (Stanislav Sumbera) Date: Tue, 26 Sep 2006 17:46:40 +0200 Subject: Announce: MapSnack - Geospatial Virtual Appliance In-Reply-To: <20060915181350.hmaa9hlbeu8084go@webmail.servery.cz> Message-ID: folks, due to low trafic of the still 'cool' topic ;) I've started a new mailing list. Please feel free to join it through the home page of the project http://mapsnack.sourceforge.net/ Hereby I also warmly invite Allan (EOGEO) and Till(GDIdevL) (who are working on similar topics) to join the list. see you there ! Stan [cross posted to freegis] From dmorissette at MAPGEARS.COM Tue Sep 26 09:02:12 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 26 Sep 2006 12:02:12 -0400 Subject: Encoding problem with curved labels In-Reply-To: Message-ID: Volkan Ulukut wrote: > > I?ve been struggling with curved label support of mapserver. First I > thought i got it working correctly but then i realised some of the > labels got encoding glitches on them. Specifically the ones that need to > be curved and have special characters, as you can see on the attachment. > I?m assuming this is a bug. Anyone else came across this one and solved? > Since curved labels are new, i couldn?t find anything about this bug > with googling. > I didn't check in details but I suspect the curved labelling code doesn't take into account the possibility of multibyte characters and it ends up splitting pairs of bytes corresponding to multibyte chars into two label components. I'd suggest that you file a bug with a small test case to reproduce (mapfile, small dataset and font file). Then one of the developers can look at it and fix the labelling code to handle that case properly. Daniel From pgiannini at BYTEWISE.IT Tue Sep 26 09:04:17 2006 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Tue, 26 Sep 2006 18:04:17 +0200 Subject: adding label to point layer in PHPMapscript In-Reply-To: <20060926142405.M53325@deprem.gov.tr> Message-ID: Dear Murat, the code is ok, the problem seems to be the 'labelitem' > $koyadi="deneme"; > $point_layer->set("labelitem","$koyadi"); If I set this property the label don't shows, if I don't set the label shows. I believe the MS override the labels of the features if we set the label for the shapes; there is a little difference between 'shape', which is a geometry joined with a record on a table, and 'feature', which is only a geometry with, if requested, a label. Whith the function $layer->addFeature($shape) we add a feature to the layer. Try & let me know regards Pietro ___________________________ Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mar, 26 Settembre 2006 16:26, Murat BEYHAN disse: > Dear Pietro; > Thank you for your suggestion. > But still the label doesn't appearing > I have change some point in yor result you sent me.. > Please check it. > I really try to write label with point by using PHP but I couldn't find > any > result on the list archive or on the web. > Thank you very much for your interest.... > the code which I changed a little are here..... > > $map_path="/var/www/html/zone/"; > $map = ms_newMapObj($map_path."zone.map"); > $map->setExtent($nMinX, $nMinY, $nMaxX, $nMaxY); > > // create a temp layer to hold our points > $point_layer = ms_newLayerObj($map); > $point_layer->set("name", "markers"); > $point_layer->set("type", MS_LAYER_POINT); > $point_layer->set("status", MS_DEFAULT); > $point_layer->setProjection("proj=latlong",MS_TRUE); > > // create a class and style for this layer > $point_class = ms_newClassObj($point_layer); > $point_style = ms_newStyleObj($point_class); > $koyadi="deneme"; > $point_layer->set("labelitem","$koyadi"); > $point_symbol = $map->getSymbolByName("cpoint"); > > $point_style->set("symbol", $point_symbol); > $point_style->set("size", 12); > $point_style->color->setRGB(255,0,255); > $point_style->outlinecolor->setRGB(255,255,0); > > /* setting a label on the class */ > // $label = $class->label; /***** here also I have changed... as > follows */ > $label = $point_class->label; > $label->set("position", MS_CC); > $label->set("font","arial"); > $label->set("type",MS_BITMAP);/* I HAVE CHANGE THIS LINE BECAUSE > freetype format doesn't supporting my mapserver. I also try to find a > solution > for that.*/ > $label->set("size","large"); /* also hereeeeeeee*/ > $longitude=$lon;// comes from select queries from mysql as a result > $latitude=$lat;// comes from select queries from mysql as a result > /* now the method is a bit more complicated as precedent */ > /* create and locate a point object */ > $point = ms_newPointObj(); /* is this will be $point_layer for my > code???*/ > $point->setXY($longitude, $latitude); > /* create a line object and add the point */ > $line = ms_newLineObj(); > $line->add($point); > /* create a shape object and add the mono-point line */ > $shape = ms_newShapeObj(MS_SHAPE_POINT); > $shape->add($line); > /* set the "text" property of the shape */ > $shape->set("text","show must go on"); > /* add this shape to the layer */ > $point_layer->addFeature($shape); /* also hereeee*/ > > /* now you can create the image of the map and save it */ > // $image = $oMap->draw(); > $image = $map->draw(); > > $map_url=$image->saveWebImage(); > /* you don't need to invoke the */ > // $point->draw($map, $layer, $image, 0, ""); > /**************************************************/ > // draw our image without the points > $ref = $map->drawreferencemap(); > $legend=$map->drawLegend(); > > > > On Tue, 26 Sep 2006 15:33:08 +0200, Pietro Giannini wrote >> hi Murat, >> i tried so, and works: >> >> /****************************************/ >> /* setting a label on the class */ >> $label = $class->label; >> $label->set("position", MS_CC); >> $label->set("font","arial"); >> $label->set("type",MS_TRUEYPE); >> $label->set("size",12); >> >> /* now the method is a bit more complicated as precedent */ >> /* create and locate a point object */ >> $point = ms_newPointObj(); >> $point->setXY($longitude, $latitude); >> /* create a line object and add the point */ >> $line = ms_newLineObj(); >> $line->add($point); >> /* create a shape object and add the mono-point line */ >> $shape = ms_newShapeObj(MS_SHAPE_POINT); >> $shape->add($line); >> /* set the "text" property of the shape */ >> $shape->set("text","show must go on"); >> /* add this shape to the layer */ >> $layer->addFeature($shape); >> >> /* now you can create the image of the map and save it */ >> $image = $oMap->draw(); >> $map_url=$image->saveWebImage(); >> /* you don't need to invoke the */ >> // $point->draw($map, $layer, $image, 0, ""); >> /**************************************************/ >> >> best regards >> >> Pietro >> >> ___________________________ >> Pietro Giannini >> Bytewise srl - Area GIS >> 41?50'38.58"N 12?29'13.39"E >> From btrimble at SFWMD.GOV Tue Sep 26 09:39:34 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Tue, 26 Sep 2006 12:39:34 -0400 Subject: using alt tag to do mouse over Message-ID: Hi All, I want to use alt tag in my template to show an attribute of the active layer. Below is the content of the html: This is the image of the active layer: These are tow layers that user can select: Select Layers to Display: If user select lecsr_budget, when the mouse is over this image I want to display the attribute site_name of this shape file. Right now it displays 'this is a map'. Something like 'alt=layer.value' or 'alt=layer[site_name]' ?? I don't want to use java script if I can use mapserver functions through the request string. I have looked at the archives, they look too complicated for this? It must be an easier way! Thanks Beheen -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Sep 26 10:59:22 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 26 Sep 2006 13:59:22 -0400 Subject: OGR ODBC spatial query has invalid resultset In-Reply-To: <45195D67.310.6C14836@dovidio.planetek.it> Message-ID: Fabio D'Ovidio wrote: > Thank u ! I 'll try with this ! > > I have another problem. My table is a VIEW and It seems that OGR SQL doesn't connect to > VIEWS but only connects to Tables > > Is it true ? Fabio, I believe that views will not by default be treated as layers. But the ODBC connection strings for OGR include an option for a comma delimited list of "tables" at the end and I think this can include a named view which will then be treated as a layer within OGR. I apologize for this all being a bit hacky, and my memory weak. It seems like the ODBC driver could be a full time occupation it gets used in so many ways by different people. But I don't use it myself very often so it hard for me to keep track of all the details. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From work at XWB.COM Tue Sep 26 11:00:34 2006 From: work at XWB.COM (Chip Taylor) Date: Tue, 26 Sep 2006 11:00:34 -0700 Subject: Heading west to east In-Reply-To: <20060926174640.v1v8vv8qok8cwccg@webmail.servery.cz> Message-ID: I have a world map, extents 90 -180 -90 180. I am returning a WFS GML to a layer that plots a line on the map that starts at 47 -120 and ends up at 45 147.62. My plot on MapServer shows the line going EAST instead of West to the extent and then wrapping around and continuing east to west to the last point. Is there something I am doing wrong? Chip Taylor From Jacob.Delfos at MAUNSELL.COM Tue Sep 26 16:57:38 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Wed, 27 Sep 2006 07:57:38 +0800 Subject: OGR ODBC spatial query has invalid resultset Message-ID: Hi Frank, Thanks a lot for that. It works great. That's really saved my neck. Regards, Jacob > -----Original Message----- > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > Sent: 26 September 2006 21:08 > To: Delfos, Jacob > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] OGR ODBC spatial query has > invalid resultset > > Delfos, Jacob wrote: > > Hi List, > > > > Sorry about all the questions I have been sending. I'm > hoping someone > > can shed light on this one. > > > > After a QueryByPoint or QueryByRect operation in PHP, the number of > > results is correct, but the resultCacheMemberObj always > points to the > > first "getNumResults()" objects. If there are 4 results, it holds > > references to objects 1-4. For one result, it always points > to the 1st > > object. > > > > This is -not- the case for QueryByAttributes, though. The > > resultCacheMemberObj is correct for this type of query. > > > > This only occurs for OGR ODBC layers. I have tried MDB and > CSV, with the > > same problem... > > > > If anyone knows why, please let me know. If someone thinks > this is a > > bug, I'll file it. > > Jacob, > > This occurs with OGR ODBC datasources that lack an FID column > in the original > table. Without an FID, OGR just assigns FIDs starting with > zero to the > result set. > > The problem really bites when different constraints (spatial > or attribute) > are in place at the point where the query is done, and when > the results are > fetched - which is the case when you do spatial queries as > the spatial query > apparently is cleared by mapserver before it starts fetching > individual > results. > > The overall point is that two-stage queries (as done by mapserver) are > very unreliable against OGR datasources without a persistent > FID, such as > some ODBC datasources. > > BTW, you can use the mapserver config variable ODBC_OGR_FID > to force the > ODBC driver to pick a particular column as the FID. > Unfortunately this > is a global option so it only works smoothly if you have the same name > for the id of all tables you are accessing in a given > mapserver map. You > would add something like the following in the MAP section of > your map file > to default to using the ID column of your odbc tables as the > feature id. > > CONFIG "ODBC_OGR_FID" "ID" > > Best regards, > -- > ---------------------------------------+---------------------- > ---------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, > http://osgeo.org > > From Jacob.Delfos at MAUNSELL.COM Tue Sep 26 17:14:48 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Wed, 27 Sep 2006 08:14:48 +0800 Subject: Adding point to ESRI Personal Geodatabasethrough ODBC Message-ID: I didn't think it would be easy. I have tried in vain to obtain esri documentation on it..... I was hoping it would be a 'simple' binary value for point data. I'll stick with ODBC for now, which fulfills my requirements. Thanks, Jacob > -----Original Message----- > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > Sent: 26 September 2006 21:58 > To: Delfos, Jacob > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Adding point to ESRI > Personal Geodatabasethrough ODBC > > Delfos, Jacob wrote: > > Hi All, > > > > I was wondering if anyone has knows how to add a point > feature to an > > ESRI personal geodatabase, without using ESRI software > (ideally through > > SQL). The spatial column is "long binary data" according to > MS Access. > > I'm assuming I'd also have to update the spatial index. I'm > using PHP, > > which I believe supports binary data through ODBC. > > > > I'm assuming it's possible, but I'm not sure yet how. > Alternatively, > > I'll have to use ODBC/OVF. Not a drama, but I'd like to > keep it all in > > one format. > > Jacob, > > The format of the geometry is based on the shapefile format, and there > is code to decode it in OGR (for the geodatabase driver). I think it > would be hard to construct these geometries properly using > SQL, but then > my SQL-fu is weak. > > I've never actually worked out how the spatial index works, > so updating that > might be quite challenging. > > Best regards, > -- > ---------------------------------------+---------------------- > ---------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, > http://osgeo.org > > From beyhan at DEPREM.GOV.TR Tue Sep 26 22:48:20 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Wed, 27 Sep 2006 08:48:20 +0300 Subject: adding label to point layer in PHPMapscript In-Reply-To: <34968.62.77.56.11.1159286657.squirrel@62.77.56.11> Message-ID: Dear Pietro, Yes, You are right. I have closed the line //koyadi="deneme"; //$point_layer->set("labelitem","$koyadi"); Then I have changed $shape->set("text","$show must go on"); as follows $shape->set("text","$koyadi"); Now The name of the willage could appeared on the map. Really Thank you very much for your help. Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From beyhan at DEPREM.GOV.TR Tue Sep 26 23:22:05 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Wed, 27 Sep 2006 09:22:05 +0300 Subject: Font error In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5015AD1A0@s-sp22.pca.state.mn.us> Message-ID: Dear David, I have add the fontset line at the begining of the map file as follows FONTSET "/var/www/html/map/fonts/fonts.list" Then I have tried to write arial bold.Then I have succeeded. Thnak you very much. I have forgotten to set font... Regards... MURAT On Tue, 26 Sep 2006 09:33:53 -0500, Fawcett, David wrote > Murat, > > In the Map block of your Map File, do you have a FONTSET line that > contains the correct path to your fonts.list file. > > In that file, is there an entry for 'arial'? > > Is there a corresponding arial.ttf file for that entry? > > Are the permissions correct for the directory in which the font.list > and fonts are in? > > If you are on a unix or linux system, do the cases of the characters > in the names and paths of the fonts match? > > David. > > -----Original Message----- > From: UMN MapServer Users List on behalf of Murat BEYHAN > Sent: Tue 9/26/2006 7:42 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Font error > > Hi frieds; > I would like to try the copyright text on my map by using following > LAYER NAME copyright STATUS DEFAULT TYPE annotation TRANSFORM false > FEATURE > POINTS > 260 450 #this is the position of the text in image coordinates > (pixels) END TEXT "? xyz company 2006" #this is your > displaying text END CLASS LABEL #defines the font, colors > etc. of the text FONT arial TYPE truetype SIZE 8 > BUFFER 1 COLOR 255 0 0 BACKGROUNDCOLOR 255 255 255 > FORCE TRUE END END END > > then I have got this error message. I was configured Mapserver with freetype > but Why I have faced this error and how can I solve. > Regards... > > msGetLabelSize(): TrueType Font error. Requested font (arial) not > found. > > [murat at sakura ~]$ mapserv -v > MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=THREADS INPUT=TIFF > INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > [murat at sakura ~]$ > > Murat > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From Kristian.Thy at ATKINSGLOBAL.COM Wed Sep 27 01:08:45 2006 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Wed, 27 Sep 2006 10:08:45 +0200 Subject: using alt tag to do mouse over In-Reply-To: A Message-ID: > -----Original Message----- > From: Trimble, Beheen > > I want to use alt tag in my template to show an attribute of > the active layer. As an aside, the alt text doesn't show as a tooltip in Firefox, because that's not what the 'alt' attribute is for. Use the attribute 'title' for that, if you care about web standards. regards, Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From dovidio at PLANETEK.IT Wed Sep 27 01:15:19 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 27 Sep 2006 10:15:19 +0200 Subject: OGR ODBC spatial query has invalid resultset In-Reply-To: <45196A7A.1050305@pobox.com> Message-ID: Frank Thank you very much for help ! I need a reference about documentation to find the option that you sad me to consider Views as Tables. I have found the same problem here (but for MySQL DBMS) : http://www.nabble.com/-UMN_MAPSERVER-USERS--OGR-with-SELECT-%2B-INNER- JOIN--using--MS-SQL-views---p1259454.html But there is no described solution . Could you say me a link about reference ? On 26 Sep 2006 at 13:59, Frank Warmerdam wrote: > Fabio D'Ovidio wrote: > > Thank u ! I 'll try with this ! > > > > I have another problem. My table is a VIEW and It seems that OGR SQL doesn't connect to > > VIEWS but only connects to Tables > > > > Is it true ? > > Fabio, > > I believe that views will not by default be treated as layers. But the > ODBC connection strings for OGR include an option for a comma delimited > list of "tables" at the end and I think this can include a named view > which will then be treated as a layer within OGR. > > I apologize for this all being a bit hacky, and my memory weak. It seems > like the ODBC driver could be a full time occupation it gets used in so > many ways by different people. But I don't use it myself very often so it > hard for me to keep track of all the details. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Sep 27 01:17:39 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Wed, 27 Sep 2006 10:17:39 +0200 Subject: OGR ODBC spatial query has invalid resultset Message-ID: Fabio, the documentation is here: http://www.gdal.org/ogr/drv_odbc.html Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Fabio D'Ovidio Verzonden: woensdag 27 september 2006 10:15 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] OGR ODBC spatial query has invalid resultset Frank Thank you very much for help ! I need a reference about documentation to find the option that you sad me to consider Views as Tables. I have found the same problem here (but for MySQL DBMS) : http://www.nabble.com/-UMN_MAPSERVER-USERS--OGR-with-SELECT-%2B-INNER- JOIN--using--MS-SQL-views---p1259454.html But there is no described solution . Could you say me a link about reference ? On 26 Sep 2006 at 13:59, Frank Warmerdam wrote: > Fabio D'Ovidio wrote: > > Thank u ! I 'll try with this ! > > > > I have another problem. My table is a VIEW and It seems that OGR SQL doesn't connect to > > VIEWS but only connects to Tables > > > > Is it true ? > > Fabio, > > I believe that views will not by default be treated as layers. But the > ODBC connection strings for OGR include an option for a comma delimited > list of "tables" at the end and I think this can include a named view > which will then be treated as a layer within OGR. > > I apologize for this all being a bit hacky, and my memory weak. It seems > like the ODBC driver could be a full time occupation it gets used in so > many ways by different people. But I don't use it myself very often so it > hard for me to keep track of all the details. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From kappu72 at GMAIL.COM Wed Sep 27 02:33:31 2006 From: kappu72 at GMAIL.COM (Andrea Cappugi) Date: Wed, 27 Sep 2006 11:33:31 +0200 Subject: SHPINDEX question? Message-ID: Hi, does anybody know if mapserver uses quadtree-based spatial index created with shptree, when using shapindex? Thank's Andrea -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovidio at PLANETEK.IT Wed Sep 27 02:42:05 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 27 Sep 2006 11:42:05 +0200 Subject: SHPINDEX question? In-Reply-To: Message-ID: Yes ! On 27 Sep 2006 at 11:33, Andrea Cappugi wrote: > > Hi, > does anybody know if mapserver uses quadtree-based spatial index created with shptree, when > using shapindex? > Thank's Andrea > ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From dovidio at PLANETEK.IT Wed Sep 27 03:05:05 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 27 Sep 2006 12:05:05 +0200 Subject: SHPINDEX question? In-Reply-To: Message-ID: I'm working about this , too. Do you Know How can I open qix file ? Thanks ! On 27 Sep 2006 at 11:33, Andrea Cappugi wrote: > > Hi, > does anybody know if mapserver uses quadtree-based spatial index created with shptree, when > using shapindex? > Thank's Andrea > ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From btrimble at SFWMD.GOV Wed Sep 27 04:19:41 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Wed, 27 Sep 2006 07:19:41 -0400 Subject: using alt tag to do mouse over Message-ID: Hi Kristian, Alt or Title, still I need it to be a mapserver/cgi variable that when I submit the request, extracts the site_name from the shapefile. I don't know the site_name before hand. I can not hard code the value. Thanks Beheen -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Thy, Kristian Sent: Wednesday, September 27, 2006 4:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] using alt tag to do mouse over > -----Original Message----- > From: Trimble, Beheen > > I want to use alt tag in my template to show an attribute of > the active layer. As an aside, the alt text doesn't show as a tooltip in Firefox, because that's not what the 'alt' attribute is for. Use the attribute 'title' for that, if you care about web standards. regards, Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From btrimble at SFWMD.GOV Wed Sep 27 04:33:46 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Wed, 27 Sep 2006 07:33:46 -0400 Subject: Adding point to ESRI Personal Geodatabasethrough ODBC Message-ID: Jacob, I have done a polygon feature using sql in oracle spatial. However, after that you have to make it a shapefile and the rest! The point is simpler than the polygon but I am not sure if that is what you really want. If you think you want it I go through my program and cut the piece out for you. Beheen -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Delfos, Jacob Sent: Tuesday, September 26, 2006 8:15 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Adding point to ESRI Personal Geodatabasethrough ODBC I didn't think it would be easy. I have tried in vain to obtain esri documentation on it..... I was hoping it would be a 'simple' binary value for point data. I'll stick with ODBC for now, which fulfills my requirements. Thanks, Jacob > -----Original Message----- > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > Sent: 26 September 2006 21:58 > To: Delfos, Jacob > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Adding point to ESRI > Personal Geodatabasethrough ODBC > > Delfos, Jacob wrote: > > Hi All, > > > > I was wondering if anyone has knows how to add a point > feature to an > > ESRI personal geodatabase, without using ESRI software > (ideally through > > SQL). The spatial column is "long binary data" according to > MS Access. > > I'm assuming I'd also have to update the spatial index. I'm > using PHP, > > which I believe supports binary data through ODBC. > > > > I'm assuming it's possible, but I'm not sure yet how. > Alternatively, > > I'll have to use ODBC/OVF. Not a drama, but I'd like to > keep it all in > > one format. > > Jacob, > > The format of the geometry is based on the shapefile format, and there > is code to decode it in OGR (for the geodatabase driver). I think it > would be hard to construct these geometries properly using > SQL, but then > my SQL-fu is weak. > > I've never actually worked out how the spatial index works, > so updating that > might be quite challenging. > > Best regards, > -- > ---------------------------------------+---------------------- > ---------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, > http://osgeo.org > > From dovidio at PLANETEK.IT Wed Sep 27 05:37:57 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 27 Sep 2006 14:37:57 +0200 Subject: OGR ODBC spatial query has invalid resultset In-Reply-To: <5958F6B0C15AFE449245A966FB967B58074FAF@rws-s001000.ad.rws.nl> Message-ID: OK. the CONNECTION works fine ! My problem now is The CGI timeout because my VIEW has a large number of records. How can I do to sovle this ? Thanks ! On 27 Sep 2006 at 10:17, Eijnden, Bart van den (AGI) wrote: > Fabio, > > the documentation is here: > > http://www.gdal.org/ogr/drv_odbc.html > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Fabio D'Ovidio > Verzonden: woensdag 27 september 2006 10:15 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] OGR ODBC spatial query has invalid > resultset > > > Frank Thank you very much for help ! > > I need a reference about documentation to find the option that you sad me to consider Views > as Tables. > > I have found the same problem here (but for MySQL DBMS) : > > http://www.nabble.com/-UMN_MAPSERVER-USERS--OGR-with-SELECT-%2B-INNER- > JOIN--using--MS-SQL-views---p1259454.html > > But there is no described solution . > > > Could you say me a link about reference ? > > > On 26 Sep 2006 at 13:59, Frank Warmerdam wrote: > > > Fabio D'Ovidio wrote: > > > Thank u ! I 'll try with this ! > > > > > > I have another problem. My table is a VIEW and It seems that OGR SQL doesn't connect to > > > VIEWS but only connects to Tables > > > > > > Is it true ? > > > > Fabio, > > > > I believe that views will not by default be treated as layers. But the > > ODBC connection strings for OGR include an option for a comma delimited > > list of "tables" at the end and I think this can include a named view > > which will then be treated as a layer within OGR. > > > > I apologize for this all being a bit hacky, and my memory weak. It seems > > like the ODBC driver could be a full time occupation it gets used in so > > many ways by different people. But I don't use it myself very often so it > > hard for me to keep track of all the details. > > > > Best regards, > > -- > > ---------------------------------------+-------------------------------------- > > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > > light and sound - activate the windows | http://pobox.com/~warmerdam > > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > > ******************************************************************************************** > > > Ing. Fabio D'Ovidio > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > ******************************************************************************************** > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From dovidio at PLANETEK.IT Wed Sep 27 06:18:07 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 27 Sep 2006 15:18:07 +0200 Subject: fastcgi Message-ID: How can I use fcgi extension of mapserver ? have i do something in the mapfile configuration ? or in the URL parameters ? ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From dovidio at PLANETEK.IT Wed Sep 27 06:20:00 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 27 Sep 2006 15:20:00 +0200 Subject: (Fwd) fastcgi Message-ID: I am working with Windows environment and IIS ------- Forwarded message follows ------- From: Fabio D'Ovidio To: mAPSERVER-USERS at LISTS.UMN.EDU Subject: fastcgi Send reply to: dovidio at planetek.it Date sent: Wed, 27 Sep 2006 15:18:05 +0200 How can I use fcgi extension of mapserver ? have i do something in the mapfile configuration ? or in the URL parameters ? ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** ------- End of forwarded message ------- ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- A non-text attachment was scrubbed... Name: WPM$0E96.PM$ Type: application/octet-stream Size: 481 bytes Desc: Mail message body URL: From David.Fawcett at STATE.MN.US Wed Sep 27 06:24:16 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 27 Sep 2006 08:24:16 -0500 Subject: using alt tag to do mouse over In-Reply-To: A Message-ID: Beheen, Take a look at the ImageMap HowTo: http://mapserver.gis.umn.edu/docs/howto/imagemaps In section 3.1, it shows how to substitute the value from the shapefile field 'NAME' into each imagemap element. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Trimble, Beheen Sent: Wednesday, September 27, 2006 6:20 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] using alt tag to do mouse over Hi Kristian, Alt or Title, still I need it to be a mapserver/cgi variable that when I submit the request, extracts the site_name from the shapefile. I don't know the site_name before hand. I can not hard code the value. Thanks Beheen -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Thy, Kristian Sent: Wednesday, September 27, 2006 4:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] using alt tag to do mouse over > -----Original Message----- > From: Trimble, Beheen > > I want to use alt tag in my template to show an attribute of > the active layer. As an aside, the alt text doesn't show as a tooltip in Firefox, because that's not what the 'alt' attribute is for. Use the attribute 'title' for that, if you care about web standards. regards, Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From David.Fawcett at STATE.MN.US Wed Sep 27 06:27:33 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 27 Sep 2006 08:27:33 -0500 Subject: fastcgi In-Reply-To: A<451A962F.16763.1535E20@dovidio.planetek.it> Message-ID: This might help. http://mapserver.gis.umn.edu/docs/howto/fastcgi -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fabio D'Ovidio Sent: Wednesday, September 27, 2006 8:18 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] fastcgi How can I use fcgi extension of mapserver ? have i do something in the mapfile configuration ? or in the URL parameters ? ************************************************************************ ******************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ************************************************************************ ******************** From dovidio at PLANETEK.IT Wed Sep 27 06:31:31 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 27 Sep 2006 15:31:31 +0200 Subject: fastcgi In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB09EF@s-sp22.pca.state.mn.us> Message-ID: I am sorry but this document say nothing about how to configure fcgi with IIS and how I can call it fro querying. Any suggestion ? On 27 Sep 2006 at 8:27, Fawcett, David wrote: > This might help. > > http://mapserver.gis.umn.edu/docs/howto/fastcgi > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Fabio D'Ovidio > Sent: Wednesday, September 27, 2006 8:18 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] fastcgi > > > How can I use fcgi extension of mapserver ? > > have i do something in the mapfile configuration ? or in the URL > parameters ? > ************************************************************************ > ******************** > > > Ing. Fabio D'Ovidio > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > ************************************************************************ > ******************** > ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From flavio at TYDAC.CH Wed Sep 27 06:29:38 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Wed, 27 Sep 2006 15:29:38 +0200 Subject: SHPINDEX question? In-Reply-To: Message-ID: ciao andrea see http://umn.mapserver.ch, menu "Shape File Indexing" it explains and illustrates the mathod. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Andrea Cappugi To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Wed, 27 Sep 2006 11:33:31 +0200 Subject: [UMN_MAPSERVER-USERS] SHPINDEX question? > Hi, > does anybody know if mapserver uses quadtree-based spatial index > created > with shptree, when using shapindex? > Thank's Andrea > From paulsen at TERRESTRIS.DE Wed Sep 27 06:24:43 2006 From: paulsen at TERRESTRIS.DE (Hinrich Paulsen) Date: Wed, 27 Sep 2006 15:24:43 +0200 Subject: Trying to implement a SOS for the first time Message-ID: Dear List, posting to this list for the first time and am promptly rejected by the system. Hopefully it is not an omen. :-) Well, here is my question again. Dear List, I am in the process of setting up a Sensor Observation Service (SOS) for the first time using a Kubuntu-Linux machine and the following Mapserver: MapServer version 4.10.0-beta3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=SOS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My data is sitting in a Postgis table which I can easily access via WMS. I have consulted the documentation at: http://mapserver.gis.umn.edu/docs/howto/sos_server/ and when trying out the examples given there the GetCapabilities and DescribeSensor Requests work fine so far but the GetObservation Request does not. My idea of how the GetObservation Request should work is that data in a specific column in my Postgis table is returned when I define it in my SOS server mapfile. Here is a snippet of the mapfile: LAYER NAME test_sos_layer DUMP TRUE METADATA "sos_procedure" "SW01UTL001" ## REQUIRED "sos_offering_id" "r_wert" ## REQUIRED "sos_observedproperty_id" "r_wert" ## REQUIRED "sos_describesensor_url" "http://localhost/temp/SW01UTL001.xml" ## REQUIRED END TYPE POINT STATUS ON CONNECTIONTYPE postgis CONNECTION "user=myuser dbname=mydb host=localhost port=5432" DATA "the_geom FROM (SELECT * FROM mytable) AS foo USING UNIQUE gid USING SRID=31467" PROJECTION 'init=epsg:31467' END CLASS NAME 'r_wert' STYLE SYMBOL 'circle' SIZE 5 COLOR 255 100 50 OUTLINECOLOR 0 0 0 END END END When I send this there is no error but all I get back is this: Where am I going wrong? Any help on pointing me in the right direction is highly appreciated! Best regards, Hinrich ************************************************** * Freie Software: AmeiN! ArcMap-Export-2-UMN * * Download http://sourceforge.net/projects/avein * * * * LiveLinux 'WebGIS auf CD' * * http://www.terrestris.de * ************************************************** ************************************************** terrestris GbR Dipl.-Geogr. Hinrich Paulsen Siemensstr. 8 D-53121 Bonn T: ++49 (0)228 - 962 899 51 F: ++49 (0)228 - 962 899 57 Internet: www.terrestris.de ************************************************** From warmerdam at POBOX.COM Wed Sep 27 06:49:59 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 27 Sep 2006 09:49:59 -0400 Subject: fastcgi In-Reply-To: <451A9953.32603.15FA208@dovidio.planetek.it> Message-ID: Fabio D'Ovidio wrote: > I am sorry but this document say nothing about how to configure fcgi with IIS and how I can > call it fro querying. > > Any suggestion ? Fabio, I am not aware of any documentation on how to setup fastcgi mapserver with IIS. However, there has been at least one other person contact me about it in the past, so your ownly likely source of help is if someone who has already done it comes forward to assist. I'm not absolutely positive anyone has ever *succeeded* in doing it with IIS though. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Sep 27 06:53:21 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Wed, 27 Sep 2006 15:53:21 +0200 Subject: fastcgi Message-ID: This is not a straightforward exercise unfortunately, and I don't believe anybody has done this with Mapserver before successfully. Under Apache yes, but not under IIS AFAIK. Maybe these links can give you a start: http://www.caraveo.com/fastcgi/ http://phplens.com/phpeverywhere/fastcgi-php Also, you need Mapserver compiled with FASTCGI support. Check mapserv -v. Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Fabio D'Ovidio Verzonden: woensdag 27 september 2006 15:32 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] fastcgi I am sorry but this document say nothing about how to configure fcgi with IIS and how I can call it fro querying. Any suggestion ? On 27 Sep 2006 at 8:27, Fawcett, David wrote: > This might help. > > http://mapserver.gis.umn.edu/docs/howto/fastcgi > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Fabio D'Ovidio > Sent: Wednesday, September 27, 2006 8:18 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] fastcgi > > > How can I use fcgi extension of mapserver ? > > have i do something in the mapfile configuration ? or in the URL > parameters ? > ************************************************************************ > ******************** > > > Ing. Fabio D'Ovidio > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > ************************************************************************ > ******************** > ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From Kristian.Thy at ATKINSGLOBAL.COM Wed Sep 27 06:58:24 2006 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Wed, 27 Sep 2006 15:58:24 +0200 Subject: fastcgi In-Reply-To: A<451A8187.6000607@pobox.com> Message-ID: > -----Original Message----- > From: Frank Warmerdam > > I'm not absolutely positive anyone has ever *succeeded* in doing it > with IIS though. I was looking tentatively at FastCGI for IIS. I quickly reached the point where I thought "I'll recommend Apache2 on a *nix server", since apparently to get FastCGI running on IIS you need to use an ISAPI plugin ... version 0.6 beta ... last updated in March 2002 ... :-X Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. From dovidio at PLANETEK.IT Wed Sep 27 07:18:23 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 27 Sep 2006 16:18:23 +0200 Subject: fastcgi In-Reply-To: Message-ID: On 27 Sep 2006 at 15:58, Thy, Kristian wrote: > > -----Original Message----- > > From: Frank Warmerdam > > > > I'm not absolutely positive anyone has ever *succeeded* in doing it > > with IIS though. > > I was looking tentatively at FastCGI for IIS. I quickly reached the > point where I thought "I'll recommend Apache2 on a *nix server", since > apparently to get FastCGI running on IIS you need to use an ISAPI > plugin ... version 0.6 beta ... last updated in March 2002 ... :-X Where can I find it ? > > Kristian > > > This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. > ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From dovidio at PLANETEK.IT Wed Sep 27 07:20:37 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 27 Sep 2006 16:20:37 +0200 Subject: (Fwd) Re: [UMN_MAPSERVER-USERS] fastcgi Message-ID: Sorry !!! It is the link that Eijnden, Bart van den has send me before ! ------- Forwarded message follows ------- From: Fabio D'Ovidio To: MAPSERVER-USERS at lists.umn.edu, "Thy, Kristian" Subject: Re: [UMN_MAPSERVER-USERS] fastcgi Send reply to: dovidio at planetek.it Date sent: Wed, 27 Sep 2006 16:18:21 +0200 On 27 Sep 2006 at 15:58, Thy, Kristian wrote: > > -----Original Message----- > > From: Frank Warmerdam > > > > I'm not absolutely positive anyone has ever *succeeded* in doing it > > with IIS though. > > I was looking tentatively at FastCGI for IIS. I quickly reached the > point where I thought "I'll recommend Apache2 on a *nix server", since > apparently to get FastCGI running on IIS you need to use an ISAPI > plugin ... version 0.6 beta ... last updated in March 2002 ... :-X Where can I find it ? > > Kristian > > > This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. > ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** ------- End of forwarded message ------- ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- A non-text attachment was scrubbed... Name: WPM$070A.PM$ Type: application/octet-stream Size: 1202 bytes Desc: Mail message body URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Sep 27 07:20:23 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Wed, 27 Sep 2006 16:20:23 +0200 Subject: fastcgi Message-ID: http://www.caraveo.com/fastcgi/ -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Fabio D'Ovidio Verzonden: woensdag 27 september 2006 16:18 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] fastcgi On 27 Sep 2006 at 15:58, Thy, Kristian wrote: > > -----Original Message----- > > From: Frank Warmerdam > > > > I'm not absolutely positive anyone has ever *succeeded* in doing it > > with IIS though. > > I was looking tentatively at FastCGI for IIS. I quickly reached the > point where I thought "I'll recommend Apache2 on a *nix server", since > apparently to get FastCGI running on IIS you need to use an ISAPI > plugin ... version 0.6 beta ... last updated in March 2002 ... :-X Where can I find it ? > > Kristian > > > This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. > ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From dovidio at PLANETEK.IT Wed Sep 27 07:37:27 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 27 Sep 2006 16:37:27 +0200 Subject: fastcgi In-Reply-To: <5958F6B0C15AFE449245A966FB967B58074FB7@rws-s001000.ad.rws.nl> Message-ID: After i have configure isapi in IIS, have I do anything else ? Have I change my request or map file ? thank you ! On 27 Sep 2006 at 16:20, Eijnden, Bart van den (AGI) wrote: > http://www.caraveo.com/fastcgi/ > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Fabio D'Ovidio > Verzonden: woensdag 27 september 2006 16:18 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] fastcgi > > > On 27 Sep 2006 at 15:58, Thy, Kristian wrote: > > > > -----Original Message----- > > > From: Frank Warmerdam > > > > > > I'm not absolutely positive anyone has ever *succeeded* in doing it > > > with IIS though. > > > > I was looking tentatively at FastCGI for IIS. I quickly reached the > > point where I thought "I'll recommend Apache2 on a *nix server", since > > apparently to get FastCGI running on IIS you need to use an ISAPI > > plugin ... version 0.6 beta ... last updated in March 2002 ... :-X > > > > Where can I find it ? > > > > > Kristian > > > > > > This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. > > > > > ******************************************************************************************** > > > Ing. Fabio D'Ovidio > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > ******************************************************************************************** > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From Tom.Kralidis at EC.GC.CA Wed Sep 27 08:31:13 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 27 Sep 2006 11:31:13 -0400 Subject: Trying to implement a SOS for the first time Message-ID: > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hinrich Paulsen > Sent: Wednesday, September 27, 2006 9:25 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Trying to implement a SOS for > the first time > > Dear List, > > posting to this list for the first time and am promptly > rejected by the system. Hopefully it is not an omen. :-) > Well, here is my question again. > > > Dear List, > > I am in the process of setting up a Sensor Observation > Service (SOS) for the first time using a Kubuntu-Linux > machine and the following Mapserver: > > MapServer version 4.10.0-beta3 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=SOS_SERVER INPUT=EPPL7 > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > My data is sitting in a Postgis table which I can easily > access via WMS. > > I have consulted the documentation at: > http://mapserver.gis.umn.edu/docs/howto/sos_server/ > > and when trying out the examples given there the > GetCapabilities and DescribeSensor Requests work fine so far > but the GetObservation Request does not. > > My idea of how the GetObservation Request should work is that > data in a specific column in my Postgis table is returned > when I define it in my SOS server mapfile. Here is a snippet > of the mapfile: > > > > LAYER > NAME test_sos_layer > DUMP TRUE > METADATA > "sos_procedure" "SW01UTL001" > ## REQUIRED > "sos_offering_id" "r_wert" > ## REQUIRED > "sos_observedproperty_id" "r_wert" > ## REQUIRED > "sos_describesensor_url" > "http://localhost/temp/SW01UTL001.xml" ## REQUIRED > END > TYPE POINT > STATUS ON > > CONNECTIONTYPE postgis > CONNECTION "user=myuser dbname=mydb host=localhost port=5432" > DATA "the_geom FROM (SELECT * FROM mytable) AS foo USING > UNIQUE gid USING SRID=31467" > > PROJECTION > 'init=epsg:31467' > END > > CLASS > NAME 'r_wert' > STYLE > SYMBOL 'circle' > SIZE 5 > COLOR 255 100 50 > OUTLINECOLOR 0 0 0 > END > END > END > > > > When I send this there is no error but all I get back is this: > xsi:schemaLocation="http://www.opengeospatial.net/om > http://schemas.opengis.net/om.xsd"/> > > Where am I going wrong? Any help on pointing me in the right > direction is highly appreciated! > Weird. What's your GetObservation request URL? Also, you can test to see if this is even working via WMS or WFS as sanity check against the data connection, or even a mapserv CGI request. Let us know what your results are. ..Tom From parrott.sarah at GOOGLEMAIL.COM Wed Sep 27 09:36:12 2006 From: parrott.sarah at GOOGLEMAIL.COM (Sarah Parrott) Date: Wed, 27 Sep 2006 17:36:12 +0100 Subject: image maps - gif file not created Message-ID: Hi, I'm trying to generate an image map so that the user can click on a point and then (at the moment) display the name of the point they clicked on. It all seems to work - the html of the generated page is what I'm expecting, but the actual gif file is not created anywhere - I've looked in every possible directory on my server and cannot find it! Does anyone know why or had a similar problem? I have tried uncommenting the web template (page.htm is at the bottom) and with this I get the image but the html for the imagemap is not gnerated. Thanks in advance, Sarah Map File: MAP NAME DARTMOOR STATUS ON SHAPEPATH "/usr/local/apache-tomcat-5.5.17/webapps/image_maps_2/" EXTENT 249998.750000 60001.250000 279998.750000 90001.250000 SIZE 400 400 UNITS METERS WEB #TEMPLATE "page.htm" IMAGEPATH "/usr/local/apache-tomcat-5.5.17/webapps/ROOT/temp/" IMAGEURL "/temp/" END LAYER NAME "dartmoor_index" STATUS ON TILEINDEX "dartmoor_index.shp" TILEITEM "Location" TYPE RASTER END SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END LAYER NAME "test_gis" STATUS ON TYPE POINT CONNECTIONTYPE OGR CONNECTION "test_gis.ovf" #TEMPLATE "template.htm" CLASS NAME "boxes" SYMBOL 'circle' COLOR 255 0 0 SIZE 10 #TEMPLATE "html/template.htm" #HEADER "html/header.htm" #FOOTER "html/footer.htm" END DATA "test_gis" TEMPLATE "html/template.htm" HEADER "html/header.htm" FOOTER "html/footer.htm" END END header.htm: footer.htm: template.htm [name] page.htm Hello
-------------- next part -------------- An HTML attachment was scrubbed... URL: From uchowdhury at YAHOO.COM Wed Sep 27 10:00:07 2006 From: uchowdhury at YAHOO.COM (Ujjwal Chowdhury) Date: Wed, 27 Sep 2006 10:00:07 -0700 Subject: duplicate labels problem using mapserver ka-map Message-ID: Hi, I am using ka-map and mapserver to draw US state level maps. I am labelling the states with the names e.g CA. I noticed that duplicate labels are appearing on the map for many of the states. I guess the tiling done by ka-map is causing mapserver to do this. How do you make sure there is just one label for each state ? Thanks UC --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Wed Sep 27 12:21:26 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 27 Sep 2006 14:21:26 -0500 Subject: duplicate labels problem using mapserver ka-map In-Reply-To: <20060927170007.41619.qmail@web56510.mail.re3.yahoo.com> Message-ID: Labeling tiled maps is a challenging problem. We have some ideas on how to improve things, but they are just ideas at this point. I think for now the only way to gaurantee 1 label would be to pre-compute a single label position and store that as a point layer. There a couple of ways to do that: - if you have Arcview or whatever you can typically save labels as a shapefile - you could render the whole US as one relatively large image, and using MapScript could convert the label cache to a shapefile (converting pixel coordinates to map coordinates) - if using PostGIS perhaps the getCentroid method would help although centroids are not always good label points - in 4.10, MapScript has all the GEOS methods exposed which might be helpful I'm sure others might have ideas too. Steve >>> Ujjwal Chowdhury 9/27/2006 12:00:07 PM >>> Hi, I am using ka-map and mapserver to draw US state level maps. I am labelling the states with the names e.g CA. I noticed that duplicate labels are appearing on the map for many of the states. I guess the tiling done by ka-map is causing mapserver to do this. How do you make sure there is just one label for each state ? Thanks UC --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. From Kristian.Thy at ATKINSGLOBAL.COM Wed Sep 27 15:27:24 2006 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Thu, 28 Sep 2006 00:27:24 +0200 Subject: fastcgi Message-ID: Fra: Fabio D'Ovidio [mailto:dovidio at planetek.it] > After i have configure isapi in IIS, have I do anything else ? > Have I change my request or map file ? I believe that FastCGI only affects the actual execution model of the mapserver binary (mapserv.exe). Thus, no changes to map files or requests should be necessary. regards, Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jacob.Delfos at MAUNSELL.COM Wed Sep 27 16:27:52 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 28 Sep 2006 07:27:52 +0800 Subject: Adding point to ESRI Personal Geodatabasethrough ODBC Message-ID: Hi Beheen, If it's not a lot of trouble to you, I wouldn't mind to have a look at the code. I do not know whether it's the same between Oracle (SDE?) and MDB, but it might be. It would make my implementation a bit cleaner if I had that ability. Regards, Jacob > -----Original Message----- > From: Trimble, Beheen [mailto:btrimble at sfwmd.gov] > Sent: 27 September 2006 19:34 > To: Delfos, Jacob; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Adding point to ESRI > Personal Geodatabasethrough ODBC > > Jacob, > > I have done a polygon feature using sql in oracle spatial. However, > after that you have to make it a shapefile and the rest! The point is > simpler than the polygon but I am not sure if that is what you really > want. If you think you want it I go through my program and > cut the piece > out for you. > > Beheen > > > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Delfos, Jacob > Sent: Tuesday, September 26, 2006 8:15 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Adding point to ESRI Personal > Geodatabasethrough ODBC > > I didn't think it would be easy. I have tried in vain to obtain esri > documentation on it..... I was hoping it would be a 'simple' binary > value for point data. > I'll stick with ODBC for now, which fulfills my requirements. > > Thanks, > > Jacob > > > -----Original Message----- > > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > > Sent: 26 September 2006 21:58 > > To: Delfos, Jacob > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Adding point to ESRI > > Personal Geodatabasethrough ODBC > > > > Delfos, Jacob wrote: > > > Hi All, > > > > > > I was wondering if anyone has knows how to add a point > > feature to an > > > ESRI personal geodatabase, without using ESRI software > > (ideally through > > > SQL). The spatial column is "long binary data" according to > > MS Access. > > > I'm assuming I'd also have to update the spatial index. I'm > > using PHP, > > > which I believe supports binary data through ODBC. > > > > > > I'm assuming it's possible, but I'm not sure yet how. > > Alternatively, > > > I'll have to use ODBC/OVF. Not a drama, but I'd like to > > keep it all in > > > one format. > > > > Jacob, > > > > The format of the geometry is based on the shapefile > format, and there > > is code to decode it in OGR (for the geodatabase driver). > I think it > > would be hard to construct these geometries properly using > > SQL, but then > > my SQL-fu is weak. > > > > I've never actually worked out how the spatial index works, > > so updating that > > might be quite challenging. > > > > Best regards, > > -- > > ---------------------------------------+---------------------- > > ---------------- > > I set the clouds in motion - turn up | Frank Warmerdam, > > warmerdam at pobox.com > > light and sound - activate the windows | http://pobox.com/~warmerdam > > and watch the world go round - Rush | President OSGeo, > > http://osgeo.org > > > > > > > From ollerery at ENGR.ORST.EDU Wed Sep 27 18:36:21 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Wed, 27 Sep 2006 18:36:21 -0700 Subject: Mapserver Install: undefined symbol: php_gd_gdImageCopy In-Reply-To: Message-ID: After compiling MapServer i am getting the following error when i make a call to the php_mapscript.so:* Warning*: dl() [function.dl ]: Unable to load dynamic library '/usr/lib/php/modules/php_mapscript.so' - /usr/lib/php/modules/php_mapscript.so: undefined symbol: php_gd_gdImageCopy in */var/www/html/phpinfo_mapscript.phtml* on line *21 * I am using the following configure on fedora core 5: ./configure --with-proj --enable-runpath --with-geos=/usr/bin/geos-config --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-postgis=/usr/bin/pg_config --with-php=/usr/bin/php --with-wcs --with-wfs --with-wmsclient --with-wfsclient --with-threads does anyone know what this php_gd_gdImageCopy symbol is? From warmerdam at POBOX.COM Wed Sep 27 19:46:56 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 27 Sep 2006 22:46:56 -0400 Subject: Mapserver Install: undefined symbol: php_gd_gdImageCopy In-Reply-To: <451B2715.7050304@engr.orst.edu> Message-ID: Ryan Ollerenshaw wrote: > After compiling MapServer i am getting the following error when i make > a call to the php_mapscript.so:* > > Warning*: dl() [function.dl ]: Unable to > load dynamic library '/usr/lib/php/modules/php_mapscript.so' - > /usr/lib/php/modules/php_mapscript.so: undefined symbol: > php_gd_gdImageCopy in */var/www/html/phpinfo_mapscript.phtml* on line *21 > * > I am using the following configure on fedora core 5: > > ./configure --with-proj --enable-runpath > --with-geos=/usr/bin/geos-config --with-ogr=/usr/local/bin/gdal-config > --with-gdal=/usr/local/bin/gdal-config > --with-postgis=/usr/bin/pg_config --with-php=/usr/bin/php --with-wcs > --with-wfs --with-wmsclient --with-wfsclient --with-threads > > does anyone know what this php_gd_gdImageCopy symbol is? Ryan, Strangely I ran into the very same thing a couple days ago. It turned out (as I recall) that I needed to install the PHP extension for GD. In my case, on a fedora core system, this amounted to something like "yum install php-gd" I believe. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Walter.Pleyer at LFRZ.AT Wed Sep 27 23:36:09 2006 From: Walter.Pleyer at LFRZ.AT (Pleyer, Walter) Date: Thu, 28 Sep 2006 08:36:09 +0200 Subject: Raster and legend Message-ID: Is there a possibility to include Rasterdata in the legend? We have a DEM as Raster (TIF) with the altitudes encoded as grayshades. The optimal solution for us would be to integrate a gradient in the legend. Is that possible? Thanks Walter LFRZ A-1200 Wien, Dresdner Strasse 89 Tel: ++43(1)33 176/421 Fax: ++43(1)33 176/999 Mobil: 0676/5256642 Email: walter.pleyer at lfrz.at WWW: http://www.lfrz.at From bartvde at OSGIS.NL Thu Sep 28 00:14:00 2006 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 28 Sep 2006 09:14:00 +0200 Subject: Raster and legend Message-ID: Hi Walter, the only option would be to define all the CLASSes yourself, and leave out the expression part. But be sure to use a NAME for the the class which will be used as the label. This way they are not used for the map drawing, but are used for the legend. I believe this was added in Mapserver 4.8. AFAIK the gradient stuff is not supported for legends yet. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Pleyer, Walter Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Raster and legend Datum: 28/09/06 04:39 > Is there a possibility to include Rasterdata in the legend? > We have a DEM as Raster (TIF) with the altitudes encoded as grayshades. > The optimal solution for us would be to integrate a gradient in the > legend. > Is that possible? > > Thanks > Walter > > LFRZ > A-1200 Wien, Dresdner Strasse 89 > Tel: ++43(1)33 176/421 > Fax: ++43(1)33 176/999 > Mobil: 0676/5256642 > Email: walter.pleyer at lfrz.at > WWW: http://www.lfrz.at > > From dovidio at PLANETEK.IT Thu Sep 28 01:14:09 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Thu, 28 Sep 2006 10:14:09 +0200 Subject: mapjoin : msPOSTGRESQLJoinClose & Fastcgi & OGR ODBC Connection Message-ID: I have set isapi_fcgi.dll for IIS and I have choose a mapserver version with FASTCGI support. I have done the following external connection with OGR ODBC to SQL Server : LAYER NAME "pug2_iffi" TYPE POINT STATUS ON TEMPLATE "query.html" TOLERANCEUNITS PIXELS TOLERANCE 1000 CLASS NAME "Pug2_iffi" # TEMPLATE STYLE SYMBOL "circlefd" SIZE 7 COLOR 127 255 0 OUTLINECOLOR 0 0 0 END END PROJECTION #Lat/Lon "init=EPSG:32633" END CONNECTIONTYPE OGR CONNECTION "pug_iffi.shp" DATA "SELECT * from pug_iffi c LEFT JOIN 'ODBC:swra at CartaewnetIFFI,Query_prova_IdFrana'.Query_prova_IdFrana b ON c.IDFRANA = b.IDFRANA" PROCESSING "CLOSE_CONNECTION=DEFER" END There are two type of problems : one : I have Timeout error of CGI again even if FASTCGI is activated. I think the problem is that SQL SERVER with OGR ODBC Connection downloads all of the records in the table I need and after it makes SQL SELECT. two : If I try to do this in the Layer Object : ... DATA "SELECT id from 'ODBC:sa at CartanetIFFI,Query_IdFrana'.Query_IdFrana WHERE subid = 04" .... or : ... DATA "SELECT IDFRANA from pug_iffi c" ... I have the following error with a simple GetFeatureInfo Request : GetFeatureInfo results: Search returned no results. msPOSTGRESQLJoinClose() already close or never opened. msPOSTGRESQLJoinClose() already close or never opened. "Search returned no results" it's OK for me because the table is not a Geometry, but Why I have "msPOSTGRESQLJoinClose()" ERROR if my connection is to DBF or to SQL Server ?? I'd like to know how can download ONLY the Selection in my SQL Server without problem with TIMEOUT CGI (with or without FASTCGI support ? ) Thank you very much ! ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From j.l.h.hartmann at UVA.NL Thu Sep 28 02:30:15 2006 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Thu, 28 Sep 2006 11:30:15 +0200 Subject: duplicate labels problem using mapserver ka-map In-Reply-To: <451A88E60200008F0000279A@co5.dnr.state.mn.us> Message-ID: Instead of getCentroid, better use PointOnSurface: "Return a Point guaranteed to lie on the surface". This also tries to maximize the distance of the point to the surface boundaries. Jan Steve Lime wrote: > Labeling tiled maps is a challenging problem. We have some ideas on how > to improve things, but they are just ideas at this point. I think for > now the only way to gaurantee 1 label would be to pre-compute a single > label position and store that as a point layer. There a couple of ways > to do that: > > - if you have Arcview or whatever you can typically save labels as a > shapefile > - you could render the whole US as one relatively large image, and > using MapScript could convert the label cache to a shapefile (converting > pixel coordinates to map coordinates) > - if using PostGIS perhaps the getCentroid method would help although > centroids are not always good label points > - in 4.10, MapScript has all the GEOS methods exposed which might be > helpful > > I'm sure others might have ideas too. > > Steve > From btrimble at SFWMD.GOV Thu Sep 28 05:13:02 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Thu, 28 Sep 2006 08:13:02 -0400 Subject: Adding point to ESRI Personal Geodatabasethrough ODBC Message-ID: Okay. Let me today to do it. B -----Original Message----- From: Delfos, Jacob [mailto:Jacob.Delfos at maunsell.com] Sent: Wednesday, September 27, 2006 7:28 PM To: Trimble, Beheen; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Adding point to ESRI Personal Geodatabasethrough ODBC Hi Beheen, If it's not a lot of trouble to you, I wouldn't mind to have a look at the code. I do not know whether it's the same between Oracle (SDE?) and MDB, but it might be. It would make my implementation a bit cleaner if I had that ability. Regards, Jacob > -----Original Message----- > From: Trimble, Beheen [mailto:btrimble at sfwmd.gov] > Sent: 27 September 2006 19:34 > To: Delfos, Jacob; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Adding point to ESRI > Personal Geodatabasethrough ODBC > > Jacob, > > I have done a polygon feature using sql in oracle spatial. However, > after that you have to make it a shapefile and the rest! The point is > simpler than the polygon but I am not sure if that is what you really > want. If you think you want it I go through my program and > cut the piece > out for you. > > Beheen > > > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Delfos, Jacob > Sent: Tuesday, September 26, 2006 8:15 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Adding point to ESRI Personal > Geodatabasethrough ODBC > > I didn't think it would be easy. I have tried in vain to obtain esri > documentation on it..... I was hoping it would be a 'simple' binary > value for point data. > I'll stick with ODBC for now, which fulfills my requirements. > > Thanks, > > Jacob > > > -----Original Message----- > > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > > Sent: 26 September 2006 21:58 > > To: Delfos, Jacob > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Adding point to ESRI > > Personal Geodatabasethrough ODBC > > > > Delfos, Jacob wrote: > > > Hi All, > > > > > > I was wondering if anyone has knows how to add a point > > feature to an > > > ESRI personal geodatabase, without using ESRI software > > (ideally through > > > SQL). The spatial column is "long binary data" according to > > MS Access. > > > I'm assuming I'd also have to update the spatial index. I'm > > using PHP, > > > which I believe supports binary data through ODBC. > > > > > > I'm assuming it's possible, but I'm not sure yet how. > > Alternatively, > > > I'll have to use ODBC/OVF. Not a drama, but I'd like to > > keep it all in > > > one format. > > > > Jacob, > > > > The format of the geometry is based on the shapefile > format, and there > > is code to decode it in OGR (for the geodatabase driver). > I think it > > would be hard to construct these geometries properly using > > SQL, but then > > my SQL-fu is weak. > > > > I've never actually worked out how the spatial index works, > > so updating that > > might be quite challenging. > > > > Best regards, > > -- > > ---------------------------------------+---------------------- > > ---------------- > > I set the clouds in motion - turn up | Frank Warmerdam, > > warmerdam at pobox.com > > light and sound - activate the windows | http://pobox.com/~warmerdam > > and watch the world go round - Rush | President OSGeo, > > http://osgeo.org > > > > > > > From Karin_Kampitsch at GMX.AT Thu Sep 28 05:53:55 2006 From: Karin_Kampitsch at GMX.AT (Karin Kampitsch) Date: Thu, 28 Sep 2006 14:53:55 +0200 Subject: Fwd: Problems with importing WFS in UDig Message-ID: Dear Mailing List, I have problems with importing Features from a WFS in the free GIS Software "UDig" (MapServer 4.8.4). After entering the WFS Request "http://localhost/cgi-bin/mapserv.exe?map=features/wk_wfs.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetCapabilities" UDig reports the following error message: "The element type "br" must be terminated by the matching end-tag "
" " What does this error message mean? The Layer in the WFS Mapfile looks like this: LAYER NAME "Schloss" STATUS ON DATA "schlk" TYPE POINT PROJECTION "init=epsg:23033" END DUMP TRUE CLASS SYMBOL "bild_schloss" TEMPLATE "index_wfs.html" END METADATA "wfs_title" "Schloss" "gml_include_items" "all" "wfs_extent" "454165.1980 309893.7130 507688.8757 352760.1515" END END END Is there maybe an error in the mapfile? But the GML Code appears, after entering the WFS Request in the Internet Explorer. Could you please help me? Thanks, karin -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From dmorissette at MAPGEARS.COM Thu Sep 28 06:12:08 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 28 Sep 2006 09:12:08 -0400 Subject: Mapserver Install: undefined symbol: php_gd_gdImageCopy In-Reply-To: <451B37A0.2050909@pobox.com> Message-ID: Frank Warmerdam wrote: > > Strangely I ran into the very same thing a couple days ago. It turned > out (as I recall) that I needed to install the PHP extension for GD. In > my case, on a fedora core system, this amounted to something like > "yum install php-gd" I believe. > Actually, doing this solves the undefined symbol, but you end up with two *different* copies of the GD functions in your executable space: the core of MapServer where most of the GD usage happens is built and linked with the system GD, and the php_mapscript-specific functions (such as imageObj.pasteImage() are built and linked with the PHP bundled GD. At runtime you are likely going to run into problems if you use functions such as imageObj.pasteImage() because the gdImage struct used by both copies of GD is different. As I was writing this, I just realized that removing any calls to gd-specific functions from php_mapscript.c and moving those calls down to wrappers in the mapserver core might be enough to solve the issue, but I am hesitant to change this for 4.10.0. The other workaround for this issue is to rebuild your PHP using the system GD (i.e. --with-gd=/path/to/gd-prefix). FYI, there is already bug 1879 about this: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1879 Daniel -- Daniel Morissette http://www.mapgears.com/ From b.vdeijnden at AGI.RWS.MINVENW.NL Thu Sep 28 06:11:36 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Thu, 28 Sep 2006 15:11:36 +0200 Subject: Fwd: Problems with importing WFS in UDig Message-ID: Can you post the WFS GetCapabilities response? Apparently uDIG encounters a
tag somewhere (without
), which is likely an HTML tag. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Karin Kampitsch Verzonden: donderdag 28 september 2006 14:54 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Fwd: Problems with importing WFS in UDig Dear Mailing List, I have problems with importing Features from a WFS in the free GIS Software "UDig" (MapServer 4.8.4). After entering the WFS Request "http://localhost/cgi-bin/mapserv.exe?map=features/wk_wfs.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetCapabilities" UDig reports the following error message: "The element type "br" must be terminated by the matching end-tag "
" " What does this error message mean? The Layer in the WFS Mapfile looks like this: LAYER NAME "Schloss" STATUS ON DATA "schlk" TYPE POINT PROJECTION "init=epsg:23033" END DUMP TRUE CLASS SYMBOL "bild_schloss" TEMPLATE "index_wfs.html" END METADATA "wfs_title" "Schloss" "gml_include_items" "all" "wfs_extent" "454165.1980 309893.7130 507688.8757 352760.1515" END END END Is there maybe an error in the mapfile? But the GML Code appears, after entering the WFS Request in the Internet Explorer. Could you please help me? Thanks, karin -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From warmerdam at POBOX.COM Thu Sep 28 06:48:46 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 28 Sep 2006 09:48:46 -0400 Subject: mapjoin : msPOSTGRESQLJoinClose & Fastcgi & OGR ODBC Connection In-Reply-To: <451BA071.9924.3AB0B0@dovidio.planetek.it> Message-ID: Fabio D'Ovidio wrote: ... > CONNECTIONTYPE OGR > CONNECTION "pug_iffi.shp" > DATA "SELECT * from pug_iffi c LEFT JOIN > 'ODBC:swra at CartaewnetIFFI,Query_prova_IdFrana'.Query_prova_IdFrana b ON > c.IDFRANA = b.IDFRANA" > ... > There are two type of problems : > > one : > > I have Timeout error of CGI again even if FASTCGI is activated. I think > the problem is that SQL SERVER with OGR ODBC Connection downloads all of > the records in the table I need and after it makes SQL SELECT. Fabio, In the above scenario I think OGR will select all the features in pug_iffi.shp that intersect the current spatial region. Then it will issue a SELECT request against the ODBC data source once for each of those shapes to fetch the record to join to it. I am guessing that there are a lot of features this is being done for and that things are timing out while it chugs away at it. It is also possible that the spatial region isn't being taken into account in the original select against the shapefile, though I am reasonably confident that it is. > two : > > If I try to do this in the Layer Object : > > ... > DATA "SELECT id from 'ODBC:sa at CartanetIFFI,Query_IdFrana'.Query_IdFrana > WHERE subid = 04" > .... > > or : > > ... > DATA "SELECT IDFRANA from pug_iffi c" > ... > > I have the following error with a simple GetFeatureInfo Request : > > GetFeatureInfo results: > > Search returned no results. > msPOSTGRESQLJoinClose() already close or never opened. > msPOSTGRESQLJoinClose() already close or never opened. > > "Search returned no results" it's OK for me because the table is not a > Geometry, but Why I have "msPOSTGRESQLJoinClose()" ERROR if my > connection is to DBF or to SQL Server ?? Good question. In this case are you using a "mapserver" style JOIN (as opposed to an OGR join)? This seems like it may be a bug and if we can isolate it in an easier to reproduce situation with 4.10.0RC1 perhaps we should be looking at fixing it. > I'd like to know how can download ONLY the Selection in my SQL Server > without problem with TIMEOUT CGI (with or without FASTCGI support ? ) Well, if you can load the shapefile (pug_iffi) into SQL server in some fashion, then you could do the join there. In the case where you did the following: > CONNECTIONTYPE OGR > CONNECTION "pug_iffi.shp" > DATA "SELECT id from 'ODBC:sa at CartanetIFFI,Query_IdFrana'.Query_IdFrana > WHERE subid = 04" I am guessing you were just trying to fetch simple attribute records from SQL server. I think this would be better expressed as: CONNECTIONTYPE OGR CONNECTION "ODBC:sa at CartanetIFFI,Query_IdFrana" DATA "select id from Query_IdFrana WHERE subid = 04" Overall, the lesson is that the OGR join mechanism can have severe performance issues and that if possible you are better putting your spatial and non-spatial data in one RDBMS when you need to relate them. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From paulsen at TERRESTRIS.DE Thu Sep 28 06:52:40 2006 From: paulsen at TERRESTRIS.DE (Hinrich Paulsen) Date: Thu, 28 Sep 2006 15:52:40 +0200 Subject: Trying to implement a SOS for the first time In-Reply-To: <2576812186CDD411BF1500508B6DCE950FAF4915@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Kralidis,Tom [Burlington] schrieb: >>-----Original Message----- >>From: UMN MapServer Users List >>[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hinrich Paulsen >>Sent: Wednesday, September 27, 2006 9:25 AM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] Trying to implement a SOS for >>the first time >> >>Dear List, >> >>posting to this list for the first time and am promptly >>rejected by the system. Hopefully it is not an omen. :-) >>Well, here is my question again. >> >> >>Dear List, >> >>I am in the process of setting up a Sensor Observation >>Service (SOS) for the first time using a Kubuntu-Linux >>machine and the following Mapserver: >> >>MapServer version 4.10.0-beta3 OUTPUT=GIF OUTPUT=PNG >>OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ >>SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>SUPPORTS=WFS_SERVER SUPPORTS=SOS_SERVER INPUT=EPPL7 >>INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >>My data is sitting in a Postgis table which I can easily >>access via WMS. >> >>I have consulted the documentation at: >>http://mapserver.gis.umn.edu/docs/howto/sos_server/ >> >>and when trying out the examples given there the >>GetCapabilities and DescribeSensor Requests work fine so far >>but the GetObservation Request does not. >> >>My idea of how the GetObservation Request should work is that >>data in a specific column in my Postgis table is returned >>when I define it in my SOS server mapfile. Here is a snippet >>of the mapfile: >> >> >> >>LAYER >> NAME test_sos_layer >> DUMP TRUE >> METADATA >> "sos_procedure" "SW01UTL001" >> ## REQUIRED >> "sos_offering_id" "r_wert" >> ## REQUIRED >> "sos_observedproperty_id" "r_wert" >> ## REQUIRED >> "sos_describesensor_url" >>"http://localhost/temp/SW01UTL001.xml" ## REQUIRED >> END >> TYPE POINT >> STATUS ON >> >> CONNECTIONTYPE postgis >> CONNECTION "user=myuser dbname=mydb host=localhost port=5432" >> DATA "the_geom FROM (SELECT * FROM mytable) AS foo USING >>UNIQUE gid USING SRID=31467" >> >> PROJECTION >> 'init=epsg:31467' >> END >> >> CLASS >> NAME 'r_wert' >> STYLE >> SYMBOL 'circle' >> SIZE 5 >> COLOR 255 100 50 >> OUTLINECOLOR 0 0 0 >> END >> END >>END >> >> >> >>When I send this there is no error but all I get back is this: >>>xsi:schemaLocation="http://www.opengeospatial.net/om >>http://schemas.opengis.net/om.xsd"/> >> >>Where am I going wrong? Any help on pointing me in the right >>direction is highly appreciated! >> >> >> > >Weird. What's your GetObservation request URL? > >Also, you can test to see if this is even working via WMS or WFS as >sanity check against the data connection, or even a mapserv CGI request. > >Let us know what your results are. > >..Tom > > Dear Tom, thank you for your suggestions. I have moved my stuff from my local machine to our testserver so that you can have a look at everything. Please go to http://212.79.172.184/sos/ The other links I have provided below so that you can test WMS and WFS too. WMS: http://212.79.172.184/cgi-bin/mapserv?map=/var/www/demo.terrestris.de/html/sos/wms_demo.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=gauges&STYLES=,&SRS=EPSG:31467&BBOX=3001036,5248260,4193654,6100130&WIDTH=420&HEIGHT=300&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage WFS: http://212.79.172.184/cgi-bin/mapserv?map=/var/www/demo.terrestris.de/html/sos/wfs_demo.map&VERSION=1.0.0&REQUEST=GetFeature&SERVICE=WFS&TYPENAME=pegelpunkte SOS: Describe Sensor: http://212.79.172.184/cgi-bin/mapserv410?map=/var/www/demo.terrestris.de/html/sos/sos_demo.map&Request=DescribeSensor&sensorID=NS01EE0014&service=SOS&version=0.0.31 Get Observation: http://212.79.172.184/cgi-bin/mapserv410?map=/var/www/demo.terrestris.de/html/sos/sos_demo.map&REQUEST=GetObservation&SERVICE=SOS&offering=r_wert&observedproperty=r_wert&VERSION=0.0.31 Get Capabilities: http://212.79.172.184/cgi-bin/mapserv410?map=/var/www/demo.terrestris.de/html/sos/sos_demo.map&REQUEST=GetCapabilities&SERVICE=SOS&VERSION=0.0.31 There was an error in my database connection which I found out trying the WFS but that did not have any effect on my GetObservation request. Thanks for your time. Best regards, Hinrich ************************************************** * Freie Software: AmeiN! ArcMap-Export-2-UMN * * Download http://sourceforge.net/projects/avein * * * * LiveLinux 'WebGIS auf CD' * * http://www.terrestris.de * ************************************************** ************************************************** terrestris GbR Dipl.-Geogr. Hinrich Paulsen Siemensstr. 8 D-53121 Bonn T: ++49 (0)228 - 962 899 51 F: ++49 (0)228 - 962 899 57 Internet: www.terrestris.de ************************************************** From btrimble at SFWMD.GOV Thu Sep 28 07:55:59 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Thu, 28 Sep 2006 10:55:59 -0400 Subject: Adding point to ESRI Personal Geodatabasethrough ODBC Message-ID: Jacob, Attached is the zip file containing the actual work. I did a point sample for you because the polygon was a little too complicated and I am busy. I have the polygon though. I hope somehow you can make a use of it. The program that I wrote reads a grid header file (llx,lly,cell size, row, col) and creates a spatial grid of it. I am using this in our modeling effort at South Florida Water management District for pre and post processing. Beheen -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Trimble, Beheen Sent: Thursday, September 28, 2006 8:13 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Adding point to ESRI Personal Geodatabasethrough ODBC Okay. Let me today to do it. B -----Original Message----- From: Delfos, Jacob [mailto:Jacob.Delfos at maunsell.com] Sent: Wednesday, September 27, 2006 7:28 PM To: Trimble, Beheen; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Adding point to ESRI Personal Geodatabasethrough ODBC Hi Beheen, If it's not a lot of trouble to you, I wouldn't mind to have a look at the code. I do not know whether it's the same between Oracle (SDE?) and MDB, but it might be. It would make my implementation a bit cleaner if I had that ability. Regards, Jacob > -----Original Message----- > From: Trimble, Beheen [mailto:btrimble at sfwmd.gov] > Sent: 27 September 2006 19:34 > To: Delfos, Jacob; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Adding point to ESRI > Personal Geodatabasethrough ODBC > > Jacob, > > I have done a polygon feature using sql in oracle spatial. However, > after that you have to make it a shapefile and the rest! The point is > simpler than the polygon but I am not sure if that is what you really > want. If you think you want it I go through my program and > cut the piece > out for you. > > Beheen > > > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Delfos, Jacob > Sent: Tuesday, September 26, 2006 8:15 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Adding point to ESRI Personal > Geodatabasethrough ODBC > > I didn't think it would be easy. I have tried in vain to obtain esri > documentation on it..... I was hoping it would be a 'simple' binary > value for point data. > I'll stick with ODBC for now, which fulfills my requirements. > > Thanks, > > Jacob > > > -----Original Message----- > > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > > Sent: 26 September 2006 21:58 > > To: Delfos, Jacob > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Adding point to ESRI > > Personal Geodatabasethrough ODBC > > > > Delfos, Jacob wrote: > > > Hi All, > > > > > > I was wondering if anyone has knows how to add a point > > feature to an > > > ESRI personal geodatabase, without using ESRI software > > (ideally through > > > SQL). The spatial column is "long binary data" according to > > MS Access. > > > I'm assuming I'd also have to update the spatial index. I'm > > using PHP, > > > which I believe supports binary data through ODBC. > > > > > > I'm assuming it's possible, but I'm not sure yet how. > > Alternatively, > > > I'll have to use ODBC/OVF. Not a drama, but I'd like to > > keep it all in > > > one format. > > > > Jacob, > > > > The format of the geometry is based on the shapefile > format, and there > > is code to decode it in OGR (for the geodatabase driver). > I think it > > would be hard to construct these geometries properly using > > SQL, but then > > my SQL-fu is weak. > > > > I've never actually worked out how the spatial index works, > > so updating that > > might be quite challenging. > > > > Best regards, > > -- > > ---------------------------------------+---------------------- > > ---------------- > > I set the clouds in motion - turn up | Frank Warmerdam, > > warmerdam at pobox.com > > light and sound - activate the windows | http://pobox.com/~warmerdam > > and watch the world go round - Rush | President OSGeo, > > http://osgeo.org > > > > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: pnt_shp.zip Type: application/x-zip-compressed Size: 5416 bytes Desc: pnt_shp.zip URL: From fillymax at TISCALI.IT Thu Sep 28 08:38:06 2006 From: fillymax at TISCALI.IT (Alessandro MAZZELLA) Date: Thu, 28 Sep 2006 17:38:06 +0200 Subject: Fw: raster layer Message-ID: Hi list, i've got a very very very little problem ... i'm developing a very simple mapserver application for displaying a shape layer on a raster background image (jpeg). mapserver returns no error, but the raster image is not showed on the result !!! some ideas ?? **** this is the mapfile: MAP NAME a003 IMAGETYPE GIF EXTENT 1414770 4298268 1590137 4578665 SIZE 800 800 SHAPEPATH "/home/mapserver/data/shp/" IMAGECOLOR 255 255 255 SYMBOLSET "/home/mapserver/data/symbols/symbols35.sym" FONTSET "/home/mapserver/data/fonts/fonts.list" WEB IMAGEPATH "/home/mapserver/htdocs/tmp/" IMAGEURL "tmp/" END ###SHP Layer LAYER NAME "shape" TYPE POLYGON STATUS ON DATA "shape" CLASS STYLE COLOR 1 1 1 OUTLINECOLOR 32 123 176 END END END ###RASTER LAYER NAME "raster" TYPE RASTER STATUS ON DATA "/home/mapserver/data/shp/raster.jpeg" CLASS NAME "raster" END END END Tnks all Ciao, Alessandro MAZZELLA ---->> Cagliari ( Lat. -N- 39?13'23"24, Lon. -E- 09?6'25"46 ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Thu Sep 28 08:41:18 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 28 Sep 2006 18:41:18 +0300 Subject: Fwd: Problems with importing WFS in UDig Message-ID: Hi, I am almost sure I faced this same problem with uDig and a bit older Mapserver version. In addition another WFS client reported the same error when used in http POST mode, while http GET was OK. But even if my own WFS services failed (built on MS4W) the demo WFS site of the DM Solutions worked in both GET and POST modes and I suppose it is Mapserver WFS. I could not solve the problem and changed to Geoserver WFS. I believe this problem is easy to repeat with MS4W-WFS and for example CadCorp Sis map browser. Regards, -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Eijnden, Bart van den (AGI) Sent: Thu 28.9.2006 16:11 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Fwd: Problems with importing WFS in UDig Can you post the WFS GetCapabilities response? Apparently uDIG encounters a
tag somewhere (without
), which is likely an HTML tag. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Karin Kampitsch Verzonden: donderdag 28 september 2006 14:54 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Fwd: Problems with importing WFS in UDig Dear Mailing List, I have problems with importing Features from a WFS in the free GIS Software "UDig" (MapServer 4.8.4). After entering the WFS Request "http://localhost/cgi-bin/mapserv.exe?map=features/wk_wfs.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetCapabilities" UDig reports the following error message: "The element type "br" must be terminated by the matching end-tag "
" " What does this error message mean? The Layer in the WFS Mapfile looks like this: LAYER NAME "Schloss" STATUS ON DATA "schlk" TYPE POINT PROJECTION "init=epsg:23033" END DUMP TRUE CLASS SYMBOL "bild_schloss" TEMPLATE "index_wfs.html" END METADATA "wfs_title" "Schloss" "gml_include_items" "all" "wfs_extent" "454165.1980 309893.7130 507688.8757 352760.1515" END END END Is there maybe an error in the mapfile? But the GML Code appears, after entering the WFS Request in the Internet Explorer. Could you please help me? Thanks, karin -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From dmorissette at MAPGEARS.COM Thu Sep 28 08:48:25 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 28 Sep 2006 11:48:25 -0400 Subject: MapServer 4.10.0-rc1 released Message-ID: MapServer 4.10.0-rc1 is now available and can be downloaded at http://mapserver.gis.umn.edu/download/beta This is release candidate 1, and if no major issue is reported with it then that will be released as the final 4.10.0 in about 1 week. As usual please report issues via bugzilla, and for those interested in the complete 4.10 release plan, see http://mapserver.gis.umn.edu/development/release_plans/mapserver_4_10/ The list of fixes/changes since beta3 is included below. Daniel Version 4.10.0-RC1 (2006-09-27) ------------------------------- - [SLD] quantity values for raster sld can be float values instead of just being integer - Hiding labelitemindex, labelsizeitemindex, labelangleitemindex from the SWIG interface (bug 1906) - Fixed computation of geotransform to match BBOX (to edges of image) not map.extent (to center of edge pixels). (bug 1916) - mapraster.c: Use msResampleGDALToMap() for "upside down" images. (bug 1904) From Jukka.Rahkonen at MMMTIKE.FI Thu Sep 28 08:50:10 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 28 Sep 2006 18:50:10 +0300 Subject: Fw: raster layer Message-ID: Hi, Perhaps your image is missing georeferencing data? Check it with gdalinfo. If this is the case, then construct ESRI type world file (.wld) for your image. If your image is in another projection than your vectors you must add the correct projection to your raster layer definition as well. Regards, -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Alessandro MAZZELLA Sent: Thu 28.9.2006 18:38 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Fw: raster layer Hi list, i've got a very very very little problem ... i'm developing a very simple mapserver application for displaying a shape layer on a raster background image (jpeg). mapserver returns no error, but the raster image is not showed on the result !!! some ideas ?? **** this is the mapfile: MAP NAME a003 IMAGETYPE GIF EXTENT 1414770 4298268 1590137 4578665 SIZE 800 800 SHAPEPATH "/home/mapserver/data/shp/" IMAGECOLOR 255 255 255 SYMBOLSET "/home/mapserver/data/symbols/symbols35.sym" FONTSET "/home/mapserver/data/fonts/fonts.list" WEB IMAGEPATH "/home/mapserver/htdocs/tmp/" IMAGEURL "tmp/" END ###SHP Layer LAYER NAME "shape" TYPE POLYGON STATUS ON DATA "shape" CLASS STYLE COLOR 1 1 1 OUTLINECOLOR 32 123 176 END END END ###RASTER LAYER NAME "raster" TYPE RASTER STATUS ON DATA "/home/mapserver/data/shp/raster.jpeg" CLASS NAME "raster" END END END Tnks all Ciao, Alessandro MAZZELLA ---->> Cagliari ( Lat. -N- 39?13'23"24, Lon. -E- 09?6'25"46 ) From warmerdam at POBOX.COM Thu Sep 28 08:53:53 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 28 Sep 2006 11:53:53 -0400 Subject: Fw: raster layer In-Reply-To: <001501c6e314$17f151e0$6501a8c0@mirtino> Message-ID: Alessandro MAZZELLA wrote: > Hi list, > > i've got a very very very little problem ... i'm developing a very > simple mapserver application for displaying a shape layer on a raster > background image (jpeg). > > mapserver returns no error, but the raster image is not showed on > the result !!! ... > LAYER > NAME "raster" > TYPE RASTER > STATUS ON > DATA "/home/mapserver/data/shp/raster.jpeg" > CLASS > NAME "raster" > END > END > > END Alessandro, A few things to try: 1) set STATUS to DEFAULT if there is any chance you aren't explicitly turning this layer on. 2) The path to the file is right, right? It isn't by any chance called raster.jpg? 3) Is there a .jgw or .wld file associated with the raster.jpeg? It should be in the same directory, and be called raster.jgw or raster.wld. The safest worldfile name is raster.wld. 4) Turn on debugging (add the DEBUG ON line in your LAYER) and watch the debug output for messages about failing to open files, etc. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From dovidio at PLANETEK.IT Thu Sep 28 09:06:33 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Thu, 28 Sep 2006 18:06:33 +0200 Subject: bugs : msDBFGetItemIndex(): DBASE file error. Item not found Message-ID: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=674 Is this bug solved ? I am using mapserver 4.8.3 on Windows Please I am trying to do this but I am not able to query the JOIN table or display my classification on "LIVELLO" item . Please HELP ! : LAYER NAME "pug_iffi" TYPE POINT STATUS ON TEMPLATE "query.html" DATA "puglia/pug_iffi.shp" TOLERANCEUNITS PIXELS TOLERANCE 1000 JOIN TYPE single TABLE "./data/puglia/jointab.dbf" TO "IDFRANA" NAME "jointab" FROM "IDFRANA" END CLASSITEM LIVELLO CLASS NAME "Pug1_iffi" EXPRESSION ([LIVELLO] eq 1) STYLE SYMBOL "circlefd" SIZE 7 COLOR 127 255 0 OUTLINECOLOR 0 0 0 END END CLASS NAME "Pug2_iffi" EXPRESSION ([LIVELLO] eq 2) STYLE SYMBOL "circlefd" SIZE 7 COLOR 255 255 255 OUTLINECOLOR 0 0 0 END END CLASS NAME "Pug3_iffi" EXPRESSION ([LIVELLO] eq 3) STYLE SYMBOL "circlefd" SIZE 7 COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END PROJECTION #Lat/Lon "init=EPSG:32633" END END ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From andreas.albarello at TERRITORIUMONLINE.COM Thu Sep 28 09:49:51 2006 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Thu, 28 Sep 2006 18:49:51 +0200 Subject: bugs : msDBFGetItemIndex(): DBASE file error. Item not found In-Reply-To: <451C0F29.15013.1EB2B97@dovidio.planetek.it> Message-ID: Fabio D'Ovidio wrote: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=674 > > Is this bug solved ? I am using mapserver 4.8.3 on Windows > > Please I am trying to do this but I am not able to query the JOIN table > or display my classification on "LIVELLO" item . Please HELP ! : Fabio, no, this "bug" (I'd say this is a missing feature rather than a bug) has not been solved and I don't expect it to be solved anytime soon. To clear things up a bit (the documentation is not very detailed about this), this is what holds true as far as I know: you can't query a map or a layer on one of its joined fields (I'm referring to joins using the JOIN object only), you can't set the labelitem or the classitem to one of the joined fields etc. Basically you can't do *anything* with them at all except for displaying their contents on a HTML template. It should however be possible to do what you want using OGR. Please refer to this document for a howto: http://mapserver.gis.umn.edu/docs/howto/ogr_howto Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi Str. 12 I 39100 Bolzano/Bozen Phone: +39 0471 068611 Fax: +39 0471 068619 email: andreas.albarello at territoriumonline.com web: http://www.territoriumonline.com -------------------------------------------------------------------- From Vincent.Troisi at COLORADO.EDU Thu Sep 28 12:20:07 2006 From: Vincent.Troisi at COLORADO.EDU (Vincent J. Troisi) Date: Thu, 28 Sep 2006 13:20:07 -0600 Subject: problems with internally defined epsg code Message-ID: We serve a map from a tiled geotiff of the antarctic continent from our local server via wms protocols using mapserver. We have another application that wants to use the map we serve via wms protocols. We have an internally map projection definition and code (3031) we added to the epsg file for the geotiff file we serve via wms protocols. When we access the geotiff file directly from disk there is not a problem displaying the antarctic map in the mms application. However, when we try to access the geotiff with the projection of the added code, we receive information from Mapserver that the epsg code is invalid. Why is that? Using the epsg code 4326 the display of the map is not complete; why is that? Both applications have access to the locally defined epsg code. Vince From btrimble at SFWMD.GOV Thu Sep 28 13:35:46 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Thu, 28 Sep 2006 16:35:46 -0400 Subject: What is ids in imagemap example? Message-ID: Hey People, I am still trying to make the mouseover works in my application! Do you know what is %ids% in below map? Where this is defined? Thanks Beheen MAP NAME "TEST" SIZE 380 450 EXTENT 180000 4816000 773000 5474000 UNITS METERS IMAGECOLOR 252 252 252 SHAPEPATH "/r01/data/drs" FONTSET "/usr/local/mapserver/fonts/fonts.list" WEB HEADER "templates/imagemap_header_example.html" FOOTER "templates/imagemap_footer_example.html" IMAGEPATH "/usr/local/www/docs_maps/tmp/" IMAGEURL "/tmp/" END QUERYMAP STATUS ON STYLE NORMAL END LAYER NAME county STATUS OFF DATA "data/bdry_counpy2_gen500" TYPE POLYGON # LABELITEM "CTY_ABBR" CLASS EXPRESSION ('[COUN]' in '%ids%') STYLE COLOR "#BD9E5D" # "#A27528" OUTLINECOLOR 50 50 50 END END CLASS COLOR 255 255 255 OUTLINECOLOR 50 50 50 END TEMPLATE "templates/county_example.html" END # counties END -------------- next part -------------- An HTML attachment was scrubbed... URL: From rjames57 at YAHOO.COM Thu Sep 28 14:03:06 2006 From: rjames57 at YAHOO.COM (Randy James) Date: Thu, 28 Sep 2006 14:03:06 -0700 Subject: What is ids in imagemap example? In-Reply-To: Message-ID: i believe id is the name of a variable, the two % show the start and the end of the variable. check out http://umn.mapserver.ch/MapServer/en/syntax.htm randy "Trimble, Beheen" wrote: st1\:*{behavior:url(#default#ieooui) } Hey People, I am still trying to make the mouseover works in my application! Do you know what is %ids% in below map? Where this is defined? Thanks Beheen MAP NAME "TEST" SIZE 380 450 EXTENT 180000 4816000 773000 5474000 UNITS METERS IMAGECOLOR 252 252 252 SHAPEPATH "/r01/data/drs" FONTSET "/usr/local/mapserver/fonts/fonts.list" WEB HEADER "templates/imagemap_header_example.html" FOOTER "templates/imagemap_footer_example.html" IMAGEPATH "/usr/local/www/docs_maps/tmp/" IMAGEURL "/tmp/" END QUERYMAP STATUS ON STYLE NORMAL END LAYER NAME county STATUS OFF DATA "data/bdry_counpy2_gen500" TYPE POLYGON # LABELITEM "CTY_ABBR" CLASS EXPRESSION ('[COUN]' in '%ids%') STYLE COLOR "#BD9E5D" # "#A27528" OUTLINECOLOR 50 50 50 END END CLASS COLOR 255 255 255 OUTLINECOLOR 50 50 50 END TEMPLATE "templates/county_example.html" END # counties END --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From btrimble at SFWMD.GOV Thu Sep 28 14:08:16 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Thu, 28 Sep 2006 17:08:16 -0400 Subject: What is ids in imagemap example? Message-ID: Randy, It is ids as in EXPRESSION ('[COUN]' in '%ids%') I know COUN is an attribute in county shape file but I don't know where the 'ids' variable is coming from and how it gets populated! Thanks Beheen _____ From: Randy James [mailto:rjames57 at yahoo.com] Sent: Thursday, September 28, 2006 5:03 PM To: Trimble, Beheen Cc: Mapserver Users Subject: Re: [UMN_MAPSERVER-USERS] What is ids in imagemap example? i believe id is the name of a variable, the two % show the start and the end of the variable. check out http://umn.mapserver.ch/MapServer/en/syntax.htm randy "Trimble, Beheen" wrote: Hey People, I am still trying to make the mouseover works in my application! Do you know what is %ids% in below map? Where this is defined? Thanks Beheen MAP NAME "TEST" SIZE 380 450 EXTENT 180000 4816000 773000 5474000 UNITS METERS IMAGECOLOR 252 252 252 SHAPEPATH "/r01/data/drs" FONTSET "/usr/local/mapserver/fonts/fonts.list" WEB HEADER "templates/imagemap_header_example.html" FOOTER "templates/imagemap_footer_example.html" IMAGEPATH "/usr/local/www/docs_maps/tmp/" IMAGEURL "/tmp/" END QUERYMAP STATUS ON STYLE NORMAL END LAYER NAME county STATUS OFF DATA "data/bdry_counpy2_gen500" TYPE POLYGON # LABELITEM "CTY_ABBR" CLASS EXPRESSION ('[COUN]' in '%ids%') STYLE COLOR "#BD9E5D" # "#A27528" OUTLINECOLOR 50 50 50 END END CLASS COLOR 255 255 255 OUTLINECOLOR 50 50 50 END TEMPLATE "templates/county_example.html" END # counties END _____ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rjames57 at YAHOO.COM Thu Sep 28 14:12:10 2006 From: rjames57 at YAHOO.COM (Randy James) Date: Thu, 28 Sep 2006 14:12:10 -0700 Subject: What is ids in imagemap example? In-Reply-To: Message-ID: all my variables get populated from the template file, on mine i called it template.html, yours looks like its county_example.html. randy "Trimble, Beheen" wrote: v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} st1\:*{behavior:url(#default#ieooui) } Randy, It is ids as in EXPRESSION ('[COUN]' in '%ids%') I know COUN is an attribute in county shape file but I don?t know where the ?ids? variable is coming from and how it gets populated! Thanks Beheen --------------------------------- From: Randy James [mailto:rjames57 at yahoo.com] Sent: Thursday, September 28, 2006 5:03 PM To: Trimble, Beheen Cc: Mapserver Users Subject: Re: [UMN_MAPSERVER-USERS] What is ids in imagemap example? i believe id is the name of a variable, the two % show the start and the end of the variable. check out http://umn.mapserver.ch/MapServer/en/syntax.htm randy "Trimble, Beheen" wrote: Hey People, I am still trying to make the mouseover works in my application! Do you know what is %ids% in below map? Where this is defined? Thanks Beheen MAP NAME "TEST" SIZE 380 450 EXTENT 180000 4816000 773000 5474000 UNITS METERS IMAGECOLOR 252 252 252 SHAPEPATH "/r01/data/drs" FONTSET "/usr/local/mapserver/fonts/fonts.list" WEB HEADER "templates/imagemap_header_example.html" FOOTER "templates/imagemap_footer_example.html" IMAGEPATH "/usr/local/www/docs_maps/tmp/" IMAGEURL "/tmp/" END QUERYMAP STATUS ON STYLE NORMAL END LAYER NAME county STATUS OFF DATA "data/bdry_counpy2_gen500" TYPE POLYGON # LABELITEM "CTY_ABBR" CLASS EXPRESSION ('[COUN]' in '%ids%') STYLE COLOR "#BD9E5D" # "#A27528" OUTLINECOLOR 50 50 50 END END CLASS COLOR 255 255 255 OUTLINECOLOR 50 50 50 END TEMPLATE "templates/county_example.html" END # counties END --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Thu Sep 28 16:27:59 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 28 Sep 2006 19:27:59 -0400 Subject: What is ids in imagemap example? In-Reply-To: Message-ID: These are variables that can be set via the mapserver cgi interface or via a cookie. So in your case you could do something like: http://localhost/cgi-bin/mapserv?mode=map&map=....&ids=123,456,789 and this would substitute into the %ids% string: EXPRESSION ('[COUN]' in '123,456,789') The exact syntax obvious needs to match the correctly to its usage. -Steve W Trimble, Beheen wrote: > > > Randy, > > > > It is ids as in EXPRESSION ('[COUN]' in '%ids%') > > > > I know COUN is an attribute in county shape file but I don?t know where > the ?ids? variable is coming from and how it gets populated! > > > > > > Thanks > > Beheen > > > > > > * From: * Randy James [mailto:rjames57 at yahoo.com] > *Sent:* Thursday, September 28, 2006 5:03 PM > *To:* Trimble, Beheen > *Cc:* Mapserver Users > *Subject:* Re: [UMN_MAPSERVER-USERS] What is ids in imagemap example? > > > > i believe id is the name of a variable, the two % show the start and the > end of the variable. > > check out > > > > http://umn.mapserver.ch/MapServer/en/syntax.htm > > > > randy > > */" Trimble, Beheen " /* wrote: > > Hey People, > > > > I am still trying to make the mouseover works in my application! > > > > Do you know what is %ids% in below map? Where this is defined? > > > > Thanks > > Beheen > > > > > > > > MAP > > NAME "TEST" > > SIZE 380 450 > > EXTENT 180000 4816000 773000 5474000 > > UNITS METERS > > > > IMAGECOLOR 252 252 252 > > > > SHAPEPATH "/r01/data/drs" > > > > FONTSET "/usr/local/mapserver/fonts/fonts.list" > > > > WEB > > HEADER "templates/imagemap_header_example.html" > > FOOTER "templates/imagemap_footer_example.html" > > IMAGEPATH "/usr/local/www/docs_maps/tmp/" > > IMAGEURL "/tmp/" > > END > > > > QUERYMAP > > STATUS ON > > STYLE NORMAL > > END > > > > LAYER > > NAME county > > STATUS OFF > > DATA "data/bdry_counpy2_gen500" > > TYPE > > POLYGON > > # LABELITEM "CTY_ABBR" > > CLASS > > EXPRESSION ('[COUN]' in '%ids%') > > STYLE > > COLOR "#BD9E5D" # "#A27528" > > OUTLINECOLOR 50 50 50 > > END > > END > > CLASS > > COLOR 255 255 255 > > OUTLINECOLOR 50 50 50 > > END > > TEMPLATE "templates/county_example.html" > > END # counties > > END > > > > > > > > > > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail. > > > From woodbri at SWOODBRIDGE.COM Thu Sep 28 17:50:05 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 28 Sep 2006 20:50:05 -0400 Subject: What is ids in imagemap example? In-Reply-To: Message-ID: Please make sure the list is copied on responses so other can benefit from the issues and responses and so others can chime in with help. Trimble, Beheen wrote: > Thanks Stephen, > > I wanted to know where it was getting populated and when was the first > time it was called. I found out. > > However, now that you still are there, this is my problem: > > I developed an application using the very first example of Mapserver > that came with tutorial! This means: I can not change too many things > now! > > I want to have the tooltip capability, showing an attribute of any of > the images that are displayed. I found all the codes and the examples > and it runs fine with the example. However, I can not use them in my > existing code! In all the tooltip examples, one submits a request and an > html page with the coords or attributes for tooltip is displayed and > then user mouseover that page (page already contains the attribute > values!) In my case, I need to do the same thing after the page is > loaded but not populated with the tooltip values. To make the story > short, I want the tooltip effect when the below page is already > displayed. Where can I put the tooltip code in this page? Sounds like a logical impossibility if I understand your request. Mapserver generates the pages from templates and if you set them up correctly it populates the tool tips and image maps. If you have a page that is generated without this information, then how do you expect it to generate a tool tip or hotspot on the page. Since it works in the demo, I would recommend updating you application to mimic that of the demo. You either have the information or you don't. If you don't then are you asking how to get it? like via an AJAX request? I'm confused, then again I might totally have missed the point of your question. -Steve W > Thanks a lot > Beheen > > > > > Performance Measure Graphics Viewer > > > > > >

LECSR North Palm Beach - 2000

>
>
>
> > > > > > >
> align="center" bgcolor="#666666"> > > > > > > >
width="[mapwidth]" height="[mapheight]" border="0" alt="This is a > map">
> scalebar (mi) src="[scalebar]"> >
>
> bgcolor="#ffffff"> > > > >
>
>

> > Browse map
> onClick="nueva();" > Query feature
> onClick="nueva();" > Query multiple features >


>

> Select Layers to Display:
> >

> Zoom In [zoomdir_1_check]> > Pan [zoomdir_0_check]> > Zoom Out [zoomdir_-1_check]> >

> Zoom Size value=[zoomsize]> >

> Select a PMSet to Query:
> >

> Legend


>
>

>

border="0">
>
>
>
> > > > > > > value="[map_web_imagepath]"> > > >
>


> back to start

> [map_web_template] > > > > =========================== End of > html==================================== > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Thursday, September 28, 2006 7:28 PM > To: Trimble, Beheen; MapServer List > Subject: Re: [UMN_MAPSERVER-USERS] What is ids in imagemap example? > > These are variables that can be set via the mapserver cgi interface or > via a cookie. So in your case you could do something like: > > http://localhost/cgi-bin/mapserv?mode=map&map=....&ids=123,456,789 > > and this would substitute into the %ids% string: > > EXPRESSION ('[COUN]' in '123,456,789') > > The exact syntax obvious needs to match the correctly to its usage. > > -Steve W > > Trimble, Beheen wrote: >> >> Randy, >> >> >> >> It is ids as in EXPRESSION ('[COUN]' in '%ids%') >> >> >> >> I know COUN is an attribute in county shape file but I don't know > where >> the 'ids' variable is coming from and how it gets populated! >> >> >> >> >> >> Thanks >> >> Beheen >> >> >> >> >> >> * From: * Randy James [mailto:rjames57 at yahoo.com] >> *Sent:* Thursday, September 28, 2006 5:03 PM >> *To:* Trimble, Beheen >> *Cc:* Mapserver Users >> *Subject:* Re: [UMN_MAPSERVER-USERS] What is ids in imagemap example? >> >> >> >> i believe id is the name of a variable, the two % show the start and > the >> end of the variable. >> >> check out >> >> >> >> http://umn.mapserver.ch/MapServer/en/syntax.htm >> >> >> >> randy >> >> */" Trimble, Beheen " /* wrote: >> >> Hey People, >> >> >> >> I am still trying to make the mouseover works in my application! >> >> >> >> Do you know what is %ids% in below map? Where this is defined? >> >> >> >> Thanks >> >> Beheen >> >> >> >> >> >> >> >> MAP >> >> NAME "TEST" >> >> SIZE 380 450 >> >> EXTENT 180000 4816000 773000 5474000 >> >> UNITS METERS >> >> >> >> IMAGECOLOR 252 252 252 >> >> >> >> SHAPEPATH "/r01/data/drs" >> >> >> >> FONTSET "/usr/local/mapserver/fonts/fonts.list" >> >> >> >> WEB >> >> HEADER "templates/imagemap_header_example.html" >> >> FOOTER "templates/imagemap_footer_example.html" >> >> IMAGEPATH "/usr/local/www/docs_maps/tmp/" >> >> IMAGEURL "/tmp/" >> >> END >> >> >> >> QUERYMAP >> >> STATUS ON >> >> STYLE NORMAL >> >> END >> >> >> >> LAYER >> >> NAME county >> >> STATUS OFF >> >> DATA "data/bdry_counpy2_gen500" >> >> TYPE >> >> POLYGON >> >> # LABELITEM "CTY_ABBR" >> >> CLASS >> >> EXPRESSION ('[COUN]' in '%ids%') >> >> STYLE >> >> COLOR "#BD9E5D" # "#A27528" >> >> OUTLINECOLOR 50 50 50 >> >> END >> >> END >> >> CLASS >> >> COLOR 255 255 255 >> >> OUTLINECOLOR 50 50 50 >> >> END >> >> TEMPLATE "templates/county_example.html" >> >> END # counties >> >> END >> >> >> >> >> >> >> >> >> >> Do you Yahoo!? >> Everyone is raving about the all-new Yahoo! Mail. >> > ilbeta> >> > > > From btrimble at SFWMD.GOV Thu Sep 28 20:54:56 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Thu, 28 Sep 2006 23:54:56 -0400 Subject: What is ids in imagemap example? Message-ID: Stephen, Thanks a lot for taking your time and answering my question. Yes you did understand the question correctly. I was thinking if I could use an event + function on 'alt' tag in my images and get the result back into 'alt' as text. I think it is doable! however, I am adding another layer to populate the values before I get into my page as you are suggesting. Thanks again Beheen -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge Sent: Thursday, September 28, 2006 8:50 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] What is ids in imagemap example? Please make sure the list is copied on responses so other can benefit from the issues and responses and so others can chime in with help. Trimble, Beheen wrote: > Thanks Stephen, > > I wanted to know where it was getting populated and when was the first > time it was called. I found out. > > However, now that you still are there, this is my problem: > > I developed an application using the very first example of Mapserver > that came with tutorial! This means: I can not change too many things > now! > > I want to have the tooltip capability, showing an attribute of any of > the images that are displayed. I found all the codes and the examples > and it runs fine with the example. However, I can not use them in my > existing code! In all the tooltip examples, one submits a request and an > html page with the coords or attributes for tooltip is displayed and > then user mouseover that page (page already contains the attribute > values!) In my case, I need to do the same thing after the page is > loaded but not populated with the tooltip values. To make the story > short, I want the tooltip effect when the below page is already > displayed. Where can I put the tooltip code in this page? Sounds like a logical impossibility if I understand your request. Mapserver generates the pages from templates and if you set them up correctly it populates the tool tips and image maps. If you have a page that is generated without this information, then how do you expect it to generate a tool tip or hotspot on the page. Since it works in the demo, I would recommend updating you application to mimic that of the demo. You either have the information or you don't. If you don't then are you asking how to get it? like via an AJAX request? I'm confused, then again I might totally have missed the point of your question. -Steve W > Thanks a lot > Beheen > > > > > Performance Measure Graphics Viewer > > > > > >

LECSR North Palm Beach - 2000

>
>
>
> > > > > > >
> align="center" bgcolor="#666666"> > > > > > > >
width="[mapwidth]" height="[mapheight]" border="0" alt="This is a > map">
> scalebar (mi) src="[scalebar]"> >
>
> bgcolor="#ffffff"> > > > >
>
>

> > Browse map
> onClick="nueva();" > Query feature
> onClick="nueva();" > Query multiple features >


>

> Select Layers to Display:
> >

> Zoom In [zoomdir_1_check]> > Pan [zoomdir_0_check]> > Zoom Out [zoomdir_-1_check]> >

> Zoom Size value=[zoomsize]> >

> Select a PMSet to Query:
> >

> Legend


>
>

>

border="0">
>
>
>
> > > > > > > value="[map_web_imagepath]"> > > >
>


> back to start

> [map_web_template] > > > > =========================== End of > html==================================== > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Thursday, September 28, 2006 7:28 PM > To: Trimble, Beheen; MapServer List > Subject: Re: [UMN_MAPSERVER-USERS] What is ids in imagemap example? > > These are variables that can be set via the mapserver cgi interface or > via a cookie. So in your case you could do something like: > > http://localhost/cgi-bin/mapserv?mode=map&map=....&ids=123,456,789 > > and this would substitute into the %ids% string: > > EXPRESSION ('[COUN]' in '123,456,789') > > The exact syntax obvious needs to match the correctly to its usage. > > -Steve W > > Trimble, Beheen wrote: >> >> Randy, >> >> >> >> It is ids as in EXPRESSION ('[COUN]' in '%ids%') >> >> >> >> I know COUN is an attribute in county shape file but I don't know > where >> the 'ids' variable is coming from and how it gets populated! >> >> >> >> >> >> Thanks >> >> Beheen >> >> >> >> >> >> * From: * Randy James [mailto:rjames57 at yahoo.com] >> *Sent:* Thursday, September 28, 2006 5:03 PM >> *To:* Trimble, Beheen >> *Cc:* Mapserver Users >> *Subject:* Re: [UMN_MAPSERVER-USERS] What is ids in imagemap example? >> >> >> >> i believe id is the name of a variable, the two % show the start and > the >> end of the variable. >> >> check out >> >> >> >> http://umn.mapserver.ch/MapServer/en/syntax.htm >> >> >> >> randy >> >> */" Trimble, Beheen " /* wrote: >> >> Hey People, >> >> >> >> I am still trying to make the mouseover works in my application! >> >> >> >> Do you know what is %ids% in below map? Where this is defined? >> >> >> >> Thanks >> >> Beheen >> >> >> >> >> >> >> >> MAP >> >> NAME "TEST" >> >> SIZE 380 450 >> >> EXTENT 180000 4816000 773000 5474000 >> >> UNITS METERS >> >> >> >> IMAGECOLOR 252 252 252 >> >> >> >> SHAPEPATH "/r01/data/drs" >> >> >> >> FONTSET "/usr/local/mapserver/fonts/fonts.list" >> >> >> >> WEB >> >> HEADER "templates/imagemap_header_example.html" >> >> FOOTER "templates/imagemap_footer_example.html" >> >> IMAGEPATH "/usr/local/www/docs_maps/tmp/" >> >> IMAGEURL "/tmp/" >> >> END >> >> >> >> QUERYMAP >> >> STATUS ON >> >> STYLE NORMAL >> >> END >> >> >> >> LAYER >> >> NAME county >> >> STATUS OFF >> >> DATA "data/bdry_counpy2_gen500" >> >> TYPE >> >> POLYGON >> >> # LABELITEM "CTY_ABBR" >> >> CLASS >> >> EXPRESSION ('[COUN]' in '%ids%') >> >> STYLE >> >> COLOR "#BD9E5D" # "#A27528" >> >> OUTLINECOLOR 50 50 50 >> >> END >> >> END >> >> CLASS >> >> COLOR 255 255 255 >> >> OUTLINECOLOR 50 50 50 >> >> END >> >> TEMPLATE "templates/county_example.html" >> >> END # counties >> >> END >> >> >> >> >> >> >> >> >> >> Do you Yahoo!? >> Everyone is raving about the all-new Yahoo! Mail. >> > ilbeta> >> > > > From kwegezeder at WEB.DE Thu Sep 28 08:23:14 2006 From: kwegezeder at WEB.DE (2StepForward) Date: Thu, 28 Sep 2006 08:23:14 -0700 Subject: sub objects have to be written? Message-ID: Hello all together, i have a problem with the msSaveMap(pmap, mapfile) function. Problem is, that i open a mapfile, add a new layer to it and write it out, but the save funtion writes all objects like OutputFormat, Reverence, etc. What i need is the same mapfile whitch I opend and additionaly the changes i made, exactly the new added layer. I don't wount to write out objects (outputFormatObj, labelObj, queryMapObj, etc.) whitch never exitsting bevor in the opend file. Anyone knows how I disable these objects for the save process? Thanks for all answers and have a good time. -- View this message in context: http://www.nabble.com/sub-objects-have-to-be-written--tf2351548.html#a6548592 Sent from the Mapserver - User mailing list archive at Nabble.com. From dovidio at PLANETEK.IT Fri Sep 29 01:30:18 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Fri, 29 Sep 2006 10:30:18 +0200 Subject: bugs : msDBFGetItemIndex(): DBASE file error. Item not found In-Reply-To: <451BFD2F.2010302@territoriumonline.com> Message-ID: > It should however be possible to do what you want using OGR. Please > refer to this document for a howto: > > http://mapserver.gis.umn.edu/docs/howto/ogr_howto OK ! I have done this : LAYER NAME "pug2_iffi" TYPE POINT STATUS ON TEMPLATE "query.html" TOLERANCEUNITS PIXELS TOLERANCE 1000 CLASS NAME "Pug2_iffi" # TEMPLATE STYLE SYMBOL "circlefd" SIZE 7 COLOR 127 255 0 OUTLINECOLOR 0 0 0 END END PROJECTION #Lat/Lon "init=EPSG:32633" END CONNECTIONTYPE OGR CONNECTION "puglia/pug_iffi.shp" # Tematizzazione DATA "SELECT * FROM pug_iffi c LEFT JOIN 'data/puglia/jointab.dbf'.jointab b ON c.IDFRANA = b.IDFRANA" END And this is the error from Server : msDrawMap(): Image handling error. Failed to draw layer named 'pug2_iffi'. msOGRFileOpen(): OGR error. ExecuteSQL(SELECT * FROM pug_iffi c LEFT JOIN 'data/puglia/jointab.dbf'.jointab b ON c.IDFRANA = b.IDFRANA) failed. Unable to open secondary datasource `data/puglia/jointab.dbf' required by JOIN. Why ? Is the problem in the relative path ? Frank Warmerdam, what about this ? Thanks ! ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From marcoscobena at GMAIL.COM Fri Sep 29 01:42:46 2006 From: marcoscobena at GMAIL.COM (=?UTF-8?Q?Marcos_Cobe=C3=B1a?=) Date: Fri, 29 Sep 2006 10:42:46 +0200 Subject: "wms_title" "Thanks" Message-ID: Hi dudes, Today I'm leaving current job working on GIS systems where we're doing heavy use of MapServer. I'd just like to thank you all the answers and support provided through this mailing list. My workmate Christian (in CC) will continue with my previous job. I'm quite sure he'll send you an URL as soon as possible just to show the entire project (ASP.NET 2.0 + OpenLayers + MapServer). Again, really thanks for all. Regards, -- Marcos - http://www.youcannoteatbits.org From b.vdeijnden at AGI.RWS.MINVENW.NL Fri Sep 29 02:06:40 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, Bart van den (AGI)) Date: Fri, 29 Sep 2006 11:06:40 +0200 Subject: Mapserver WMS client and Geoserver WMS Message-ID: Hi list, when using Mapserver's WMS client through PHP/Mapscript against Geoserver WMS, there is a problem. The number of SRS's that Geoserver advertizes, is apparently too long for Mapserver to handle: "wms_srs" "EPSG:100001 EPSG:100002 EPSG:104000 EPSG:104101 EPSG:104102 EPSG:104103 EPSG:104104 EPSG:104105 EPSG:104106 EPSG:104107 EPSG:104108 EPSG:104261 EPSG:104304 EPSG:104305 EPSG:18001 EPSG:2000 EPSG:20004 EPSG:20005 EPSG:20006 EPSG:20007 EPSG:20008 EPSG:20009 EPSG:2001 EPSG:20010 EPSG:20011 EPSG:20012 EPSG:20013 EPSG:20014 EPSG:20015 EPSG:20016 EPSG:20017 EPSG:20018 EPSG:20019 EPSG:2002 EPSG:20020 EPSG:20021 EPSG:20022 EPSG:20023 EPSG:20024 EPSG:20025 EPSG:20026 EPSG:20027 EPSG:20028 EPSG:20029 EPSG:2003 EPSG:20030 EPSG:20031 EPSG:20032 EPSG:2004 EPSG:2005 EPSG:2006 EPSG:20064 EPSG:20065 EPSG:20066 EPSG:20067 EPSG:20068 EPSG:20069 EPSG:2007 EPSG:20070 EPSG:20071 EPSG:20072 EPSG:20073 EPSG:20074 EPSG:20075 EPSG:20076 EPSG:20077 EPSG:20078 EPSG:20079 EPSG:2008 EPSG:20080 EPSG:20081 EPSG:20082 EPSG:20083 EPSG:20084 EPSG:20085 EPSG:20086 EPSG:20087 EPSG:20088 EPSG:20089 EPSG:2009 EPSG:20090 EPSG:20091 EPSG:20092 EPSG:2010 EPSG:2011 EPSG:2012 EPSG:2013 EPSG:20135 EPSG:20136 EPSG:20137 EPSG:20138 EPSG:2014 EPSG:2015 EPSG:2016 EPSG:2017 EPSG:2018 EPSG:2019 EPSG:2020 EPSG:2021 EPSG:2022 EPSG:2023 EPSG:2024 EPSG:20248 EPSG:20249 EPSG:2025 EPSG:20250 EPSG:20251 EPSG:20252 EPSG:20253 EPSG:20254 EPSG:20255 EPSG:20256 EPSG:20257 EPSG:20258 EPSG:2026 EPSG:2027 EPSG:2028 EPSG:2029 EPSG:2030 EPSG:2031 EPSG:2032 EPSG:2033 EPSG:2034 EPSG:20348 EPSG:20349 EPSG:2035 EPSG:20350 EPSG:20351 EPSG:20352 EPSG:20353 EPSG:20354 EPSG:20355 EPSG:20356 EPSG:20357 EPSG:20358 EPSG:2036 EPSG:2037 EPSG:2038 EPSG:2039 EPSG:2040 EPSG:2041 EPSG:2042 EPSG:2043 EPSG:20437 EPSG:20438 EPSG:20439 EPSG:2044 EPSG:2045 EPSG:2046 EPSG:2047 EPSG:2048 EPSG:2049 EPSG:20499 EPSG:2050 EPSG:2051 EPSG:2052 EPSG:2053 EPSG:20538 EPSG:20539 EPSG:2054 EPSG:2055 EPSG:2056 EPSG:2057 EPSG:2058 EPSG:2059 EPSG:2060 EPSG:2061 EPSG:2062 EPSG:2063 EPSG:2064 EPSG:2065 EPSG:2066 EPSG:2067 EPSG:2068 EPSG:2069 EPSG:2070 EPSG:2071 EPSG:2072 EPSG:2073 EPSG:2074 EPSG:2075 EPSG:2076 EPSG:2077 EPSG:2078 EPSG:2079 EPSG:20790 EPSG:20791 EPSG:2080 EPSG:2081 EPSG:2082 EPSG:20822 EPSG:20823 EPSG:20824 EPSG:2083 EPSG:2084 EPSG:2085 EPSG:2086 EPSG:2087 EPSG:2088 EPSG:2089 EPSG:2090 EPSG:2091 EPSG:2092 EPSG:2093 EPSG:20934 EPSG:20935 EPSG:20936 EPSG:2094 EPSG:2095 EPSG:2096 EPSG:2097 EPSG:2098 EPSG:2099 EPSG:2100 EPSG:2101 EPSG:2102 EPSG:2103 EPSG:21035 EPSG:21036 EPSG:21037 EPSG:2104 EPSG:2105 EPSG:2106 EPSG:2107 EPSG:2108 EPSG:2109 EPSG:21095 EPSG:21096 EPSG:21097 EPSG:2110 EPSG:21100 EPSG:2111 EPSG:2112 EPSG:2113 EPSG:2114 EPSG:21148 EPSG:21149 EPSG:2115 EPSG:21150 EPSG:2116 EPSG:2117 EPSG:2118 EPSG:2119 EPSG:2120 EPSG:2121 EPSG:2122 EPSG:2123 EPSG:2124 EPSG:2125 EPSG:2126 EPSG:2127 EPSG:2128 EPSG:2129 EPSG:21291 EPSG:21292 EPSG:2130 EPSG:2131 EPSG:2132 EPSG:2133 EPSG:2134 EPSG:2135 EPSG:2136 EPSG:2137 EPSG:2138 EPSG:2139 EPSG:2140 EPSG:2141 EPSG:21413 EPSG:21414 EPSG:21415 EPSG:21416 EPSG:21417 EPSG:21418 EPSG:21419 EPSG:2142 EPSG:21420 EPSG:21421 EPSG:21422 EPSG:21423 EPSG:2143 EPSG:2144 EPSG:2145 EPSG:21453 EPSG:21454 EPSG:21455 EPSG:21456 EPSG:21457 EPSG:21458 EPSG:21459 EPSG:2146 EPSG:21460 EPSG:21461 EPSG:21462 EPSG:21463 EPSG:2147 EPSG:21473 EPSG:21474 EPSG:21475 EPSG:21476 EPSG:21477 EPSG:21478 EPSG:21479 EPSG:2148 EPSG:21480 EPSG:21481 EPSG:21482 EPSG:21483 EPSG:2149 EPSG:2150 EPSG:21500 EPSG:2151 EPSG:2152 EPSG:2153 EPSG:2154 EPSG:2155 EPSG:2156 EPSG:2157 EPSG:2158 EPSG:2159 EPSG:2160 EPSG:2161 EPSG:2162 EPSG:2163 EPSG:2164 EPSG:2165 EPSG:2166 EPSG:2167 EPSG:2168 EPSG:2169 EPSG:2170 EPSG:2171 EPSG:2172 EPSG:2173 EPSG:2174 EPSG:2175 EPSG:2176 EPSG:2177 EPSG:2178 EPSG:21780 EPSG:21781 EPSG:2179 EPSG:2180 EPSG:21817 EPSG:21818 EPSG:2188 EPSG:2189 EPSG:21891 EPSG:21892 EPSG:21893 EPSG:21894 EPSG:2190 EPSG:2191 EPSG:2192 EPSG:2193 EPSG:2194 EPSG:2195 EPSG:2196 EPSG:2197 EPSG:2198 EPSG:2199 EPSG:2200 EPSG:2201 EPSG:2202 EPSG:2203 EPSG:22032 EPSG:22033 EPSG:2204 EPSG:2205 EPSG:2206 EPSG:2207 EPSG:2208 EPSG:2209 EPSG:22091 EPSG:22092 EPSG:2210 EPSG:2211 EPSG:2212 EPSG:2213 EPSG:2214 EPSG:2215 EPSG:2216 EPSG:2217 EPSG:2219 EPSG:22191 EPSG:22192 EPSG:22193 EPSG:22194 EPSG:22195 EPSG:22196 EPSG:22197 EPS" The one projection we need EPSG:28992, is not (yet) in this list, which results in the problem: [bart at hades sess_451cdb2dae0d6]$ sudo shp2img -m 1159519033-2460.map -o test.png msProcessProjection(): Projection library error. no options found in 'init' file
Best regards, Bart van den Eijnden ================================= drs. A.J. van den Eijnden adviseur Productteam Applicaties Geo-Informatie Rijkswaterstaat Adviesdienst Geo-informatie en ICT Postbus 5023, 2600 GA Delft Derde Werelddreef 1, 2622 HA Delft Telefoon: (015) 275 75 75 E-mail b.vdeijnden at agi.rws.minvenw.nl ================================= Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From beyhan at DEPREM.GOV.TR Fri Sep 29 02:30:32 2006 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Fri, 29 Sep 2006 12:30:32 +0300 Subject: exchange lat and long. In-Reply-To: <5958F6B0C15AFE449245A966FB967B58074FC9@rws-s001000.ad.rws.nl> Message-ID: Dear friends, I'm not sure are there any method in Mapserver. I'have some layer two are shape files and one is ogr.I mean on the bacground of map city boundaries and district boundaries were layered and I have add ogr (MYSQL) layer stores villages name and lat,lon as third layer over map. I would like to ask anyone who can explain me. Some of my record on the database was entered latitude as longitude and longitude as latitude. So When I was draw third layer on the map because of the lat,lon , some of the villages draw out of the border of my map. So How can I determine and change the records of the out of my interest area. On the shape file there are the name of cities and on the shape file of district there are the name of the villages. So on my mySQL table which store villages also has the name of city and district for whole villages.. I hope I could explain what is my problem....On the attached file you can see the problem . Red Point are the out of TURKEY BORDER were the wrong lat and lon. So I'm looking forward to hearing you... Thank You Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From btrimble at SFWMD.GOV Fri Sep 29 05:26:31 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Fri, 29 Sep 2006 08:26:31 -0400 Subject: "wms_title" "Thanks" Message-ID: Marcos, Sorry you are leaving this wonderful MapServer Family! Good luck. Beheen -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marcos Cobe?a Sent: Friday, September 29, 2006 4:43 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] "wms_title" "Thanks" Hi dudes, Today I'm leaving current job working on GIS systems where we're doing heavy use of MapServer. I'd just like to thank you all the answers and support provided through this mailing list. My workmate Christian (in CC) will continue with my previous job. I'm quite sure he'll send you an URL as soon as possible just to show the entire project (ASP.NET 2.0 + OpenLayers + MapServer). Again, really thanks for all. Regards, -- Marcos - http://www.youcannoteatbits.org From williampaul28 at YAHOO.COM Fri Sep 29 05:37:00 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Fri, 29 Sep 2006 05:37:00 -0700 Subject: replace MAP extension with ASPX or ASP Message-ID: Hello: Is it possible to replace the map extension with aspx or asp? I have seen an example (http://www2.tetonwyo.org/mapserver/) where the map file is called map.asp. I tried to create an aspx file like: <%Response.Write ("Map")%>.....and all the line for a map file, but when I try to replace the http://localhost/scripts/mapserv.exe?map=map.map.... with http://localhost/scripts/mapserv.exe?map=map.aspx I get an regualar expression error I want to be use ASPX or ASP to create the lines code from a basic map file Does anyone can give me an example? Thank you William --------------------------------- Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Pascoe at EC.GC.CA Fri Sep 29 05:56:44 2006 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Fri, 29 Sep 2006 08:56:44 -0400 Subject: replace MAP extension with ASPX or ASP Message-ID: William, I'm not sure, but think I know what is happening on the example you supplied, as I do the same thing. In order to suppress the path information normally visible in the browser address bar, the developer has implemented a simple ASP script which passes the mapserver arguments through. Below is the script I use, which I got from either this list, or one of the Mapserver support sites (can't remember, but I'm not taking credit....). Hope this helps explain a bit, but I don't think it is actually what you want to do; I think you are looking to build the map file on the fly, correct? <% Server.ScriptTimeout = 360 Select Case Request.ServerVariables("REQUEST_METHOD") Case "GET" strRequest = Request.QueryString Case "POST" strRequest = Request.Form End Select strURL = "http://web.address/mapserv.exe?map=C:\path\to\mapfile\map.map&" & strRequest Dim objHTTP Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") objHTTP.open "GET", strURL, false objHTTP.send "" Response.ContentType = objHTTP.getResponseHeader("content-type") Response.BinaryWrite objHTTP.responseBody Set objHTTP = Nothing %> Timothy Pascoe Environmental Systems Scientist Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of william paul Sent: September 29, 2006 8:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] replace MAP extension with ASPX or ASP Hello: Is it possible to replace the map extension with aspx or asp? I have seen an example (http://www2.tetonwyo.org/mapserver/) where the map file is called map.asp. I tried to create an aspx file like: <%Response.Write ("Map")%>.....and all the line for a map file, but when I try to replace the http://localhost/scripts/mapserv.exe?map=map.map.... with http://localhost/scripts/mapserv.exe?map=map.aspx I get an regualar expression error I want to be use ASPX or ASP to create the lines code from a basic map file Does anyone can give me an example? Thank you William _____ Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business . -------------- next part -------------- An HTML attachment was scrubbed... URL: From williampaul28 at YAHOO.COM Fri Sep 29 06:10:51 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Fri, 29 Sep 2006 06:10:51 -0700 Subject: replace MAP extension with ASPX or ASP In-Reply-To: <2576812186CDD411BF1500508B6DCE950FAF4AE9@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tim: Yes I want to build the map file on the fly using ASPX This way I can manage better some of the mapserver varibles Thank you for your answer William "Pascoe,Tim [Burlington]" wrote: v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} st1\:*{behavior:url(#default#ieooui) } William, I?m not sure, but think I know what is happening on the example you supplied, as I do the same thing. In order to suppress the path information normally visible in the browser address bar, the developer has implemented a simple ASP script which passes the mapserver arguments through. Below is the script I use, which I got from either this list, or one of the Mapserver support sites (can?t remember, but I?m not taking credit .). Hope this helps explain a bit, but I don?t think it is actually what you want to do; I think you are looking to build the map file on the fly, correct? <% Server.ScriptTimeout = 360 Select Case Request.ServerVariables("REQUEST_METHOD") Case "GET" strRequest = Request.QueryString Case "POST" strRequest = Request.Form End Select strURL = "http://web.address/mapserv.exe?map=C:\path\to\mapfile\map.map&" & strRequest Dim objHTTP Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") objHTTP.open "GET", strURL, false objHTTP.send "" Response.ContentType = objHTTP.getResponseHeader("content-type") Response.BinaryWrite objHTTP.responseBody Set objHTTP = Nothing %> Timothy Pascoe Environmental Systems Scientist Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. --------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of william paul Sent: September 29, 2006 8:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] replace MAP extension with ASPX or ASP Hello: Is it possible to replace the map extension with aspx or asp? I have seen an example (http://www2.tetonwyo.org/mapserver/) where the map file is called map.asp. I tried to create an aspx file like: <%Response.Write ("Map")%>.....and all the line for a map file, but when I try to replace the http://localhost/scripts/mapserv.exe?map=map.map.... with http://localhost/scripts/mapserv.exe?map=map.aspx I get an regualar expression error I want to be use ASPX or ASP to create the lines code from a basic map file Does anyone can give me an example? Thank you William --------------------------------- Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. --------------------------------- Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. -------------- next part -------------- An HTML attachment was scrubbed... URL: From trondmm-mapserver at CRUSADERS.NO Fri Sep 29 06:39:07 2006 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Fri, 29 Sep 2006 15:39:07 +0200 Subject: Identifying a projection Message-ID: Hi. I know this is a longshot, but people here seems to know a lot more about various projections than me, so I'm hoping someone here can help me. I have a GIS application that can generate images in the projection seen in this image: http://crusaders.no/~trondmm/sphericalrot.png and I'm trying to combine this with output from mapserver. So I need to define a proj definition that corresponds to this projection. According to my documentation, the parameters for this projection is: western boundary (degrees) (longitude for x=1).: -46.5 southern boundary (degrees) (latitude for y=1).: -36.5 longitude increment (degrees)..................: 0.5 latitude increment (degrees)..................: 0.5 longitude position of rotated equator (degrees): 0 latitude position of rotated equator (degrees): 65 (these can also be adjusted, if needed to fit better with proj) In addition, the earth is a perfect sphere, with a radius of 6371km In our software, this projection is called "spherical-rot", but I can't find any projection in proj with a similar name. So - does anyone know what this is, and where I should start to define the proj equivialent? -- Trond Michelsen From epk.lists at GMAIL.COM Fri Sep 29 07:00:20 2006 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Fri, 29 Sep 2006 11:00:20 -0300 Subject: raster output streched at CGI Query mode Message-ID: Hi, I'm running MapServer 4.10.0RC1 on Fedora 5 with mapserver built with: MapServer version 4.10.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=POINT_Z_M INPUT=TIFF INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE When I'm browsing the application it displays me everything ok. All shapefile layers and tif layers are shown correclty. But when I change to nquery mode and then hit an area, querymap is shown but raster images appears with distortion. All dataset are UTM-SAD 69 23S, so no projection is set. I also noted this problem with another application with different projections at each layer. I put two screenshots of the error at: http://www.webmapit.com.br/debug/ms_map-mode.png http://www.webmapit.com.br/debug/ms_map-query.png - note the red lines I drawn... Is that a bug? -- Eduardo Patto Kanegae http://www.webmapit.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri Sep 29 07:46:22 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 29 Sep 2006 10:46:22 -0400 Subject: bugs : msDBFGetItemIndex(): DBASE file error. Item not found In-Reply-To: <451CF5BA.3996.3F8469@dovidio.planetek.it> Message-ID: Fabio D'Ovidio wrote: > > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'pug2_iffi'. > msOGRFileOpen(): OGR error. ExecuteSQL(SELECT * FROM pug_iffi c LEFT > JOIN 'data/puglia/jointab.dbf'.jointab b ON c.IDFRANA = > b.IDFRANA) failed. > Unable to open secondary datasource > `data/puglia/jointab.dbf' required by JOIN. > > > > > > Why ? Is the problem in the relative path ? > > Frank Warmerdam, what about this ? Fabio, I do not know why it isn't working, but if this case just involves shapefiles and dbf files it should be possible for you to submit a bug report with data and details to reproduce it. Then I can dig in a bit deeper at this end. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From ollerery at ENGR.ORST.EDU Fri Sep 29 08:59:25 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 29 Sep 2006 08:59:25 -0700 Subject: Polar Stereographic projection Extent In-Reply-To: <20060929133907.GV13253@crusaders.no> Message-ID: I am having a bit of trouble figuring out the extent I should use to display the entire northern hemisphere using the Polar Stereographic projection. The best that i have been able to come up with is: EXTENT 3000 2000 4000000 3000000 but this only displays the right half of the norther hemisphere, how can i display the full 360 degrees of the northern hemisphere all at one time? When using a polar projection i am not sure what the extent numbers actually represent. They cant be corner points because the display should be a circle, so what are they offsets from? Any clarity that someone can provide on how to use polar projection would be very helpful. Thanks. PROJECTION "proj=stere" "lat_ts=75" "north" "lat_0=90" END From gdavis at REFRACTIONS.NET Fri Sep 29 09:29:52 2006 From: gdavis at REFRACTIONS.NET (Graham Davis) Date: Fri, 29 Sep 2006 09:29:52 -0700 Subject: version 4.10 Beta 3 In-Reply-To: <451D42DD.3020406@engr.orst.edu> Message-ID: While testing v 4.10 beta 3 I noticed that some of the SQL in my MAP file was no longer working. I figured out that the column names were now case sensitive (ie: I was trying to SELECT the column assetId when it is actually assetid in the PostgreSQL database). This LAYER was no longer drawn in the returned map image. It worked previously with the last non-beta version of mapserver. Changing my SELECT statement so that the casing matched fixed the problem for the beta. I just wanted to confirm that this is a change that will be in the new/next non-beta version of mapserver. I'll need to go and re-check many of my MAP files when converting. Thanks, -- Graham Davis Refractions Research Inc. gdavis at refractions.net From xpxiong at PURDUE.EDU Fri Sep 29 09:31:10 2006 From: xpxiong at PURDUE.EDU (Xiaopeng Xiong) Date: Fri, 29 Sep 2006 12:31:10 -0400 Subject: Querying Tile Index Message-ID: Hello everyone, I am new to the list and just start using Mapserver. I met some problem when I tried to do query a tile index for a set of geotiff image files. I have tried to google the answer but got no clue. So I really appreciate if someone here can help me out, or give me a concrete example. My problem is as follows: I have an index for image tiles (geo tiff files). The index includes an attribute "path" which is the source path of individual .tiff file. Now I can successfully display the .tiff files on Mapserver. What I need to do now is that when a user clicks the map, the mapserver will return the "path" information for the tile .tiff image that is clicked. I set the mode to "indexquery", but it always returned me zero record. I believe there is something I have missed but not sure what it is. The mapfile config is as follows: LAYER NAME davisphoto TYPE raster STATUS on DEBUG on TILEINDEX /home/danpatch/b/pinnais/public-web/data/stateplane_east/Davis_photo_index TILEITEM "path" # MAXSCALE 80000.0 CLASS Name 'Davis Photo' END # CLASS PROJECTION "proj=tmerc" "lat_0=37.500000000" "lon_0=-85.666666667" "k=0.999967" "x_0=100000.000" "y_0=250000.000" "ellps=GRS80" "datum=NAD83" "units=ft" "no_defs" END HEADER '/home/danpatch/b/pinnais/public-web/orthoweb/querytemplate/davis_header.html' FOOTER '/home/danpatch/b/pinnais/public-web/orthoweb/querytemplate/davis_footer.html' TEMPLATE "/home/danpatch/b/pinnais/public-web/orthoweb/querytemplate/davis_query.html" END # LAYER I wonder if someone can help me. Highly appreciated. Thanks, Xiaopeng -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.cole at UAI.COM Fri Sep 29 10:12:06 2006 From: john.cole at UAI.COM (John Cole) Date: Fri, 29 Sep 2006 12:12:06 -0500 Subject: class rendering order... Message-ID: Hello, I'm drawing roads with multiple symbols, for example, interstates: CLASS EXPRESSION /A1[0-9]/ NAME "Interstate" STYLE SYMBOL "circle" SIZE 19 COLOR 168 137 31 END STYLE SYMBOL "circle" SIZE 15 COLOR 206 228 192 END END My issue is that the interstates weave above and below the lower streets (see attached image). The street classes are above the interstate class in this layer. Is there a way to get all of the styles to render above the other classes? Thanks, John This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. -------------- next part -------------- A non-text attachment was scrubbed... Name: Madison11595496273048.jpg Type: image/jpeg Size: 31583 bytes Desc: not available URL: From Vincent.Troisi at COLORADO.EDU Fri Sep 29 10:28:28 2006 From: Vincent.Troisi at COLORADO.EDU (Vincent J. Troisi) Date: Fri, 29 Sep 2006 11:28:28 -0600 Subject: Polar Stereographic projection Extent In-Reply-To: <451D42DD.3020406@engr.orst.edu> Message-ID: Ryan Ollerenshaw wrote: > I am having a bit of trouble figuring out the extent I should use to > display the entire northern hemisphere using the Polar Stereographic > projection. The best that i have been able to come up with is: > > EXTENT 3000 2000 4000000 3000000 > > but this only displays the right half of the norther hemisphere, how > can i display the full 360 degrees of the northern hemisphere all at > one time? When using a polar projection i am not sure what the extent > numbers actually represent. They cant be corner points because the > display should be a circle, so what are they offsets from? Any > clarity that someone can provide on how to use polar projection would > be very helpful. Thanks. > > PROJECTION "proj=stere" > "lat_ts=75" > "north" > "lat_0=90" > END > We've been successful with -9036842.762, -9036842.762, 9036842.762, 9036842.762 From Steve.Lime at DNR.STATE.MN.US Fri Sep 29 10:47:34 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 29 Sep 2006 12:47:34 -0500 Subject: class rendering order... In-Reply-To: <76758090F8686C47A44B6FF52514A1D3079098FE@hermes.uai.int> Message-ID: Classes are not used to group features and then render. Instead features are rendered in the order they are encountered in the data. You have a couple of options: 1) Sort the data somehow base on road type so that the features you want drawn last are encountered last in the data (perhaps using sortshp) 2) separate the data into class specific datasets ahead of time (e.g. highway shapefile, interstate shapefile) 3) use separate layers The last case requires multiple passes through the data which can be expensive. However, it's easy to do so you can check the rendering effect before committing to the pre-processing options... Steve >>> John Cole 9/29/2006 12:12:06 PM >>> Hello, I'm drawing roads with multiple symbols, for example, interstates: CLASS EXPRESSION /A1[0-9]/ NAME "Interstate" STYLE SYMBOL "circle" SIZE 19 COLOR 168 137 31 END STYLE SYMBOL "circle" SIZE 15 COLOR 206 228 192 END END My issue is that the interstates weave above and below the lower streets (see attached image). The street classes are above the interstate class in this layer. Is there a way to get all of the styles to render above the other classes? Thanks, John This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From Steve.Lime at DNR.STATE.MN.US Fri Sep 29 10:50:17 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 29 Sep 2006 12:50:17 -0500 Subject: Querying Tile Index In-Reply-To: <007001c6e3e4$ac262ef0$6f090a80@ad.cs.purdue.edu> Message-ID: You're probably going to need to setup the index as a separate layer and query it. If you query the layer davisphoto MapServer thinks you are querying the raster itself. Just setup a separate layer called davisphoto_idx or something like that and query it. Steve >>> Xiaopeng Xiong 9/29/2006 11:31:10 AM >>> Hello everyone, I am new to the list and just start using Mapserver. I met some problem when I tried to do query a tile index for a set of geotiff image files. I have tried to google the answer but got no clue. So I really appreciate if someone here can help me out, or give me a concrete example. My problem is as follows: I have an index for image tiles (geo tiff files). The index includes an attribute "path" which is the source path of individual .tiff file. Now I can successfully display the .tiff files on Mapserver. What I need to do now is that when a user clicks the map, the mapserver will return the "path" information for the tile .tiff image that is clicked. I set the mode to "indexquery", but it always returned me zero record. I believe there is something I have missed but not sure what it is. The mapfile config is as follows: LAYER NAME davisphoto TYPE raster STATUS on DEBUG on TILEINDEX /home/danpatch/b/pinnais/public-web/data/stateplane_east/Davis_photo_index TILEITEM "path" # MAXSCALE 80000.0 CLASS Name 'Davis Photo' END # CLASS PROJECTION "proj=tmerc" "lat_0=37.500000000" "lon_0=-85.666666667" "k=0.999967" "x_0=100000.000" "y_0=250000.000" "ellps=GRS80" "datum=NAD83" "units=ft" "no_defs" END HEADER '/home/danpatch/b/pinnais/public-web/orthoweb/querytemplate/davis_header.html' FOOTER '/home/danpatch/b/pinnais/public-web/orthoweb/querytemplate/davis_footer.html' TEMPLATE "/home/danpatch/b/pinnais/public-web/orthoweb/querytemplate/davis_query.html" END # LAYER I wonder if someone can help me. Highly appreciated. Thanks, Xiaopeng From ollerery at ENGR.ORST.EDU Fri Sep 29 11:24:30 2006 From: ollerery at ENGR.ORST.EDU (Ryan Ollerenshaw) Date: Fri, 29 Sep 2006 11:24:30 -0700 Subject: Polar Stereographic projection Extent In-Reply-To: <451D57BC.5080903@Colorado.EDU> Message-ID: Vincent J. Troisi wrote: > Ryan Ollerenshaw wrote: >> I am having a bit of trouble figuring out the extent I should use to >> display the entire northern hemisphere using the Polar Stereographic >> projection. The best that i have been able to come up with is: >> >> EXTENT 3000 2000 4000000 3000000 >> >> but this only displays the right half of the norther hemisphere, how >> can i display the full 360 degrees of the northern hemisphere all at >> one time? When using a polar projection i am not sure what the >> extent numbers actually represent. They cant be corner points >> because the display should be a circle, so what are they offsets >> from? Any clarity that someone can provide on how to use polar >> projection would be very helpful. Thanks. >> >> PROJECTION "proj=stere" >> "lat_ts=75" >> "north" >> "lat_0=90" >> END >> > We've been successful with > > -9036842.762, -9036842.762, 9036842.762, 9036842.762 when i try this extent i get a white circle that takes up most of the screen and i can only see a very small piece of my data in a half moon shape on the right edge of my window. Is anyone able to explain what the extent numbers actually mean when using a polar projection? Why am i getting a large white circle with my data wrapped around, and how do i decrees the size of this central circle to zero so my pole comes together to a single point? From btrimble at SFWMD.GOV Fri Sep 29 12:21:53 2006 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Fri, 29 Sep 2006 15:21:53 -0400 Subject: ImagMap Again! Message-ID: All, I finally got the imagemap work! However, only two of the point attributes shows up on mouse over! I look at the page, all the attributes are there but they don't show the text! I can see all the points on the page and each point I click, only 2 same attributes shows up! Any idea? Also I am looking for the src codes for this: "A very simple demo is visible at http://dev.camptocamp.com/df/im/ " Belongs to this person: Daniel , not heard from him. Thanks Beheen _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Randy James Sent: Thursday, September 28, 2006 5:03 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] What is ids in imagemap example? i believe id is the name of a variable, the two % show the start and the end of the variable. check out http://umn.mapserver.ch/MapServer/en/syntax.htm randy "Trimble, Beheen" wrote: Hey People, I am still trying to make the mouseover works in my application! Do you know what is %ids% in below map? Where this is defined? Thanks Beheen MAP NAME "TEST" SIZE 380 450 EXTENT 180000 4816000 773000 5474000 UNITS METERS IMAGECOLOR 252 252 252 SHAPEPATH "/r01/data/drs" FONTSET "/usr/local/mapserver/fonts/fonts.list" WEB HEADER "templates/imagemap_header_example.html" FOOTER "templates/imagemap_footer_example.html" IMAGEPATH "/usr/local/www/docs_maps/tmp/" IMAGEURL "/tmp/" END QUERYMAP STATUS ON STYLE NORMAL END LAYER NAME county STATUS OFF DATA "data/bdry_counpy2_gen500" TYPE POLYGON # LABELITEM "CTY_ABBR" CLASS EXPRESSION ('[COUN]' in '%ids%') STYLE COLOR "#BD9E5D" # "#A27528" OUTLINECOLOR 50 50 50 END END CLASS COLOR 255 255 255 OUTLINECOLOR 50 50 50 END TEMPLATE "templates/county_example.html" END # counties END _____ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From brauplists at GMAIL.COM Fri Sep 29 12:43:42 2006 From: brauplists at GMAIL.COM (Bruce Raup) Date: Fri, 29 Sep 2006 13:43:42 -0600 Subject: better way to clean out temp files Message-ID: Hi all, I noticed that http://mapserver.gis.umn.edu/docs/reference/systemmanage/referencemanual-all-pages recommends a simple 'find' command to clean out the temporary directory in a MapServer installation: find /usr/local/www/docs/tmp -follow -name "*.gif" -exec rm {} \; A problem with this is that image files can be deleted immediately after they are created. If you happen to be browsing such a MapServer site at the moment the cron job runs, you might not see your image, or at least you might not be able to press the 'back' button and see the image you just viewed. A better approach is the run a cron job more frequently, and only delete files older than a certain time. You could do that, for site with very little traffic, by adding an option to 'find': find /usr/local/www/docs/tmp -follow -name "*.gif" -mtime +1 -exec rm {} \; which would only delete files older than 1 day. We needed to delete files sooner than that, so I wrote the attached perl script to do the job. I offer it as a potentially useful addition to the above MapServer admin URL. If you have any comments on it, please let me know, at braup 'at' nsidc.org. It is designed for Linux/UNIX (it runs the 'df' command in backticks), but this one dependency could be taken out easily. The reason I use 'rmtree' is because our application creates temporary directories as well as temp files. Cheers, Bruce Raup -------------- next part -------------- A non-text attachment was scrubbed... Name: clean_tmp_area.pl Type: application/x-perl Size: 3902 bytes Desc: not available URL: From warmerdam at POBOX.COM Fri Sep 29 12:56:56 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 29 Sep 2006 15:56:56 -0400 Subject: version 4.10 Beta 3 In-Reply-To: <451D4A00.4020308@refractions.net> Message-ID: Graham Davis wrote: > While testing v 4.10 beta 3 I noticed that some of the SQL in my MAP > file was no longer working. I figured out that the column names were > now case sensitive (ie: I was trying to SELECT the column assetId when > it is actually assetid in the PostgreSQL database). This LAYER was no > longer drawn in the returned map image. It worked previously with the > last non-beta version of mapserver. Changing my SELECT statement so > that the casing matched fixed the problem for the beta. > > I just wanted to confirm that this is a change that will be in the > new/next non-beta version of mapserver. I'll need to go and re-check > many of my MAP files when converting. Thanks, Graham, I'm guessing this relates to this commit message in mappostgis.c: * Revision 1.72 2006/05/09 22:35:41 pramsey * Added quotes around field names being retrieved by query requests. (Bug 1536) So, I think that as long as we are quoting the field names in POSTGIS style connections, they will likely be case sensitive - now and going forward. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From gdavis at REFRACTIONS.NET Fri Sep 29 13:07:07 2006 From: gdavis at REFRACTIONS.NET (Graham Davis) Date: Fri, 29 Sep 2006 13:07:07 -0700 Subject: version 4.10 Beta 3 In-Reply-To: <451D7A88.9040009@pobox.com> Message-ID: HI Frank, That sounds correct, quotes will make the columns case sensitive. Thanks for the confirmation! Graham. Frank Warmerdam wrote: > Graham Davis wrote: > >> While testing v 4.10 beta 3 I noticed that some of the SQL in my MAP >> file was no longer working. I figured out that the column names were >> now case sensitive (ie: I was trying to SELECT the column assetId >> when it is actually assetid in the PostgreSQL database). This LAYER >> was no longer drawn in the returned map image. It worked previously >> with the last non-beta version of mapserver. Changing my SELECT >> statement so that the casing matched fixed the problem for the beta. >> >> I just wanted to confirm that this is a change that will be in the >> new/next non-beta version of mapserver. I'll need to go and re-check >> many of my MAP files when converting. Thanks, > > > Graham, > > I'm guessing this relates to this commit message in mappostgis.c: > > * Revision 1.72 2006/05/09 22:35:41 pramsey > * Added quotes around field names being retrieved by query requests. > (Bug 1536) > > So, I think that as long as we are quoting the field names in POSTGIS > style connections, they will likely be case sensitive - now and going > forward. > > Best regards, -- Graham Davis Refractions Research Inc. gdavis at refractions.net From vilson.farias at DIGITRO.COM.BR Fri Sep 29 14:16:50 2006 From: vilson.farias at DIGITRO.COM.BR (=?ISO-8859-1?Q?Jos=E9_Vilson_de_Mello_de_Farias?=) Date: Fri, 29 Sep 2006 18:16:50 -0300 Subject: Java Mapscript vs. Swig Message-ID: Greetings, I've compiled a Mapserver from the latest CVS code (Sept 29) and I'm having some problems with Java Mapscript. My system had been running fine until this afternoon, when I compiled a new Mapserver from CVS code. I had to compile a new Swig version before I could start. The Mapserver compilation was fine, and I didn't get any erros. My goal was the Java Mapscript, wich was sucessfully compiled and tested with "make test". After I had deployed and restarted the Tomcat it figured out that one of my example codes wasn't working anymore. The code is very simple, please take a look : protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { log.trace("doGet - request:" + req); try { PrintWriter p = resp.getWriter(); mapObj mapa = new mapObj("/home2/java/tomcat/webapps/mapserver_wms/mapas/rio_grande_do_sul.map"); * mapa.setMappath("/home2/java/tomcat/webapps/mapserver_wms/mapas/shapes_rio_grande_do_sul");* imageObj image = mapa.draw(); File arqMapa = File.createTempFile("mapa", ".png", new File("/home2/java/tomcat/webapps/mapserver_wms/image")); log.debug("createTempFile " + arqMapa.getAbsolutePath()); arqMapa.deleteOnExit(); image.save(arqMapa.getAbsolutePath(), mapa); resp.setContentType("text/html"); resp.getWriter().println(""); } catch (Exception e) { log.error(e.getLocalizedMessage(), e); } } After I executed the code above on Firefox, the following error was showed : javax.servlet.ServletException: set_mapObj_mappath org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) root cause java.lang.UnsatisfiedLinkError: set_mapObj_mappath edu.umn.gis.mapscript.mapscriptJNI.set_mapObj_mappath(Native Method) edu.umn.gis.mapscript.mapObj.setMappath(mapObj.java:195) After some tests I found that the problem had been caused by *mapa.setMappath *code. It seems Swig wasn't able to create a proper mapscript.jar/libmapscript.so. I checked the mapscript_wrap.c and the corresponding method to mapa.setMappath was called Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_*1*mappath_*1*set. Although I have definitely no experience with Swig, those numbers "1" in method name doesn't look ok. Is it ok? Could be the Swig the responsible for this error? If I remove the mapa.setMappath, everything works fine and my map is shown in the browser. I included some info about my Mapserver and system. By the way, I've compiled every component of Mapserver instead of using Linux defaults. *compiled packages *(we haven't used any RPMs, all packages were manually compiled/installed)* *libpng-1.2.12 freetype-2.2.1 zlib-1.2.3 gd-2.0.33 jpegsrc.v6b tiff-3.8.2 libgeotiff-1.2.1 PDFlib-Lite-6.0.3 proj-4.4.9 curl-7.15.4 geos-2.2.3 gdal-1.3.2 swig-1.3.29 *Mapserver's configure * ./configure --prefix=/home2/mapserver --without-pdf --with-threads --with-zlib=/home2/mapserver/zlib --with-png=/home2/mapserver/libpng --with-tiff=/home2/mapserver/libtiff --with-jpeg=/home2/mapserver/libjpeg --with-freetype=/home2/mapserver/freetype --with-proj=/home2/mapserver/proj4 --with-geos=/home2/mapserver/geos/bin/geos-config --with-gd=/home2/mapserver/gd --with-ogr=/home2/mapserver/gdal/bin/gdal-config --with-gdal=/home2/mapserver/gdal/bin/gdal-config --with-curl-config=/home2/mapserver/libcurl/bin/curl-config --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-php=/usr/include/php *Linux* Linux dgtad 2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686 athlon i386 GNU/Linux MAPSERVER_HOME=/home2/mapserver PROJ_LIB=$MAPSERVER_HOME/proj4/share/proj LD_LIBRARY_PATH=$LD_LIBRARY_PATH::/home2/mapserver/proj4/lib:/home2/mapserver/gdal/lib:/home2/mapserver/geos/lib:/home2/mapserver/libcurl/lib:/home2/mapserver/libpng/lib:/home2/mapserver/libjpeg/lib:/home2/mapserver/libtiff/lib:/home2/mapserver/libgeotiff/lib:/home2/mapserver/ogdi/lib:/home2/mapserver/freetype/lib:/home2/mapserver/gd/lib:/home2/mapserver/zlib/lib:/home2/mapserver/proj4/share/proj:$MAPSCRIPT_HOME MAPSCRIPT_HOME=$MAPSERVER_HOME/mapscript PATH=/usr/java/jre/bin:/usr/java/jdk/bin:$MAPSCRIPT_HOME *Java *JRE_HOME=/usr/java/jre JAVA_HOME=/usr/java/jdk JDBC_HOME=/usr/java/jdbc CATALINA_HOME=/usr/java/tomcat java version "1.5.0_07" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing) *Tomcat* Using CATALINA_BASE: /usr/java/tomcat Using CATALINA_HOME: /usr/java/tomcat Using CATALINA_TMPDIR: /usr/java/tomcat/temp Using JRE_HOME: /usr/java/jre Server version: Apache Tomcat/5.5.17 Server built: Apr 14 2006 02:08:29 Server number: 5.5.17.0 OS Name: Linux OS Version: 2.6.9-22.EL Architecture: i386 JVM Version: 1.5.0_07-b03 JVM Vendor: Sun Microsystems Inc. *gcc* gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *Swig* SWIG Version 1.3.29 Compiled with g++ [i686-pc-linux-gnu] Please see http://www.swig.org for reporting bugs and further information I'd appreciate any help and thanks in advance. Best regards, -- *Jos? Vilson de Mello de Farias* /Analista de Sistemas //SSE - Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* vilson.farias at digitro.com.br *Messenger: *vilsonfarias at hotmail.com *Fone:* (0xx48) 3281-7314 *Fax:* (0xx48) 3281-7000 *Site:* www.digitro.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu at IASTATE.EDU Fri Sep 29 14:38:01 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Fri, 29 Sep 2006 16:38:01 -0500 Subject: Website maintenance Message-ID: All, The website will be up and down a little bit over the weekend to do some upgrades. Howard From richard.greenwood at GMAIL.COM Fri Sep 29 20:06:10 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 29 Sep 2006 21:06:10 -0600 Subject: raster output streched at CGI Query mode In-Reply-To: <2d1782780609290700n165ba444yf97c4fc1502d0ab1@mail.gmail.com> Message-ID: On 9/29/06, Eduardo Patto Kanegae wrote: > > Hi, > > I'm running MapServer 4.10.0RC1 on Fedora 5 with mapserver built with: > MapServer version 4.10.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=THREADS SUPPORTS=GEOS > SUPPORTS=POINT_Z_M INPUT=TIFF INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > When I'm browsing the application it displays me everything ok. All > shapefile layers and tif layers are shown correclty. > > But when I change to nquery mode and then hit an area, querymap is shown but > raster images appears with distortion. > > All dataset are UTM-SAD 69 23S, so no projection is set. I also noted this > problem with another application with different projections at each layer. > > I put two screenshots of the error at: > http://www.webmapit.com.br/debug/ms_map-mode.png > http://www.webmapit.com.br/debug/ms_map-query.png - note > the red lines I drawn... > > Is that a bug? > > -- > Eduardo Patto Kanegae > http://www.webmapit.com.br I had encountered something that appears to be similar and posted a bug report: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1463 Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Sat Sep 30 06:15:01 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sat, 30 Sep 2006 07:15:01 -0600 Subject: replace MAP extension with ASPX or ASP In-Reply-To: <20060929123700.50155.qmail@web42407.mail.scd.yahoo.com> Message-ID: On 9/29/06, william paul wrote: > Hello: > > Is it possible to replace the map extension with aspx or asp? I have seen an > example (http://www2.tetonwyo.org/mapserver/) where the map > file is called map.asp. I tried to create an aspx file like: I built the site that you are looking at. I have pasted the complete map.asp file in below. It contains both VB and JScript implementations, and references to original source. I have not figured out how to do it with .NET (ASPX). If you come up with a .NET solution, would you please share it with me and the rest of the list? Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com <%@language=JScript%> <% // Server.ScriptTimeout = 360 var mapFile = "/data/gis/mapserver/tc/tc.map" var qstring = Request.ServerVariables("QUERY_STRING") var host= Request.ServerVariables("HTTP_HOST") var referrer= Request.ServerVariables("HTTP_REFERER") var uri = "http://"+host+"/mapserv-4.6.1/mapserv.exe?map=" + mapFile + "&" + qstring; var objHTTP objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") objHTTP.open("GET", uri, false); objHTTP.send(); Response.ContentType = objHTTP.getResponseHeader("content-type"); Response.BinaryWrite (objHTTP.responseBody); %> <% /* JScript example from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk30/htm/xmobjxmldomserverxmlhttp_using_directly.asp var objSrvHTTP; objSrvHTTP = Server.CreateObject ("MSXML2.ServerXMLHTTP"); objSrvHTTP.open ("GET","http://someotherserver/respond.asp", false); objSrvHTTP.send (); Response.ContentType = "text/xml"; Response.Write (objHTTP.responseXML.xml); */ %> <% /* VB example from: http://mapserver.gis.umn.edu/doc40/wms-server-howto.html#onlineresourceurl Server.ScriptTimeout = 360 strRequest = Request.ServerVariables("QUERY_STRING") strURL = "http://myserver/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\WMS\mymap.map&" & strRequest Dim objHTTP Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") objHTTP.open "GET", strURL, false objHTTP.send "" Response.ContentType = objHTTP.getResponseHeader("content-type") Response.BinaryWrite objHTTP.responseBody Set objHTTP = Nothing */ %>