[Geomoose-users] highlighting missing from select feature tool - MS4W

Jeff McKenna jmckenna at gatewaygeomatics.com
Fri Dec 4 11:24:33 PST 2015


Hi Mark,

Sorry for my delay.

Regarding your report of problems with MS4W 3.1.0 with 
spatialite/sqlite/db data, I have done thorough testing, and I can tell 
you that there is no issue.  I have tested with 
sqlite/spatialite/postgis layers, using your sample mapfile, no issues.

However with your test DB there is issues (messages of "Rejecting 
feature...of incompatible type for this layer"), which was reported on 
the MapServer mailing list 
(http://osgeo-org.1560.x6.nabble.com/Trouble-with-spatialite-layer-td4899754.html#a4900764)

Using the sample spatialite data provided in that thread (OSM Finland, 
download it at 
http://hip.latuviitta.org/tiedostot/OSM_Suomi_20120213.zip), I have no 
problem drawing this layer with MS4W 3.1.0 (using the shp2img 
commandline utility):


MAP
   EXTENT 61686.171875 6605839.000000 733170.500000 7776580.000000
   SIZE 400 300

   LAYER
     TYPE LINE
     STATUS ON
     NAME 'selected'
     CONNECTIONTYPE OGR
     CONNECTION '/ms4w/tmp/ms_tmp/OSM_Suomi_20120213.sqlite'
     DATA 'osm_polygon'
     CLASS
       STYLE
	OUTLINECOLOR 255 255 0
	COLOR 0 0 0
       END
     END
   END
END #map

I also was successful with the spatialite sample data 
(https://www.gaia-gis.it/spatialite-2.3.1/resources.html), and also 
sample data from GDAL (http://download.osgeo.org/gdal/data/sqlite3/).

Therefore, as mentioned in that thread, there could be something wrong 
with the geometry in your sample data.

I hope that helps.

-jeff



-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2015-11-12 4:18 PM, Mark Volz wrote:
> Jeff,
>
> Thank you for offering to take a look.  I think there may indeed be an issue with MS4W not being able to read DB files.  I put together a test file located at http://geomoose.lyonco.org/DBTest/DBConnectionTest.zip
>
> *Unzip the file to /ms4w/tmp/ms_tmp
> *There is a test url bookmark that will open up http://localhost/cgi-bin/mapserv.exe?service=WMS&version=1.1.1&request=GetMap&styles=&format=image%2Fjpeg&MAP=%2Fms4w%2Ftmp%2Fms_tmp%2F%2Fselect_132761447356573.map&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=highlight&SRS=EPSG%3A3857&_OLSALT=0.5711829908262914&BBOX=-10375479.594299,5556082.9582284,-10370821.712889,5558810.804675&WIDTH=975&HEIGHT=571
>
> *I included a shapefile variation of the mapfile to demonstrate that shapefiles work.
>
>
>
>
> Thanks
>
> Sincerely,
> Mark Volz, GISP
> Lyon County GIS Coordinator
> 504 Fairgrounds Rd
> Marshall, MN 56258
> Ph:  (507) 532-8218
> Fax: (507) 532-8217
> http://lyonco.org/
> http://geomoose.lyonco.org/
>
>
>> -----Original Message-----
>> From: Geomoose-users [mailto:geomoose-users-bounces at lists.osgeo.org] On
>> Behalf Of Jeff McKenna
>> Sent: Thursday, November 12, 2015 11:46 AM
>> To: geomoose-users at lists.osgeo.org
>> Subject: Re: [Geomoose-users] highlighting missing from select feature tool -
>> MS4W
>>
>> Hi Mark,
>>
>> Do you think this is a problem with the MS4W packaging?  Let me know if you
>> want me to do some testing.
>>
>> -jeff
>>
>>
>>
>>
>> --
>> Jeff McKenna
>> MapServer Consulting and Training Services
>> http://www.gatewaygeomatics.com/
>>
>>
>>
>> On 2015-11-09 4:35 PM, Mark Volz wrote:
>>> Hello,
>>>
>>> I noticed that while GeoMOOSE 2.8.1 and MS4W 3.1.0 that the highlighting
>>> is missing from the select tool.  The results of select appear to be
>>> fine, but I cannot see any highlighting.
>>>
>>> Has anyone else noticed this issue?  If anyone has an idea as to how I
>>> can fix the problem with MS4W let me know.
>>>
>>> Thank You!
>>>
>>> Sincerely,
>>>
>>> Mark Volz
>>>
>>>
>>




More information about the Geomoose-users mailing list