Discussion:
SVG to SHP ?
(too old to reply)
Marcos
2007-11-06 12:15:57 UTC
Permalink
Hi !
I'm new to this group, and to GIS in general ... sorry for this
possibly dumb question ... ;-)

I see there are tools to convert from Shapefile format to SVG format,
but is there some way to do the opposite (SVG to Shapefile) ? _And_:
does the SVG->SHP conversion have any consistent meaning ?
Thanks in advance, everybody !

Marcos
Paul Cooper
2007-11-06 14:49:43 UTC
Permalink
Post by Marcos
Hi !
I'm new to this group, and to GIS in general ... sorry for this
possibly dumb question ... ;-)
I see there are tools to convert from Shapefile format to SVG format,
does the SVG->SHP conversion have any consistent meaning ?
Thanks in advance, everybody !
Marcos
Basically, it is a one-way conversion. In converting from shapefile to
SVG you lose the "real world" coordinate system of the shapefile, and
move to page-oriented coordinates. It is possible that these are the
same, but there is no mechanism by which a converter could know this.

In principle, you could probably write a conversion routine using XML
conversion techniques to go to GMl, and then to Shapefile.

Paul
Marcos
2007-11-06 15:02:37 UTC
Permalink
Post by Paul Cooper
Post by Marcos
Hi !
I'm new to this group, and to GIS in general ... sorry for this
possibly dumb question ... ;-)
I see there are tools to convert from Shapefile format to SVG format,
does the SVG->SHP conversion have any consistent meaning ?
Thanks in advance, everybody !
Marcos
Basically, it is a one-way conversion. In converting from shapefile to
SVG you lose the "real world" coordinate system of the shapefile, and
move to page-oriented coordinates. It is possible that these are the
same, but there is no mechanism by which a converter could know this.
In principle, you could probably write a conversion routine using XML
conversion techniques to go to GMl, and then to Shapefile.
Paul
Thank You very much, Paul !
I just needed a confirmation to my suspect that it's essentially a one-
way conversion ...

Marcos
Marcos
2007-11-06 15:44:18 UTC
Permalink
Post by Paul Cooper
Post by Marcos
Hi !
I'm new to this group, and to GIS in general ... sorry for this
possibly dumb question ... ;-)
I see there are tools to convert from Shapefile format to SVG format,
does the SVG->SHP conversion have any consistent meaning ?
Thanks in advance, everybody !
Marcos
Basically, it is a one-way conversion. In converting from shapefile to
SVG you lose the "real world" coordinate system of the shapefile, and
move to page-oriented coordinates. It is possible that these are the
same, but there is no mechanism by which a converter could know this.
In principle, you could probably write a conversion routine using XML
conversion techniques to go to GMl, and then to Shapefile.
Paul
Sorry, one more question: what do You mean, with "GMI" ?
Thanks again ...

Marcos
Uffe Kousgaard
2007-11-06 19:40:13 UTC
Permalink
Post by Marcos
Sorry, one more question: what do You mean, with "GMI" ?
GML: http://en.wikipedia.org/wiki/Geography_Markup_Language
Marcos
2007-11-07 08:20:01 UTC
Permalink
Post by Marcos
Sorry, one more question: what do You mean, with "GMI" ?
GML:http://en.wikipedia.org/wiki/Geography_Markup_Language
Sorry, I did read l (a lowercase 'L') as an I (an uppercase 'I'). I
have always tought western alphabet should be revisited ... ;-)
Paul Cooper
2007-11-07 09:01:44 UTC
Permalink
Post by Marcos
Post by Paul Cooper
Post by Marcos
Hi !
I'm new to this group, and to GIS in general ... sorry for this
possibly dumb question ... ;-)
I see there are tools to convert from Shapefile format to SVG format,
does the SVG->SHP conversion have any consistent meaning ?
Thanks in advance, everybody !
Marcos
Basically, it is a one-way conversion. In converting from shapefile to
SVG you lose the "real world" coordinate system of the shapefile, and
move to page-oriented coordinates. It is possible that these are the
same, but there is no mechanism by which a converter could know this.
In principle, you could probably write a conversion routine using XML
conversion techniques to go to GMl, and then to Shapefile.
Paul
Sorry, one more question: what do You mean, with "GMI" ?
Thanks again ...
Marcos
That's GML, the standard interchange format for Web services. I'm
afraid the shift key slipped when I was typing it.

Paul
Marcos
2007-11-07 09:55:20 UTC
Permalink
Post by Paul Cooper
Post by Marcos
Post by Paul Cooper
Post by Marcos
Hi !
I'm new to this group, and to GIS in general ... sorry for this
possibly dumb question ... ;-)
I see there are tools to convert from Shapefile format to SVG format,
does the SVG->SHP conversion have any consistent meaning ?
Thanks in advance, everybody !
Marcos
Basically, it is a one-way conversion. In converting from shapefile to
SVG you lose the "real world" coordinate system of the shapefile, and
move to page-oriented coordinates. It is possible that these are the
same, but there is no mechanism by which a converter could know this.
In principle, you could probably write a conversion routine using XML
conversion techniques to go to GMl, and then to Shapefile.
Paul
Sorry, one more question: what do You mean, with "GMI" ?
Thanks again ...
Marcos
That's GML, the standard interchange format for Web services. I'm
afraid the shift key slipped when I was typing it.
Paul
No problem, my mistake. However, to go from SVG to Shapefile (even
passing through GML), You however miss the "real world" data, don't
You ?

Marcos
Paul Cooper
2007-11-07 14:51:52 UTC
Permalink
Post by Marcos
Post by Paul Cooper
Post by Marcos
Post by Paul Cooper
Post by Marcos
Hi !
I'm new to this group, and to GIS in general ... sorry for this
possibly dumb question ... ;-)
I see there are tools to convert from Shapefile format to SVG format,
does the SVG->SHP conversion have any consistent meaning ?
Thanks in advance, everybody !
Marcos
Basically, it is a one-way conversion. In converting from shapefile to
SVG you lose the "real world" coordinate system of the shapefile, and
move to page-oriented coordinates. It is possible that these are the
same, but there is no mechanism by which a converter could know this.
In principle, you could probably write a conversion routine using XML
conversion techniques to go to GMl, and then to Shapefile.
Paul
Sorry, one more question: what do You mean, with "GMI" ?
Thanks again ...
Marcos
That's GML, the standard interchange format for Web services. I'm
afraid the shift key slipped when I was typing it.
Paul
No problem, my mistake. However, to go from SVG to Shapefile (even
passing through GML), You however miss the "real world" data, don't
You ?
Marcos
Yes, you would. To return to "real world" coordinates would require
the user to have knowledge of the transformation between "real world"
coordinates and SVG coordinates, and to apply the inverse transform to
the resulting GML data. As the user in most cases would have no
a-priori knowledge of the tranformation, this would be a show-stopper
in many cases.

Paul

Loading...