Thread View: pl.comp.gis
3 messages
3 total messages
Started by Mateuszzz
Tue, 24 May 2011 22:59
problem z GMLem
Author: Mateuszzz
Date: Tue, 24 May 2011 22:59
Date: Tue, 24 May 2011 22:59
55 lines
3854 bytes
3854 bytes
Witam Grupowiczów,
stworzyłem w sposób "ręczny" plik GML (umieściłem go poniżej). Chciałem,
aby zawierał on łamane zamknięte ograniczające kwadrat.
Niestety otrzymałem coś, co nie zawiera wszystkich boków. Proszę o
poradę, w którym miejscu popełniłem błąd:
========================================================================================
<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ogr.maptools.org/ moja_GML.xsd"
xmlns:ogr="http://ogr.maptools.org/"
xmlns:gml="http://www.opengis.net/gml">
<gml:boundedBy>
<gml:Box>
<gml:coord><gml:X>20.007145</gml:X><gml:Y>52.0477439</gml:Y></gml:coord>
<gml:coord><gml:X>21.507145</gml:X><gml:Y>52.5477439</gml:Y></gml:coord>
</gml:Box>
</gml:boundedBy>
<gml:featureMember><ogr:moja_GML
fid="F1"><ogr:geometryProperty><gml:LineString><gml:coordinates>20.007145,52.5477439
20.257145,52.5477439 20.257145,52.2977439 20.257145,52.5477439
20.007145,52.5477439</gml:coordinates></gml:LineString></ogr:geometryProperty><ogr:opis
/></ogr:moja_GML></gml:featureMember>
<gml:featureMember><ogr:moja_GML
fid="F2"><ogr:geometryProperty><gml:LineString><gml:coordinates>20.007145,52.2977439
20.257145,52.2977439 20.257145,52.0477439 20.257145,52.2977439
20.007145,52.2977439</gml:coordinates></gml:LineString></ogr:geometryProperty><ogr:opis
/></ogr:moja_GML></gml:featureMember>
<gml:featureMember><ogr:moja_GML
fid="F3"><ogr:geometryProperty><gml:LineString><gml:coordinates>20.257145,52.5477439
20.507145,52.5477439 20.507145,52.2977439 20.507145,52.5477439
20.257145,52.5477439</gml:coordinates></gml:LineString></ogr:geometryProperty><ogr:opis
/></ogr:moja_GML></gml:featureMember>
<gml:featureMember><ogr:moja_GML
fid="F4"><ogr:geometryProperty><gml:LineString><gml:coordinates>20.257145,52.2977439
20.507145,52.2977439 20.507145,52.0477439 20.507145,52.2977439
20.257145,52.2977439</gml:coordinates></gml:LineString></ogr:geometryProperty><ogr:opis
/></ogr:moja_GML></gml:featureMember>
<gml:featureMember><ogr:moja_GML
fid="F5"><ogr:geometryProperty><gml:LineString><gml:coordinates>20.507145,52.5477439
20.757145,52.5477439 20.757145,52.2977439 20.757145,52.5477439
20.507145,52.5477439</gml:coordinates></gml:LineString></ogr:geometryProperty><ogr:opis
/></ogr:moja_GML></gml:featureMember>
<gml:featureMember><ogr:moja_GML
fid="F6"><ogr:geometryProperty><gml:LineString><gml:coordinates>20.507145,52.2977439
20.757145,52.2977439 20.757145,52.0477439 20.757145,52.2977439
20.507145,52.2977439</gml:coordinates></gml:LineString></ogr:geometryProperty><ogr:opis
/></ogr:moja_GML></gml:featureMember>
=======================i tak dalej====================================
======================================================================
Re: problem z GMLem
Author: Leszek Nowicki
Date: Tue, 31 May 2011 09:48
Date: Tue, 31 May 2011 09:48
37 lines
2538 bytes
2538 bytes
On 25 Maj, 00:59, Mateuszzz <km_wawaUSUNM...@vp.pl> wrote: > Witam Grupowiczów, > > stworzyłem w sposób "ręczny" plik GML (umieściłem go poniżej). Chciałem, > aby zawierał on łamane zamknięte ograniczające kwadrat. > Niestety otrzymałem coś, co nie zawiera wszystkich boków. Proszę o > poradę, w którym miejscu popełniłem błąd: > Witam "Z automatu" dostałem coś takiego: <gml:boundedBy> <gml:Envelope srsName="EPSG:4326"> <gml:lowerCorner>52.2977439 20.007145</gml:lowerCorner> <gml:upperCorner>52.5477439 20.257145</gml:upperCorner> </gml:Envelope> </gml:boundedBy> <gml:featureMember> <gmgml:moja_GML gml:id="moja_GML.1"> <gmgml:ID1>1</gmgml:ID1> <gmgml:Geometry> <gml:LineString srsName="EPSG:4326"> <gml:posList srsDimension="2">52.5477439 20.007145 52.2977439 20.007145 52.2977439 20.257145 52.5477439 20.257145 52.5477439 20.007145 </gml:posList> </gml:LineString> </gmgml:Geometry>< /gmgml:moja_GML> </gml:featureMember> Oczywiście sam zapis zależy od definicji w pliki xsd, ale zwraca uwagę inny sposób zapisu współrzędnych (bez przecinków). Może w tym problem. Pozdrawiam Leszek Nowicki http://sit.glogow.pl
Re: problem z GMLem
Author: Leszek Nowicki
Date: Tue, 31 May 2011 10:07
Date: Tue, 31 May 2011 10:07
15 lines
2016 bytes
2016 bytes
On 25 Maj, 00:59, Mateuszzz <km_wawaUSUNM...@vp.pl> wrote: > Witam Grupowiczów, > > stworzyłem w sposób "ręczny" plik GML (umieściłem go poniżej). Chciałem, > aby zawierał on łamane zamknięte ograniczające kwadrat. > Niestety otrzymałem coś, co nie zawiera wszystkich boków. Proszę o > poradę, w którym miejscu popełniłem błąd: > W specyfikacji GML (http://portal.opengeospatial.org/files/? artifact_id=15201) znalazłem jeszcze coś takiego: "Additional requirements for Geometry include: a) in all cases, geometry coordinates shall only be specified using the gml:pos for gml:Point or gml:posList elements for all other types ..."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads