[mapserver-users] KML Multigeometry

2015-04-24 Thread alok mathur
Hi,

Need help!!  I have a kml with multigeometry placemark in it as shown
below. Also I have create a map file corresponding to this kml as shown.
I am unable to view the data on map, there is no error coming. Please let
me know what wrong i am doing.

MAP
-

LAYER
GROUP default
NAME layer0
DATA SELECT * FROM 'TestFolder' WHERE FID=0 AND OGR_GEOMETRY='LINESTRING'
METADATA
wms_title Layer_0
gml_geometries geom
gml_include_items all
wms_include_items all
wms_feature_info_mime_type text/plain
gml_geom_type line
END
STATUS DEFAULT
TEMPLATE queryable
TYPE LINE
CONNECTIONTYPE OGR
CONNECTION test.kml
CLASS
NAME class
STYLE
WIDTH 10
COLOR 0 0 255
END #style end
END #class end
END #layerend
END

KML
--
?xml version=1.0 encoding=UTF-8?
kml xmlns=http://www.opengis.net/kml/2.2; xmlns:gx=
http://www.google.com/kml/ext/2.2; xmlns:kml=http://www.opengis.net/kml/2.2;
xmlns:atom=http://www.w3.org/2005/Atom;

Document
Folder
 nameTestFolder/name
Placemark
  nameSF Marina Harbor Master/name
  visibility0/visibility
  MultiGeometry
LineString
  !-- north wall --
  coordinates
  -71.460218,42.901764,1 -71.460193,42.901815,1 -71.460095,42.902058,1
-71.460027,42.902381,1 -71.460009,42.902723,1
-71.460016,42.903507,1 -71.459988,42.904164,1
-71.459951,42.904524,1 -71.4598540001,42.905083,1
-71.459458,42.906672,1 -71.459121,42.907851,1
-71.4588410001,42.908847,1 -71.4587630001,42.909122,1
  /coordinates
/LineString
LineString
  !-- south wall --
  coordinates
-122.4425509770566,37.80662588061205,0
-122.4428340530617,37.8065999493009,0
  /coordinates
/LineString
Point
coordinates-122.4428340530617,37.8065999493009,0/coordinates
/Point
  /MultiGeometry
/Placemark
/Folder
/Document
/kml



Thanks!

-- 

*Alok Mathur*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] KML Parsing

2015-04-21 Thread alok mathur
I have a KML with two folders with same name. How should i show this data
using mapserver.

Im using DATA select * from foldername where fid =1;

Please suggest me how to do this

-- 

*Alok Mathur*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] KML

2015-04-15 Thread alok mathur
Hi,

I have a KML as below:

?xml version=1.0 encoding=UTF-8?
kml xmlns=http://www.opengis.net/kml/2.2;
Document
  namedoc/name
  open0/open
 Placemark
  nameSF Marina Harbor Master/name
  visibility0/visibility
  MultiGeometry
LineString
  !-- north wall --
  coordinates
-122.4425587930444,37.80666418607323,0
-122.4428379594768,37.80663578323093,0
  /coordinates
/LineString
LineString
  !-- south wall --
  coordinates
-122.4425509770566,37.80662588061205,0
-122.4428340530617,37.8065999493009,0
  /coordinates
/LineString
Point coordinates-90.86948943473118,48.25450093195546,0/coordinates
/Point
  /MultiGeometry
/Placemark
/Document
/kml



In DATA part of the map file i want to use a query. but i able to do so.

Example

DATA select * from 'doc' where fid=1;

any one please suggest how to show all the geometries using FID.

Thanks!

-- 

*Alok Mathur*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Kml + mapserver

2015-04-15 Thread alok mathur
Hi Lars,

I have a KML with multiple placemarks in it. Now i want to read each
Placemark and make it a different layer in mapfile.

Is it a right way to do so and also in case of multigeometry how to handle
that with fid.

Let me know in case of any concern.

for eg

KML
--
Folder
nameFibertech
Placemark
nameP1/name
...

/Placemark
Placemark
nameP2/name
...

/Placemark
/Folder
MAP file
-

LAYER
NAME 
...
DATA select * from Fibertech where fid =1;
..
END

LAYER
NAME 
...
DATA select * from Fibertech where fid =2;
..
END

-- 

*Alok Mathur*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Map correlation

2015-04-08 Thread alok mathur
Hi,

I am using open layers3 to show the map on client. I want to click on map
displayed on client and  get the layer details. Could you please suggest if
there is another way to do it.
-- 

*Alok Mathur*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Fwd: Kml To mapserver

2015-04-08 Thread alok mathur
Also i want to know how to handle multigeometry in kml in map file using
FID.

-- Forwarded message --
From: alok mathur mathuralok...@gmail.com
Date: Sat, Apr 4, 2015 at 7:34 PM
Subject: Kml To mapserver
To: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org


Hi,

I have a kml as an data for mapserver. In that kml there is one folder with
multile point placemarks. I want to create a map file for this kml data.

Each point should represent single layer in map file.

Sample KML.
-

?xml version=1.0 encoding=utf-8?
kml xmlns=http://earth.google.com/kml/2.1;

 Folder
 Placemark
nameP1/name
descriptionObjectId: 1120/description
Point
tessellate1/tessellate
altitudeModerelativeToGround/altitudeMode
coordinates
-70.563856,42.288663,0
/coordinates
/Point
/Placemark

Placemark
nameP2/name
descriptionObjectId: 1120/description
Point
tessellate1/tessellate
altitudeModerelativeToGround/altitudeMode
coordinates
-71.563856,42.288663,1
/coordinates
/Point
/Placemark
Placemark
nameP3/name
descriptionObjectId: 1120/description
Point
tessellate1/tessellate
altitudeModerelativeToGround/altitudeMode
coordinates
-71.563856,42.288663,1
/coordinates
/Point
/Placemark





/Folder
/kml



-- 

*Alok Mathur* |



-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Fwd: Kml To mapserver

2015-04-07 Thread alok mathur
Can i use FID for the below problem. Eg:

DATA Select * from 'F1' where FID=1 in map config file.

Please help me out.

I have a kml as an data for mapserver. In that kml there is one folder with
multile point placemarks( no of placemark can vary). I want to create a map
file on the fly for this kml data.

Each point should represent single layer in map file.

Sample KML.
-

?xml version=1.0 encoding=utf-8?
kml xmlns=http://earth.google.com/kml/2.1;

 Folder
nameF1/name
 Placemark
nameP1/name
descriptionObjectId: 1120/description
Point
tessellate1/tessellate
altitudeModerelativeToGround/altitudeMode
coordinates
-70.563856,42.288663,0
/coordinates
/Point
/Placemark

Placemark
nameP2/name
descriptionObjectId: 1120/description
Point
tessellate1/tessellate
altitudeModerelativeToGround/altitudeMode
coordinates
-71.563856,42.288663,1
/coordinates
/Point
/Placemark
Placemark
nameP3/name
descriptionObjectId: 1120/description
Point
tessellate1/tessellate
altitudeModerelativeToGround/altitudeMode
coordinates
-71.563856,42.288663,1
/coordinates
/Point
/Placemark





/Folder
/kml



-- 

*Alok Mathur*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Kml To mapserver

2015-04-04 Thread alok mathur
Hi,

I have a kml as an data for mapserver. In that kml there is one folder with
multile point placemarks. I want to create a map file for this kml data.

Each point should represent single layer in map file.

Sample KML.
-

?xml version=1.0 encoding=utf-8?
kml xmlns=http://earth.google.com/kml/2.1;

 Folder
 Placemark
nameP1/name
descriptionObjectId: 1120/description
Point
tessellate1/tessellate
altitudeModerelativeToGround/altitudeMode
coordinates
-70.563856,42.288663,0
/coordinates
/Point
/Placemark

Placemark
nameP2/name
descriptionObjectId: 1120/description
Point
tessellate1/tessellate
altitudeModerelativeToGround/altitudeMode
coordinates
-71.563856,42.288663,1
/coordinates
/Point
/Placemark
Placemark
nameP3/name
descriptionObjectId: 1120/description
Point
tessellate1/tessellate
altitudeModerelativeToGround/altitudeMode
coordinates
-71.563856,42.288663,1
/coordinates
/Point
/Placemark





/Folder
/kml



-- 

*Alok Mathur* |
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Calculate length!

2015-03-16 Thread alok mathur
Lars,

I have the latest OGR

GDAL 1.11.2, released 2015/02/10

Thanks!
Alok

On Mon, Mar 16, 2015 at 5:39 PM, Schylberg Lars 
lars.schylb...@saabgroup.com wrote:

  I guess this must be a version problem.  That same command runs fine on
 my osgeolive8 machine.



 ogrinfo --version

 GDAL 1.10.1, released 2013/08/26



 /Lars





 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *alok mathur
 *Sent:* den 16 mars 2015 09:54
 *To:* Rahkonen Jukka (MML); mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] Calculate length!



 Hi Jukka,



 When i am trying to run the above ogr command as mentioned by you I am
 getting an error



 ogrinfo -dialect sqlite -sql select st_length(geometry) from 'Fibertech
 solution' doc_test.kml

 INFO: Open of `doc_test.kml'

   using driver `LIBKML' successful.

 ERROR 1: In ExecuteSQL(): sqlite3_prepare(select st_length(geometry) from
 'Fibertech solution'):

   no such function: st_length







 Please let me know what the issue is. I have installed both libsqlite3 and
 libspatialite.



 Thanks!

 Alok



 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Calculate length!

2015-03-16 Thread alok mathur
Hi Jukka,

When i am trying to run the above ogr command as mentioned by you I am
getting an error

ogrinfo -dialect sqlite -sql select st_length(geometry) from 'Fibertech
solution' doc_test.kml
INFO: Open of `doc_test.kml'
  using driver `LIBKML' successful.
ERROR 1: In ExecuteSQL(): sqlite3_prepare(select st_length(geometry) from
'Fibertech solution'):
  no such function: st_length



Please let me know what the issue is. I have installed both libsqlite3 and
libspatialite.

Thanks!
Alok

On Fri, Mar 13, 2015 at 5:04 PM, Rahkonen Jukka (MML) 
jukka.rahko...@maanmittauslaitos.fi wrote:

  Hi,



 You do not need anything else than GDAL which is compiled with libraries
  libsqlite3 and  libspatialite.

 If you have a suitable GDAL version you should be able to repeat this with
 the attached small KML file.





 ogrinfo -dialect sqlite -sql select st_length(geometry) from Layer0
 lines.kml

 INFO: Open of `lines.kml'

   using driver `LIBKML' successful.



 Layer name: SELECT

 Geometry: None

 Feature Count: 2

 Layer SRS WKT:

 (unknown)

 st_length(geometry): Real (0.0)

 OGRFeature(SELECT):0

   st_length(geometry) (Real) = 38.2726390753108



 OGRFeature(SELECT):1

   st_length(geometry) (Real) = 34.5939953221416



 -Jukka Rahkonen-





 alok mathur wrote:



 Hi Rahkonen,



 I have a KML as data source and I am not using sqlite or postgis.

 I am reading the KML from ogrinfo. is there anyway to do the length
 calculation without using sqlite or postgis.



 Thanks!

 Alok



 On Fri, Mar 13, 2015 at 3:28 PM, Rahkonen Jukka (MML) 
 jukka.rahko...@maanmittauslaitos.fi wrote:

 Hi Lars,



 You should not underestimate GDAL.  Read
 http://www.gdal.org/ogr_sql_sqlite.html and look at this:



 ogrinfo -dialect sqlite -sql select st_length(geometry) from line_demo
 limit 5 line_demo.shp

 INFO: Open of `line_demo.shp'

   using driver `ESRI Shapefile' successful.



 Layer name: SELECT

 Geometry: None

 Feature Count: 10

 Layer SRS WKT:

 (unknown)

 st_length(geometry): Real (0.0)

 OGRFeature(SELECT):0

   st_length(geometry) (Real) = 638.237633730745

 OGRFeature(SELECT):1

   st_length(geometry) (Real) = 32.7179011265525

 OGRFeature(SELECT):2

   st_length(geometry) (Real) = 4399.43983906202

 OGRFeature(SELECT):3

   st_length(geometry) (Real) = 480.395511976145

 OGRFeature(SELECT):4

   st_length(geometry) (Real) = 311.309421824364

 -Jukka Rahkonen-





 Schylberg Lars wrote:



 As far as I know there is no length function in Mapserver.

 The only geometry function to use in Expressions is area(shape).

 OGR sql doesn’t provide that either as far as I can see in the
 documentation.



 So the solutions might be to convert your KML data to  sqlite or postgis
 where such functions are available.



 The length of a string (number of characters in the string) can be found
 in OGR sql with the length function,
 but I am assuming You are looking for the geometric length of the
 linestring.



 /Lars



 *From:* mapserver-users-boun...@lists.osgeo.org [
 mailto:mapserver-users-boun...@lists.osgeo.org
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *alok mathur
 *Sent:* den 13 mars 2015 07:01
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] Calculate length!



 Hi,



 I want to calculate the length in mapserver. Is it possible. Means i have
 a linestring and i want to know the length for it.

 Also not could be suggest me how to do it.



 I am using data source to mapserver as KML.



 Thanks!



 --

 *Alok Mathur*


 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users





 --

 *Alok Mathur* | Software Engineer 2A | Ciena
 Mobile +91 9899413266




-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Calculate length!

2015-03-13 Thread alok mathur
Hi,

I want to calculate the length in mapserver. Is it possible. Means i have a
linestring and i want to know the length for it.
Also not could be suggest me how to do it.

I am using data source to mapserver as KML.

Thanks!

-- 

*Alok Mathur*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Calculate length!

2015-03-13 Thread alok mathur
Thanks Lars. Yes I am looking for geometric length.


On Fri, Mar 13, 2015 at 3:11 PM, Schylberg Lars 
lars.schylb...@saabgroup.com wrote:

  As far as I know there is no length function in Mapserver.

 The only geometry function to use in Expressions is area(shape).

 OGR sql doesn’t provide that either as far as I can see in the
 documentation.



 So the solutions might be to convert your KML data to  sqlite or postgis
 where such functions are available.



 The length of a string (number of characters in the string) can be found
 in OGR sql with the length function,
 but I am assuming You are looking for the geometric length of the
 linestring.



 /Lars



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *alok mathur
 *Sent:* den 13 mars 2015 07:01
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] Calculate length!



 Hi,



 I want to calculate the length in mapserver. Is it possible. Means i have
 a linestring and i want to know the length for it.

 Also not could be suggest me how to do it.



 I am using data source to mapserver as KML.



 Thanks!



 --

 *Alok Mathur*

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] KML reading through OGR

2015-03-12 Thread alok mathur
Hi Lars,

I want to create a styling for each placemark  in .map file. Means If i
have a KML containing one folder with multiple placemarks as shown below. I
want to create a .map file which will contain style for each placemark.
What if i have the same names of placemarks. Please help me to get the
solution

Eg.

KML


Folder
nameNE Third Route/name
Folder
nameFibertech solution/name
Placemark
nameWestborough MSC - Build/name
styleUrl#msn_ylw-pushpin4/styleUrl
LineString
tessellate1/tessellate
coordinates
-71.58570500983306,42.28745742866225,0
-71.58563778135751,42.28308954118536,0
-71.58466087108053,42.28307704913402,0
/coordinates
/LineString
/Placemark
Placemark
nameWestborough MSC to Westborugh/name
styleUrl#msn_ylw-pushpin8/styleUrl
LineString
tessellate1/tessellate
coordinates
-71.62172195712955,42.27186897741407,0
-71.6219495552,42.27189433043378,0
-71.6225634332947,42.27210480296427,0
-71.62308968672842,42.27236391420707,0
-71.62394597288645,42.27309147863262,0
-71.62737594489003,42.27740640295431,0
-71.62822373584245,42.27893783334968,0
-71.63091971519079,42.2816476278,0
-71.63207040059587,42.28370221254578,0
-71.62599732629406,42.28418518334991,0
-71.60795611539982,42.28517668969011,0
-71.60267209851122,42.28504601944216,0
-71.60188701357249,42.28516492137062,0
-71.58850360403626,42.28849573666959,0
-71.5858004650346,42.28852197680775,0 -71.58571706491037,42.2874804233345,0
/coordinates
/LineString
/Placemark
Placemark
nameNEW Danbury/name
Camera
longitude-73.45375129836707/longitude
latitude41.390460041635/latitude
altitude419.0806930250601/altitude
heading13.43312150541231/heading
tilt28.58299225276625/tilt
roll-0.685026358787494/roll
gx:altitudeModerelativeToSeaFloor/gx:altitudeMode
/Camera
styleUrl#msn_ylw-stars/styleUrl
Point
gx:drawOrder1/gx:drawOrder
coordinates-73.45404626023216,41.3929335947184,0/coordinates
/Point
/Placemark
Placemark
nameNEW Scotland Amp/name
LookAt
longitude-72.09703050755105/longitude
latitude41.69579944328172/latitude
altitude0/altitude
heading-0.790587312931665/heading
tilt19.0106770482321/tilt
range445.0511788150669/range
gx:altitudeModerelativeToSeaFloor/gx:altitudeMode
/LookAt
styleUrl#msn_ylw-stars/styleUrl
Point
gx:drawOrder1/gx:drawOrder
coordinates-72.09643061038489,41.6960553015771,0/coordinates
/Point
/Placemark
/Folder





On Wed, Mar 11, 2015 at 6:38 PM, Schylberg Lars 
lars.schylb...@saabgroup.com wrote:

  The OGR style is the variable that is returned in the variable that is
 casted.

 Please look at the Layer definitions that I sent yesterday in the mapfile
 example.



 DATA SELECT Name as NAME, CAST(OGR_STYLE AS character(32)) AS STYLE FROM
 'Fibertech solution' WHERE OGR_GEOMETRY='LINESTRING'

 CLASSITEM STYLE

 LABELITEM NAME



 CLASS

  EXPRESSION @msn_ylw-pushpin4





 That is the STYLE value used in the CLASSITEM expression.



 The description is shown in the label that uses the labelitem.  Also shown
 in the mapfile example yesterday.





 If You only want to get the features with the style ‘@msn_ylw-pushpin4'
 with ogrinfo you should write it like this:



 ogrinfo -ro doc_test.kml \
 -sql SELECT *, CAST(OGR_STYLE AS character(255)) AS STYLE FROM 'Fibertech
 solution' \
 WHERE OGR_GEOMETRY='LINESTRING' AND OGR_STYLE='@msn_ylw-pushpin4' –al



 That returns the geometry and variables according to this criteria, i.e.
 only lines and specific style.



 But I guess that You most likely would like to do this filtering in the
 Class section of the mapfile and not in the DATA statement.



 /Lars





 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *alok mathur
 *Sent:* den 11 mars 2015 05:46
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] KML reading through OGR



 Hi,



 I am unable to get the Styleurl using Ogrinfo. I am trying the command

 ogrinfo -al doc_test.kml -where ogr_style='@msn_ylw-pushpin4'



 but the result is

 Layer name: Fibertech solution

 Geometry: 3D Unknown (any)

 Feature Count: 0

 Layer SRS WKT:

 GEOGCS[WGS 84,

 DATUM[WGS_1984,

 SPHEROID[WGS 84,6378137,298.257223563,

 AUTHORITY[EPSG,7030]],

 TOWGS84[0,0,0,0,0,0,0],

 AUTHORITY[EPSG,6326]],

 PRIMEM[Greenwich,0,

 AUTHORITY[EPSG,8901]],

 UNIT[degree,0.0174532925199433,

 AUTHORITY[EPSG,9108]],

 AUTHORITY[EPSG,4326]]

 Name: String (0.0)

 Description: String (0.0)







 Also i want to show the description of placemark on map.



 Thanks!



 --

 *Alok Mathur* | Software Engineer 2A | Ciena
 Mobile +91 9899413266




-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] KML descriptionTag

2015-03-11 Thread alok mathur
Hi,
I want to show the description tag in kml file onto map. On clicking on the
point on map the balloon will be opened containing the description tag and
name tag of the point.
Please suggest me how to do the same.

-- 

*Alok Mathur*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Length Calculation

2015-03-11 Thread alok mathur
Hi,

I want to calculate the length of line string in mapserver. Please suggest
me how to do the same.
Is there any function provided by mapserver?.
-- 

*Alok Mathur*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Best Practice

2015-03-10 Thread alok mathur
Hi ,

Could any one suggest me to how to create .map file from KML file. Are any
tools available.
My requirement is to take KML file as input create .map file corresponding
to that KML and provide changes on map so that it reflects on the fly.


-- 

*Alok Mathur*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] KML reading through OGR

2015-03-10 Thread alok mathur
Hi,

I am unable to get the Styleurl using Ogrinfo. I am trying the command
ogrinfo -al doc_test.kml -where ogr_style='@msn_ylw-pushpin4'

but the result is
Layer name: Fibertech solution
Geometry: 3D Unknown (any)
Feature Count: 0
Layer SRS WKT:
GEOGCS[WGS 84,
DATUM[WGS_1984,
SPHEROID[WGS 84,6378137,298.257223563,
AUTHORITY[EPSG,7030]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY[EPSG,6326]],
PRIMEM[Greenwich,0,
AUTHORITY[EPSG,8901]],
UNIT[degree,0.0174532925199433,
AUTHORITY[EPSG,9108]],
AUTHORITY[EPSG,4326]]
Name: String (0.0)
Description: String (0.0)



Also i want to show the description of placemark on map.

Thanks!

-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Reading KML

2015-03-09 Thread alok mathur
Hi,

I have a kml file in which there is a folder containing both Line and Point
geometry placemarks. I want to show both line and point geomerty on map
using mapserver. but the issue is that the data source is same. so how can
i show the point and line data on map.
Please help me.



-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Reading KML

2015-03-09 Thread alok mathur
 STYLE
   COLOR 0 0 0
#   OUTLINECOLOR 255 255 255
   SYMBOL 'pin.png'
   SIZE 16
 END
#   LABEL
# SIZE TINY
# COLOR 0 0 0
# OUTLINECOLOR 255 255 255
# POSITION AUTO
#   END
#  END
END
#

# Start of LAYER DEFINITIONS -
  LAYER
   NAME kml_example
   TYPE LINE
   STATUS ON
   CONNECTIONTYPE OGR
   CONNECTION doc_test.kml
   DATA Fibertech solution
   LABELITEM NAME
   CLASS
 NAME Fiber Names
 STYLE
   COLOR 250 0 0
   OUTLINECOLOR 255 255 255
   #SYMBOL 'pin.png'
   SIZE 6
 END
   LABEL
 SIZE TINY
 COLOR 0 0 0
 OUTLINECOLOR 255 255 255
 POSITION AUTO
   END
  END
END
#

END



On Mon, Mar 9, 2015 at 5:10 PM, alok mathur mathuralok...@gmail.com wrote:

 Hi,

 I have a kml file in which there is a folder containing both Line and
 Point geometry placemarks. I want to show both line and point geomerty on
 map using mapserver. but the issue is that the data source is same. so how
 can i show the point and line data on map.
 Please help me.



 --

 *Alok Mathur* | Software Engineer 2A | Ciena
 Mobile +91 9899413266




-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] KML in mapserver

2015-03-09 Thread alok mathur
   TYPE POINT
   STATUS DEFAULT
   CONNECTIONTYPE OGR
   CONNECTION doc_test.kml
   DATA SELECT * FROM 'Fibertech solution' WHERE OGR_GEOMETRY='POINT'
   LABELITEM NAME
   #FILTER ('[OGR_GEOMETRY]' == 'POINT')
   #PROCESSING_OPTION NATIVE_FILTER=OGR_GEOMETRY='POINT'
   CLASS
 NAME Splice Point
 STYLE
   COLOR 250 0 0
   OUTLINECOLOR 255 255 255
   SYMBOL 'marker2'
   SIZE 16
 END
   LABEL
 SIZE GIANT
 COLOR 0 0 0
 OUTLINECOLOR 255 255 255
 POSITION AUTO
   END
  END
END
#

END

-- 

*Alok Mathur*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] kml style

2015-03-05 Thread alok mathur
Hi,

I am new to mapserver and kml. I want to create a .map file and the
datasource will be the kml file. How could i use the kml style tags or i
have to provide my own style tag in .map file.

Please help me out to write the config file. PFA the sample kml file

-- 

*Alok Mathur*


KML_Samples.kml
Description: application/vnd.google-earth.kml
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Fwd: kml style

2015-03-05 Thread alok mathur
Please its urgent, if some one could help me out to write the .map file.
-- Forwarded message --
From: alok mathur mathuralok...@gmail.com
Date: Mon, Mar 2, 2015 at 10:35 PM
Subject: kml style
To: mapserver-users@lists.osgeo.org


Hi,

I am new to mapserver and kml. I want to create a .map file and the
datasource will be the kml file. How could i use the kml style tags or i
have to provide my own style tag in .map file.

Please help me out to write the config file. PFA the sample kml file

-- 

*Alok Mathur*



-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266


KML_Samples.kml
Description: application/vnd.google-earth.kml
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Mapserver + KML

2015-02-24 Thread alok mathur
Hi,

I am new to Mapserver and KML. According to my knowledge i found that
mapserver reads KML file but only some elements in that.
Is there anyway to read KML style tag using mapserver and plot a map with
same style. as in mapserver we have to give our own style.


Thanks!

*Alok Mathur*
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users