Re: [mapserver-users] how to use attribute name in template with "_"
Try this line in the LAYER METADATA: LAYER METADATA "gml_featureid" "ogc_fid" END END Regards, Donald METADATA -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of alexkartatem...@yahoo.com Sent: 31 July 2012 23:42 To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] how to use attribute name in template with "_" Hello, I use mapserver 6.0.3 I created template for getting info from (OpenLayers WMSGetFeatureInfo method) spatilite file. I can't get access to the field "ogc_fid" from template. I think it is because of symbol "_" in field name. What I can do to get [ogc_fid] value from template? Thank you ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapServer 6.2.0 beta2 release
The MapServer Team is pleased to announce the release of MapServer 6.2.0 beta2. This is the second beta on our way to a final 6.2 release, and contains several fixes that we encourage you to test. Our initially planned date of a release beginning of August has slipped a bit, the updated release plan that can be viewed at https://github.com/mapserver/mapserver/wiki/MapServer-6.2-Release-Plan We however have only a few bugs left to resolve for our final release, so we hope this beta phase will be over in the next couple of weeks. The changelog since beta1 can be consulted here: http://www.mapserver.org/en/development/changelog/changelog-6-2-0-beta2.html The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.2.0-beta2.tar.gz The binary distributions listed in the download page should be updated with binaries for the new 6.2.0-beta2 release in the next couple of days. Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Отв.: how to use attribute name in template with "_"
Donald, thank you very much for your reply, I already have the string "gml_featureid" "ogc_fid" in the map file. Here is my template.html: *** קבר AttributeValue הפניה:[ogc_fid] שם מלא:[shem_mal] תאריך:[tarih] אידי:[unick_id] *** There are 2 more fields with "_", them work good. Problem only with [ogc_fid] (I tryed to change register - also don't work). here is schema of layer (spatialite myfile.sqlite -> .shema layername): *** CREATE TABLE 'gves' ( OGC_FID INTEGER PRIMARY KEY, "GEOMETRY" POINT, 'gush' VARCHAR, 'halka' FLOAT, 'ms_sh' FLOAT, 'ms_sh_1' FLOAT, 'mispar' FLOAT, 'shem' VARCHAR, 'mishpaha' VARCHAR, 'min' VARCHAR, 'tarih' VARCHAR, 'tarih_1' VARCHAR, 'x' FLOAT, 'y' FLOAT, 'tashlum' VARCHAR, 'ktovet' VARCHAR, 'moza' VARCHAR, 'ptira' VARCHAR, 'knia' VARCHAR, 'shem_mal' VARCHAR, 'gusheng' VARCHAR, 'kvarim' FLOAT, 'unick_id' VARCHAR); *** May be OGC_FID is some sort of special field in spatialite files. As you see in schema it looks not as another fields. Of cource, I can create a new field and copy there values from OGC_FID, but I want to try to find the way without changing the struture of table. Thank you for help Best regards, Alexey От: Donald Kerr Кому: alexkartatem...@yahoo.com; mapserver-users@lists.osgeo.org Отправлено: среда, 1 августа 2012 10:08 Тема: RE: [mapserver-users] how to use attribute name in template with "_" Try this line in the LAYER METADATA: LAYER METADATA "gml_featureid" "ogc_fid" END END Regards, Donald METADATA -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of alexkartatem...@yahoo.com Sent: 31 July 2012 23:42 To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] how to use attribute name in template with "_" Hello, I use mapserver 6.0.3 I created template for getting info from (OpenLayers WMSGetFeatureInfo method) spatilite file. I can't get access to the field "ogc_fid" from template. I think it is because of symbol "_" in field name. What I can do to get [ogc_fid] value from template? Thank you___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver 6: Oracle & layerObj.queryByIndex
Hi I'm porting an Java-Mapscript-application from Mapserver 5.4 to Mapserver 6.0. Data is stored in Oracle-Saptial. I have a problem with layerObj.queryByIndex. To illustrate, i use a small Java-Testprogram: import edu.umn.gis.mapscript.layerObj; import edu.umn.gis.mapscript.mapObj; import edu.umn.gis.mapscript.shapeObj; public class QueryExtent { public static void main(String argv []) { mapObj map = new mapObj("java_test\\umn.map"); layerObj l = map.getLayerByName("Gemeinden"); // Gemeinden is Oracle-Spatial-Layer int i = l.queryByIndex(map, 0, 2, 0); System.out.println(i); } } This program prints 1 - saying, that the queryByIndex-call was not successfull. Logfile: msOracleSpatialLayerGetShape(): OracleSpatial error. msOracleSpatialLayerGetShape record out of range By additional debugging I saw: In msOracleSpatialLayerGetShape Mapserver runs into the "if (resultindex >= 0)"-branch. In my case resultindex is an extra-ordinary big integer-number. I don't really understand ths query-layer-code in Mapserver. But I think in my case resultindex should by -1 and that Mapserver should initialize resultindex automatically. Therfore I changed code: int msQueryByIndex(mapObj *map) { ... resultObj record; record.resultindex = -1; // added line. } Is the fix correct or should I use Mapscript differently? Benedikt ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How to handle unavailable data source in mapObj layer?
Steve, Thanks for the suggestion. New ticket opened as: Skip layers with specified WMS errors https://github.com/mapserver/mapserver/issues/4411 - Phil On 7/31/2012 1:55 PM, Paolo Corti wrote: > On Tue, Jul 31, 2012 at 7:43 PM, Stephen Woodbridge > wrote: >> I'm not sure if this will help, but have you tried using: >> >> MAP >> ... >> CONFIG ON_MISSING_DATA "IGNORE" >> ... >> >> -Steve W >> > > Steve > I think that is only for missing data in tile index, according to the > documentation cheers p > Yeah, I was afraid that might be the case, because that is how I typically use it. You might want to open a ticket to add a feature like: CONFIG ON_WMS_ERROR "IGNORE" CONFIG ON_WMS_404 "IGNORE" If this would be helpful to users. -Steve W This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Getting introduced to MapScript
Dear all, I'm starting to dive into MapScript but am feeling a bit lost. The documentation is scant and so far I haven't been able to find a proper API reference. Right now I'm just going through the code itself and things are going rather slowly. Is there a thorough API reference out there? And where is the right place to ask for help? Here at this forum? Thank you, Luís -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Getting-introduced-to-MapScript-tp4992463.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Getting introduced to MapScript
On 8/1/2012 11:14 AM, Luís de Sousa wrote: Dear all, I'm starting to dive into MapScript but am feeling a bit lost. The documentation is scant and so far I haven't been able to find a proper API reference. Right now I'm just going through the code itself and things are going rather slowly. Is there a thorough API reference out there? And where is the right place to ask for help? Here at this forum? I assume you are already looking at this: http://mapserver.org/mapscript/index.html#mapscript http://mapserver.org/mapscript/php/by_example.html Which flavor of mapscript are you using? PHP, C#, etc -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mssql with mapserver on red hat
i am trying to create a mapserver layer from a spatial table in mssql on another server. the mapserver is running on a red hat linux server. i cannot get it to connect. i have setup unixodbc and freetds. i have a dsn setup, which i can successfully connect to and query using isql. in my mapfile i have connection for the layer like this ... ... CONNECTIONTYPE OGR CONNECTION "MSSQL:dsn=[mydsn];driver=FreeTDS;uid=[user];pwd=[pass];database=[mydb]" DATA "SELECT ... etc'" ... ... the error i get is this msDrawMap(): Image handling error. Failed to draw layer named test'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `test'. Unable to initialize connection to the server for MSSQL:dsn=[mydsn];driver=FreeTDS;uid=[user];pwd=[pass];database=[mydb], [unixODBC][Driver Manager]Data source name not found, and no default driver specified i have tried several variations for the connection string and with never any success. does anyone else use a setup this way? or possibly provide some assistance or some insight on how i can get this to work? or is there a better way? i have found a couple of posts searching but nothing that is working for me. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/mssql-with-mapserver-on-red-hat-tp4992557.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users