[mapserver-users] Help Required with WMS Time
abhishek bansal
discover.ab at gmail.com
Fri May 11 00:15:53 PDT 2012
Okay.!!
Thank You very much for your help.
On Fri, May 11, 2012 at 12:41 PM, Helen San Segundo Navazo <
hsansegundo at meteo.cat> wrote:
> Hi,
>
> - for the first point, in my last email you have an example with a
> raster file, here you have it, in it the variable is the full file name,
> but you can do it how is better for you, being careful with the pattern
>
>
> LAYER
>
> NAME 'Meteosat'
> TYPE RASTER
> DUMP true
> TOLERANCE 10
> TOLERANCEUNITS DD
>
>
> HEADER "templates/getfeatureinfo_header.html" # header html template
> TEMPLATE "templates/getfeatureinfo_content.html" # content html
> template
> FOOTER "templates/getfeatureinfo_footer.html" # footer html
> template
>
> METADATA
> 'ows_title' 'Meteosat'
>
> 'wms_feature_info_mime_type' "text/html"
> "gml_include_items" "all"
> "wms_include_items" "all"
> "ows_enable_request" "*"
>
> 'file_validation_pattern' "[A-Z0-9._%+-|'\(\)]"
> 'default_file' "ultima_imatge"
>
> END
>
> VALIDATION
> 'file' "[A-Z0-9._%+-|'\(\)]"
> END
>
> DATA '/var/www/html/mapserver/mfd_lin/datos/meteosat/%file%.img'
>
>
>
> - For the second point, till I know, the function shp2pgsql creates a
> script with all the attributes you have in the shapefile, if you want to
> have a time column that is not in the shapefile, you have to add it later
> after creating the table in the database, maybe somebody in the list knows
> how to do it automatically when you invoke shp2pgsql.
>
> Helen
>
> El 11/05/12 06:47, abhishek bansal escribió:
>
> Hi Helen,
>
> I think I will have to do it ultimately by your way. Sorry for bothering
> you but could you please help me with these two questions
>
> 1.) Will i be able to get raster data also with this method ?
> 2.) How do I include time data in postgis database as it is created
> automatically by shp2pgsql utility ?
>
> Thank You
> Abhishek Bansal
>
> On Thu, May 10, 2012 at 6:59 PM, Helen San Segundo Navazo <
> hsansegundo at meteo.cat> wrote:
>
>> ok, good luck
>>
>> El 10/05/12 14:26, abhishek bansal escribió:
>>
>> But I dont want to use any database either !!
>>
>> On Thu, May 10, 2012 at 5:47 PM, Helen San Segundo Navazo <
>> hsansegundo at meteo.cat> wrote:
>>
>>> using the runtime substitution you can use getcapabilities request with
>>> all the description to see layers, proyections ...., it works as if you
>>> don't use the variables
>>>
>>> Here you have an example using a binary file
>>>
>>> LAYER
>>>
>>> NAME 'Meteosat'
>>> TYPE RASTER
>>> DUMP true
>>> TOLERANCE 10
>>> TOLERANCEUNITS DD
>>>
>>>
>>> HEADER "templates/getfeatureinfo_header.html" # header html template
>>> TEMPLATE "templates/getfeatureinfo_content.html" # content html
>>> template
>>> FOOTER "templates/getfeatureinfo_footer.html" # footer html
>>> template
>>>
>>> METADATA
>>> 'ows_title' 'Meteosat'
>>>
>>> 'wms_feature_info_mime_type' "text/html"
>>> "gml_include_items" "all"
>>> "wms_include_items" "all"
>>> "ows_enable_request" "*"
>>>
>>> 'file_validation_pattern' "[A-Z0-9._%+-|'\(\)]"
>>>
>>> 'default_file' "ultima_imatge"
>>>
>>> END
>>>
>>> VALIDATION
>>> 'file' "[A-Z0-9._%+-|'\(\)]"
>>> END
>>>
>>> DATA '/var/www/html/mapserver/mfd_lin/datos/meteosat/%file%.img'
>>>
>>>
>>>
>>>
>>>
>>> El 10/05/12 14:08, abhishek bansal escribió:
>>>
>>> Hi,
>>> Thanks for your reply.
>>> But I need to specify in map file which layers are available so that i
>>> can parse output of getCapabilities and show available layers to user.
>>> Also I am not using any database.
>>>
>>> On Thu, May 10, 2012 at 5:18 PM, Helen San Segundo Navazo <
>>> hsansegundo at meteo.cat> wrote:
>>>
>>>> Hi,
>>>> I don't use the time dimension, what I use is run-time substitution
>>>> http://mapserver.org/cgi/runsub.html
>>>> I have 6 variables. You have to put the validation pattern inside the
>>>> metadata tag and a validation tag with the pattern of your variables.
>>>>
>>>> With this you can invoke the params in the url. If you put them the
>>>> query will be with the values in the url, if not, then the query will be
>>>> with the default values defined in the metadata tag.
>>>>
>>>> Hope this help you,
>>>> Helen
>>>>
>>>>
>>>> LAYER
>>>> NAME 'name'
>>>> HEADER "templates/getfeatureinfo_header.html" # header html template
>>>> TEMPLATE "templates/getfeatureinfo_content.html" # content html
>>>> template
>>>> FOOTER "templates/getfeatureinfo_footer.html" # footer html
>>>> template
>>>> METADATA
>>>> 'ows_title' 'title'
>>>> 'wms_feature_info_mime_type' "text/html"
>>>> "gml_include_items" "all"
>>>> "wms_include_items" "all"
>>>>
>>>> 'aini_validation_pattern' '^[0-9]{1,8}$'
>>>> 'afi_validation_pattern' '^[0-9]{1,8}$'
>>>> 'mini_validation_pattern' '^[0-9]{1,8}$'
>>>> 'mfi_validation_pattern' '^[0-9]{1,8}$'
>>>> 'dini_validation_pattern' '^[0-9]{1,8}$'
>>>> 'dfi_validation_pattern' '^[0-9]{1,8}$'
>>>>
>>>>
>>>> 'default_aini' '2012'
>>>> 'default_afi' '2012'
>>>> 'default_mini' '4'
>>>> 'default_mfi' '4'
>>>> 'default_dini' '24'
>>>> 'default_dfi' '25'
>>>>
>>>>
>>>> END
>>>> VALIDATION
>>>> 'aini' '^[0-9]{1,8}$'
>>>> 'afi' '^[0-9]{1,8}$'
>>>> 'mini' '^[0-9]{1,8}$'
>>>> 'mfi' '^[0-9]{1,8}$'
>>>> 'dini' '^[0-9]{1,8}$'
>>>> 'dfi' '^[0-9]{1,8}$'
>>>>
>>>> END
>>>> STATUS OFF
>>>>
>>>> PROJECTION
>>>> "init=epsg:4326"
>>>> END
>>>>
>>>> CONNECTIONTYPE postgis
>>>> CONNECTION "user=postgres password=pp dbname=mm host=host"
>>>> DATA "the_geom FROM (SELECT oid,geometry_columns
>>>> from table
>>>> where
>>>> time>='%aini%-%mini%-%dini% 00:00:00'
>>>> and time<'%afi%-%mfi%-%dfi%
>>>> 00:00:00'
>>>> )
>>>> AS r USING UNIQUE oid USING SRID=4326"
>>>>
>>>>
>>>> ....
>>>>
>>>> El 10/05/12 13:24, abhishek bansal escribió:
>>>>
>>>> Hello All
>>>>
>>>> I am working on a project that require time as a dimension of data. I
>>>> have gone through all documentation but I am not able to understand that
>>>> how do I upload time data in server .map file. I have created simple map
>>>> files and my server is working. What i need is same layer on different time
>>>> should different dataset.
>>>>
>>>> plz help !!
>>>>
>>>>
>>>> --
>>>> Thanks & Regards,
>>>> Abhishek Bansal
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> mapserver-users mailing list
>>>> mapserver-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>
>>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Abhishek Bansal
>>> http://abhishekbansal.miyuri.com
>>> Jaypee Institute of Information Technology, Noida
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>> Abhishek Bansal
>> http://abhishekbansal.miyuri.com
>> Jaypee Institute of Information Technology, Noida
>>
>>
>>
>>
>
>
> --
> Thanks & Regards,
> Abhishek Bansal
> http://abhishekbansal.miyuri.com
> Jaypee Institute of Information Technology, Noida
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
--
Thanks & Regards,
Abhishek Bansal
http://abhishekbansal.miyuri.com
Jaypee Institute of Information Technology, Noida
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120511/a22f2e41/attachment.htm>
More information about the MapServer-users
mailing list